Added bootstrapdialog for VUCC award.

这个提交包含在:
Andreas 2020-09-20 14:09:46 +02:00
父节点 7e7f5ce63e
当前提交 13cdb9fd06
共有 4 个文件被更改,包括 47 次插入1 次删除

查看文件

@ -243,6 +243,19 @@ class Awards extends CI_Controller {
$this->load->view('interface_assets/footer'); $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. Handles Displaying of WAB Squares worked.
Comment field - WAB:# Comment field - WAB:#

查看文件

@ -18,7 +18,7 @@
foreach ($vucc_array as $vucc => $value) { // Fills the table with the data foreach ($vucc_array as $vucc => $value) { // Fills the table with the data
echo '<tr> echo '<tr>
<td>'. $i++ .'</td> <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['qsl'] . '</td>
<td>'. $value['lotw'] .'</td> <td>'. $value['lotw'] .'</td>
</tr>'; </tr>';

查看文件

@ -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 } ?>
<?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 } ?>
<?php if ($this->uri->segment(2) == "dok") { ?> <?php if ($this->uri->segment(2) == "dok") { ?>