diff --git a/application/controllers/Qso.php b/application/controllers/Qso.php index e8e2f957..bab633bd 100755 --- a/application/controllers/Qso.php +++ b/application/controllers/Qso.php @@ -153,6 +153,7 @@ class QSO extends CI_Controller { $this->load->model('logbook_model'); $this->load->model('user_model'); $this->load->model('modes'); + $this->load->model('contesting_model'); $this->load->library('form_validation'); @@ -167,6 +168,7 @@ class QSO extends CI_Controller { $data['dxcc'] = $this->logbook_model->fetchDxcc(); $data['iota'] = $this->logbook_model->fetchIota(); $data['modes'] = $this->modes->all(); + $data['contest'] = $this->contesting_model->getActivecontests(); $this->load->view('qso/edit_ajax', $data); } diff --git a/application/models/Logbook_model.php b/application/models/Logbook_model.php index b13f741a..ccb4f9c0 100755 --- a/application/models/Logbook_model.php +++ b/application/models/Logbook_model.php @@ -513,6 +513,9 @@ class Logbook_model extends CI_Model { 'COL_FREQ_RX' => $this->parse_frequency($this->input->post('freq_display_rx')), 'COL_STX_STRING' => $this->input->post('stx_string'), 'COL_SRX_STRING' => $this->input->post('srx_string'), + 'COL_STX' => $this->input->post('stx'), + 'COL_SRX' => $this->input->post('srx'), + 'COL_CONTEST_ID' => $this->input->post('contest_name'), 'COL_QSL_VIA' => $this->input->post('qsl_via_callsign'), 'station_id' => $this->input->post('station_profile'), 'COL_OPERATOR' => $this->input->post('operator_callsign'), diff --git a/application/views/qso/edit_ajax.php b/application/views/qso/edit_ajax.php index 4a977ce8..96020b08 100644 --- a/application/views/qso/edit_ajax.php +++ b/application/views/qso/edit_ajax.php @@ -42,6 +42,7 @@ Notes QSL Station + Contest @@ -191,19 +192,8 @@ - COL_STX_STRING) { ?> -
- - -
- - COL_SRX_STRING) { ?> -
- - -
- +
@@ -578,8 +568,50 @@
+ +