[Map][Custom] Fixes issue with some callsigns being placed wrong
这个提交包含在:
		
							父节点
							
								
									4c2d21b5ca
								
							
						
					
					
						当前提交
						ff7523a300
					
				
					共有  1 个文件被更改,包括 10 次插入 和 13 次删除
				
			
		|  | @ -129,21 +129,18 @@ class Map extends CI_Controller { | ||||||
| 				$count++; | 				$count++; | ||||||
| 
 | 
 | ||||||
| 			} else { | 			} else { | ||||||
| 				$query = $this->db->query(' |  | ||||||
| 					SELECT * |  | ||||||
| 					FROM dxcc_entities |  | ||||||
| 					WHERE prefix = SUBSTRING( \''.$row->COL_CALL.'\', 1, LENGTH( prefix ) ) |  | ||||||
| 					ORDER BY LENGTH( prefix ) DESC |  | ||||||
| 					LIMIT 1  |  | ||||||
| 				'); |  | ||||||
| 
 |  | ||||||
| 				foreach ($query->result() as $dxcc) { |  | ||||||
| 				if($count != 1) { | 				if($count != 1) { | ||||||
| 					echo ","; | 					echo ","; | ||||||
| 				} | 				} | ||||||
| 					echo "{\"lat\":\"".$dxcc->lat."\",\"lng\":\"".$dxcc->long."\", \"html\":\"Callsign: ".$row->COL_CALL."<br />Date/Time: ".$row->COL_TIME_ON."<br />Band: ".$row->COL_BAND."<br />Mode: ".$row->COL_MODE."\",\"label\":\"".$row->COL_CALL."\"}"; | 
 | ||||||
| 					$count++; | 				$result = $this->logbook_model->dxcc_lookup($row->COL_CALL, $row->COL_TIME_ON); | ||||||
|  | 		 | ||||||
|  | 				if(isset($result)) { | ||||||
|  | 					$lat = $result['lat']; | ||||||
|  | 					$lng = $result['long']; | ||||||
| 				} | 				} | ||||||
|  | 				echo "{\"lat\":\"".$lat."\",\"lng\":\"".$lng."\", \"html\":\"Callsign: ".$row->COL_CALL."<br />Date/Time: ".$row->COL_TIME_ON."<br />Band: ".$row->COL_BAND."<br />Mode: ".$row->COL_MODE."\",\"label\":\"".$row->COL_CALL."\"}"; | ||||||
|  | 				$count++; | ||||||
| 			} | 			} | ||||||
| 
 | 
 | ||||||
| 		} | 		} | ||||||
|  |  | ||||||
		正在加载…
	
		在新工单中引用