// xml echo '<?xml version="1.0" encoding="UTF-8" standalone="yes"?>'; // DAO require_once '../config/vilesci.config.inc.php'; require_once '../include/kontakt.class.php'; $kontakt = new kontakt(); $rdf_url = 'http://www.technikum-wien.at/kontakttyp'; echo ' <RDF:RDF xmlns:RDF="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:KONTAKTTYP="' . $rdf_url . '/rdf#" > <RDF:Seq about="' . $rdf_url . '/liste"> '; if ($kontakt->getKontakttyp()) { foreach ($kontakt->result as $row) { echo ' <RDF:li> <RDF:Description id="' . $row->kontakttyp . '" about="' . $rdf_url . '/' . $row->kontakttyp . '" > <KONTAKTTYP:kontakttyp><![CDATA[' . $row->kontakttyp . ']]></KONTAKTTYP:kontakttyp> <KONTAKTTYP:beschreibung><![CDATA[' . $row->beschreibung . ']]></KONTAKTTYP:beschreibung> </RDF:Description> </RDF:li> '; } } else { echo $kontakt->errormsg; } ?> </RDF:Seq>
$nation->getAll(); foreach ($nation->nation as $row) { $nation_arr[$row->code] = $row->kurztext; } //Firmen laden $firma_arr = array(); $firma = new firma(); $firma->getAll(); foreach ($firma->result as $row) { $firma_arr[$row->firma_id] = $row->name; } $adresstyp_arr = array('h' => 'Hauptwohnsitz', 'n' => 'Nebenwohnsitz', 'f' => 'Firma'); //Kontakttypen laden $kontakttyp_arr = array(); $kontakt_obj = new kontakt(); $kontakt_obj->getKontakttyp(); foreach ($kontakt_obj->result as $row) { $kontakttyp_arr[] = $row->kontakttyp; } echo "<h2>Kontaktdaten von {$person->vorname} {$person->nachname}</h2>"; echo $errormsg . '<br>'; // *** ADRESSEN *** echo "<h3>Adressen:</h3>"; echo "<form accept-charset='UTF-8' action='" . $_SERVER['PHP_SELF'] . "?person_id={$person_id}' method='POST' />"; echo "<table class='liste'><tr><th>STRASSE</th><th>PLZ</th><th>ORT</th><th>GEMEINDE</th><th>NATION</th><th>TYP</th><th>HEIMAT</th><th>ZUSTELLUNG</th><th>FIRMA</th></tr>"; $adresse_obj = new adresse(); $adresse_obj->load_pers($person_id); foreach ($adresse_obj->result as $row) { echo '<tr class="liste1">'; echo "<td>{$row->strasse}</td>"; echo "<td>{$row->plz}</td>";