Added bootstrapdialog for VUCC award.
这个提交包含在:
父节点
7e7f5ce63e
当前提交
13cdb9fd06
共有 4 个文件被更改,包括 47 次插入 和 1 次删除
|
|
@ -243,6 +243,19 @@ class Awards extends CI_Controller {
|
|||
$this->load->view('interface_assets/footer');
|
||||
}
|
||||
|
||||
public function vucc_details_ajax(){
|
||||
$this->load->model('logbook_model');
|
||||
|
||||
$gridsquare = str_replace('"', "", $this->input->post("Gridsquare"));
|
||||
$band = str_replace('"', "", $this->input->post("Band"));
|
||||
$data['results'] = $this->logbook_model->vucc_qso_details($gridsquare, $band);
|
||||
|
||||
// Render Page
|
||||
$data['page_title'] = "Log View - VUCC";
|
||||
$data['filter'] = "vucc " . $gridsquare . " and band ".$band;
|
||||
$this->load->view('awards/vucc/details_ajax', $data);
|
||||
}
|
||||
|
||||
/*
|
||||
Handles Displaying of WAB Squares worked.
|
||||
Comment field - WAB:#
|
||||
|
|
|
|||
|
|
@ -18,7 +18,7 @@
|
|||
foreach ($vucc_array as $vucc => $value) { // Fills the table with the data
|
||||
echo '<tr>
|
||||
<td>'. $i++ .'</td>
|
||||
<td><a href=\'vucc_details?Gridsquare="'. $vucc .'"&Band="'. $band . '"\'>'. $vucc .'</td>
|
||||
<td><a href=\'javascript:displayVuccContacts("'. $vucc .'","'. $band . '")\'>'. $vucc .'</td>
|
||||
<td>'. $value['qsl'] . '</td>
|
||||
<td>'. $value['lotw'] .'</td>
|
||||
</tr>';
|
||||
|
|
|
|||
|
|
@ -0,0 +1,3 @@
|
|||
<h3>Filtering on <?php echo $filter ?></h3>
|
||||
|
||||
<?php $this->load->view('view_log/partial/log_ajax') ?>
|
||||
|
|
@ -1484,6 +1484,36 @@ $(document).ready(function(){
|
|||
});
|
||||
}
|
||||
|
||||
<?php } ?>
|
||||
|
||||
<?php if ($this->uri->segment(2) == "vucc_band") { ?>
|
||||
|
||||
function displayVuccContacts(gridsquare, band) {
|
||||
var baseURL= "<?php echo base_url();?>";
|
||||
$.ajax({
|
||||
url: baseURL + 'index.php/awards/vucc_details_ajax',
|
||||
type: 'post',
|
||||
data: {'Gridsquare': gridsquare,
|
||||
'Band': band
|
||||
},
|
||||
success: function(html) {
|
||||
BootstrapDialog.show({
|
||||
title: 'QSO Data',
|
||||
size: BootstrapDialog.SIZE_WIDE,
|
||||
cssClass: 'qso-vucc-dialog',
|
||||
nl2br: false,
|
||||
message: html,
|
||||
buttons: [{
|
||||
label: 'Close',
|
||||
action: function (dialogItself) {
|
||||
dialogItself.close();
|
||||
}
|
||||
}]
|
||||
});
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
<?php } ?>
|
||||
|
||||
|
||||
|
|
|
|||
正在加载…
在新工单中引用