Merge pull request #1520 from AndreasK79/qso_dialog_map_fix

[QSO dialog] Map fix
这个提交包含在:
Peter Goodhall 2022-07-07 16:20:23 +01:00 提交者 GitHub
当前提交 3c5b0548c2
找不到此签名对应的密钥
GPG 密钥 ID: 4AEE18F83AFDEB23
共有 2 个文件被更改,包括 10 次插入12 次删除

查看文件

@ -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; ?>;