[Logbook] Adds QSL Card Requested to the dropdown for each qso

This commit is contained in:
Peter Goodhall
2021-06-11 16:05:49 +01:00
parent 719581e6ec
commit def0ed9f4b
4 changed files with 56 additions and 0 deletions

View File

@@ -216,6 +216,27 @@ class QSO extends CI_Controller {
}
}
function qsl_requested_ajax() {
$id = str_replace('"', "", $this->input->post("id"));
$method = str_replace('"', "", $this->input->post("method"));
$this->load->model('logbook_model');
$this->load->model('user_model');
header('Content-Type: application/json');
if(!$this->user_model->authorize(2)) {
echo json_encode(array('message' => 'Error'));
}
else {
// Update Logbook to Mark Paper Card Received
$this->logbook_model->paperqsl_requested($id, $method);
echo json_encode(array('message' => 'OK'));
}
}
/* Delete QSO */
function delete($id) {
$this->load->model('logbook_model');