From ad76b88ac193f3134ae3e33e4dc83ec52c25eb29 Mon Sep 17 00:00:00 2001 From: Peter Goodhall Date: Thu, 13 Jun 2019 18:35:14 +0100 Subject: [PATCH] Added field for SOTA Ref and its shown in the popups --- application/models/Logbook_model.php | 3 +++ application/views/qso/edit.php | 5 +++++ application/views/qso/index.php | 5 +++++ application/views/view_log/qso.php | 15 +++++++++++++++ assets/css/general.css | 11 ++++++++++- 5 files changed, 38 insertions(+), 1 deletion(-) diff --git a/application/models/Logbook_model.php b/application/models/Logbook_model.php index 662e57d0..6f4517ec 100755 --- a/application/models/Logbook_model.php +++ b/application/models/Logbook_model.php @@ -80,6 +80,7 @@ class Logbook_model extends CI_Model { 'COL_LON' => null, 'COL_DXCC' => $this->input->post('dxcc_id'), 'COL_CQZ' => $this->input->post('cqz'), + 'COL_SOTA_REF' => trim($this->input->post('sota_ref')), ); if (strpos(trim($this->input->post('locator')), ',') !== false) { @@ -161,6 +162,7 @@ class Logbook_model extends CI_Model { 'COL_LON' => null, 'COL_DXCC' => $this->input->post('dxcc_id'), 'COL_CQZ' => $this->input->post('cqz'), + 'COL_SOTA_REF' => trim($this->input->post('sota_ref')), ); // If station profile has been provided fill in the fields @@ -253,6 +255,7 @@ class Logbook_model extends CI_Model { 'COL_LOTW_QSL_SENT' => $this->input->post('lotw_sent'), 'COL_LOTW_QSL_RCVD' => $this->input->post('lotw_recv'), 'COL_IOTA' => $this->input->post('iota_ref'), + 'COL_SOTA_REF' => $this->input->post('sota_ref'), 'COL_QTH' => $this->input->post('qth'), 'COL_PROP_MODE' => $this->input->post('prop_mode'), 'COL_FREQ_RX' => $this->parse_frequency($this->input->post('freq_display_rx')), diff --git a/application/views/qso/edit.php b/application/views/qso/edit.php index f8ed38c5..fedeac0c 100755 --- a/application/views/qso/edit.php +++ b/application/views/qso/edit.php @@ -143,6 +143,11 @@ + + SOTA + + + Country diff --git a/application/views/qso/index.php b/application/views/qso/index.php index f66e993a..8a4de5d8 100755 --- a/application/views/qso/index.php +++ b/application/views/qso/index.php @@ -209,6 +209,11 @@ e.g: EU-005 + +
+ + e.g: GM/NS-001 +
diff --git a/application/views/view_log/qso.php b/application/views/view_log/qso.php index 9861c8d8..5273b82e 100644 --- a/application/views/view_log/qso.php +++ b/application/views/view_log/qso.php @@ -98,6 +98,21 @@ COL_COUNTRY; ?> + + COL_IOTA != null) { ?> + + IOTA Ref: + COL_IOTA; ?> + + + + COL_SOTA_REF != null) { ?> + + SOTA Ref: + COL_SOTA_REF; ?> + + + COL_QSL_SENT == "Y" || $row->COL_QSL_RCVD == "Y") { ?>

QSL Info

diff --git a/assets/css/general.css b/assets/css/general.css index f317601d..bf3ee992 100644 --- a/assets/css/general.css +++ b/assets/css/general.css @@ -59,6 +59,14 @@ text-transform: uppercase; } +.qso_panel .iota_ref { + text-transform: uppercase; +} + +.qso_panel .sota_ref { + text-transform: uppercase; +} + .workedGrid { border-color: green; } @@ -110,4 +118,5 @@ TD.lotw{ .previous-qsos .card-title { margin-bottom: 0px; -} \ No newline at end of file +} +