61 lines
1.8 KiB
PHP
61 lines
1.8 KiB
PHP
<?php
|
|
$totalLH = count($lastHeard);
|
|
?>
|
|
<div class="panel panel-default">
|
|
<!-- Standard-Panel-Inhalt -->
|
|
<div class="panel-heading"><?php echo _("Last Heard List of today's")." ".$totalLH." "._("callsigns."); ?><span class="pull-right clickable"><i class="glyphicon glyphicon-chevron-up"></i></span></div>
|
|
<div class="panel-body">
|
|
<!-- Tabelle -->
|
|
<div class="table-responsive">
|
|
<table id="lastHeard" class="table lastHeard table-condensed table-striped table-hover">
|
|
<thead>
|
|
<tr>
|
|
<th><?php echo _("Time"); ?> (<?php echo TIMEZONE;?>)</th>
|
|
<th><?php echo _("Mode"); ?></th>
|
|
<th><?php echo _("Callsign"); ?></th>
|
|
<?php
|
|
if (defined("ENABLEXTDLOOKUP")) {
|
|
?>
|
|
<th><?php echo _("Name"); ?></th>
|
|
<?php
|
|
}
|
|
?>
|
|
<th><?php echo _("DSTAR-ID"); ?></th>
|
|
<th><?php echo _("Target"); ?></th>
|
|
<th><?php echo _("Source"); ?></th>
|
|
<th><?php echo _("Dur (s)"); ?></th>
|
|
<th><?php echo _("Loss"); ?></th>
|
|
<th><?php echo _("BER"); ?></th>
|
|
</tr>
|
|
</thead>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<script>
|
|
$(document).ready(function(){
|
|
var lastHeardT = $('#lastHeard').dataTable( {
|
|
"aaSorting": [[0,'desc']],
|
|
<?php $request = 'http' . (isset($_SERVER['HTTPS']) ? 's' : '') . '://' . "{$_SERVER['HTTP_HOST']}/{$_SERVER['REQUEST_URI']}";
|
|
if (strpos($request,"index.php")> 0) {
|
|
$request = substr($request,0,strpos($request,"index.php"));
|
|
}
|
|
if (strpos($request,"?stoprefresh")> 0) {
|
|
$request = substr($request,0,strpos($request,"?stoprefresh"));
|
|
}
|
|
?>
|
|
"ajax": '<?php echo $request?>/ajax.php?section=lastHeard',
|
|
"deferRender": true
|
|
} );
|
|
|
|
<?php
|
|
if (!isset($_GET['stoprefresh'])) {
|
|
?>
|
|
setInterval( function () {
|
|
lastHeardT.api().ajax.reload( );
|
|
}, <?php echo REFRESHAFTER * 1000 ?> );
|
|
<?php
|
|
}
|
|
?>
|
|
});
|
|
</script>
|