Merge pull request #870 from AndreasK79/county_fixes

[US Counties] Switched field in database, as col_cnty is the correct …
这个提交包含在:
Peter Goodhall 2021-02-08 00:55:57 +00:00 提交者 GitHub
当前提交 5835623e95
找不到此签名对应的密钥
GPG 密钥 ID: 4AEE18F83AFDEB23
共有 3 个文件被更改,包括 5 次插入5 次删除

查看文件

@ -150,7 +150,7 @@ class Logbook_model extends CI_Model {
'COL_DXCC' => $dxcc_id,
'COL_CQZ' => $cqz,
'COL_STATE' => trim($this->input->post('usa_state')),
'COL_USACA_COUNTIES' => trim($this->input->post('county')),
'COL_CNTY' => trim($this->input->post('usa_state')) . "," . trim($this->input->post('county')),
'COL_SOTA_REF' => trim($this->input->post('sota_ref')),
'COL_SIG' => trim($this->input->post('sig')),
'COL_SIG_INFO' => trim($this->input->post('sig_info')),
@ -531,7 +531,7 @@ class Logbook_model extends CI_Model {
'station_id' => $this->input->post('station_profile'),
'COL_OPERATOR' => $this->input->post('operator_callsign'),
'COL_STATE' =>$this->input->post('usa_state'),
'COL_USACA_COUNTIES' =>$this->input->post('usa_county'),
'COL_CNTY' =>$this->input->post('usa_state') .",".$this->input->post('usa_county'),
);
if ($this->exists_qrz_api_key($data['station_id'])) {

查看文件

@ -373,7 +373,7 @@
<div class="form-group">
<label for="stationCntyInput">USA County</label>
<input disabled="disabled" class="form-control" id="stationCntyInput" type="text" name="usa_county" value="<?php echo $qso->COL_USACA_COUNTIES; ?>" />
<input disabled="disabled" class="form-control" id="stationCntyInput" type="text" name="usa_county" value="<?php echo $qso->COL_CNTY; ?>" />
</div>
<div class="form-group">

查看文件

@ -144,10 +144,10 @@
</tr>
<?php } ?>
<?php if($row->COL_USACA_COUNTIES != null) { ?>
<?php if($row->COL_CNTY != null) { ?>
<tr>
<td>USA County:</td>
<td><?php echo $row->COL_USACA_COUNTIES; ?></td>
<td><?php echo $row->COL_CNTY; ?></td>
</tr>
<?php } ?>