mirror of
https://github.com/wavelog/wavelog.git
synced 2026-03-22 10:24:14 +00:00
Fixed issue #85 by trimming the locator field
This commit is contained in:
@@ -36,43 +36,43 @@ class Logbook_model extends CI_Model {
|
||||
'COL_MODE' => $this->input->post('mode'),
|
||||
'COL_RST_RCVD' => $this->input->post('rst_recv'),
|
||||
'COL_RST_SENT' => $this->input->post('rst_sent'),
|
||||
'COL_NAME' => $this->input->post('name'),
|
||||
'COL_NAME' => $this->input->post('name'),
|
||||
'COL_COMMENT' => $this->input->post('comment'),
|
||||
'COL_SAT_NAME' => $this->input->post('sat_name'),
|
||||
'COL_SAT_MODE' => $this->input->post('sat_mode'),
|
||||
'COL_GRIDSQUARE' => $this->input->post('locator'),
|
||||
'COL_GRIDSQUARE' => trim($this->input->post('locator')),
|
||||
'COL_COUNTRY' => $this->input->post('country'),
|
||||
'COL_MY_RIG' => $this->input->post('equipment'),
|
||||
'COL_QSLSDATE' => date('Y-m-d'),
|
||||
'COL_QSLRDATE' => date('Y-m-d'),
|
||||
'COL_QSL_SENT' => $this->input->post('qsl_sent'),
|
||||
'COL_QSL_RCVD' => $this->input->post('qsl_recv'),
|
||||
'COL_QSL_SENT_VIA' => $this->input->post('qsl_sent_method'),
|
||||
'COL_QSL_RCVD_VIA' => $this->input->post('qsl_recv_method'),
|
||||
'COL_OPERATOR' => $this->session->userdata('user_callsign'),
|
||||
'COL_QTH' => $this->input->post('qth'),
|
||||
'COL_PROP_MODE' => $prop_mode,
|
||||
'COL_IOTA' => $this->input->post('iota_ref'),
|
||||
'COL_MY_GRIDSQUARE' => $locator,
|
||||
'COL_DISTANCE' => "0",
|
||||
'COL_FREQ_RX' => 0,
|
||||
'COL_BAND_RX' => null,
|
||||
'COL_ANT_AZ' => null,
|
||||
'COL_ANT_EL' => null,
|
||||
'COL_A_INDEX' => null,
|
||||
'COL_AGE' => null,
|
||||
'COL_TEN_TEN' => null,
|
||||
'COL_TX_PWR' => null,
|
||||
'COL_STX' => null,
|
||||
'COL_SRX' => null,
|
||||
'COL_NR_BURSTS' => null,
|
||||
'COL_NR_PINGS' => null,
|
||||
'COL_MAX_BURSTS' => null,
|
||||
'COL_K_INDEX' => null,
|
||||
'COL_SFI' => null,
|
||||
'COL_RX_PWR' => null,
|
||||
'COL_LAT' => null,
|
||||
'COL_LON' => null,
|
||||
'COL_QSLSDATE' => date('Y-m-d'),
|
||||
'COL_QSLRDATE' => date('Y-m-d'),
|
||||
'COL_QSL_SENT' => $this->input->post('qsl_sent'),
|
||||
'COL_QSL_RCVD' => $this->input->post('qsl_recv'),
|
||||
'COL_QSL_SENT_VIA' => $this->input->post('qsl_sent_method'),
|
||||
'COL_QSL_RCVD_VIA' => $this->input->post('qsl_recv_method'),
|
||||
'COL_OPERATOR' => $this->session->userdata('user_callsign'),
|
||||
'COL_QTH' => $this->input->post('qth'),
|
||||
'COL_PROP_MODE' => $prop_mode,
|
||||
'COL_IOTA' => $this->input->post('iota_ref'),
|
||||
'COL_MY_GRIDSQUARE' => $locator,
|
||||
'COL_DISTANCE' => "0",
|
||||
'COL_FREQ_RX' => 0,
|
||||
'COL_BAND_RX' => null,
|
||||
'COL_ANT_AZ' => null,
|
||||
'COL_ANT_EL' => null,
|
||||
'COL_A_INDEX' => null,
|
||||
'COL_AGE' => null,
|
||||
'COL_TEN_TEN' => null,
|
||||
'COL_TX_PWR' => null,
|
||||
'COL_STX' => null,
|
||||
'COL_SRX' => null,
|
||||
'COL_NR_BURSTS' => null,
|
||||
'COL_NR_PINGS' => null,
|
||||
'COL_MAX_BURSTS' => null,
|
||||
'COL_K_INDEX' => null,
|
||||
'COL_SFI' => null,
|
||||
'COL_RX_PWR' => null,
|
||||
'COL_LAT' => null,
|
||||
'COL_LON' => null,
|
||||
);
|
||||
|
||||
$this->add_qso($data);
|
||||
|
||||
@@ -7,6 +7,9 @@
|
||||
|
||||
<script type="text/javascript" src="<?php echo base_url(); ?>js/jquery-1.5.1.min.js"></script>
|
||||
<script type="text/javascript" src="<?php echo base_url(); ?>js/jquery-ui-1.8.12.custom.min.js"></script>
|
||||
<script type="text/javascript" src="<?php echo base_url(); ?>js/jquery.shortkeys.js"></script>
|
||||
|
||||
|
||||
<script type="text/javascript" src="<?php echo base_url(); ?>js/bootstrap-dropdown.js"></script>
|
||||
<script type="text/javascript" src="<?php echo base_url(); ?>js/bootstrap-tabs.js"></script>
|
||||
|
||||
|
||||
@@ -116,7 +116,7 @@
|
||||
|
||||
<tr>
|
||||
<td class="title">QTH</td>
|
||||
<td><input id="qth" type"text" name"qth" value"" /></td>
|
||||
<td><input id="qth" type="text" name"qth" value"" /></td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
@@ -245,13 +245,10 @@
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<script type="text/javascript">
|
||||
i=0;
|
||||
$(document).ready(function(){
|
||||
|
||||
|
||||
/* On Page Load */
|
||||
var catcher = function() {
|
||||
var changed = false;
|
||||
|
||||
Reference in New Issue
Block a user