Merge pull request #519 from dg9vh/reworked_qsl_printing

reworked QSL-Indicators and print-functions
pull/523/head
Peter Goodhall 2020-05-26 16:07:53 +01:00 zatwierdzone przez GitHub
commit d5a21e951b
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 4AEE18F83AFDEB23
6 zmienionych plików z 22 dodań i 4 usunięć

Wyświetl plik

@ -425,9 +425,15 @@ class Logbook extends CI_Controller {
case "Y":
$html .= "green";
break;
case "Q":
$html .= "yellow";
break;
case "R":
$html .= "yellow";
break;
case "I":
echo "grey";
break;
default:
$html .= "red";
}
@ -437,9 +443,15 @@ class Logbook extends CI_Controller {
case "Y":
$html .= "green";
break;
case "Q":
$html .= "yellow";
break;
case "R":
$html .= "yellow";
break;
case "I":
echo "grey";
break;
default:
$html .= "red";
}

Wyświetl plik

@ -24,7 +24,7 @@ class adif_data extends CI_Model {
$active_station_id = $this->stations->find_active();
$this->db->where('station_id', $active_station_id);
$this->db->where('COL_QSL_SENT', 'R');
$this->db->where_in('COL_QSL_SENT', array('R', 'Q'));
$this->db->order_by("COL_TIME_ON", "ASC");
$query = $this->db->get($this->config->item('table_name'));

Wyświetl plik

@ -780,7 +780,7 @@ class Logbook_model extends CI_Model {
ENTITY
FROM '.$this->config->item('table_name').', dxcc_prefixes, station_profile
WHERE
COL_QSL_SENT LIKE \'R\'
COL_QSL_SENT in (\'R\', \'Q\')
and (CASE WHEN COL_QSL_VIA != \'\' THEN COL_QSL_VIA ELSE COL_CALL END) like CONCAT(dxcc_prefixes.call,\'%\')
and (end is null or end > now())
and '.$this->config->item('table_name').'.station_id = '.$station_id.'

Wyświetl plik

@ -18,7 +18,7 @@ class Qslprint_model extends CI_Model {
'COL_QSL_SENT_VIA' => "B",
);
$this->db->where("COL_QSL_SENT", "R");
$this->db->where_in("COL_QSL_SENT", array("R","Q"));
$this->db->where("station_id", $station_id);
$this->db->update($this->config->item('table_name'), $data);
}

Wyświetl plik

@ -16,7 +16,7 @@
<div class="card-body">
<h5 class="card-title"></h5>
<p class="card-text">
Here you can export requested QSLs as CSV-file or ADIF and mark them as sent via buro in a mass transaction if you like. The considered QSOs for this functions would be those of the active station profile.
Here you can export requested QSLs as CSV-file or ADIF and mark them as sent via buro in a mass transaction if you like. Requested QSOs are QSOs marked as "Requested" or "Queued" in the QSL-sent-field. The considered QSOs for this functions would be those of the active station profile.
</p>

Wyświetl plik

@ -49,6 +49,9 @@
case "Y":
echo "green";
break;
case "Q":
echo "yellow";
break;
case "R":
echo "yellow";
break;
@ -64,6 +67,9 @@
case "Y":
echo "green";
break;
case "Q":
echo "yellow";
break;
case "R":
echo "yellow";
break;