[Awards SIG] Added datatable to the QSO list

这个提交包含在:
Andreas 2021-03-21 08:19:38 +01:00
父节点 fb679a6117
当前提交 7fdd5b6bec
共有 2 个文件被更改,包括 30 次插入3 次删除

查看文件

@ -3,8 +3,8 @@
<?php if ($sig_all) { ?>
<table class="table table-sm table-striped table-hover">
<table style="width:100%" class="table-sm table tablesig table-bordered table-hover table-striped table-condensed text-center">
<thead>
<tr>
<td>Reference</td>
<td>Date/Time</td>
@ -13,6 +13,7 @@
<td>RST Sent</td>
<td>RST Received</td>
</tr>
</thead>
<?php foreach ($sig_all->result() as $row) { ?>
<tr>
<td>
@ -29,4 +30,4 @@
</table>
<?php } ?>
<p><a href="<?php echo site_url('/awards/sigexportadif/' . $type); ?>" title="Export QSOs to ADIF" target="_blank" class="btn btn-primary">Export QSOs to ADIF</a></p>
</div>
</div>

查看文件

@ -1979,6 +1979,32 @@ function deleteQsl(id) {
</script>
<?php } ?>
<?php if ($this->uri->segment(2) == "sig_details") { ?>
<script>
$('.tablesig').DataTable({
"pageLength": 25,
responsive: false,
ordering: false,
"scrollY": "400px",
"scrollCollapse": true,
"paging": false,
"scrollX": true,
dom: 'Bfrtip',
buttons: [
'csv'
]
});
// using this to change color of csv-button if dark mode is chosen
var background = $('body').css( "background-color");
if (background != ('rgb(255, 255, 255)')) {
$(".buttons-csv").css("color", "white");
}
</script>
<?php } ?>
<?php if ($this->uri->segment(1) == "contesting" && $this->uri->segment(2) == "add") { ?>
<script src="<?php echo base_url() ;?>assets/js/sections/contestingnames.js"></script>
<?php } ?>