kopia lustrzana https://github.com/magicbug/Cloudlog
considering only the QSOs of the active station profile now.
rodzic
1a737166c5
commit
044407fefc
|
@ -32,7 +32,7 @@ $config['show_time'] = FALSE;
|
|||
| Default is: M
|
||||
|
|
||||
*/
|
||||
$config['measurement_base'] = 'M';
|
||||
$config['measurement_base'] = 'K';
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
|
@ -73,6 +73,6 @@ $config['cat_timeout_interval'] = 300;
|
|||
|
|
||||
*/
|
||||
|
||||
$config['public_search'] = FALSE;
|
||||
$config['public_search'] = TRUE;
|
||||
|
||||
$config['callsign_tags'] = TRUE;
|
||||
$config['callsign_tags'] = TRUE;
|
||||
|
|
|
@ -404,7 +404,8 @@ class Logbook_model extends CI_Model {
|
|||
|
||||
|
||||
// Set Paper to recived
|
||||
function paperqsl_update($qso_id, $method) {
|
||||
function paperqsl_update($qso_id, $method) {
|
||||
|
||||
$data = array(
|
||||
'COL_QSLRDATE' => date('Y-m-d'),
|
||||
'COL_QSL_RCVD' => 'Y',
|
||||
|
@ -417,7 +418,11 @@ class Logbook_model extends CI_Model {
|
|||
}
|
||||
|
||||
function get_qsos_for_printing() {
|
||||
$query = $this->db->query('SELECT COL_PRIMARY_KEY, COL_CALL, COL_QSL_VIA, COL_TIME_ON, COL_MODE, COL_FREQ, UPPER(COL_BAND) as COL_BAND, COL_RST_SENT, COL_SAT_NAME, COL_SAT_MODE, COL_QSL_RCVD, (CASE WHEN COL_QSL_VIA != \'\' THEN COL_QSL_VIA ELSE COL_CALL END) AS COL_ROUTING, ADIF, ENTITY FROM '.$this->config->item('table_name').', dxcc_prefixes WHERE COL_QSL_SENT LIKE \'R\' 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()) ORDER BY adif, col_routing');
|
||||
$CI =& get_instance();
|
||||
$CI->load->model('Stations');
|
||||
$station_id = $CI->Stations->find_active();
|
||||
|
||||
$query = $this->db->query('SELECT COL_PRIMARY_KEY, COL_CALL, COL_STATION_CALLSIGN, COL_QSL_VIA, COL_TIME_ON, COL_MODE, COL_FREQ, UPPER(COL_BAND) as COL_BAND, COL_RST_SENT, COL_SAT_NAME, COL_SAT_MODE, COL_QSL_RCVD, (CASE WHEN COL_QSL_VIA != \'\' THEN COL_QSL_VIA ELSE COL_CALL END) AS COL_ROUTING, ADIF, ENTITY FROM '.$this->config->item('table_name').', dxcc_prefixes WHERE COL_QSL_SENT LIKE \'R\' 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 station_id = '.$station_id.' ORDER BY adif, col_routing');
|
||||
return $query;
|
||||
}
|
||||
|
||||
|
|
|
@ -8,6 +8,10 @@ class Qslprint_model extends CI_Model {
|
|||
}
|
||||
|
||||
function mark_qsos_printed() {
|
||||
$CI =& get_instance();
|
||||
$CI->load->model('Stations');
|
||||
$station_id = $CI->Stations->find_active();
|
||||
|
||||
$data = array(
|
||||
'COL_QSLSDATE' => date('Y-m-d'),
|
||||
'COL_QSL_SENT' => "Y",
|
||||
|
@ -15,6 +19,7 @@ class Qslprint_model extends CI_Model {
|
|||
);
|
||||
|
||||
$this->db->where("COL_QSL_SENT", "R");
|
||||
$this->db->where("station_id", $station_id);
|
||||
$this->db->update($this->config->item('table_name'), $data);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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.
|
||||
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.
|
||||
</p>
|
||||
|
||||
|
||||
|
|
Ładowanie…
Reference in New Issue