move www-dir to exampleAddOns

This commit is contained in:
JHCD 2015-07-14 21:40:56 +02:00
parent beb955567f
commit ad88f65d0b
70 changed files with 0 additions and 0 deletions

View file

@ -0,0 +1,10 @@
<?php
//read FMS
$db->query("SELECT id, time, fms, status, direction, directionText, tsi, description FROM ".$tableFMS." ORDER BY id DESC");
$Rows = array();
while ($daten = $db->fetchAssoc())
{
$Rows[] = $daten;
}
$tpl['fms'] = $Rows;
?>

View file

@ -0,0 +1,11 @@
<?php
//read all
$db->query("SELECT id, time, concat(fms, ' Stat:', status, ' (', 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())
{
$Rows[] = $daten;
}
$tpl['lastAla'] = $Rows;

View file

@ -0,0 +1,3 @@
<?php
?>

View file

@ -0,0 +1,10 @@
<?php
//read POCSAG
$db->query("SELECT id, time, ric, function, functionChar, bitrate, msg, description FROM ".$tablePOC." ORDER BY id DESC");
$Rows = array();
while ($daten = $db->fetchAssoc())
{
$Rows[] = $daten;
}
$tpl['poc'] = $Rows;
?>

View file

@ -0,0 +1,10 @@
<?php
//read ZVEI
$db->query("SELECT id, time, zvei, description FROM ".$tableZVEI." ORDER BY id DESC");
$Rows = array();
while ($daten = $db->fetchAssoc())
{
$Rows[] = $daten;
}
$tpl['zvei'] = $Rows;
?>

View file

@ -0,0 +1,35 @@
<b>Last FMS data</b>
<table style="width: 1000px;">
<tr class="tableHead">
<td>ID</td>
<td>Datum - Zeit</td>
<td>FMS</td>
<td>Stat.</td>
<td>Richt.</td>
<td>TKI</td>
<td>Beschreibung</td>
</tr>
<?php
foreach ($tpl['fms'] as $fms)
{
$time = strtotime($fms['time']);
$time = date("d.m.Y H:i:s", $time);
if(!empty($_GET['id']) && $_GET['id'] == $fms['id']){
echo "<tr class='highlight'>";
}
else{
echo "<tr>";
}
echo "<td>". $fms['id'] . "</td>";
echo "<td>". $time . "</td>";
echo "<td>". $fms['fms'] . "</td>";
echo "<td>". $fms['status'] . "</td>";
echo "<td>". $fms['direction'] . " = " . $fms['directionText'] . "</td>";
echo "<td>". $fms['tsi'] . "</td>";
echo "<td>". $fms['description'] . "</td>";
echo "</tr>";
}
?>
</table>

View file

@ -0,0 +1,30 @@
<div>
<b>Last data (max. 25)</b>
<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
foreach ($tpl['lastAla'] as $lastAla)
{
$time = strtotime($lastAla['time']);
$time = date("d.m.Y H:i:s", $time);
echo "<tr>";
echo "<td>". $lastAla['id'] . "</td>";
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>";
}
?>
</table>
</div>

View file

@ -0,0 +1 @@
no function yet!

View file

@ -0,0 +1,35 @@
<b>Last POCSAG data</b>
<table style="width: 1000px;">
<tr class="tableHead">
<td>ID</td>
<td>Datum - Zeit</td>
<td>RIC</td>
<td>Funktion</td>
<td>Bitrate</td>
<td>Nachricht</td>
<td>Beschreibung</td>
</tr>
<?php
foreach ($tpl['poc'] as $poc)
{
$time = strtotime($poc['time']);
$time = date("d.m.Y H:i:s", $time);
if(!empty($_GET['id']) && $_GET['id'] == $poc['id']){
echo "<tr class='highlight'>";
}
else{
echo "<tr>";
}
echo "<td>". $poc['id'] . "</td>";
echo "<td>". $time . "</td>";
echo "<td>". $poc['ric'] . "</td>";
echo "<td>". $poc['function'] . " = " . $poc['functionChar'] . "</td>";
echo "<td>". $poc['bitrate'] . "</td>";
echo "<td>". $poc['msg'] . "</td>";
echo "<td>". $poc['description'] . "</td>";
echo "</tr>";
}
?>
</table>

View file

@ -0,0 +1,29 @@
<b>Last ZVEI data</b>
<table style="width: 600px;">
<tr class="tableHead">
<td>ID</td>
<td>Datum - Zeit</td>
<td>Schleife</td>
<td>Beschreibung</td>
</tr>
<?php
foreach ($tpl['zvei'] as $zvei)
{
$time = strtotime($zvei['time']);
$time = date("d.m.Y H:i:s", $time);
if(!empty($_GET['id']) && $_GET['id'] == $zvei['id']){
echo "<tr class='highlight'>";
}
else{
echo "<tr>";
}
echo "<td>". $zvei['id'] . "</td>";
echo "<td>". $time . "</td>";
echo "<td>". $zvei['zvei'] . "</td>";
echo "<td>". $zvei['description'] . "</td>";
echo "</tr>";
}
?>
</table>