2016-05-11 23:16:05 +02:00
|
|
|
<?php
|
|
|
|
|
2016-06-24 21:37:52 +02:00
|
|
|
$localTXList = getHeardList($reverseLogLinesMMDVM);
|
2016-06-03 21:27:16 +02:00
|
|
|
//array_multisort($localTXList,SORT_DESC);
|
2016-05-11 23:16:05 +02:00
|
|
|
|
|
|
|
?>
|
|
|
|
<div class="panel panel-default">
|
|
|
|
<!-- Standard-Panel-Inhalt -->
|
2016-06-24 21:37:52 +02:00
|
|
|
<div class="panel-heading">Today's last 20 local transmissions.</div>
|
2016-05-11 23:16:05 +02:00
|
|
|
<!-- Tabelle -->
|
2016-06-24 19:37:41 +02:00
|
|
|
<div class="table-responsive">
|
2016-06-24 21:37:52 +02:00
|
|
|
<table id="localTx" class="table table-condensed">
|
|
|
|
<thead>
|
2016-05-11 23:16:05 +02:00
|
|
|
<tr>
|
|
|
|
<th>Time (UTC)</th>
|
|
|
|
<th>Mode</th>
|
|
|
|
<th>Callsign</th>
|
|
|
|
<th>DSTAR-ID</th>
|
|
|
|
<th>Target</th>
|
|
|
|
<th>Source</th>
|
|
|
|
<th>Dur (s)</th>
|
|
|
|
<th>Loss</th>
|
|
|
|
<th>BER</th>
|
|
|
|
</tr>
|
2016-06-24 21:37:52 +02:00
|
|
|
</thead>
|
|
|
|
<tbody>
|
2016-05-11 23:16:05 +02:00
|
|
|
<?php
|
|
|
|
$counter = 0;
|
|
|
|
for ($i = 0; $i < count($localTXList); $i++) {
|
2016-06-24 19:37:41 +02:00
|
|
|
$listElem = $localTXList[$i];
|
2016-05-11 23:16:05 +02:00
|
|
|
if ($listElem[5] == "RF" && ($listElem[1]=="D-Star" || startsWith($listElem[1], "DMR") || $listElem[1]=="YSF")) {
|
|
|
|
echo"<tr>";
|
2016-06-24 21:37:52 +02:00
|
|
|
echo"<td nowrap>$listElem[0]</td>";
|
|
|
|
echo"<td nowrap>$listElem[1]</td>";
|
|
|
|
echo"<td nowrap>$listElem[2]</td>";
|
|
|
|
echo"<td nowrap>$listElem[3]</td>";
|
|
|
|
echo"<td nowrap>$listElem[4]</td>";
|
|
|
|
echo"<td nowrap>$listElem[5]</td>";
|
2016-05-11 23:16:05 +02:00
|
|
|
if ($listElem[6] == null) {
|
2016-06-24 21:37:52 +02:00
|
|
|
echo'<td nowrap colspan="3">in TX</td>';
|
2016-05-19 22:24:59 +02:00
|
|
|
} else if ($listElem[6] == "SMS") {
|
2016-06-24 21:37:52 +02:00
|
|
|
echo'<td nowrap colspan="3">sending or receiving SMS</td>';
|
2016-05-11 23:16:05 +02:00
|
|
|
} else {
|
2016-06-24 21:37:52 +02:00
|
|
|
echo"<td nowrap>$listElem[6]</td>";
|
|
|
|
echo"<td nowrap>$listElem[7]</td>";
|
|
|
|
echo"<td nowrap>$listElem[8]</td>";
|
2016-05-11 23:16:05 +02:00
|
|
|
}
|
|
|
|
echo"</tr>\n";
|
|
|
|
$counter++;
|
2016-06-24 21:37:52 +02:00
|
|
|
if ($counter == 20) {
|
2016-05-11 23:16:05 +02:00
|
|
|
break;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
?>
|
2016-06-24 19:37:41 +02:00
|
|
|
|
2016-06-24 21:37:52 +02:00
|
|
|
</tbody>
|
2016-05-11 23:16:05 +02:00
|
|
|
</table>
|
2016-06-24 19:37:41 +02:00
|
|
|
</div>
|
2016-05-11 23:16:05 +02:00
|
|
|
</div>
|
2016-06-24 21:37:52 +02:00
|
|
|
<script>
|
|
|
|
$(document).ready(function(){
|
|
|
|
|
|
|
|
$('#localTx').dataTable( {
|
|
|
|
"aaSorting": [[0,'desc']]
|
|
|
|
} );
|
|
|
|
|
|
|
|
});
|
|
|
|
</script>
|