[Bands] Only use selected bands in total in awards
这个提交包含在:
		
							父节点
							
								
									de2a0ddaa9
								
							
						
					
					
						当前提交
						09144a5589
					
				
					共有  4 个文件被更改,包括 73 次插入 和 8 次删除
				
			
		|  | @ -187,7 +187,14 @@ class CQ extends CI_Model{ | |||
|         if ($band == 'SAT') { | ||||
|             $sql .= " and thcv.col_prop_mode ='" . $band . "'"; | ||||
|         } else if ($band == 'All') { | ||||
|             $sql .= " and thcv.col_prop_mode !='SAT'"; | ||||
|             $this->load->model('bands'); | ||||
| 
 | ||||
| 			$bandslots = $this->bands->get_worked_bands('cq'); | ||||
| 	 | ||||
| 			$bandslots_list = "'".implode("','",$bandslots)."'"; | ||||
| 			 | ||||
| 			$sql .= " and thcv.col_band in (" . $bandslots_list . ")" . | ||||
| 					" and thcv.col_prop_mode !='SAT'"; | ||||
|         } else { | ||||
|             $sql .= " and thcv.col_prop_mode !='SAT'"; | ||||
|             $sql .= " and thcv.col_band ='" . $band . "'"; | ||||
|  | @ -210,7 +217,14 @@ class CQ extends CI_Model{ | |||
|         if ($band == 'SAT') { | ||||
|             $sql .= " and thcv.col_prop_mode ='" . $band . "'"; | ||||
|         } else if ($band == 'All') { | ||||
|             $sql .= " and thcv.col_prop_mode !='SAT'"; | ||||
|             $this->load->model('bands'); | ||||
| 
 | ||||
| 			$bandslots = $this->bands->get_worked_bands('cq'); | ||||
| 	 | ||||
| 			$bandslots_list = "'".implode("','",$bandslots)."'"; | ||||
| 			 | ||||
| 			$sql .= " and thcv.col_band in (" . $bandslots_list . ")" . | ||||
| 					" and thcv.col_prop_mode !='SAT'"; | ||||
|         } else { | ||||
|             $sql .= " and thcv.col_prop_mode !='SAT'"; | ||||
|             $sql .= " and thcv.col_band ='" . $band . "'"; | ||||
|  |  | |||
|  | @ -427,7 +427,14 @@ class DXCC extends CI_Model { | |||
| 		if ($band == 'SAT') { | ||||
| 			$sql .= " and thcv.col_prop_mode ='" . $band . "'"; | ||||
| 		} else if ($band == 'All') { | ||||
| 			$sql .= " and thcv.col_prop_mode !='SAT'"; | ||||
| 			$this->load->model('bands'); | ||||
| 
 | ||||
| 			$bandslots = $this->bands->get_worked_bands('dxcc'); | ||||
| 	 | ||||
| 			$bandslots_list = "'".implode("','",$bandslots)."'"; | ||||
| 			 | ||||
| 			$sql .= " and thcv.col_band in (" . $bandslots_list . ")" . | ||||
| 					" and thcv.col_prop_mode !='SAT'"; | ||||
| 		} else { | ||||
| 			$sql .= " and thcv.col_prop_mode !='SAT'"; | ||||
| 			$sql .= " and thcv.col_band ='" . $band . "'"; | ||||
|  | @ -458,7 +465,14 @@ class DXCC extends CI_Model { | |||
| 		if ($band == 'SAT') { | ||||
| 			$sql .= " and thcv.col_prop_mode ='" . $band . "'"; | ||||
| 		} else if ($band == 'All') { | ||||
| 			$sql .= " and thcv.col_prop_mode !='SAT'"; | ||||
| 			$this->load->model('bands'); | ||||
| 
 | ||||
| 			$bandslots = $this->bands->get_worked_bands('dxcc'); | ||||
| 	 | ||||
| 			$bandslots_list = "'".implode("','",$bandslots)."'"; | ||||
| 			 | ||||
| 			$sql .= " and thcv.col_band in (" . $bandslots_list . ")" . | ||||
| 					" and thcv.col_prop_mode !='SAT'"; | ||||
| 		} else { | ||||
| 			$sql .= " and thcv.col_prop_mode !='SAT'"; | ||||
| 			$sql .= " and thcv.col_band ='" . $band . "'"; | ||||
|  |  | |||
|  | @ -325,7 +325,14 @@ class IOTA extends CI_Model { | |||
|         if ($band == 'SAT') { | ||||
|             $sql .= " and thcv.col_prop_mode ='" . $band . "'"; | ||||
|         } else if ($band == 'All') { | ||||
|             $sql .= " and thcv.col_prop_mode !='SAT'"; | ||||
|             $this->load->model('bands'); | ||||
| 
 | ||||
| 			$bandslots = $this->bands->get_worked_bands('iota'); | ||||
| 	 | ||||
| 			$bandslots_list = "'".implode("','",$bandslots)."'"; | ||||
| 			 | ||||
| 			$sql .= " and thcv.col_band in (" . $bandslots_list . ")" . | ||||
| 					" and thcv.col_prop_mode !='SAT'"; | ||||
|         } else { | ||||
|             $sql .= " and thcv.col_prop_mode !='SAT'"; | ||||
|             $sql .= " and thcv.col_band ='" . $band . "'"; | ||||
|  | @ -356,7 +363,14 @@ class IOTA extends CI_Model { | |||
|         if ($band == 'SAT') { | ||||
|             $sql .= " and thcv.col_prop_mode ='" . $band . "'"; | ||||
|         } else if ($band == 'All') { | ||||
|             $sql .= " and thcv.col_prop_mode !='SAT'"; | ||||
|             $this->load->model('bands'); | ||||
| 
 | ||||
| 			$bandslots = $this->bands->get_worked_bands('iota'); | ||||
| 	 | ||||
| 			$bandslots_list = "'".implode("','",$bandslots)."'"; | ||||
| 			 | ||||
| 			$sql .= " and thcv.col_band in (" . $bandslots_list . ")" . | ||||
| 					" and thcv.col_prop_mode !='SAT'"; | ||||
|         } else { | ||||
|             $sql .= " and thcv.col_prop_mode !='SAT'"; | ||||
|             $sql .= " and thcv.col_band ='" . $band . "'"; | ||||
|  |  | |||
|  | @ -117,7 +117,14 @@ class was extends CI_Model { | |||
|         if ($band == 'SAT') { | ||||
|             $sql .= " and thcv.col_prop_mode ='" . $band . "'"; | ||||
|         } else if ($band == 'All') { | ||||
|             $sql .= " and thcv.col_prop_mode !='SAT'"; | ||||
|             $this->load->model('bands'); | ||||
| 
 | ||||
| 			$bandslots = $this->bands->get_worked_bands('was'); | ||||
| 	 | ||||
| 			$bandslots_list = "'".implode("','",$bandslots)."'"; | ||||
| 			 | ||||
| 			$sql .= " and thcv.col_band in (" . $bandslots_list . ")" . | ||||
| 					" and thcv.col_prop_mode !='SAT'"; | ||||
|         } else { | ||||
|             $sql .= " and thcv.col_prop_mode !='SAT'"; | ||||
|             $sql .= " and thcv.col_band ='" . $band . "'"; | ||||
|  | @ -143,7 +150,14 @@ class was extends CI_Model { | |||
|         if ($band == 'SAT') { | ||||
|             $sql .= " and thcv.col_prop_mode ='" . $band . "'"; | ||||
|         } else if ($band == 'All') { | ||||
|             $sql .= " and thcv.col_prop_mode !='SAT'"; | ||||
|             $this->load->model('bands'); | ||||
| 
 | ||||
| 			$bandslots = $this->bands->get_worked_bands('was'); | ||||
| 	 | ||||
| 			$bandslots_list = "'".implode("','",$bandslots)."'"; | ||||
| 			 | ||||
| 			$sql .= " and thcv.col_band in (" . $bandslots_list . ")" . | ||||
| 					" and thcv.col_prop_mode !='SAT'"; | ||||
|         } else { | ||||
|             $sql .= " and thcv.col_prop_mode !='SAT'"; | ||||
|             $sql .= " and thcv.col_band ='" . $band . "'"; | ||||
|  | @ -247,6 +261,15 @@ class was extends CI_Model { | |||
|                 $sql .= " and col_prop_mode !='SAT'"; | ||||
|                 $sql .= " and col_band ='" . $band . "'"; | ||||
|             } | ||||
|         } else { | ||||
|             $this->load->model('bands'); | ||||
| 
 | ||||
| 			$bandslots = $this->bands->get_worked_bands('was'); | ||||
| 	 | ||||
| 			$bandslots_list = "'".implode("','",$bandslots)."'"; | ||||
| 			 | ||||
| 			$sql .= " and col_band in (" . $bandslots_list . ")" . | ||||
| 					" and col_prop_mode !='SAT'"; | ||||
|         } | ||||
|         return $sql; | ||||
|     } | ||||
|  |  | |||
		正在加载…
	
		在新工单中引用