Files
FHC-Core/content/raumtyp.rdf.php
T
Christian Paminger 0f0296a02a
2006-11-27 08:46:23 +00:00

61 lines
1.5 KiB
PHP

<?php
/*
* Created on 02.12.2004
*
* To change the template for this generated file go to
* Window - Preferences - PHPeclipse - PHP - Code Templates
*/
// header für no cache
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/vnd.mozilla.xul+xml");
// xml
echo '<?xml version="1.0" encoding="ISO-8859-1" standalone="yes"?>';
// DAO
include('../vilesci/config.inc.php');
include_once('../include/raumtyp.class.php');
// Datenbank Verbindung
if (!$conn = @pg_pconnect(CONN_STRING))
$error_msg='Es konnte keine Verbindung zum Server aufgebaut werden!';
// raumtypen holen
$raumtypDAO=new raumtyp($conn);
$raumtypen=$raumtypDAO->getAll();
$rdf_url='http://www.technikum-wien.at/tempus/raumtyp';
?>
<RDF:RDF
xmlns:RDF="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:RAUMTYP="<?php echo $rdf_url; ?>/rdf#"
>
<RDF:Seq about="<?php echo $rdf_url ?>/liste">
<?php
if (is_array($raumtypen)) {
foreach ($raumtypen as $rt)
{
?>
<RDF:li>
<RDF:Description id="<?php echo $rt->kurzbz; ?>" about="<?php echo $rdf_url.'/'.$rt->kurzbz; ?>" >
<RAUMTYP:kurzbz><?php echo $rt->kurzbz ?></RAUMTYP:kurzbz>
<RAUMTYP:beschreibung><?php echo $rt->beschreibung ?></RAUMTYP:beschreibung>
</RDF:Description>
</RDF:li>
<?php
}
}
?>
</RDF:Seq>
</RDF:RDF>