Support Multi Grids for VUCC
这个提交包含在:
父节点
b10e6e80ef
当前提交
71d8eb22a2
共有 3 个文件被更改,包括 30 次插入 和 6 次删除
|
|
@ -44,7 +44,6 @@ class Logbook_model extends CI_Model {
|
||||||
'COL_COMMENT' => $this->input->post('comment'),
|
'COL_COMMENT' => $this->input->post('comment'),
|
||||||
'COL_SAT_NAME' => strtoupper($this->input->post('sat_name')),
|
'COL_SAT_NAME' => strtoupper($this->input->post('sat_name')),
|
||||||
'COL_SAT_MODE' => strtoupper($this->input->post('sat_mode')),
|
'COL_SAT_MODE' => strtoupper($this->input->post('sat_mode')),
|
||||||
'COL_GRIDSQUARE' => strtoupper(trim($this->input->post('locator'))),
|
|
||||||
'COL_COUNTRY' => $this->input->post('country'),
|
'COL_COUNTRY' => $this->input->post('country'),
|
||||||
'COL_MY_RIG' => $this->input->post('equipment'),
|
'COL_MY_RIG' => $this->input->post('equipment'),
|
||||||
'COL_QSLSDATE' => date('Y-m-d'),
|
'COL_QSLSDATE' => date('Y-m-d'),
|
||||||
|
|
@ -83,6 +82,13 @@ class Logbook_model extends CI_Model {
|
||||||
'COL_CQZ' => $this->input->post('cqz'),
|
'COL_CQZ' => $this->input->post('cqz'),
|
||||||
);
|
);
|
||||||
|
|
||||||
|
if (strpos(trim($this->input->post('locator')), ',') !== false) {
|
||||||
|
$data['COL_VUCC_GRIDS'] = strtoupper(trim($this->input->post('locator')));
|
||||||
|
} else {
|
||||||
|
$data['COL_GRIDSQUARE'] = strtoupper(trim($this->input->post('locator')));
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
$this->add_qso($data);
|
$this->add_qso($data);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -106,6 +112,7 @@ class Logbook_model extends CI_Model {
|
||||||
$locator = $this->config->item('locator');
|
$locator = $this->config->item('locator');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
// Create array with QSO Data
|
// Create array with QSO Data
|
||||||
$data = array(
|
$data = array(
|
||||||
'COL_TIME_ON' => $datetime,
|
'COL_TIME_ON' => $datetime,
|
||||||
|
|
@ -120,7 +127,6 @@ class Logbook_model extends CI_Model {
|
||||||
'COL_COMMENT' => $this->input->post('comment'),
|
'COL_COMMENT' => $this->input->post('comment'),
|
||||||
'COL_SAT_NAME' => strtoupper($this->input->post('sat_name')),
|
'COL_SAT_NAME' => strtoupper($this->input->post('sat_name')),
|
||||||
'COL_SAT_MODE' => strtoupper($this->input->post('sat_mode')),
|
'COL_SAT_MODE' => strtoupper($this->input->post('sat_mode')),
|
||||||
'COL_GRIDSQUARE' => strtoupper(trim($this->input->post('locator'))),
|
|
||||||
'COL_COUNTRY' => $this->input->post('country'),
|
'COL_COUNTRY' => $this->input->post('country'),
|
||||||
'COL_MY_RIG' => $this->input->post('equipment'),
|
'COL_MY_RIG' => $this->input->post('equipment'),
|
||||||
'COL_QSLSDATE' => date('Y-m-d'),
|
'COL_QSLSDATE' => date('Y-m-d'),
|
||||||
|
|
@ -158,6 +164,12 @@ class Logbook_model extends CI_Model {
|
||||||
'COL_CQZ' => $this->input->post('cqz'),
|
'COL_CQZ' => $this->input->post('cqz'),
|
||||||
);
|
);
|
||||||
|
|
||||||
|
if (strpos(trim($this->input->post('locator')), ',') !== false) {
|
||||||
|
$data['COL_VUCC_GRIDS'] = strtoupper(trim($this->input->post('locator')));
|
||||||
|
} else {
|
||||||
|
$data['COL_GRIDSQUARE'] = strtoupper(trim($this->input->post('locator')));
|
||||||
|
}
|
||||||
|
|
||||||
// if eQSL username set, default SENT & RCVD to 'N' else leave as null
|
// if eQSL username set, default SENT & RCVD to 'N' else leave as null
|
||||||
if ($this->session->userdata('user_eqsl_name')){
|
if ($this->session->userdata('user_eqsl_name')){
|
||||||
$data['COL_EQSL_QSL_SENT'] = 'N';
|
$data['COL_EQSL_QSL_SENT'] = 'N';
|
||||||
|
|
@ -191,6 +203,7 @@ class Logbook_model extends CI_Model {
|
||||||
'COL_RST_RCVD' => $this->input->post('rst_recv'),
|
'COL_RST_RCVD' => $this->input->post('rst_recv'),
|
||||||
'COL_RST_SENT' => $this->input->post('rst_sent'),
|
'COL_RST_SENT' => $this->input->post('rst_sent'),
|
||||||
'COL_GRIDSQUARE' => strtoupper(trim($this->input->post('locator'))),
|
'COL_GRIDSQUARE' => strtoupper(trim($this->input->post('locator'))),
|
||||||
|
'COL_VUCC_GRIDS' => strtoupper(trim($this->input->post('vucc_grids'))),
|
||||||
'COL_COMMENT' => $this->input->post('comment'),
|
'COL_COMMENT' => $this->input->post('comment'),
|
||||||
'COL_NAME' => $this->input->post('name'),
|
'COL_NAME' => $this->input->post('name'),
|
||||||
'COL_COUNTRY' => $this->input->post('country'),
|
'COL_COUNTRY' => $this->input->post('country'),
|
||||||
|
|
|
||||||
|
|
@ -88,8 +88,19 @@
|
||||||
<?php } ?>
|
<?php } ?>
|
||||||
|
|
||||||
<tr>
|
<tr>
|
||||||
<td>Locator</td>
|
<td>Gridsquare</td>
|
||||||
<td><input id="locator" type="text" name="locator" value="<?php echo $COL_GRIDSQUARE; ?>" size="7" /></td>
|
<td>
|
||||||
|
<input id="locator" type="text" name="locator" value="<?php echo $COL_GRIDSQUARE; ?>" size="7" />
|
||||||
|
<p>For single Gridsquares</p>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
|
||||||
|
<tr>
|
||||||
|
<td>VUCC Gridsquare</td>
|
||||||
|
<td>
|
||||||
|
<input id="locator" type="text" name="vucc_grids" value="<?php echo $COL_VUCC_GRIDS; ?>" size="7" />
|
||||||
|
<p>Used for VUCC MultiGrids</p>
|
||||||
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
|
||||||
<tr>
|
<tr>
|
||||||
|
|
|
||||||
|
|
@ -71,14 +71,14 @@ margin: 10px 0;
|
||||||
|
|
||||||
<?php if($row->COL_GRIDSQUARE != null) { ?>
|
<?php if($row->COL_GRIDSQUARE != null) { ?>
|
||||||
<tr>
|
<tr>
|
||||||
<td>QRA</td>
|
<td>Gridsquare</td>
|
||||||
<td><?php echo $row->COL_GRIDSQUARE; ?></td>
|
<td><?php echo $row->COL_GRIDSQUARE; ?></td>
|
||||||
</tr>
|
</tr>
|
||||||
<?php } ?>
|
<?php } ?>
|
||||||
|
|
||||||
<?php if($row->COL_VUCC_GRIDS != null) { ?>
|
<?php if($row->COL_VUCC_GRIDS != null) { ?>
|
||||||
<tr>
|
<tr>
|
||||||
<td>QRA</td>
|
<td>Gridsquare (Multi)</td>
|
||||||
<td><?php echo $row->COL_VUCC_GRIDS; ?></td>
|
<td><?php echo $row->COL_VUCC_GRIDS; ?></td>
|
||||||
</tr>
|
</tr>
|
||||||
<?php } ?>
|
<?php } ?>
|
||||||
|
|
|
||||||
正在加载…
在新工单中引用