2016-10-07 21:24:26 +02:00
|
|
|
<?php
|
|
|
|
$totalLH = count($lastHeard);
|
|
|
|
?>
|
|
|
|
<div class="panel panel-default">
|
|
|
|
<!-- Standard-Panel-Inhalt -->
|
|
|
|
<div class="panel-heading">Today's local transmissions</div>
|
|
|
|
<!-- Tabelle -->
|
2016-10-26 09:46:15 +02:00
|
|
|
<div class="table-responsive">
|
2016-10-07 21:24:26 +02:00
|
|
|
<table id="localTx" class="table table-condensed table-striped table-hover">
|
|
|
|
<thead>
|
|
|
|
<tr>
|
2016-11-03 21:08:31 +01:00
|
|
|
<th>Time (<?php echo TIMEZONE;?>)</th>
|
2016-10-07 21:24:26 +02:00
|
|
|
<th>Mode</th>
|
|
|
|
<th>Callsign</th>
|
|
|
|
<?php
|
|
|
|
if (defined("ENABLEXTDLOOKUP")) {
|
|
|
|
?>
|
|
|
|
<th>Name</th>
|
|
|
|
<?php
|
|
|
|
}
|
|
|
|
?>
|
|
|
|
<th>DSTAR-ID</th>
|
|
|
|
<th>Target</th>
|
|
|
|
<th>Source</th>
|
|
|
|
<th>Dur (s)</th>
|
|
|
|
<th>Loss</th>
|
|
|
|
<th>BER</th>
|
2017-01-08 12:23:27 +01:00
|
|
|
<th>RSSI</th>
|
2016-10-07 21:24:26 +02:00
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
</table>
|
2016-10-26 09:46:15 +02:00
|
|
|
</div>
|
2016-10-07 21:24:26 +02:00
|
|
|
</div>
|
2016-10-12 22:31:36 +02:00
|
|
|
<script>
|
|
|
|
$(document).ready(function(){
|
|
|
|
var localTxT = $('#localTx').dataTable( {
|
|
|
|
"aaSorting": [[0,'desc']],
|
2016-10-26 09:46:15 +02:00
|
|
|
|
|
|
|
<?php $request = 'http' . (isset($_SERVER['HTTPS']) ? 's' : '') . '://' . "{$_SERVER['HTTP_HOST']}/{$_SERVER['REQUEST_URI']}";
|
2016-10-13 17:44:40 +02:00
|
|
|
if (strpos($request,"index.php")> 0) {
|
|
|
|
$request = substr($request,0,strpos($request,"index.php"));
|
|
|
|
}
|
2016-11-08 08:52:00 +01:00
|
|
|
if (strpos($request,"?stoprefresh")> 0) {
|
|
|
|
$request = substr($request,0,strpos($request,"?stoprefresh"));
|
|
|
|
}
|
2016-10-13 17:44:40 +02:00
|
|
|
?>
|
|
|
|
"ajax": '<?php echo $request?>/ajax.php?section=localTx',
|
2016-10-12 22:31:36 +02:00
|
|
|
"deferRender": true
|
|
|
|
} );
|
2016-10-07 21:24:26 +02:00
|
|
|
|
2016-10-12 22:31:36 +02:00
|
|
|
<?php
|
|
|
|
if (!isset($_GET['stoprefresh'])) {
|
|
|
|
?>
|
|
|
|
setInterval( function () {
|
|
|
|
localTxT.api().ajax.reload( );
|
|
|
|
}, <?php echo REFRESHAFTER * 1000 ?> );
|
2016-10-26 09:46:15 +02:00
|
|
|
<?php
|
2016-10-12 22:31:36 +02:00
|
|
|
}
|
|
|
|
?>
|
|
|
|
});
|
|
|
|
</script>
|