mirror of
https://github.com/wavelog/wavelog.git
synced 2026-03-22 10:24:14 +00:00
[Logbook] Adds QSL Card Requested to the dropdown for each qso
This commit is contained in:
@@ -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');
|
||||
|
||||
Reference in New Issue
Block a user