, * Andreas Oesterreicher and * Rudolf Hangl . */ /* * Created on 02.12.2004 * */ header("Cache-Control: no-cache"); header("Cache-Control: post-check=0, pre-check=0",false); header("Expires Mon, 26 Jul 1997 05:00:00 GMT"); header("Pragma: no-cache"); // content type setzen header("Content-type: application/xhtml+xml"); // xml echo ''; // DAO require_once('../config/vilesci.config.inc.php'); require_once('../include/basis_db.class.php'); // Orte holen $sql_query="SELECT * FROM (public.tbl_ort JOIN public.tbl_ortraumtyp USING (ort_kurzbz)) JOIN public.tbl_raumtyp USING (raumtyp_kurzbz) WHERE aktiv AND raumtyp_kurzbz!='LM' ORDER BY raumtyp_kurzbz, hierarchie,ort_kurzbz"; $db = new basis_db(); if(!$result = $db->db_query($sql_query)) $error_msg.=$db->db_last_error(); else $num_rows=$db->db_num_rows($result); $rdf_url='http://www.technikum-wien.at/ort/'; ?> 0?$db->db_fetch_object($result,$i-1):null); $ort=$db->db_fetch_object($result,$i); $ortNEXT=(($i<$num_rows-1)?$db->db_fetch_object($result,$i+1):null); $currentTYP=$ort->raumtyp_kurzbz; $lastTYP=($i>0?$ortLAST->raumtyp_kurzbz:null); $nextTYP=(($i<$num_rows-1)?$ortNEXT->raumtyp_kurzbz:null); //echo "current:$currentTYP last:$lastTYP next:$nextTYP"; $raumtypen=''; $qry = "SELECT raumtyp_kurzbz FROM public.tbl_ortraumtyp WHERE ort_kurzbz='$ort->ort_kurzbz'"; if($result_rt = $db->db_query($qry)) { while($row_rt = $db->db_fetch_object($result_rt)) { if($raumtypen!='') $raumtypen.=', '; $raumtypen.=$row_rt->raumtyp_kurzbz; } } if ($lastTYP!=$currentTYP || $i==0) $descr.=' '.$ort->raumtyp_kurzbz.' '.$ort->raumtyp_kurzbz.' '.$ort->planbezeichnung.' '; $descr.=' '.$ort->ort_kurzbz." ".$ort->hierarchie." ".$ort->ort_kurzbz." ".$ort->bezeichnung." ".$ort->max_person." ".$ort->stockwerk." ".$raumtypen." ".$ort->planbezeichnung." \n"; if ($lastTYP!=$currentTYP) $sequenz.=' '."\n"; if ($nextTYP!=$currentTYP || $i==$num_rows-1) $sequenz.=' '."\n"; elseif ($lastTYP==$currentTYP || $nextTYP==$currentTYP || $num_rows==1) $sequenz.=''."\n"; } $sequenz=''."\n".$sequenz.' '; echo $descr; echo $sequenz; ?>