Added tx-timer in txinfo...

This commit is contained in:
dg9vh 2016-09-15 19:49:48 +00:00
parent 9099b4d744
commit 6318ad8a7d
3 changed files with 15 additions and 9 deletions

View file

@ -19,6 +19,7 @@
<th>DSTAR-ID</th> <th>DSTAR-ID</th>
<th>Target</th> <th>Target</th>
<th>Source</th> <th>Source</th>
<th>TX-Time</th>
</tr> </tr>
</thead> </thead>
<tbody id="txline"> <tbody id="txline">

View file

@ -12,19 +12,24 @@ $lastHeard = getLastHeard($reverseLogLinesMMDVM, True);
foreach ($lastHeard as $listElem) { foreach ($lastHeard as $listElem) {
echo "<tr>"; echo "<tr>";
if ($listElem[6] == null) { if ($listElem[6] == null) {
echo"<td class=\"nowrap\">$listElem[0]</td>"; echo"<td nowrap>$listElem[0]</td>";
echo"<td class=\"nowrap\">$listElem[1]</td>"; echo"<td nowrap>$listElem[1]</td>";
echo"<td class=\"nowrap\">$listElem[2]</td>"; echo"<td nowrap>$listElem[2]</td>";
if (defined("ENABLEXTDLOOKUP")) { if (defined("ENABLEXTDLOOKUP")) {
echo "<td class=\"nowrap\">".getName($listElem[2])."</td>"; echo "<td nowrap>".getName($listElem[2])."</td>";
} }
echo"<td class=\"nowrap\">$listElem[3]</td>"; echo"<td nowrap>$listElem[3]</td>";
echo"<td class=\"nowrap\">$listElem[4]</td>"; echo"<td nowrap>$listElem[4]</td>";
if ($listElem[5] == "RF"){ if ($listElem[5] == "RF"){
echo "<td class=\nowrap\"><span class=\"label label-success\">RF</span></td>"; echo "<td nowrap><span class=\"label label-success\">RF</span></td>";
}else{ }else{
echo"<td class=\"nowrap\">$listElem[5]</td>"; echo"<td nowrap>$listElem[5]</td>";
} }
$UTC = new DateTimeZone("UTC");
$d1 = new DateTime($listElem[0], $UTC);
$d2 = new DateTime('now', $UTC);
$diff = $d2->getTimestamp() - $d1->getTimestamp();
echo"<td nowrap>$diff s</td>";
} }
echo "</tr>"; echo "</tr>";
} }

View file

@ -1,3 +1,3 @@
<?php <?php
define("VERSION", "20160914-3"); define("VERSION", "20160915-1");
?> ?>