kopia lustrzana https://github.com/magicbug/Cloudlog
				
				
				
			[QSO dialog] Map fix
							rodzic
							
								
									5e7c59a420
								
							
						
					
					
						commit
						31e4f146a5
					
				|  | @ -1035,9 +1035,8 @@ class Logbook_model extends CI_Model { | |||
|   } | ||||
| 
 | ||||
|   function get_qso($id) { | ||||
|     $this->db->select(''.$this->config->item('table_name').'.*, station_profile.*'); | ||||
|     $this->db->from($this->config->item('table_name')); | ||||
| 
 | ||||
|     $this->db->join('dxcc_entities', $this->config->item('table_name').'.col_dxcc = dxcc_entities.adif', 'left'); | ||||
|     $this->db->join('station_profile', 'station_profile.station_id = '.$this->config->item('table_name').'.station_id'); | ||||
|     $this->db->where('COL_PRIMARY_KEY', $id); | ||||
| 
 | ||||
|  |  | |||
|  | @ -473,21 +473,20 @@ | |||
| 		    $lng = $midpoint[1]; | ||||
|         } | ||||
| 	} else { | ||||
|         if(isset($row->lat)) { | ||||
| 			$lat = $row->lat; | ||||
|         } else { | ||||
|             $lat = 0; | ||||
|         } | ||||
| 
 | ||||
| 		$CI =& get_instance(); | ||||
| 		$CI->load->model('Logbook_model'); | ||||
| 
 | ||||
| 		$result = $CI->Logbook_model->dxcc_lookup($row->COL_CALL, $row->COL_TIME_ON); | ||||
| 
 | ||||
|         if(isset($result)) { | ||||
| 			$lat = $result['lat']; | ||||
| 			$lng = $result['long']; | ||||
|         if(isset($row->long)) { | ||||
| 			$lng = $row->long; | ||||
|         } else { | ||||
|             $lng = 0; | ||||
|         } | ||||
| 	} | ||||
| ?>
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| <script> | ||||
| var lat = <?php echo $lat; ?>;
 | ||||
| var long = <?php echo $lng; ?>;
 | ||||
|  |  | |||
		Ładowanie…
	
		Reference in New Issue
	
	 Andreas
						Andreas