Issue: #61 - Added QTH Field

This commit is contained in:
Peter Goodhall 2011-10-21 20:11:13 +01:00
parent 2c507945cc
commit 0065e9fe0e
4 changed files with 12 additions and 3 deletions

View File

@ -50,10 +50,11 @@ class Logbook_model extends CI_Model {
'COL_QSL_SENT_VIA' => $this->input->post('qsl_sent_method'), 'COL_QSL_SENT_VIA' => $this->input->post('qsl_sent_method'),
'COL_QSL_RCVD_VIA' => $this->input->post('qsl_recv_method'), 'COL_QSL_RCVD_VIA' => $this->input->post('qsl_recv_method'),
'COL_OPERATOR' => $this->session->userdata('user_callsign'), 'COL_OPERATOR' => $this->session->userdata('user_callsign'),
'COL_QTH' => $this->input->post('qth'),
'COL_PROP_MODE' => $prop_mode, 'COL_PROP_MODE' => $prop_mode,
'COL_IOTA' => $this->input->post('iota_ref'), 'COL_IOTA' => $this->input->post('iota_ref'),
'COL_MY_GRIDSQUARE' => $locator, 'COL_MY_GRIDSQUARE' => $locator,
'COL_DISTANCE' => 0 'COL_DISTANCE' => "0"
); );
$this->add_qso($data); $this->add_qso($data);
@ -88,6 +89,7 @@ class Logbook_model extends CI_Model {
'COL_QSL_SENT_VIA' => $this->input->post('qsl_sent_method'), 'COL_QSL_SENT_VIA' => $this->input->post('qsl_sent_method'),
'COL_QSL_RCVD_VIA' => $this->input->post('qsl_recv_method'), 'COL_QSL_RCVD_VIA' => $this->input->post('qsl_recv_method'),
'COL_IOTA' => $this->input->post('iota_ref'), 'COL_IOTA' => $this->input->post('iota_ref'),
'COL_QTH' => $this->input->post('qth')
); );
$this->db->where('COL_PRIMARY_KEY', $this->input->post('id')); $this->db->where('COL_PRIMARY_KEY', $this->input->post('id'));

View File

@ -58,6 +58,12 @@
<td><input type="text" name="name" value="<?php echo $COL_NAME; ?>" /></td> <td><input type="text" name="name" value="<?php echo $COL_NAME; ?>" /></td>
</tr> </tr>
<tr>
<td>QTH</td>
<td><input type="text" name="qth" value="<?php echo $COL_QTH; ?>" /></td>
</tr>
<tr> <tr>
<td>Comment</td> <td>Comment</td>
<td><input type="text" name="comment" value="<?php echo $COL_COMMENT; ?>" /></td> <td><input type="text" name="comment" value="<?php echo $COL_COMMENT; ?>" /></td>

View File

@ -173,7 +173,7 @@ function settime () {
<tr> <tr>
<td colspan="9">Comment: <input id="comment" type="text" name="comment" value="" /></td> <td colspan="9">QTH: <input id="qth" type"text" name"qth" value"" /> Comment: <input id="comment" type="text" name="comment" value="" /></td>
</tr> </tr>
</table> </table>

View File

@ -74,7 +74,8 @@ td.item { padding-bottom: 5px; }
#country { border: none; } #country { border: none; }
#locator_info { font-size: 13px; } #locator_info { font-size: 13px; }
#name { width: 145px; } #name { width: 145px; }
#comment { width: 89.5%; } #comment { width: 63.8%; }
#qth { width: 20%; }
.partial td, .logbook td, .users td { padding: 5px; } .partial td, .logbook td, .users td { padding: 5px; }
.log_title { background-image: url('../images/grey_bg.png'); background-repeat: repeat-x; color: #439bf6; } .log_title { background-image: url('../images/grey_bg.png'); background-repeat: repeat-x; color: #439bf6; }
.auth_title { background-image: url('../images/grey_bg.png'); background-repeat: repeat-x; color: #439bf6; } .auth_title { background-image: url('../images/grey_bg.png'); background-repeat: repeat-x; color: #439bf6; }