kopia lustrzana https://github.com/magicbug/Cloudlog
Merge pull request #961 from AndreasK79/sig_datatable
[Awards SIG] Added datatable to the QSO listpull/968/head
commit
b6aff5ae75
|
@ -3,16 +3,18 @@
|
|||
|
||||
<?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>
|
||||
<td>Callsign</td>
|
||||
<td>Mode</td>
|
||||
<td>Band</td>
|
||||
<td>RST Sent</td>
|
||||
<td>RST Received</td>
|
||||
</tr>
|
||||
</thead>
|
||||
<?php foreach ($sig_all->result() as $row) { ?>
|
||||
<tr>
|
||||
<td>
|
||||
|
@ -20,6 +22,7 @@
|
|||
</td>
|
||||
<td><?php $timestamp = strtotime($row->COL_TIME_ON); echo date('d/m/y', $timestamp); ?> - <?php $timestamp = strtotime($row->COL_TIME_ON); echo date('H:i', $timestamp); ?></td>
|
||||
<td><?php echo $row->COL_CALL; ?></td>
|
||||
<td><?php echo $row->COL_MODE; ?></td>
|
||||
<td><?php echo $row->COL_BAND; ?></td>
|
||||
<td><?php echo $row->COL_RST_SENT; ?></td>
|
||||
<td><?php echo $row->COL_RST_RCVD; ?></td>
|
||||
|
@ -29,4 +32,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 } ?>
|
||||
|
|
Ładowanie…
Reference in New Issue