added last 10 local transmissions
This commit is contained in:
parent
52dc1171c8
commit
95e65a6946
2 changed files with 53 additions and 0 deletions
52
include/localtx.php
Normal file
52
include/localtx.php
Normal file
|
@ -0,0 +1,52 @@
|
||||||
|
<?php
|
||||||
|
|
||||||
|
$localTXList = getHeardList($logLines);
|
||||||
|
array_multisort($localTXList,SORT_DESC);
|
||||||
|
|
||||||
|
?>
|
||||||
|
<div class="panel panel-default">
|
||||||
|
<!-- Standard-Panel-Inhalt -->
|
||||||
|
<div class="panel-heading">Last 10 local transmissions.</div>
|
||||||
|
<!-- Tabelle -->
|
||||||
|
<table class="table">
|
||||||
|
<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>
|
||||||
|
<?php
|
||||||
|
$counter = 0;
|
||||||
|
for ($i = 0; $i < count($localTXList); $i++) {
|
||||||
|
$listElem = $localTXList[$i];
|
||||||
|
if ($listElem[5] == "RF" && ($listElem[1]=="D-Star" || startsWith($listElem[1], "DMR") || $listElem[1]=="YSF")) {
|
||||||
|
echo"<tr>";
|
||||||
|
echo"<td>$listElem[0]</td>";
|
||||||
|
echo"<td>$listElem[1]</td>";
|
||||||
|
echo"<td>$listElem[2]</td>";
|
||||||
|
echo"<td>$listElem[3]</td>";
|
||||||
|
echo"<td>$listElem[4]</td>";
|
||||||
|
echo"<td>$listElem[5]</td>";
|
||||||
|
if ($listElem[6] == null) {
|
||||||
|
echo'<td colspan="3">transmitting</td>';
|
||||||
|
} else {
|
||||||
|
echo"<td>$listElem[6]</td>";
|
||||||
|
echo"<td>$listElem[7]</td>";
|
||||||
|
echo"<td>$listElem[8]</td>";
|
||||||
|
}
|
||||||
|
echo"</tr>\n";
|
||||||
|
$counter++;
|
||||||
|
if ($counter == 10) {
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
?>
|
||||||
|
</table>
|
||||||
|
</div>
|
|
@ -35,6 +35,7 @@ include "include/sysinfo.php";
|
||||||
include "include/repeaterinfo.php";
|
include "include/repeaterinfo.php";
|
||||||
include "include/modes.php";
|
include "include/modes.php";
|
||||||
include "include/lh.php";
|
include "include/lh.php";
|
||||||
|
include "include/localtx.php";
|
||||||
?>
|
?>
|
||||||
<div class="panel panel-info">
|
<div class="panel panel-info">
|
||||||
<?php
|
<?php
|
||||||
|
|
Loading…
Reference in a new issue