mirror of
https://github.com/Schrolli91/BOSWatch.git
synced 2026-04-04 22:17:24 +00:00
move www-dir to exampleAddOns
This commit is contained in:
parent
beb955567f
commit
ad88f65d0b
70 changed files with 0 additions and 0 deletions
34
exampleAddOns/alarmMonitorWeb/tpl/zvei.php
Normal file
34
exampleAddOns/alarmMonitorWeb/tpl/zvei.php
Normal file
|
|
@ -0,0 +1,34 @@
|
|||
|
||||
|
||||
<b>Last ZVEI alarms</b>
|
||||
<table border="1" style="width: 400px;">
|
||||
<tr style="font-weight: bold;">
|
||||
<td>ID</td>
|
||||
<td>Datum - Zeit</td>
|
||||
<td>Schleife</td>
|
||||
</tr>
|
||||
<?php
|
||||
|
||||
//read ZVEI
|
||||
$db->query("SELECT id, time, zvei FROM ".$tableZVEI." ORDER BY id DESC LIMIT 50");
|
||||
$Rows = array();
|
||||
while ($daten = $db->fetchAssoc())
|
||||
{
|
||||
$Rows[] = $daten;
|
||||
}
|
||||
$tpl['zvei'] = $Rows;
|
||||
|
||||
foreach ($tpl['zvei'] as $zvei)
|
||||
{
|
||||
|
||||
$time = strtotime($zvei['time']);
|
||||
$time = date("d.m.Y H:i:s", $time);
|
||||
|
||||
echo "<tr>";
|
||||
echo "<td>". $zvei['id'] . "</td>";
|
||||
echo "<td>". $time . "</td>";
|
||||
echo "<td>". $zvei['zvei'] . "</td>";
|
||||
echo "</tr>";
|
||||
}
|
||||
?>
|
||||
</table>
|
||||
Loading…
Add table
Add a link
Reference in a new issue