mirror of
https://github.com/wavelog/wavelog.git
synced 2026-03-22 10:24:14 +00:00
[DBTools] Added a map to show map for incorrect grids
This commit is contained in:
@@ -100,6 +100,7 @@ class Logbookadvanced extends CI_Controller {
|
||||
'assets/js/leaflet/geocoding.js',
|
||||
'assets/js/globe/globe.gl.js?' . filemtime(realpath(__DIR__ . "/../../assets/js/globe/globe.gl.js")),
|
||||
'assets/js/bootstrap-multiselect.js?' . filemtime(realpath(__DIR__ . "/../../assets/js/bootstrap-multiselect.js")),
|
||||
'assets/js/leaflet/L.MaidenheadColouredGridMap.js',
|
||||
];
|
||||
|
||||
$this->load->view('interface_assets/header', $data);
|
||||
@@ -927,4 +928,18 @@ class Logbookadvanced extends CI_Controller {
|
||||
print json_encode($result);
|
||||
}
|
||||
|
||||
function showMapForIncorrectGrid() {
|
||||
if(!clubaccess_check(9)) return;
|
||||
|
||||
$this->load->model('logbookadvanced_model');
|
||||
$dxcc = $this->input->post('dxcc', true);
|
||||
|
||||
$data['grids'] = $this->logbookadvanced_model->getGridsForDxcc($dxcc);
|
||||
$data['dxcc'] = $dxcc;
|
||||
$data['gridsquare'] = $this->input->post('gridsquare', true);
|
||||
|
||||
header("Content-Type: application/json");
|
||||
print json_encode($data);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user