Added bootstrapdialog for IOTA award.
这个提交包含在:
父节点
f138d84dc1
当前提交
c06baf39e3
共有 4 个文件被更改,包括 48 次插入 和 2 次删除
|
|
@ -481,4 +481,17 @@ class Awards extends CI_Controller {
|
|||
$this->load->view('awards/iota/details');
|
||||
$this->load->view('interface_assets/footer');
|
||||
}
|
||||
|
||||
public function iota_details_ajax(){
|
||||
$this->load->model('logbook_model');
|
||||
|
||||
$iota = str_replace('"', "", $this->input->post("Iota"));
|
||||
$band = str_replace('"', "", $this->input->post("Band"));
|
||||
$data['results'] = $this->logbook_model->iota_qso_details($iota, $band);
|
||||
|
||||
// Render Page
|
||||
$data['page_title'] = "Log View - IOTA";
|
||||
$data['filter'] = "iota ".$iota. " and ".$band;
|
||||
$this->load->view('awards/iota/details_ajax', $data);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -81,7 +81,7 @@ class IOTA extends CI_Model {
|
|||
if ($postdata['worked'] != NULL) {
|
||||
$workedIota = $this->getIotaBandWorked($station_id, $band, $postdata);
|
||||
foreach ($workedIota as $wiota) {
|
||||
$iotaMatrix[$wiota->tag][$band] = '<div class="alert-danger"><a href=\'iota_details?Iota="'.$wiota->tag.'"&Band="'. $band . '"\'>W</a></div>';;
|
||||
$iotaMatrix[$wiota->tag][$band] = '<div class="alert-danger"><a href=\'javascript:displayIotaContacts("'.$wiota->tag.'","'. $band . '")\'>W</a></div>';
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -89,7 +89,7 @@ class IOTA extends CI_Model {
|
|||
if ($postdata['confirmed'] != NULL) {
|
||||
$confirmedIota = $this->getIotaBandConfirmed($station_id, $band, $postdata);
|
||||
foreach ($confirmedIota as $ciota) {
|
||||
$iotaMatrix[$ciota->tag][$band] = '<div class="alert-success"><a href=\'iota_details?Iota="'.$ciota->tag.'"&Band="'. $band . '"\'>C</a></div>';;
|
||||
$iotaMatrix[$ciota->tag][$band] = '<div class="alert-success"><a href=\'javascript:displayIotaContacts("'.$ciota->tag.'","'. $band . '")\'>C</a></div>';
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -0,0 +1,3 @@
|
|||
<h3>Filtering on <?php echo $filter ?></h3>
|
||||
|
||||
<?php $this->load->view('view_log/partial/log_ajax') ?>
|
||||
|
|
@ -1486,6 +1486,36 @@ $(document).ready(function(){
|
|||
|
||||
<?php } ?>
|
||||
|
||||
<?php if ($this->uri->segment(2) == "iota") { ?>
|
||||
|
||||
function displayIotaContacts(iota, band) {
|
||||
var baseURL= "<?php echo base_url();?>";
|
||||
$.ajax({
|
||||
url: baseURL + 'index.php/awards/iota_details_ajax',
|
||||
type: 'post',
|
||||
data: {'Iota': iota,
|
||||
'Band': band
|
||||
},
|
||||
success: function(html) {
|
||||
BootstrapDialog.show({
|
||||
title: 'QSO Data',
|
||||
size: BootstrapDialog.SIZE_WIDE,
|
||||
cssClass: 'qso-iota-dialog',
|
||||
nl2br: false,
|
||||
message: html,
|
||||
buttons: [{
|
||||
label: 'Close',
|
||||
action: function (dialogItself) {
|
||||
dialogItself.close();
|
||||
}
|
||||
}]
|
||||
});
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
<?php } ?>
|
||||
|
||||
<?php if ($this->uri->segment(2) == "cq") { ?>
|
||||
|
||||
function displayCqContacts(cqzone, band) {
|
||||
|
|
|
|||
正在加载…
在新工单中引用