Check QSL for Callsign
这个提交包含在:
		
							父节点
							
								
									27a8116638
								
							
						
					
					
						当前提交
						f4b4b3454e
					
				
					共有  1 个文件被更改,包括 44 次插入 和 0 次删除
				
			
		|  | @ -432,6 +432,50 @@ class Logbook extends CI_Controller { | ||||||
| 				$return['workedBefore'] = true; | 				$return['workedBefore'] = true; | ||||||
| 			} | 			} | ||||||
| 
 | 
 | ||||||
|  | 			$extrawhere=''; | ||||||
|  | 			if (isset($user_gridmap_confirmation) && strpos($user_gridmap_confirmation, 'Q') !== false) {  | ||||||
|  | 				$extrawhere="COL_QSL_RCVD='Y'";  | ||||||
|  | 			} | ||||||
|  | 			if (isset($user_gridmap_confirmation) && strpos($user_gridmap_confirmation, 'L') !== false) { | ||||||
|  | 				if ($extrawhere!='') { | ||||||
|  | 					$extrawhere.=" OR"; | ||||||
|  | 				} | ||||||
|  | 				$extrawhere.=" COL_LOTW_QSL_RCVD='Y'"; | ||||||
|  | 			} | ||||||
|  | 			if (isset($user_gridmap_confirmation) && strpos($user_gridmap_confirmation, 'E') !== false) { | ||||||
|  | 				if ($extrawhere!='') { | ||||||
|  | 					$extrawherei.=" OR"; | ||||||
|  | 				} | ||||||
|  | 				$extrawhere.=" COL_EQSL_QSL_RCVD='Y'"; | ||||||
|  | 			} | ||||||
|  | 
 | ||||||
|  | 
 | ||||||
|  | 			if($type == "SAT") { | ||||||
|  | 				$this->db->where('COL_PROP_MODE', 'SAT'); | ||||||
|  | 				if ($extrawhere != '') { | ||||||
|  | 					$this->db->where('('.$extrawhere.')'); | ||||||
|  | 				} else { | ||||||
|  | 					$this->db->where("1=0"); | ||||||
|  | 				} | ||||||
|  | 			} else { | ||||||
|  | 				$CI->load->model('logbook_model'); | ||||||
|  | 				$this->db->where('COL_MODE', $CI->logbook_model->get_main_mode_from_mode($mode)); | ||||||
|  | 				$this->db->where('COL_BAND', $band); | ||||||
|  | 				$this->db->where('COL_PROP_MODE !=','SAT'); | ||||||
|  | 				if ($extrawhere != '') { | ||||||
|  | 					$this->db->where($extrawhere); | ||||||
|  | 				} else { | ||||||
|  | 					$this->db->where("1=0"); | ||||||
|  | 				} | ||||||
|  | 			} | ||||||
|  | 			$this->db->where_in('station_id', $logbooks_locations_array); | ||||||
|  | 			$this->db->where('COL_CALL', strtoupper($callsign)); | ||||||
|  | 
 | ||||||
|  | 			$query = $this->db->get($this->config->item('table_name'), 1, 0); | ||||||
|  | 			foreach ($query->result() as $workedBeforeRow) { | ||||||
|  | 				$return['confirmed'] = true; | ||||||
|  | 			} | ||||||
|  | 
 | ||||||
| 			header('Content-Type: application/json'); | 			header('Content-Type: application/json'); | ||||||
| 			echo json_encode($return, JSON_PRETTY_PRINT); | 			echo json_encode($return, JSON_PRETTY_PRINT); | ||||||
| 			return; | 			return; | ||||||
|  |  | ||||||
		正在加载…
	
		在新工单中引用