edit in old_webend

- more information in overview page with the mysql concat() method
This commit is contained in:
Schrolli 2015-07-14 11:01:15 +02:00
parent 9758505904
commit 87c1e9c307
2 changed files with 4 additions and 2 deletions

View file

@ -2,7 +2,7 @@
//read all
$db->query("SELECT id, time, fms as data, 'fms' AS typ FROM ".$tableFMS." UNION ALL SELECT id, time, zvei as data, 'zvei' AS typ FROM ".$tableZVEI." UNION ALL SELECT id, time, ric as data, 'pocsag' AS typ FROM ".$tablePOC." ORDER BY time DESC LIMIT 25");
$db->query("SELECT id, time, concat(fms, ' Stat:', status, ' Dir:', directionText) as data, description, 'fms' AS typ FROM ".$tableFMS." UNION ALL SELECT id, time, zvei as data, description, 'zvei' AS typ FROM ".$tableZVEI." UNION ALL SELECT id, time, concat(ric, ' ', functionChar) as data, description, 'pocsag' AS typ FROM ".$tablePOC." ORDER BY time DESC LIMIT 25");
$Rows = array();
while ($daten = $db->fetchAssoc())
{

View file

@ -1,11 +1,12 @@
<div>
<b>Last data (max. 25)</b>
<table style="width: 600px;">
<table style="width: 800px;">
<tr class="tableHead">
<td>ID</td>
<td>Datum - Zeit</td>
<td>Typ</td>
<td>Daten</td>
<td>Beschreibung</td>
<td></td>
</tr>
<?php
@ -20,6 +21,7 @@
echo "<td>". $time . "</td>";
echo "<td>". $lastAla['typ'] . "</td>";
echo "<td>". $lastAla['data'] . "</td>";
echo "<td>". $lastAla['description'] . "</td>";
echo "<td><a href='index.php?" . $lastAla['typ'] . "&id=" . $lastAla['id'] . "'><img src='gfx/lupe.png' alt='show'></a></td>";
echo "</tr>";
}