Added Transmit Power field to QSO panel under Station power is defined in watts

pull/462/head
Peter Goodhall 2020-04-13 16:47:58 +01:00
rodzic 8aae7299fc
commit 6bc90c8dc6
4 zmienionych plików z 10 dodań i 3 usunięć

Wyświetl plik

@ -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')
);
// ];

Wyświetl plik

@ -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,

Wyświetl plik

@ -187,6 +187,12 @@
<label for="frequency_rx">Frequency (RX)</label>
<input type="text" class="form-control" id="frequency_rx" name="freq_display_rx" value="<?php echo $this->session->userdata('freq_rx'); ?>" />
</div>
<div class="form-group">
<label for="transmit_power">Transmit Power (Watts)</label>
<input type="number" step="0.001" class="form-control" id="transmit_power" name="transmit_power" value="<?php echo $this->session->userdata('transmit_power'); ?>" />
<small id="powerHelp" class="form-text text-muted">Power is in watts only include numbers in the input.</small>
</div>
</div>
<!-- General Items -->

Wyświetl plik

@ -199,7 +199,7 @@
<?php if($row->COL_TX_PWR) { ?>
<tr>
<td>Station Transmit Power</td>
<td><?php echo $row->COL_TX_PWR; ?></td>
<td><?php echo $row->COL_TX_PWR; ?>w</td>
</tr>
<?php } ?>