[DXCC summary] Fix for bands that are not active
这个提交包含在:
		
							父节点
							
								
									1f99efcca3
								
							
						
					
					
						当前提交
						0ecc5de833
					
				
					共有  2 个文件被更改,包括 7 次插入 和 3 次删除
				
			
		|  | @ -36,7 +36,7 @@ class Lookup extends CI_Controller { | ||||||
| 		$this->load->model('lookup_model'); | 		$this->load->model('lookup_model'); | ||||||
| 		$this->load->model('bands'); | 		$this->load->model('bands'); | ||||||
| 
 | 
 | ||||||
| 		$data['bands'] = $this->bands->get_worked_bands(); | 		$data['bands'] = $this->bands->get_worked_bands('dxcc'); | ||||||
| 
 | 
 | ||||||
| 		$data['type'] = xss_clean($this->input->post('type')); | 		$data['type'] = xss_clean($this->input->post('type')); | ||||||
| 		$data['dxcc'] = xss_clean($this->input->post('dxcc')); | 		$data['dxcc'] = xss_clean($this->input->post('dxcc')); | ||||||
|  |  | ||||||
|  | @ -19,14 +19,18 @@ class Lookup_model extends CI_Model{ | ||||||
| 		// Populating array with worked band/mode combinations
 | 		// Populating array with worked band/mode combinations
 | ||||||
| 		$worked = $this->getQueryData($queryinfo, 'worked'); | 		$worked = $this->getQueryData($queryinfo, 'worked'); | ||||||
| 		foreach ($worked as $w) { | 		foreach ($worked as $w) { | ||||||
|  | 			if(in_array($w->col_band, $queryinfo['bands'])) { | ||||||
| 				$resultArray[$w->col_mode][$w->col_band] = 'W'; | 				$resultArray[$w->col_mode][$w->col_band] = 'W'; | ||||||
| 			} | 			} | ||||||
|  | 		} | ||||||
| 
 | 
 | ||||||
| 		// Populating array with confirmed band/mode combinations
 | 		// Populating array with confirmed band/mode combinations
 | ||||||
| 		$confirmed = $this->getQueryData($queryinfo, 'confirmed'); | 		$confirmed = $this->getQueryData($queryinfo, 'confirmed'); | ||||||
| 		foreach ($confirmed as $c) { | 		foreach ($confirmed as $c) { | ||||||
|  | 			if(in_array($c->col_band, $queryinfo['bands'])) { | ||||||
| 				$resultArray[$c->col_mode][$c->col_band] = 'C'; | 				$resultArray[$c->col_mode][$c->col_band] = 'C'; | ||||||
| 			} | 			} | ||||||
|  | 		} | ||||||
| 
 | 
 | ||||||
| 		return $resultArray; | 		return $resultArray; | ||||||
| 	} | 	} | ||||||
|  |  | ||||||
		正在加载…
	
		在新工单中引用