, * Andreas Oesterreicher and * Rudolf Hangl < rudolf.hangl@technikum-wien.at > * Gerald Simane-Sequens < gerald.simane-sequens@technikum-wien.at > * Manfred Kindl * */ require_once('../../../config/cis.config.inc.php'); require_once('../../../include/functions.inc.php'); require_once('../../../include/basis_db.class.php'); require_once('../../../include/phrasen.class.php'); require_once('../../../include/person.class.php'); $sprache = getSprache(); $p=new phrasen($sprache); if (isset($_GET['zeilenhoehe']) && is_numeric($_GET['zeilenhoehe'])) $zeilenhoehe = $_GET['zeilenhoehe']; else $zeilenhoehe = 28; if (isset($_GET['gruppiert']) && ($_GET['gruppiert']=='on')) $gruppiert = true; else $gruppiert = false; if (isset($_GET['gst_extra']) && ($_GET['gst_extra']=='on')) $gst_extra = true; else $gst_extra = false; if (!$db = new basis_db()) die($p->t("global/fehlerBeimOeffnenDerDatenbankverbindung")); if (!$user=get_uid()) die($p->t("global/nichtAngemeldet").'! Zurück'); if(check_lektor($user)) $is_lector=true; else $is_lector=false; ?> <?php echo $p->t("telefonverzeichnis/titelTelefonverzeichnis");?>

t("telefonverzeichnis/titelTelefonverzeichnis");?>

Zeilenhöhe: px   Geschäftsstelle extra:>    Gruppiert nach Standort:>   
'; $i++; } $laststandort = $row->standort_id; $qry_standort = "SELECT tbl_kontakt.kontakt as nummer, tbl_firma.name as name FROM public.tbl_standort JOIN public.tbl_firma USING(firma_id) JOIN public.tbl_kontakt USING(standort_id) WHERE standort_id=".$db->db_add_param($row->standort_id)." AND kontakttyp='telefon'"; if($result_standort = $db->db_query($qry_standort)) { if($row_standort = $db->db_fetch_object($result_standort)) { echo '
db_query($sql_query); $laststandort='0'; $i=1; if ($gruppiert == false) { echo ' '; $i++; } else { while($row = $db->db_fetch_object($result)) { if($laststandort!=$row->standort_id) { if($laststandort!='0') { echo '

'.$p->t("telefonverzeichnis/titelTelefonverzeichnis").' '.CAMPUS_NAME.'

'; while($row = $db->db_fetch_object($result)) { echo ' '; } echo '
'.$p->t("global/nachname").' '.$p->t("global/vorname").' '.$p->t("telefonverzeichnis/durchwahl").' '.$p->t("lvplan/raum").'
'.$row->nachname.' '.$row->vorname.' '.$row->telefonklappe.' '.$row->ort_kurzbz.'

'.$p->t("telefonverzeichnis/titelTelefonverzeichnis").' '.$row_standort->name.': '.$row_standort->nummer.'

'; } } } echo ' '; } $i++; } echo '
'.$p->t("global/nachname").' '.$p->t("global/vorname").' '.$p->t("telefonverzeichnis/durchwahl").' '.$p->t("lvplan/raum").'
'.$row->nachname.' '.$row->vorname.' '.$row->telefonklappe.' '.$row->ort_kurzbz.'
'; if ($gst_extra==true || $gruppiert == true) { $sql_query = " SELECT vw_mitarbeiter.person_id, vw_mitarbeiter.vorname, vw_mitarbeiter.nachname, vw_mitarbeiter.telefonklappe, vw_mitarbeiter.ort_kurzbz, vw_mitarbeiter.standort_id, tbl_person.foto_sperre FROM campus.vw_mitarbeiter JOIN public.tbl_person USING (person_id) WHERE telefonklappe!='' AND standort_id is not null AND vw_mitarbeiter.aktiv=true AND vw_mitarbeiter.standort_id='4' ORDER BY standort_id, nachname, vorname"; $result = $db->db_query($sql_query); $laststandort='0'; echo '

'.$p->t("telefonverzeichnis/titelTelefonverzeichnis").' Geschäftsstelle: +43 1 588 39

'; while($row = $db->db_fetch_object($result)) { echo ' '; } echo '
'.$p->t("global/nachname").' '.$p->t("global/vorname").' '.$p->t("telefonverzeichnis/durchwahl").' '.$p->t("lvplan/raum").'
'.$row->nachname.' '.$row->vorname.' '.$row->telefonklappe.' '.$row->ort_kurzbz.'
'; } ?>
db_query($qry)) { while($row = $db->db_fetch_object($result)) { if($laststandort!=$row->standort_id) { if($laststandort!='') { echo '

'; } $qry_standort = "SELECT tbl_firma.name, tbl_kontakt.kontakt as telefon FROM public.tbl_standort JOIN public.tbl_firma USING(firma_id) JOIN public.tbl_kontakt USING(standort_id) WHERE standort_id='$row->standort_id' AND kontakttyp='telefon'"; if($result_standort = $db->db_query($qry_standort)) { if($row_standort = $db->db_fetch_object($result_standort)) { echo '

'.$p->t("lvplan/raeume").' '.$row_standort->name.': '.$row_standort->telefon.'

'; } } echo ' '; } $laststandort = $row->standort_id; $i++; echo ' '; } if($laststandort!='') { echo '
'.$p->t("lvplan/raeume").' '.$p->t("telefonverzeichnis/durchwahl").' '.$p->t("lvplan/raum").'
'.$row->bezeichnung.' '.$row->telefonklappe.' '.$row->planbezeichnung.' ('.$row->ort_kurzbz.')
'; } } ?>