Added bootstrapdialog for DXCC award.
这个提交包含在:
父节点
a65b19f991
当前提交
fe5ccb0ea2
共有 4 个文件被更改,包括 47 次插入 和 2 次删除
|
|
@ -153,6 +153,19 @@ class Awards extends CI_Controller {
|
|||
$this->load->view('interface_assets/footer');
|
||||
}
|
||||
|
||||
public function dxcc_details_ajax(){
|
||||
$this->load->model('logbook_model');
|
||||
|
||||
$country = str_replace('"', "", $this->input->post("Country"));
|
||||
$band = str_replace('"', "", $this->input->post("Band"));
|
||||
$data['results'] = $this->logbook_model->dxcc_qso_details($country, $band);
|
||||
|
||||
// Render Page
|
||||
$data['page_title'] = "Log View - DXCC";
|
||||
$data['filter'] = "country ".$country. " and ".$band;
|
||||
$this->load->view('awards/dxcc/details_ajax', $data);
|
||||
}
|
||||
|
||||
public function vucc() {
|
||||
$this->load->model('vucc');
|
||||
$data['worked_bands'] = $this->vucc->get_worked_bands();
|
||||
|
|
|
|||
|
|
@ -191,7 +191,7 @@ class DXCC extends CI_Model {
|
|||
if ($postdata['worked'] != NULL) {
|
||||
$workedDXCC = $this->getDxccBandWorked($station_id, $band, $postdata);
|
||||
foreach ($workedDXCC as $wdxcc) {
|
||||
$dxccMatrix[$wdxcc->dxcc][$band] = '<div class="alert-danger"><a href=\'dxcc_details?Country="'.str_replace("&", "%26", $wdxcc->name).'"&Band="'. $band . '"\'>W</a></div>';;
|
||||
$dxccMatrix[$wdxcc->dxcc][$band] = '<div class="alert-danger"><a href=\'javascript:displayDxccContacts("'.str_replace("&", "%26", $wdxcc->name).'","'. $band . '")\'>W</a></div>';
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -199,7 +199,7 @@ class DXCC extends CI_Model {
|
|||
if ($postdata['confirmed'] != NULL) {
|
||||
$confirmedDXCC = $this->getDxccBandConfirmed($station_id, $band, $postdata);
|
||||
foreach ($confirmedDXCC as $cdxcc) {
|
||||
$dxccMatrix[$cdxcc->dxcc][$band] = '<div class="alert-success"><a href=\'dxcc_details?Country="'.str_replace("&", "%26", $cdxcc->name).'"&Band="'. $band . '"\'>C</a></div>';;
|
||||
$dxccMatrix[$cdxcc->dxcc][$band] = '<div class="alert-success"><a href=\'javascript:displayDxccContacts("'.str_replace("&", "%26", $cdxcc->name).'","'. $band . '")\'>C</a></div>';
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -0,0 +1,3 @@
|
|||
<h3>Filtering on <?php echo $filter ?></h3>
|
||||
|
||||
<?php $this->load->view('view_log/partial/log_ajax') ?>
|
||||
|
|
@ -1457,6 +1457,35 @@ $(document).ready(function(){
|
|||
});
|
||||
}
|
||||
|
||||
<?php if ($this->uri->segment(2) == "dxcc") { ?>
|
||||
|
||||
function displayDxccContacts(country, band) {
|
||||
var baseURL= "<?php echo base_url();?>";
|
||||
$.ajax({
|
||||
url: baseURL + 'index.php/awards/dxcc_details_ajax',
|
||||
type: 'post',
|
||||
data: {'Country': country,
|
||||
'Band': band
|
||||
},
|
||||
success: function(html) {
|
||||
BootstrapDialog.show({
|
||||
title: 'QSO Data',
|
||||
size: BootstrapDialog.SIZE_WIDE,
|
||||
cssClass: 'qso-dxcc-dialog',
|
||||
nl2br: false,
|
||||
message: html,
|
||||
buttons: [{
|
||||
label: 'Close',
|
||||
action: function (dialogItself) {
|
||||
dialogItself.close();
|
||||
}
|
||||
}]
|
||||
});
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
<?php } ?>
|
||||
<?php if ($this->uri->segment(2) == "was") { ?>
|
||||
function displayWasContacts(was, band) {
|
||||
var baseURL= "<?php echo base_url();?>";
|
||||
|
|
|
|||
正在加载…
在新工单中引用