Files
FHC-Core/rdf/sprache.rdf.php
T
2007-02-23 14:12:28 +00:00

51 lines
1.4 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');
// Datenbank Verbindung
if (!$conn = @pg_pconnect(CONN_STRING))
$error_msg='Es konnte keine Verbindung zum Server aufgebaut werden!';
// sprachen holen
$qry = "SELECT * FROM public.tbl_sprache order by sprache";
$result = pg_query($conn, $qry);
$rdf_url='http://www.technikum-wien.at/sprachen';
?>
<RDF:RDF
xmlns:RDF="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:SPRACHE="<?php echo $rdf_url; ?>/rdf#"
>
<RDF:Seq about="<?php echo $rdf_url ?>/liste">
<?php
while($row=pg_fetch_object($result))
{
?>
<RDF:li>
<RDF:Description id="<?php echo $row->sprache; ?>" about="<?php echo $rdf_url.'/'.$row->sprache; ?>" >
<SPRACHE:bezeichnung><![CDATA[<?php echo $row->sprache ?>]]></SPRACHE:bezeichnung>
</RDF:Description>
</RDF:li>
<?php
}
?>
</RDF:Seq>
</RDF:RDF>