Merge pull request #1012 from AndreasK79/was_map_tweak
[WAS MAP] Minor tweaks. Always show button. Fetches band directly fro…
这个提交包含在:
当前提交
8d15346d9b
共有 3 个文件被更改,包括 5 次插入 和 9 次删除
|
|
@ -516,10 +516,9 @@ class Awards extends CI_Controller {
|
||||||
|
|
||||||
|
|
||||||
$data['was_array'] = $this->was->get_was_array($bands, $postdata);
|
$data['was_array'] = $this->was->get_was_array($bands, $postdata);
|
||||||
$data['was_summary'] = $this->was->get_was_summary($bands);
|
|
||||||
|
|
||||||
$data['page_title'] = "";
|
$data['page_title'] = "";
|
||||||
|
|
||||||
$this->load->view('awards/was/map', $data);
|
$this->load->view('awards/was/map', $data);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -59,16 +59,13 @@
|
||||||
<div class="col-md-10">
|
<div class="col-md-10">
|
||||||
<button id="button2id" type="reset" name="button2id" class="btn btn-warning">Reset</button>
|
<button id="button2id" type="reset" name="button2id" class="btn btn-warning">Reset</button>
|
||||||
<button id="button1id" type="submit" name="button1id" class="btn btn-primary">Show</button>
|
<button id="button1id" type="submit" name="button1id" class="btn btn-primary">Show</button>
|
||||||
|
<button type="button" onclick="load_was_map();" class="btn btn-info"><i class="fas fa-globe-americas"></i> Show WAS Map</button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</fieldset>
|
</fieldset>
|
||||||
</form>
|
</form>
|
||||||
|
|
||||||
|
|
||||||
<?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
|
<?php
|
||||||
if ($was_array) {
|
if ($was_array) {
|
||||||
$i = 1;
|
$i = 1;
|
||||||
|
|
@ -127,4 +124,4 @@
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
echo '<div class="alert alert-danger" role="alert"><a href="#" class="close" data-dismiss="alert" aria-label="close">×</a>Nothing found!</div>';
|
echo '<div class="alert alert-danger" role="alert"><a href="#" class="close" data-dismiss="alert" aria-label="close">×</a>Nothing found!</div>';
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -23,9 +23,9 @@
|
||||||
|
|
||||||
function load_was_map() {
|
function load_was_map() {
|
||||||
BootstrapDialog.show({
|
BootstrapDialog.show({
|
||||||
title: 'Worked All States Map (<?php echo $this->input->post('band'); ?>)',
|
title: 'Worked All States Map ('+$('#band2').val()+')',
|
||||||
cssClass: 'was-map-dialog',
|
cssClass: 'was-map-dialog',
|
||||||
message: $('<div></div>').load(site_url + '/awards/was_map/<?php echo $this->input->post('band'); ?>')
|
message: $('<div></div>').load(site_url + '/awards/was_map/' + $('#band2').val())
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
正在加载…
在新工单中引用