mirror of
https://github.com/Schrolli91/BOSWatch.git
synced 2026-04-04 14:07:25 +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
39
exampleAddOns/alarmMonitorWeb/tpl/pocsag.php
Normal file
39
exampleAddOns/alarmMonitorWeb/tpl/pocsag.php
Normal file
|
|
@ -0,0 +1,39 @@
|
|||
<table border="1" >
|
||||
<tr style="font-weight: bold;">
|
||||
<!-- <td>ID</td>
|
||||
-->
|
||||
<td>Einheit</td>
|
||||
<td>Text</td>
|
||||
<td>Datum - Zeit</td>
|
||||
<td>RIC</td>
|
||||
<td>F</td>
|
||||
</tr>
|
||||
<?php
|
||||
|
||||
$db->query("SELECT id, time, ric, funktion, text, description FROM ".$tablePOC." ORDER BY id DESC LIMIT 100");
|
||||
$Rows = array();
|
||||
while ($daten = $db->fetchAssoc())
|
||||
{
|
||||
$Rows[] = $daten;
|
||||
}
|
||||
$tpl['poc'] = $Rows;
|
||||
|
||||
|
||||
foreach ($tpl['poc'] as $poc)
|
||||
{
|
||||
|
||||
$time = strtotime($poc['time']);
|
||||
$time = date("d.m.Y H:i:s", $time);
|
||||
|
||||
echo "<tr>";
|
||||
// echo "<td>". $poc['id'] . "</td>";
|
||||
//
|
||||
echo "<td>". $poc['description'] . "</td>";
|
||||
echo "<td>". $poc['text'] . "</td>";
|
||||
echo "<td>". $time . "</td>";
|
||||
echo "<td>". $poc['ric'] . "</td>";
|
||||
echo "<td>". $poc['funktion'] . "</td>";
|
||||
echo "</tr>";
|
||||
}
|
||||
?>
|
||||
</table>
|
||||
Loading…
Add table
Add a link
Reference in a new issue