mirror of
https://github.com/FH-Complete/FHC-Core.git
synced 2026-06-01 12:19:28 +00:00
Tabellen der Ersthelfer werden nur angezeigt, wenn Daten vorhanden sind
Tabellen der Ersthelfer werden nur angezeigt, wenn Daten vorhanden sind
This commit is contained in:
+108
-79
@@ -108,33 +108,36 @@ if(check_lektor($user))
|
||||
AND standort_id IS NOT NULL
|
||||
ORDER BY standort_id, nachname, vorname";
|
||||
$result = $db->db_query($sql_query);
|
||||
$count = 0;
|
||||
|
||||
echo '<table class="tablesorter" id="t1">
|
||||
<thead>
|
||||
<tr>
|
||||
<th></th>
|
||||
<th>'.$p->t("global/vorname").'</th>
|
||||
<th>'.$p->t("global/nachname").'</th>
|
||||
<th>'.$p->t("lvplan/raum").'</th>
|
||||
<th>'.$p->t("global/telefonnummer").'</th>
|
||||
</tr>
|
||||
</thead><tbody>';
|
||||
|
||||
while($row = $db->db_fetch_object($result))
|
||||
{$count++;
|
||||
if ($db->db_num_rows($result) > 0)
|
||||
{
|
||||
$count = 0;
|
||||
|
||||
echo '<table class="tablesorter" id="t1">
|
||||
<thead>
|
||||
<tr>
|
||||
<th></th>
|
||||
<th>'.$p->t("global/vorname").'</th>
|
||||
<th>'.$p->t("global/nachname").'</th>
|
||||
<th>'.$p->t("lvplan/raum").'</th>
|
||||
<th>'.$p->t("global/telefonnummer").'</th>
|
||||
</tr>
|
||||
</thead><tbody>';
|
||||
|
||||
while($row = $db->db_fetch_object($result))
|
||||
{$count++;
|
||||
echo '
|
||||
<tr>
|
||||
<td width="10px">'.$count.'</td>
|
||||
<td width="30%">'.$row->vorname.'</td>
|
||||
<td width="40%">'.$row->nachname.'</td>
|
||||
<td width="15%">'.$row->ort_kurzbz.'</td>
|
||||
<td width="30%"><nobr>01/333 40 77 - <strong>'.$row->telefonklappe.'</strong></nobr></td>
|
||||
</tr>';
|
||||
}
|
||||
|
||||
echo '
|
||||
<tr>
|
||||
<td width="10px">'.$count.'</td>
|
||||
<td width="30%">'.$row->vorname.'</td>
|
||||
<td width="40%">'.$row->nachname.'</td>
|
||||
<td width="15%">'.$row->ort_kurzbz.'</td>
|
||||
<td width="30%"><nobr>01/333 40 77 - <strong>'.$row->telefonklappe.'</strong></nobr></td>
|
||||
</tr>';
|
||||
</tbody></table>';
|
||||
}
|
||||
|
||||
echo '
|
||||
</tbody></table>';
|
||||
?>
|
||||
</table>
|
||||
|
||||
@@ -157,26 +160,46 @@ if(check_lektor($user))
|
||||
AND kontakt LIKE '%61925%'
|
||||
ORDER BY funktion_kurzbz";
|
||||
$result = $db->db_query($sql_query);
|
||||
echo '<h2 style="margin-top:0px;">'.$p->t("notfallbestimmungen/brandschutzbeauftragte").'</h2>';
|
||||
echo '<table class="tablesorter" id="t2">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Nachname</th>
|
||||
<th>Vorname</th>
|
||||
<th>Nummer</th>
|
||||
</tr>
|
||||
</thead><tbody>';
|
||||
while($row = $db->db_fetch_object($result))
|
||||
if ($db->db_num_rows($result) > 0)
|
||||
{
|
||||
echo '
|
||||
<tr>
|
||||
<td width="40%">'.$row->nachname.'</td>
|
||||
<td width="30%">'.$row->vorname.'</td>
|
||||
<td ><nobr>'.$row->kontakt.'</nobr></td>
|
||||
</tr>';
|
||||
echo '<h2 style="margin-top:0px;">'.$p->t("notfallbestimmungen/brandschutzbeauftragte").'</h2>';
|
||||
echo '<table class="tablesorter" id="t2">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Nachname</th>
|
||||
<th>Vorname</th>
|
||||
<th>Nummer</th>
|
||||
</tr>
|
||||
</thead><tbody>';
|
||||
while($row = $db->db_fetch_object($result))
|
||||
{
|
||||
echo '
|
||||
<tr>
|
||||
<td width="40%">'.$row->nachname.'</td>
|
||||
<td width="30%">'.$row->vorname.'</td>
|
||||
<td ><nobr>'.$row->kontakt.'</nobr></td>
|
||||
</tr>';
|
||||
}
|
||||
echo '
|
||||
</tbody></table>';
|
||||
}
|
||||
// An der FHTW wird als Übergangsloesung statisch die Fa. HEALTH COUNSULT als Brandschutzbeauftragte angezeigt
|
||||
if ($db->db_num_rows($result) == 0 && CAMPUS_NAME == 'FH Technikum Wien')
|
||||
{
|
||||
echo '<h2 style="margin-top:0px;">'.$p->t("notfallbestimmungen/brandschutzbeauftragte").'</h2>';
|
||||
echo '<table class="tablesorter" id="t2">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Name</th>
|
||||
<th>Nummer</th>
|
||||
</tr>
|
||||
</thead><tbody>
|
||||
<tr>
|
||||
<td>HEALT COUNSULT - Sicherheitstechnik GmbH</td>
|
||||
<td ><nobr>0650/30 96 909</nobr></td>
|
||||
</tr>
|
||||
</tbody></table>';
|
||||
}
|
||||
echo '
|
||||
</tbody></table>';
|
||||
?>
|
||||
|
||||
<!--Rektorat auslesen-->
|
||||
@@ -194,28 +217,31 @@ if(check_lektor($user))
|
||||
AND kontakt LIKE '%61925%'
|
||||
ORDER BY funktion_kurzbz";
|
||||
$result = $db->db_query($sql_query);
|
||||
echo '<h2>'.$p->t("notfallbestimmungen/rektorat").'</h2>';
|
||||
echo '<table class="tablesorter" id="t3">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Nachname</th>
|
||||
<th>Vorname</th>
|
||||
<th>Beschreibung</th>
|
||||
<th>Nummer</th>
|
||||
</tr>
|
||||
</thead><tbody>';
|
||||
while($row = $db->db_fetch_object($result))
|
||||
if ($db->db_num_rows($result) > 0)
|
||||
{
|
||||
echo '
|
||||
<tr>
|
||||
<td>'.$row->nachname.'</td>
|
||||
<td>'.$row->vorname.'</td>
|
||||
<td>('.$row->beschreibung.')</td>
|
||||
<td><nobr>'.$row->kontakt.'</nobr></td>
|
||||
</tr>';
|
||||
echo '<h2>'.$p->t("notfallbestimmungen/rektorat").'</h2>';
|
||||
echo '<table class="tablesorter" id="t3">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Nachname</th>
|
||||
<th>Vorname</th>
|
||||
<th>Beschreibung</th>
|
||||
<th>Nummer</th>
|
||||
</tr>
|
||||
</thead><tbody>';
|
||||
while($row = $db->db_fetch_object($result))
|
||||
{
|
||||
echo '
|
||||
<tr>
|
||||
<td>'.$row->nachname.'</td>
|
||||
<td>'.$row->vorname.'</td>
|
||||
<td>('.$row->beschreibung.')</td>
|
||||
<td><nobr>'.$row->kontakt.'</nobr></td>
|
||||
</tr>';
|
||||
}
|
||||
echo '
|
||||
</tbody></table>';
|
||||
}
|
||||
echo '
|
||||
</tbody></table>';
|
||||
?>
|
||||
|
||||
<!--Brandschutzwarte auslesen-->
|
||||
@@ -232,24 +258,27 @@ if(check_lektor($user))
|
||||
AND standort_id IS NOT NULL
|
||||
ORDER BY standort_id, nachname, vorname";
|
||||
$result = $db->db_query($sql_query);
|
||||
echo '<h2>'.$p->t("notfallbestimmungen/brandschutzwarte").'</h2>';
|
||||
echo '<table class="tablesorter" id="t4">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Nachname</th>
|
||||
<th>Vorname</th>
|
||||
</tr>
|
||||
</thead><tbody>';
|
||||
while($row = $db->db_fetch_object($result))
|
||||
if ($db->db_num_rows($result) > 0)
|
||||
{
|
||||
echo '
|
||||
<tr>
|
||||
<td width="40%">'.$row->nachname.'</td>
|
||||
<td width="30%">'.$row->vorname.'</td>
|
||||
</tr>';
|
||||
echo '<h2>'.$p->t("notfallbestimmungen/brandschutzwarte").'</h2>';
|
||||
echo '<table class="tablesorter" id="t4">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Nachname</th>
|
||||
<th>Vorname</th>
|
||||
</tr>
|
||||
</thead><tbody>';
|
||||
while($row = $db->db_fetch_object($result))
|
||||
{
|
||||
echo '
|
||||
<tr>
|
||||
<td width="40%">'.$row->nachname.'</td>
|
||||
<td width="30%">'.$row->vorname.'</td>
|
||||
</tr>';
|
||||
}
|
||||
echo '
|
||||
</tbody></table>';
|
||||
}
|
||||
echo '
|
||||
</tbody></table>';
|
||||
?>
|
||||
|
||||
</td>
|
||||
|
||||
Reference in New Issue
Block a user