diff --git a/application/controllers/Qslprint.php b/application/controllers/Qslprint.php index 39fa3326..e43d116d 100644 --- a/application/controllers/Qslprint.php +++ b/application/controllers/Qslprint.php @@ -114,6 +114,12 @@ class QSLPrint extends CI_Controller { redirect('logbook'); } + + public function delete_from_qsl_queue($id) { + $this->load->model('qslprint_model'); + + $this->qslprint_model->delete_from_qsl_queue($this->security->xss_clean($id)); + } } /* End of file Qslprint.php */ diff --git a/application/models/Qslprint_model.php b/application/models/Qslprint_model.php index 0ec74294..b6a65064 100644 --- a/application/models/Qslprint_model.php +++ b/application/models/Qslprint_model.php @@ -37,6 +37,22 @@ class Qslprint_model extends CI_Model { return $query; } + + function delete_from_qsl_queue($id) { + $CI =& get_instance(); + $CI->load->model('Stations'); + $station_id = $CI->Stations->find_active(); + + $data = array( + 'COL_QSL_SENT' => "N", + ); + + $this->db->where("COL_PRIMARY_KEY", $id); + //$this->db->where("station_id", $station_id); + $this->db->update($this->config->item('table_name'), $data); + + return true; + } } ?> diff --git a/application/views/interface_assets/footer.php b/application/views/interface_assets/footer.php index 9ba26764..256b8f95 100644 --- a/application/views/interface_assets/footer.php +++ b/application/views/interface_assets/footer.php @@ -2022,5 +2022,33 @@ function deleteQsl(id) { uri->segment(1) == "contesting" && $this->uri->segment(2) == "add") { ?> + +uri->segment(1) == "qslprint") { ?> + + diff --git a/application/views/qslprint/index.php b/application/views/qslprint/index.php index a802138d..188b40dd 100644 --- a/application/views/qslprint/index.php +++ b/application/views/qslprint/index.php @@ -15,13 +15,15 @@
Export Requested QSLs for Printing
-
- +
+
+ +

Here you can export requested QSLs as CSV or ADIF files for printing and, optionally, mark them as sent via bureau.

Requested QSLs are any QSOs with a value of "Requested" or "Queued" in their "QSL Sent" field.