MMDVMHost-Dashboard/include/localtx.php

77 lines
2.2 KiB
PHP
Raw Normal View History

2016-05-11 23:16:05 +02:00
<?php
$localTXList = getHeardList($reverseLogLinesMMDVM, FALSE);
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-27 08:44:00 +02:00
<div class="panel-heading">Today's local transmissions</div>
2016-05-11 23:16:05 +02:00
<!-- Tabelle -->
2016-10-26 09:46:15 +02:00
<div class="table-responsive">
2016-06-25 00:08:30 +02:00
<table id="localTx" class="table table-condensed table-striped table-hover">
2016-06-24 21:37:52 +02:00
<thead>
2016-05-11 23:16:05 +02:00
<tr>
<th>Time (UTC)</th>
<th>Mode</th>
<th>Callsign</th>
<?php
if (defined("ENABLEXTDLOOKUP")) {
?>
<th>Name</th>
<?php
}
?>
2016-05-11 23:16:05 +02:00
<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>
2016-10-26 09:46:15 +02:00
<tbody>
2016-05-11 23:16:05 +02:00
<?php
for ($i = 0; $i < count($localTXList); $i++) {
2016-10-26 09:46:15 +02:00
$listElem = $localTXList[$i];
if ($listElem[6] == "RF" && ($listElem[1]=="D-Star" || startsWith($listElem[1], "DMR") || $listElem[1]=="YSF" || $listElem[1]=="P25")) {
echo"<tr>";
echo"<td nowrap>$listElem[0]</td>";
echo"<td nowrap>$listElem[1]</td>";
if ($listElem[2] !== "??????????") {
if (!is_numeric($listElem[2])) {
if (constant("SHOWQRZ")) {
echo"<td nowrap><a target=\"_new\" href=\"https://qrz.com/db/$listElem[2]\">".str_replace("0","&Oslash;",$listElem[2])."</a></td>";
} else {
echo"<td nowrap><a target=\"_new\" href=\"http://dmr.darc.de/dmr-userreg.php?callsign=$listElem[2]\">".$listElem[2]."</td>";
}
} else {
echo"<td nowrap><a target=\"_new\" href=\"http://dmr.darc.de/dmr-userreg.php?usrid=$listElem[2]\">".$listElem[2]."</td>";
}
}
if (defined("ENABLEXTDLOOKUP")) {
echo "<td class=\"nowrap\">$listElem[3]</td>";
}
echo"<td nowrap>$listElem[4]</td>";
echo"<td nowrap>$listElem[5]</td>";
echo"<td nowrap>$listElem[6]</td>";
if ($listElem[6] == null) {
echo'<td nowrap>in TX</td><td></td><td></td>';
} else if ($listElem[7] == "SMS") {
echo'<td nowrap>sending or receiving SMS</td><td></td><td></td>';
} else {
echo"<td nowrap>$listElem[7]</td>";
echo"<td nowrap>$listElem[8]</td>";
echo"<td nowrap>$listElem[9]</td>";
2016-05-11 23:16:05 +02:00
}
echo"</tr>\n";
2016-05-11 23:16:05 +02:00
}
}
2016-05-11 23:16:05 +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 23:34:38 +02:00