table sorting features
This commit is contained in:
parent
7f7407702a
commit
bbd3c9efe6
1 changed files with 15 additions and 0 deletions
|
@ -4,7 +4,9 @@
|
||||||
<!-- Standard-Panel-Inhalt -->
|
<!-- Standard-Panel-Inhalt -->
|
||||||
<div class="panel-heading">Last Heard List of today's <?php echo LHLINES; ?> callsigns.</div>
|
<div class="panel-heading">Last Heard List of today's <?php echo LHLINES; ?> callsigns.</div>
|
||||||
<!-- Tabelle -->
|
<!-- Tabelle -->
|
||||||
|
<div class="table-responsive">
|
||||||
<table id="lastHeard" class="table table-condensed">
|
<table id="lastHeard" class="table table-condensed">
|
||||||
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
<th>Time (UTC)</th>
|
<th>Time (UTC)</th>
|
||||||
<th>Mode</th>
|
<th>Mode</th>
|
||||||
|
@ -16,6 +18,8 @@
|
||||||
<th>Loss</th>
|
<th>Loss</th>
|
||||||
<th>BER</th>
|
<th>BER</th>
|
||||||
</tr>
|
</tr>
|
||||||
|
</thead>
|
||||||
|
<tbody>
|
||||||
<?php
|
<?php
|
||||||
for ($i = 0; ($i < LHLINES) AND ($i < count($lastHeard)); $i++) {
|
for ($i = 0; ($i < LHLINES) AND ($i < count($lastHeard)); $i++) {
|
||||||
$listElem = $lastHeard[$i];
|
$listElem = $lastHeard[$i];
|
||||||
|
@ -43,5 +47,16 @@ for ($i = 0; ($i < LHLINES) AND ($i < count($lastHeard)); $i++) {
|
||||||
}
|
}
|
||||||
|
|
||||||
?>
|
?>
|
||||||
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
</div>
|
</div>
|
||||||
|
</div>
|
||||||
|
<script>
|
||||||
|
$(document).ready(function(){
|
||||||
|
|
||||||
|
$('#lastHeard').dataTable( {
|
||||||
|
"aaSorting": [[0,'desc']]
|
||||||
|
} );
|
||||||
|
|
||||||
|
});
|
||||||
|
</script>
|
||||||
|
|
Loading…
Reference in a new issue