Number of entries in LH-list made configurable
This commit is contained in:
parent
1f66062305
commit
f305e6efe7
2 changed files with 5 additions and 3 deletions
|
@ -8,4 +8,5 @@ define("REFRESHAFTER","60");
|
|||
define("TEMPERATUREALERT",true);
|
||||
define("TEMPERATUREHIGHLEVEL", 60);
|
||||
define("SHOWPROGRESSBARS", true);
|
||||
define("LHLINES", 20);
|
||||
?>
|
|
@ -5,7 +5,7 @@ $lastHeard = getLastHeard();
|
|||
<!-- Standard-Panel-Inhalt -->
|
||||
<div class="panel-heading">Last Heard List</div>
|
||||
<div class="panel-body">
|
||||
<p>In the following table you find the last heard callsigns on this repeater of the current day</p>
|
||||
<p>In the following table you find the last maximum <?php echo LHLINES; ?> heard callsigns on this repeater of the current day</p>
|
||||
</div>
|
||||
|
||||
<!-- Tabelle -->
|
||||
|
@ -19,7 +19,8 @@ $lastHeard = getLastHeard();
|
|||
<th>Source</th>
|
||||
</tr>
|
||||
<?php
|
||||
foreach ($lastHeard as $listElem) {
|
||||
for ($i = 0; ($i < LHLINES) AND ($i < count($lastHeard)); $i++) {
|
||||
$listElem = $lastHeard[$i];
|
||||
//$timestamp, $mode, $callsign, $id, $target
|
||||
echo"<tr>";
|
||||
echo"<td>$listElem[0]</td>";
|
||||
|
@ -28,7 +29,7 @@ foreach ($lastHeard as $listElem) {
|
|||
echo"<td>$listElem[3]</td>";
|
||||
echo"<td>$listElem[4]</td>";
|
||||
echo"<td>$listElem[5]</td>";
|
||||
echo"</tr>";
|
||||
echo"</tr>\n";
|
||||
}
|
||||
|
||||
?>
|
||||
|
|
Loading…
Reference in a new issue