Update lh.php

This commit is contained in:
EA4GKQ 2016-06-24 22:12:47 +02:00 committed by GitHub
parent 6e1d8e1dc2
commit a5ce6d14d1

View file

@ -1,8 +1,9 @@
<?php <?php
$totalLH = count($lastHeard);
?> ?>
<div class="panel panel-default"> <div class="panel panel-default">
<!-- Standard-Panel-Inhalt --> <!-- Standard-Panel-Inhalt -->
<div class="panel-heading">Last Heard List of today's <?php echo LHLINES; ?> callsigns.</div> <div class="panel-heading">Last Heard List of today's <?php echo $totalLH; ?> callsigns.</div>
<!-- Tabelle --> <!-- Tabelle -->
<div class="table-responsive"> <div class="table-responsive">
<table id="lastHeard" class="table table-condensed"> <table id="lastHeard" class="table table-condensed">
@ -21,7 +22,7 @@
</thead> </thead>
<tbody> <tbody>
<?php <?php
for ($i = 0; ($i < LHLINES) AND ($i < count($lastHeard)); $i++) { for ($i = 0; ($i < $totalLH); $i++) {
$listElem = $lastHeard[$i]; $listElem = $lastHeard[$i];
echo"<tr>"; echo"<tr>";
echo"<td nowrap>$listElem[0]</td>"; echo"<td nowrap>$listElem[0]</td>";