[US Counties] Switched field in database, as col_cnty is the correct one. Also corrected format for county. It should be saved as state,county
这个提交包含在:
		
							父节点
							
								
									3bbc0b4736
								
							
						
					
					
						当前提交
						fc6641f567
					
				
					共有  3 个文件被更改,包括 5 次插入 和 5 次删除
				
			
		|  | @ -150,7 +150,7 @@ class Logbook_model extends CI_Model { | ||||||
|             'COL_DXCC' => $dxcc_id, |             'COL_DXCC' => $dxcc_id, | ||||||
|             'COL_CQZ' => $cqz, |             'COL_CQZ' => $cqz, | ||||||
|             'COL_STATE' => trim($this->input->post('usa_state')), |             '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_SOTA_REF' => trim($this->input->post('sota_ref')), | ||||||
|             'COL_SIG' => trim($this->input->post('sig')), |             'COL_SIG' => trim($this->input->post('sig')), | ||||||
|             'COL_SIG_INFO' => trim($this->input->post('sig_info')), |             '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'), |        'station_id' => $this->input->post('station_profile'), | ||||||
|        'COL_OPERATOR' => $this->input->post('operator_callsign'), |        'COL_OPERATOR' => $this->input->post('operator_callsign'), | ||||||
|        'COL_STATE' =>$this->input->post('usa_state'), |        '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'])) { |     if ($this->exists_qrz_api_key($data['station_id'])) { | ||||||
|  |  | ||||||
|  | @ -373,7 +373,7 @@ | ||||||
| 
 | 
 | ||||||
|                                 <div class="form-group"> |                                 <div class="form-group"> | ||||||
|                                     <label for="stationCntyInput">USA County</label> |                                     <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> | ||||||
| 
 | 
 | ||||||
|                                 <div class="form-group"> |                                 <div class="form-group"> | ||||||
|  |  | ||||||
|  | @ -144,10 +144,10 @@ | ||||||
|                     </tr> |                     </tr> | ||||||
|                     <?php } ?>
 |                     <?php } ?>
 | ||||||
| 
 | 
 | ||||||
|                     <?php if($row->COL_USACA_COUNTIES != null) { ?>
 |                     <?php if($row->COL_CNTY != null) { ?>
 | ||||||
|                         <tr> |                         <tr> | ||||||
|                             <td>USA County:</td> |                             <td>USA County:</td> | ||||||
|                             <td><?php echo $row->COL_USACA_COUNTIES; ?></td>
 |                             <td><?php echo $row->COL_CNTY; ?></td>
 | ||||||
|                         </tr> |                         </tr> | ||||||
|                     <?php } ?>
 |                     <?php } ?>
 | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
		正在加载…
	
		在新工单中引用