Merge pull request #1521 from AndreasK79/dashboard_map_fix
[Dashboard map] Fix lookup for dashboard QSOs plotted on the map
这个提交包含在:
		
						当前提交
						eed8fe91c9
					
				
					共有  2 个文件被更改,包括 4 次插入 和 6 次删除
				
			
		|  | @ -163,11 +163,9 @@ class Dashboard extends CI_Controller { | ||||||
| 					echo ","; | 					echo ","; | ||||||
| 				} | 				} | ||||||
| 
 | 
 | ||||||
| 				$result = $this->logbook_model->dxcc_lookup($row->COL_CALL, $row->COL_TIME_ON); | 				if(isset($row->lat) && isset($row->long)) { | ||||||
| 		 | 					$lat = $row->lat; | ||||||
| 				if(isset($result)) { | 					$lng = $row->long; | ||||||
| 					$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."\"}"; | 				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++; | 				$count++; | ||||||
|  |  | ||||||
|  | @ -1101,9 +1101,9 @@ class Logbook_model extends CI_Model { | ||||||
|     } |     } | ||||||
| 
 | 
 | ||||||
|     if ($logbooks_locations_array) { |     if ($logbooks_locations_array) { | ||||||
|       //$this->db->select('COL_CALL, COL_BAND, COL_TIME_ON, COL_RST_RCVD, COL_RST_SENT, COL_MODE, COL_SUBMODE, COL_NAME, COL_COUNTRY, COL_PRIMARY_KEY, COL_SAT_NAME, COL_STX_STRING, COL_SRX_STRING, COL_IOTA, COL_STATE, COL_GRIDSQUARE');
 |  | ||||||
|       $this->db->where_in($this->config->item('table_name').'.station_id', $logbooks_locations_array); |       $this->db->where_in($this->config->item('table_name').'.station_id', $logbooks_locations_array); | ||||||
|       $this->db->join('station_profile', 'station_profile.station_id = '.$this->config->item('table_name').'.station_id'); |       $this->db->join('station_profile', 'station_profile.station_id = '.$this->config->item('table_name').'.station_id'); | ||||||
|  |       $this->db->join('dxcc_entities', $this->config->item('table_name').'.col_dxcc = dxcc_entities.adif', 'left'); | ||||||
|       $this->db->order_by("COL_TIME_ON", "desc"); |       $this->db->order_by("COL_TIME_ON", "desc"); | ||||||
|       $this->db->limit($num); |       $this->db->limit($num); | ||||||
|       $query = $this->db->get($this->config->item('table_name')); |       $query = $this->db->get($this->config->item('table_name')); | ||||||
|  |  | ||||||
		正在加载…
	
		在新工单中引用