2017-01-10 15:05:55 +01:00
|
|
|
<?php
|
|
|
|
$totalLH = count($lastHeard);
|
2017-09-22 14:45:53 +02:00
|
|
|
if (defined("ENABLEXTDLOOKUP") && !defined("USESQLITE")) {
|
2017-03-28 10:29:35 +02:00
|
|
|
$TMP_CALL_NAME = "/tmp/Callsign_Name.txt";
|
|
|
|
exec("wc -l ".$TMP_CALL_NAME." | cut -f1 -d' '", $output);
|
|
|
|
exec("wc -l ".DMRIDDATPATH." | cut -f1 -d' '", $output2);
|
2017-04-07 15:17:37 +02:00
|
|
|
}
|
2017-01-10 15:05:55 +01:00
|
|
|
?>
|
|
|
|
<div class="panel panel-default">
|
|
|
|
<!-- Standard-Panel-Inhalt -->
|
2017-04-07 15:17:37 +02:00
|
|
|
<div class="panel-heading"><?php
|
|
|
|
echo _("Last Heard List of today's")." ".$totalLH." "._("callsigns.")." ";
|
2017-09-22 14:45:53 +02:00
|
|
|
if (defined("ENABLEXTDLOOKUP") && !defined("USESQLITE")) {
|
|
|
|
echo _("Cached")." (".$output[0]."/".$output2[0].")";
|
2017-04-07 15:17:37 +02:00
|
|
|
}
|
|
|
|
?><span class="pull-right clickable"><i class="glyphicon glyphicon-chevron-up"></i></span></div>
|
2017-03-02 16:56:46 +01:00
|
|
|
<div class="panel-body">
|
2017-01-10 15:05:55 +01:00
|
|
|
<!-- Tabelle -->
|
|
|
|
<div class="table-responsive">
|
2017-01-16 21:04:04 +01:00
|
|
|
<table id="lastHeard" class="table lastHeard table-condensed table-striped table-hover">
|
2017-01-10 15:05:55 +01:00
|
|
|
<thead>
|
|
|
|
<tr>
|
2017-03-14 07:31:30 +01:00
|
|
|
<th><?php echo _("Time"); ?> (<?php echo TIMEZONE;?>)</th>
|
|
|
|
<th><?php echo _("Mode"); ?></th>
|
|
|
|
<th><?php echo _("Callsign"); ?></th>
|
2017-01-10 15:05:55 +01:00
|
|
|
<?php
|
|
|
|
if (defined("ENABLEXTDLOOKUP")) {
|
|
|
|
?>
|
2017-03-14 07:31:30 +01:00
|
|
|
<th><?php echo _("Name"); ?></th>
|
2017-01-10 15:05:55 +01:00
|
|
|
<?php
|
|
|
|
}
|
|
|
|
?>
|
2017-03-14 07:31:30 +01:00
|
|
|
<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>
|
2017-01-10 15:05:55 +01:00
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
</table>
|
|
|
|
</div>
|
2017-03-02 16:56:46 +01:00
|
|
|
</div>
|
2017-01-10 15:05:55 +01:00
|
|
|
</div>
|
|
|
|
<script>
|
|
|
|
$(document).ready(function(){
|
|
|
|
var lastHeardT = $('#lastHeard').dataTable( {
|
2017-03-16 15:15:14 +01:00
|
|
|
"language": <?php echo DATATABLESTRANSLATION; ?>,
|
2017-01-10 15:05:55 +01:00
|
|
|
"aaSorting": [[0,'desc']],
|
2020-06-02 22:58:20 +02:00
|
|
|
<?php $request = 'http' . (isset($_SERVER['HTTPS']) ? 's' : '') . '://' . "{$_SERVER['SERVER_NAME']}:{$_SERVER['SERVER_PORT']}/{$_SERVER['REQUEST_URI']}";
|
2017-01-10 15:05:55 +01:00
|
|
|
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>
|