From 6bc90c8dc6798a509cd3c6c5458de287465ac724 Mon Sep 17 00:00:00 2001 From: Peter Goodhall Date: Mon, 13 Apr 2020 16:47:58 +0100 Subject: [PATCH] Added Transmit Power field to QSO panel under Station power is defined in watts --- application/controllers/Qso.php | 3 ++- application/models/Logbook_model.php | 2 +- application/views/qso/index.php | 6 ++++++ application/views/view_log/qso.php | 2 +- 4 files changed, 10 insertions(+), 3 deletions(-) diff --git a/application/controllers/Qso.php b/application/controllers/Qso.php index a4773623..f122e4f8 100755 --- a/application/controllers/Qso.php +++ b/application/controllers/Qso.php @@ -61,7 +61,8 @@ class QSO extends CI_Controller { 'sat_mode' => $this->input->post('sat_mode'), 'prop_mode' => $this->input->post('prop_mode'), 'radio' => $this->input->post('radio'), - 'station_profile_id' => $this->input->post('station_profile') + 'station_profile_id' => $this->input->post('station_profile'), + 'transmit_power' => $this->input->post('transmit_power') ); // ]; diff --git a/application/models/Logbook_model.php b/application/models/Logbook_model.php index 0b60e9cb..2608aef4 100755 --- a/application/models/Logbook_model.php +++ b/application/models/Logbook_model.php @@ -93,7 +93,7 @@ class Logbook_model extends CI_Model { 'COL_A_INDEX' => null, 'COL_AGE' => null, 'COL_TEN_TEN' => null, - 'COL_TX_PWR' => null, + 'COL_TX_PWR' => trim($this->input->post('transmit_power')), 'COL_STX' => null, 'COL_SRX' => null, 'COL_NR_BURSTS' => null, diff --git a/application/views/qso/index.php b/application/views/qso/index.php index b8817bcc..340489f0 100755 --- a/application/views/qso/index.php +++ b/application/views/qso/index.php @@ -187,6 +187,12 @@ + +
+ + + Power is in watts only include numbers in the input. +
diff --git a/application/views/view_log/qso.php b/application/views/view_log/qso.php index 959c54a7..32f1c441 100644 --- a/application/views/view_log/qso.php +++ b/application/views/view_log/qso.php @@ -199,7 +199,7 @@ COL_TX_PWR) { ?> Station Transmit Power - COL_TX_PWR; ?> + COL_TX_PWR; ?>w