[WAS][Map] Map now available for all bands & sats
这个提交包含在:
父节点
2b9dc45b02
当前提交
b95ef6d07d
共有 3 个文件被更改,包括 7 次插入 和 11 次删除
|
|
@ -493,13 +493,13 @@ class Awards extends CI_Controller {
|
|||
$this->load->view('adif/data/exportall', $data);
|
||||
}
|
||||
|
||||
public function was_map() {
|
||||
public function was_map($band_type) {
|
||||
|
||||
$this->load->model('was');
|
||||
$data['worked_bands'] = $this->was->get_worked_bands();
|
||||
|
||||
|
||||
$bands[] = 'SAT';
|
||||
$bands[] = $band_type;
|
||||
|
||||
|
||||
$data['bands'] = $bands; // Used for displaying selected band(s) in the table in the view
|
||||
|
|
@ -509,7 +509,7 @@ class Awards extends CI_Controller {
|
|||
$postdata['worked'] = 1;
|
||||
$postdata['confirmed'] = 1;
|
||||
$postdata['notworked'] = 1;
|
||||
$postdata['band'] = 'SAT';
|
||||
$postdata['band'] = $band_type;
|
||||
|
||||
|
||||
$data['was_array'] = $this->was->get_was_array($bands, $postdata);
|
||||
|
|
|
|||
|
|
@ -66,12 +66,8 @@
|
|||
</form>
|
||||
|
||||
|
||||
<?php if ($this->input->post('band') == "SAT") { ?>
|
||||
|
||||
<a href="#" onclick="load_was_map();" class="btn btn-primary">Show WAS Map</a><br><br>
|
||||
<br>
|
||||
|
||||
|
||||
<?php if ($this->input->post('band')) { ?>
|
||||
<button type="button" onclick="load_was_map();" class="btn btn-info" style="margin-bottom: 15px;"><i class="fas fa-globe-americas"></i> Show WAS Map</button>
|
||||
<?php } ?>
|
||||
<?php
|
||||
if ($was_array) {
|
||||
|
|
|
|||
|
|
@ -23,9 +23,9 @@
|
|||
|
||||
function load_was_map() {
|
||||
BootstrapDialog.show({
|
||||
title: 'Worked All States Map',
|
||||
title: 'Worked All States Map (<?php echo $this->input->post('band'); ?>)',
|
||||
cssClass: 'was-map-dialog',
|
||||
message: $('<div></div>').load(site_url + '/awards/was_map')
|
||||
message: $('<div></div>').load(site_url + '/awards/was_map/<?php echo $this->input->post('band'); ?>')
|
||||
});
|
||||
}
|
||||
|
||||
|
|
|
|||
正在加载…
在新工单中引用