MMDVMHost-Dashboard/txinfo.php
root c4fc382cd5 First attempt of getting AJAX-TX-Info-section
Actual only last callsign starting TX shown, but working
2016-09-11 21:00:43 +00:00

28 lines
879 B
PHP

<?php
include "config/config.php";
include "include/tools.php";
include "include/functions.php";
$mmdvmconfigs = getMMDVMConfig();
$logLinesMMDVM = getShortMMDVMLog();
$reverseLogLinesMMDVM = $logLinesMMDVM;
array_multisort($reverseLogLinesMMDVM,SORT_DESC);
$lastHeard = getLastHeard($reverseLogLinesMMDVM, True);
$listElem = $lastHeard[0];
if ($listElem[6] == null) {
echo"<td class=\"nowrap\">$listElem[0]</td>";
echo"<td class=\"nowrap\">$listElem[1]</td>";
echo"<td class=\"nowrap\">$listElem[2]</td>";
if (defined("ENABLEXTDLOOKUP")) {
echo "<td class=\"nowrap\">".getName($listElem[2])."</td>";
}
echo"<td class=\"nowrap\">$listElem[3]</td>";
echo"<td class=\"nowrap\">$listElem[4]</td>";
if ($listElem[5] == "RF"){
echo "<td class=\nowrap\"><span class=\"label label-success\">RF</span></td>";
}else{
echo"<td class=\"nowrap\">$listElem[5]</td>";
}
}
?>