diff --git a/cis/private/info/ersthelfer.php b/cis/private/info/ersthelfer.php index 7f2d86f59..e039181c9 100644 --- a/cis/private/info/ersthelfer.php +++ b/cis/private/info/ersthelfer.php @@ -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 ' - - - - - - - - - '; - - while($row = $db->db_fetch_object($result)) - {$count++; + if ($db->db_num_rows($result) > 0) + { + $count = 0; + + echo '
'.$p->t("global/vorname").''.$p->t("global/nachname").''.$p->t("lvplan/raum").''.$p->t("global/telefonnummer").'
+ + + + + + + + + '; + + while($row = $db->db_fetch_object($result)) + {$count++; + echo ' + + + + + + + '; + } + echo ' - - - - - - - '; +
'.$p->t("global/vorname").''.$p->t("global/nachname").''.$p->t("lvplan/raum").''.$p->t("global/telefonnummer").'
'.$count.''.$row->vorname.''.$row->nachname.''.$row->ort_kurzbz.'01/333 40 77 - '.$row->telefonklappe.'
'.$count.''.$row->vorname.''.$row->nachname.''.$row->ort_kurzbz.'01/333 40 77 - '.$row->telefonklappe.'
'; } - - echo ' - '; ?> @@ -157,26 +160,46 @@ if(check_lektor($user)) AND kontakt LIKE '%61925%' ORDER BY funktion_kurzbz"; $result = $db->db_query($sql_query); - echo '

'.$p->t("notfallbestimmungen/brandschutzbeauftragte").'

'; - echo ' - - - - - - - '; - while($row = $db->db_fetch_object($result)) + if ($db->db_num_rows($result) > 0) { - echo ' - - - - - '; + echo '

'.$p->t("notfallbestimmungen/brandschutzbeauftragte").'

'; + echo '
NachnameVornameNummer
'.$row->nachname.''.$row->vorname.''.$row->kontakt.'
+ + + + + + + '; + while($row = $db->db_fetch_object($result)) + { + echo ' + + + + + '; + } + echo ' +
NachnameVornameNummer
'.$row->nachname.''.$row->vorname.''.$row->kontakt.'
'; + } + // 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 '

'.$p->t("notfallbestimmungen/brandschutzbeauftragte").'

'; + echo ' + + + + + + + + + + +
NameNummer
HEALT COUNSULT - Sicherheitstechnik GmbH0650/30 96 909
'; } - echo ' - '; ?> @@ -194,28 +217,31 @@ if(check_lektor($user)) AND kontakt LIKE '%61925%' ORDER BY funktion_kurzbz"; $result = $db->db_query($sql_query); - echo '

'.$p->t("notfallbestimmungen/rektorat").'

'; - echo ' - - - - - - - - '; - while($row = $db->db_fetch_object($result)) + if ($db->db_num_rows($result) > 0) { - echo ' - - - - - - '; + echo '

'.$p->t("notfallbestimmungen/rektorat").'

'; + echo '
NachnameVornameBeschreibungNummer
'.$row->nachname.''.$row->vorname.'('.$row->beschreibung.')'.$row->kontakt.'
+ + + + + + + + '; + while($row = $db->db_fetch_object($result)) + { + echo ' + + + + + + '; + } + echo ' +
NachnameVornameBeschreibungNummer
'.$row->nachname.''.$row->vorname.'('.$row->beschreibung.')'.$row->kontakt.'
'; } - echo ' - '; ?> @@ -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 '

'.$p->t("notfallbestimmungen/brandschutzwarte").'

'; - echo ' - - - - - - '; - while($row = $db->db_fetch_object($result)) + if ($db->db_num_rows($result) > 0) { - echo ' - - - - '; + echo '

'.$p->t("notfallbestimmungen/brandschutzwarte").'

'; + echo '
NachnameVorname
'.$row->nachname.''.$row->vorname.'
+ + + + + + '; + while($row = $db->db_fetch_object($result)) + { + echo ' + + + + '; + } + echo ' +
NachnameVorname
'.$row->nachname.''.$row->vorname.'
'; } - echo ' - '; ?>