Added field for SOTA Ref and its shown in the popups

pull/290/head
Peter Goodhall 2019-06-13 18:35:14 +01:00
rodzic c836879591
commit ad76b88ac1
5 zmienionych plików z 38 dodań i 1 usunięć

Wyświetl plik

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

Wyświetl plik

@ -143,6 +143,11 @@
<td><input type="text" name="iota_ref" value="<?php echo $COL_IOTA; ?>" /></td>
</tr>
<tr>
<td>SOTA</td>
<td><input type="text" name="sota_ref" value="<?php echo $COL_SOTA_REF; ?>" /></td>
</tr>
<tr>
<td>Country</td>
<td><input type="text" name="country" value="<?php echo $COL_COUNTRY; ?>" /></td>

Wyświetl plik

@ -209,6 +209,11 @@
<label for="iota_ref">IOTA Reference</label>
<input class="form-control" id="iota_ref" type="text" name="iota_ref" value="" /> e.g: EU-005
</div>
<div class="form-group">
<label for="sota_ref">SOTA Reference</label>
<input class="form-control" id="sota_ref" type="text" name="sota_ref" value="" /> e.g: GM/NS-001
</div>
</div>
<!-- Satellite Panel -->

Wyświetl plik

@ -98,6 +98,21 @@
<td><?php echo $row->COL_COUNTRY; ?></td>
</tr>
<?php } ?>
<?php if($row->COL_IOTA != null) { ?>
<tr>
<td>IOTA Ref:</td>
<td><?php echo $row->COL_IOTA; ?></td>
</tr>
<?php } ?>
<?php if($row->COL_SOTA_REF != null) { ?>
<tr>
<td>SOTA Ref:</td>
<td><?php echo $row->COL_SOTA_REF; ?></td>
</tr>
<?php } ?>
</table>
<?php if($row->COL_QSL_SENT == "Y" || $row->COL_QSL_RCVD == "Y") { ?>
<h3>QSL Info</h3>

Wyświetl plik

@ -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;
}
}