MMDVMHost-Dashboard/include/lh.php

37 lines
965 B
PHP
Raw Normal View History

2016-04-30 15:38:12 +02:00
<?php
$lastHeard = getLastHeard($logLines);
2016-04-30 15:38:12 +02:00
?>
<div class="panel panel-default">
<!-- Standard-Panel-Inhalt -->
<div class="panel-heading">Last Heard List</div>
<div class="panel-body">
<p>In the following table you find the last maximum <?php echo LHLINES; ?> heard callsigns on this repeater of the current day</p>
2016-04-30 15:38:12 +02:00
</div>
<!-- Tabelle -->
<table class="table">
<tr>
2016-05-02 13:59:00 +02:00
<th>Time (UTC)</th>
2016-04-30 15:38:12 +02:00
<th>Mode</th>
<th>Callsign</th>
<th>DSTAR-ID</th>
<th>Target</th>
2016-04-30 19:33:41 +02:00
<th>Source</th>
2016-04-30 15:38:12 +02:00
</tr>
<?php
for ($i = 0; ($i < LHLINES) AND ($i < count($lastHeard)); $i++) {
$listElem = $lastHeard[$i];
2016-04-30 15:38:12 +02:00
//$timestamp, $mode, $callsign, $id, $target
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>";
2016-04-30 19:33:41 +02:00
echo"<td>$listElem[5]</td>";
echo"</tr>\n";
2016-04-30 15:38:12 +02:00
}
?>
</table>
</div>