mirror of
https://github.com/Schrolli91/BOSWatch.git
synced 2026-04-06 06:53:32 +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
10
exampleAddOns/simpleWeb/tpl/content.fms.php
Normal file
10
exampleAddOns/simpleWeb/tpl/content.fms.php
Normal 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;
|
||||
?>
|
||||
11
exampleAddOns/simpleWeb/tpl/content.overview.php
Normal file
11
exampleAddOns/simpleWeb/tpl/content.overview.php
Normal 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;
|
||||
3
exampleAddOns/simpleWeb/tpl/content.parser.php
Normal file
3
exampleAddOns/simpleWeb/tpl/content.parser.php
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
<?php
|
||||
|
||||
?>
|
||||
10
exampleAddOns/simpleWeb/tpl/content.pocsag.php
Normal file
10
exampleAddOns/simpleWeb/tpl/content.pocsag.php
Normal 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;
|
||||
?>
|
||||
10
exampleAddOns/simpleWeb/tpl/content.zvei.php
Normal file
10
exampleAddOns/simpleWeb/tpl/content.zvei.php
Normal 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;
|
||||
?>
|
||||
35
exampleAddOns/simpleWeb/tpl/template.fms.php
Normal file
35
exampleAddOns/simpleWeb/tpl/template.fms.php
Normal 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>
|
||||
30
exampleAddOns/simpleWeb/tpl/template.overview.php
Normal file
30
exampleAddOns/simpleWeb/tpl/template.overview.php
Normal 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>
|
||||
1
exampleAddOns/simpleWeb/tpl/template.parser.php
Normal file
1
exampleAddOns/simpleWeb/tpl/template.parser.php
Normal file
|
|
@ -0,0 +1 @@
|
|||
no function yet!
|
||||
35
exampleAddOns/simpleWeb/tpl/template.pocsag.php
Normal file
35
exampleAddOns/simpleWeb/tpl/template.pocsag.php
Normal 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>
|
||||
29
exampleAddOns/simpleWeb/tpl/template.zvei.php
Normal file
29
exampleAddOns/simpleWeb/tpl/template.zvei.php
Normal 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>
|
||||
Loading…
Add table
Add a link
Reference in a new issue