BOSWatch/www/old_webend/tpl/content.overview.php
Schrolli 1e18c2ed67 edit the old webend
- insert all new fields from the database
- own page for each function
- overview for last 50 alarm of all function in one
2015-07-14 10:23:43 +02:00

12 lines
365 B
PHP

<?php
//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");
$Rows = array();
while ($daten = $db->fetchAssoc())
{
$Rows[] = $daten;
}
$tpl['lastAla'] = $Rows;