Added IOTA-dropdown in QSO entry
这个提交包含在:
		
							父节点
							
								
									db2cd61b35
								
							
						
					
					
						当前提交
						e974260913
					
				
					共有  3 个文件被更改,包括 20 次插入 和 1 次删除
				
			
		|  | @ -24,6 +24,7 @@ class QSO extends CI_Controller { | ||||||
| 		$data['radios'] = $this->cat->radios(); | 		$data['radios'] = $this->cat->radios(); | ||||||
| 		$data['query'] = $this->logbook_model->last_custom('5'); | 		$data['query'] = $this->logbook_model->last_custom('5'); | ||||||
| 		$data['dxcc'] = $this->logbook_model->fetchDxcc(); | 		$data['dxcc'] = $this->logbook_model->fetchDxcc(); | ||||||
|  |         $data['iota'] = $this->logbook_model->fetchIota(); | ||||||
| 
 | 
 | ||||||
| 		$this->load->library('form_validation'); | 		$this->load->library('form_validation'); | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
|  | @ -1821,6 +1821,15 @@ class Logbook_model extends CI_Model { | ||||||
|         return $query->result(); |         return $query->result(); | ||||||
|     } |     } | ||||||
| 
 | 
 | ||||||
|  |     function fetchIota() { | ||||||
|  |         $sql = "select tag, name from iota"; | ||||||
|  | 
 | ||||||
|  |         $sql .= ' order by tag'; | ||||||
|  |         $query = $this->db->query($sql); | ||||||
|  | 
 | ||||||
|  |         return $query->result(); | ||||||
|  |     } | ||||||
|  |      | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| function validateADIFDate($date, $format = 'Ymd') | function validateADIFDate($date, $format = 'Ymd') | ||||||
|  |  | ||||||
|  | @ -298,7 +298,16 @@ | ||||||
| 
 | 
 | ||||||
|             <div class="form-group"> |             <div class="form-group"> | ||||||
|               <label for="iota_ref">IOTA Reference</label> |               <label for="iota_ref">IOTA Reference</label> | ||||||
|               <input class="form-control" id="iota_ref" type="text" name="iota_ref" value="" /> e.g: EU-005 |                     <select class="form-control" id="iota_Ref" name="iota_ref"> | ||||||
|  |                         <option value =""></option> | ||||||
|  | 
 | ||||||
|  |                         <?php | ||||||
|  |                         foreach($iota as $i){ | ||||||
|  |                             echo '<option value=' . $i->tag . '>' . $i->tag . ' - ' . $i->name . '</option>'; | ||||||
|  |                         } | ||||||
|  |                         ?>
 | ||||||
|  | 
 | ||||||
|  |                     </select> | ||||||
|             </div> |             </div> | ||||||
| 
 | 
 | ||||||
|             <div class="form-group"> |             <div class="form-group"> | ||||||
|  |  | ||||||
		正在加载…
	
		在新工单中引用