* * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as * published by the Free Software Foundation; either version 2 of the * License, or (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA. * * Authors: Andreas Oesterreicher <*****@*****.**> */ require_once '../config/vilesci.config.inc.php'; require_once '../include/rdf.class.php'; require_once '../include/dokument.class.php'; $oRdf = new rdf('DOKUMENTTYP', 'http://www.technikum-wien.at/dokumenttyp'); $oRdf->sendHeader(); $dokumente = new dokument(); $dokumente->getAllDokumente(); foreach ($dokumente->result as $row) { $i = $oRdf->newObjekt($row->dokument_kurzbz); $oRdf->obj[$i]->setAttribut('dokument_kurzbz', $row->dokument_kurzbz, true); $oRdf->obj[$i]->setAttribut('bezeichnung', $row->bezeichnung, true); $oRdf->addSequence($row->dokument_kurzbz); } $oRdf->sendRdfText();
die('Fehlerhafte Parameterübergabe'); } $oRdf = new rdf('VER', 'http://www.technikum-wien.at/vertragdetails'); $oRdf->sendHeader(); foreach ($vertrag->result as $row) { switch ($row->type) { case 'Lehrauftrag': $key = $row->type . '/' . $row->studiensemester_kurzbz . '/' . $row->lehreinheit_id . '/' . $row->mitarbeiter_uid; break; case 'Pruefung': $key = $row->type . '/' . $row->pruefung_id; break; case 'Betreuung': $key = $row->type . '/' . $row->mitarbeiter_uid . '/' . $row->projektarbeit_id . '/' . $row->betreuerart_kurzbz; break; default: $key = 'unknowntype'; } $i = $oRdf->newObjekt($key); $oRdf->obj[$i]->setAttribut('type', $row->type, true); $oRdf->obj[$i]->setAttribut('betrag', number_format($row->betrag, 2, '.', ''), true); $oRdf->obj[$i]->setAttribut('studiensemester_kurzbz', $row->studiensemester_kurzbz, true); $oRdf->obj[$i]->setAttribut('lehreinheit_id', $row->lehreinheit_id, true); $oRdf->obj[$i]->setAttribut('pruefung_id', $row->pruefung_id, true); $oRdf->obj[$i]->setAttribut('mitarbeiter_uid', $row->mitarbeiter_uid, true); $oRdf->obj[$i]->setAttribut('projektarbeit_id', $row->projektarbeit_id, true); $oRdf->obj[$i]->setAttribut('betreuerart_kurzbz', $row->betreuerart_kurzbz, true); $oRdf->obj[$i]->setAttribut('bezeichnung', $row->bezeichnung, true); $oRdf->addSequence($key); } $oRdf->sendRdfText();
* This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA. * * Authors: Andreas Österreicher <*****@*****.**> */ require_once '../config/vilesci.config.inc.php'; require_once '../include/rdf.class.php'; require_once '../include/mantis.class.php'; if (!isset($_GET['project_id'])) { die('Missing Parameter: Project_id'); } $project_id = $_GET['project_id']; $oRdf = new rdf('MANTIS_CATEGORIES', 'http://www.technikum-wien.at/mantis_categories'); $oRdf->sendHeader(); $mantis = new mantis(); if ($mantis->getCategories($project_id)) { foreach ($mantis->result as $row) { $i = $oRdf->newObjekt($row->issue_category); $oRdf->obj[$i]->setAttribut('category', $row->issue_category, true); $oRdf->addSequence($row->issue_category); } } else { echo $mantis->errormsg; } $oRdf->sendRdfText();
* published by the Free Software Foundation; either version 2 of the * License, or (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA. * * Authors: Christian Paminger <*****@*****.**> */ require_once '../config/vilesci.config.inc.php'; require_once '../include/rdf.class.php'; require_once '../include/basis_db.class.php'; $oRdf = new rdf('BETREUERART', 'http://www.technikum-wien.at/betreuerart'); $oRdf->sendHeader(); $qry = "SELECT * FROM lehre.tbl_betreuerart ORDER BY betreuerart_kurzbz"; $db = new basis_db(); if ($db->db_query($qry)) { while ($row = $db->db_fetch_object()) { $i = $oRdf->newObjekt($row->betreuerart_kurzbz); //$oRdf->obj[$i]->setAttribut('id',$row->betreuerart_kurzbz,false); $oRdf->obj[$i]->setAttribut('betreuerart_kurzbz', $row->betreuerart_kurzbz, true); $oRdf->obj[$i]->setAttribut('beschreibung', $row->beschreibung, true); $oRdf->addSequence($row->betreuerart_kurzbz); } } $oRdf->sendRdfText();
$oRdf->obj[$i]->setAttribut('lehrfach', $row->lehrfach_bezeichnung, true); $oRdf->obj[$i]->setAttribut('lehreinheit_id', $row->lehreinheit_id, true); $anwesenheit = new anwesenheit(); if ($anwesenheit->AnwesenheitExists($row->lehreinheit_id, $row->datum, $student_uid)) { $anwesend = 'Ja'; } else { $anwesend = 'Nein'; } $oRdf->obj[$i]->setAttribut('anwesend', $anwesend, true); $oRdf->obj[$i]->setAttribut('datum_iso', $row->datum, true); // Terminkollisionen prüfen $kollision = ""; if ($lehrveranstaltung_id == '') { for ($x = $row->stundevon; $x <= $row->stundebis; $x++) { $orte = implode(',', $row->orte); if (isset($verplanteStunden[$row->datum]) && in_array($x, $verplanteStunden[$row->datum])) { if (!isset($verplanteStunden[$row->datum][$orte]) || !in_array($x, $verplanteStunden[$row->datum][$orte])) { $kollision = "makeItred"; break; } } $verplanteStunden[$row->datum][] = $x; $verplanteStunden[$row->datum][$orte][] = $x; } } $oRdf->obj[$i]->setAttribut('kollision', $kollision, true); $oRdf->addSequence($i); $i++; } } $oRdf->sendRdfText();
* it under the terms of the GNU General Public License as * published by the Free Software Foundation; either version 2 of the * License, or (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA. * * Authors: Andreas Österreicher <*****@*****.**> */ require_once '../config/vilesci.config.inc.php'; require_once '../include/rdf.class.php'; require_once '../include/mantis.class.php'; require_once '../include/functions.inc.php'; get_uid(); $oRdf = new rdf('MANTIS_PROJECT', 'http://www.technikum-wien.at/mantis_project'); $oRdf->sendHeader(); $mantis = new mantis(); $mantis->getProjects(); foreach ($mantis->result as $row) { $i = $oRdf->newObjekt($row->issue_project->id); $oRdf->obj[$i]->setAttribut('id', $row->issue_project->id, true); $oRdf->obj[$i]->setAttribut('name', $row->issue_project->name, true); $oRdf->addSequence($row->issue_project->id); } $oRdf->sendRdfText();
* it under the terms of the GNU General Public License as * published by the Free Software Foundation; either version 2 of the * License, or (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA. * * Authors: Christian Paminger <*****@*****.**> */ require_once '../config/vilesci.config.inc.php'; require_once '../include/rdf.class.php'; require_once '../include/basis_db.class.php'; $oRdf = new rdf('AUFWANDSTYP', 'http://www.technikum-wien.at/aufwandstyp'); $oRdf->sendHeader(); $qry = "SELECT * FROM fue.tbl_aufwandstyp ORDER BY bezeichnung"; $db = new basis_db(); if ($db->db_query($qry)) { while ($row = $db->db_fetch_object()) { $i = $oRdf->newObjekt($row->aufwandstyp_kurzbz); $oRdf->obj[$i]->setAttribut('aufwandstyp_kurzbz', $row->aufwandstyp_kurzbz, true); $oRdf->obj[$i]->setAttribut('bezeichnung', $row->bezeichnung, true); $oRdf->addSequence($row->aufwandstyp_kurzbz); } } $oRdf->sendRdfText();
$oRdf->obj[$i]->setAttribut('lehrtyp_kurzbz', $row_lva->lehrtyp_kurzbz); $oRdf->obj[$i]->setAttribut('lehreinheit_id', ''); $oRdf->obj[$i]->setAttribut('lehrform_kurzbz', $row_lva->lv_lehrform_kurzbz); $oRdf->obj[$i]->setAttribut('stundenblockung', ''); $oRdf->obj[$i]->setAttribut('wochenrythmus', ''); $oRdf->obj[$i]->setAttribut('startkw', ''); $oRdf->obj[$i]->setAttribut('raumtyp', ''); $oRdf->obj[$i]->setAttribut('raumtypalternativ', ''); $oRdf->obj[$i]->setAttribut('gruppen', ''); $oRdf->obj[$i]->setAttribut('lektoren', $fbk); $oRdf->obj[$i]->setAttribut('fachbereich', ''); if (isset($row_lva->studienplan_lehrveranstaltung_id_parent) && $row_lva->studienplan_lehrveranstaltung_id_parent != '') { // Wenn ein Parent vorhanden ist, wird er diesem untergeordnet $stpllv = new studienplan(); if ($stpllv->loadStudienplanLehrveranstaltung($row_lva->studienplan_lehrveranstaltung_id_parent)) { $oRdf->addSequence($row_lva->lehrveranstaltung_id, $stpllv->lehrveranstaltung_id); } } else { $oRdf->addSequence($row_lva->lehrveranstaltung_id); } //zugehoerige LE holen $le = new lehreinheit(); if (!$le->load_lehreinheiten($row_lva->lehrveranstaltung_id, $semester_aktuell, $uid, $fachbereich_kurzbz)) { echo "Fehler: {$le->errormsg}"; } foreach ($le->lehreinheiten as $row_le) { //Lehrfach holen $qry = "SELECT kurzbz, bezeichnung FROM lehre.tbl_lehrveranstaltung WHERE lehrveranstaltung_id='{$row_le->lehrfach_id}'"; $result_lf = $db->db_query($qry); $row_lf = $db->db_fetch_object($result_lf); //Gruppen holen
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA. * * Authors: Andreas Österreicher <*****@*****.**> */ require_once '../config/vilesci.config.inc.php'; require_once '../include/rdf.class.php'; require_once '../include/buchung.class.php'; require_once '../include/functions.inc.php'; require_once '../include/benutzerberechtigung.class.php'; $user = get_uid(); $rechte = new benutzerberechtigung(); $rechte->getBerechtigungen($user); if (!$rechte->isBerechtigt('buchung/mitarbeiter') && !$rechte->isBerechtigt('buchung/buchungstyp')) { die('Sie haben keine Berechtigung für diese Seite'); } $oRdf = new rdf('TYP', 'http://www.technikum-wien.at/wawi_buchungstyp'); $oRdf->sendHeader(); $obj = new buchung(); $obj->getAllBuchungstypen(); foreach ($obj->result as $row) { $i = $oRdf->newObjekt($row->buchungstyp_kurzbz); $oRdf->obj[$i]->setAttribut('buchungstyp_kurzbz', $row->buchungstyp_kurzbz, true); $oRdf->obj[$i]->setAttribut('bezeichnung', $row->buchungstyp_bezeichnung, true); $oRdf->addSequence($row->buchungstyp_kurzbz); } $oRdf->sendRdfText();
* * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA. * * Authors: Andreas Österreicher <*****@*****.**> */ require_once '../config/vilesci.config.inc.php'; require_once '../include/rdf.class.php'; require_once '../include/wawi_kostenstelle.class.php'; require_once '../include/functions.inc.php'; require_once '../include/benutzerberechtigung.class.php'; $uid = get_uid(); $rechte = new benutzerberechtigung(); $rechte->getBerechtigungen($uid); if (!$rechte->isBerechtigt('buchung/mitarbeiter')) { die('Sie haben keine Berechtigung für diese Seite'); } $oRdf = new rdf('KST', 'http://www.technikum-wien.at/wawi_kostenstelle'); $oRdf->sendHeader(); $kst = new wawi_kostenstelle(); $kst->getAll(); foreach ($kst->result as $row) { $i = $oRdf->newObjekt($row->kostenstelle_id); $oRdf->obj[$i]->setAttribut('kostenstelle_id', $row->kostenstelle_id, true); $oRdf->obj[$i]->setAttribut('bezeichnung', $row->bezeichnung, true); $oRdf->obj[$i]->setAttribut('kurzbz', $row->kurzbz, true); $oRdf->obj[$i]->setAttribut('aktiv', $row->aktiv ? 'true' : 'false', true); $oRdf->addSequence($row->kostenstelle_id); } $oRdf->sendRdfText();
$oRdf->obj[$i]->setAttribut('projekt_kurzbz', $phase->projekt_kurzbz); $oRdf->obj[$i]->setAttribut('projektphase_fk', $phase->projektphase_fk); $oRdf->obj[$i]->setAttribut('bezeichnung', $phase->bezeichnung); $oRdf->obj[$i]->setAttribut('beschreibung', $phase->beschreibung); $oRdf->obj[$i]->setAttribut('start_iso', $phase->start); $oRdf->obj[$i]->setAttribut('ende_iso', $phase->ende); $oRdf->obj[$i]->setAttribut('start', $datum_obj->formatDatum($phase->start, 'd.m.Y')); $oRdf->obj[$i]->setAttribut('ende', $datum_obj->formatDatum($phase->ende, 'd.m.Y')); $oRdf->obj[$i]->setAttribut('budget', $phase->budget); $oRdf->obj[$i]->setAttribut('fortschritt', $ergebnis); $oRdf->obj[$i]->setAttribut('personentage', $phase->personentage); $oRdf->obj[$i]->setAttribut('farbe', $phase->farbe); $oRdf->obj[$i]->setAttribut('typ', $phase->typ); $oRdf->obj[$i]->setAttribut('ressource_id', $phase->ressource_id); if ($phase->projektphase_fk != '') { $oRdf->addSequence($phase->projektphase_id, $phase->projektphase_fk); } else { $oRdf->addSequence($phase->projektphase_id); } } else { if ($projekt_kurzbz != '') { $projektphase = new projektphase(); // gesetzt wenn abfrage für fk ansonsten lade alle phasen zur projekt_kurzbz if (isset($_GET['phase_id'])) { $projektphase->getProjektphasenForFk($projekt_kurzbz, $_GET['phase_id']); } else { $projektphase->getProjektphasen($projekt_kurzbz); } if (isset($_GET['optional'])) { $idx = $oRdf->newObjekt('opt'); $oRdf->obj[$idx]->setAttribut('projektphase_id', '');
$brutto = $bestellung->getBrutto($bestellung->bestellung_id); if ($brutto == '') { $brutto = '0'; } else { $brutto = sprintf("%01.2f", $brutto); } $i = $oRdf->newObjekt($bestellung->bestellung_id); $oRdf->obj[$i]->setAttribut('bestellung_id', $bestellung->bestellung_id, false); $oRdf->obj[$i]->setAttribut('kostenstelle_id', $bestellung->kostenstelle_id, false); $oRdf->obj[$i]->setAttribut('konto_id', $bestellung->konto_id, false); $oRdf->obj[$i]->setAttribut('lieferadresse', $bestellung->lieferadresse, true); $oRdf->obj[$i]->setAttribut('rechnungsadresse', $bestellung->rechnungsadresse, true); $oRdf->obj[$i]->setAttribut('freigegeben', $bestellung->freigegeben, true); $oRdf->obj[$i]->setAttribut('bestell_nr', $bestellung->bestell_nr, false); $oRdf->obj[$i]->setAttribut('titel', $bestellung->titel, true); $oRdf->obj[$i]->setAttribut('bemerkung', $bestellung->bemerkung, true); $oRdf->obj[$i]->setAttribut('liefertermin', $bestellung->liefertermin, true); $oRdf->obj[$i]->setAttribut('besteller_uid', $bestellung->besteller_uid, false); $oRdf->obj[$i]->setAttribut('updateamum', $bestellung->updateamum, true); $oRdf->obj[$i]->setAttribut('updatevon', $bestellung->updatevon, true); $oRdf->obj[$i]->setAttribut('insertamum', $bestellung->insertamum, true); $oRdf->obj[$i]->setAttribut('insertvon', $bestellung->insertvon, true); $oRdf->obj[$i]->setAttribut('ext_id', $bestellung->ext_id, false); $oRdf->obj[$i]->setAttribut('betrag', $brutto, false); $oRdf->obj[$i]->setAttribut('zahlungstyp_kurzbz', $bestellung->zahlungstyp_kurzbz, true); $oRdf->addSequence($bestellung->bestellung_id); } $oRdf->sendRdfText(); } else { echo "Parameter: projektKurzbz"; }
* Authors: Christian Paminger <*****@*****.**>, * Andreas Oesterreicher <*****@*****.**>, * Rudolf Hangl <*****@*****.**> and * Gerald Simane-Sequens <*****@*****.**>. */ require_once '../config/vilesci.config.inc.php'; require_once '../include/organisationseinheit.class.php'; require_once '../include/rdf.class.php'; require_once '../include/benutzerberechtigung.class.php'; $uid = get_uid(); $rechte = new benutzerberechtigung(); $rechte->getBerechtigungen($uid); if (!$rechte->isBerechtigt('basis/vilesci')) { die('Sie haben keine Berechtigung für diese Seite'); } $oes = $rechte->getOEkurzbz(); $oe = new organisationseinheit(); $oe->loadArray($oes, 'bezeichnung, organisationseinheittyp_kurzbz', true); $oRdf = new rdf('OE', 'http://www.technikum-wien.at/organisationseinheit'); $oRdf->sendHeader(); foreach ($oe->result as $row) { if ($row->lehre) { $i = $oRdf->newObjekt($row->oe_kurzbz); $oRdf->obj[$i]->setAttribut('oe_kurzbz', $row->oe_kurzbz, true); $oRdf->obj[$i]->setAttribut('bezeichnung', $row->bezeichnung, true); $oRdf->obj[$i]->setAttribut('typ', $row->organisationseinheittyp_kurzbz, true); $oRdf->obj[$i]->setAttribut('uid', '', true); $oRdf->addSequence($row->oe_kurzbz); } } $oRdf->sendRdfText();
} $oRdf = new rdf('STUNDENPLANBETRIEBSMITTEL', 'http://www.technikum-wien.at/stundenplanbetriebsmittel'); $oRdf->sendHeader(); $betriebsmittel = new betriebsmittel(); if (isset($_REQUEST['stundenplan_ids'])) { $stundenplan_ids = $_REQUEST['stundenplan_ids']; if ($betriebsmittel->getBetriebsmittelStundenplan($stundenplan_ids)) { if (count($betriebsmittel->result) > 0) { foreach ($betriebsmittel->result as $row) { $i = $oRdf->newObjekt($row->stundenplan_betriebsmittel_id); $oRdf->obj[$i]->setAttribut('stundenplan_betriebsmittel_id', $row->stundenplan_betriebsmittel_id, true); $oRdf->obj[$i]->setAttribut('beschreibung', $row->beschreibung, true); $oRdf->obj[$i]->setAttribut('betriebsmittel_id', $row->betriebsmittel_id, true); $oRdf->obj[$i]->setAttribut('anmerkung', $row->anmerkung, true); $oRdf->obj[$i]->setAttribut('stunde', $row->stunde, true); $oRdf->addSequence($row->stundenplan_betriebsmittel_id); } } } } elseif (isset($_REQUEST['stundenplan_betriebsmittel_id'])) { $stundenplan_betriebsmittel_id = $_REQUEST['stundenplan_betriebsmittel_id']; if ($betriebsmittel->loadBetriebsmittelStundenplan($stundenplan_betriebsmittel_id)) { $i = $oRdf->newObjekt($betriebsmittel->stundenplan_betriebsmittel_id); $oRdf->obj[$i]->setAttribut('stundenplan_betriebsmittel_id', $betriebsmittel->stundenplan_betriebsmittel_id, true); $oRdf->obj[$i]->setAttribut('beschreibung', $betriebsmittel->beschreibung, true); $oRdf->obj[$i]->setAttribut('betriebsmittel_id', $betriebsmittel->betriebsmittel_id, true); $oRdf->obj[$i]->setAttribut('anmerkung', $betriebsmittel->anmerkung, true); $oRdf->addSequence($betriebsmittel->stundenplan_betriebsmittel_id); } } else { die('Falsche Parameteruebergabe');
$lastPT = null; foreach ($projekttask_obj->result as $projekttask) { $i = $oRdf->newObjekt($projekttask->projekttask_id); $oRdf->obj[$i]->setAttribut('projekttask_id', $projekttask->projekttask_id); $oRdf->obj[$i]->setAttribut('projektphase_id', $projekttask->projektphase_id); $oRdf->obj[$i]->setAttribut('bezeichnung', $projekttask->bezeichnung); $oRdf->obj[$i]->setAttribut('beschreibung', $projekttask->beschreibung); $oRdf->obj[$i]->setAttribut('aufwand', $projekttask->aufwand); $oRdf->obj[$i]->setAttribut('mantis_id', $projekttask->mantis_id); $oRdf->obj[$i]->setAttribut('scrumsprint_id', $projekttask->scrumsprint_id); $oRdf->obj[$i]->setAttribut('erledigt', $projekttask->erledigt ? 'true' : 'false'); $oRdf->obj[$i]->setAttribut('projekttask_fk', $projekttask->projekttask_fk); $ressource_bezeichnung = '-'; if ($projekttask->ressource_id != '') { $ressource = new ressource(); $ressource->load($projekttask->ressource_id); $ressource_bezeichnung = $ressource->bezeichnung; } $oRdf->obj[$i]->setAttribut('ressource_bezeichnung', $ressource_bezeichnung); $oRdf->obj[$i]->setAttribut('ressource_id', $projekttask->ressource_id); $oRdf->obj[$i]->setAttribut('ende', $datum_obj->formatDatum($projekttask->ende, 'd.m.Y')); if ($projekttask->projekttask_fk != '') { $oRdf->addSequence($projekttask->projekttask_id, $projekttask->projekttask_fk); } else { $oRdf->addSequence($projekttask->projekttask_id); } } $oRdf->sendRdfText(); ?> >>>>>>> fee287127566cd5d18c55b556d178b661711c694
* Authors: Andreas Österreicher <*****@*****.**> */ require_once '../config/vilesci.config.inc.php'; require_once '../include/rdf.class.php'; require_once '../include/wawi_konto.class.php'; require_once '../include/functions.inc.php'; require_once '../include/benutzerberechtigung.class.php'; $uid = get_uid(); $rechte = new benutzerberechtigung(); $rechte->getBerechtigungen($uid); if (!$rechte->isBerechtigt('buchung/mitarbeiter')) { die('Sie haben keine Berechtigung für diese Seite'); } if (isset($_GET['person_id'])) { $person_id = $_GET['person_id']; } else { die('Parameter ungueltig'); } $oRdf = new rdf('WAWIKONTO', 'http://www.technikum-wien.at/wawi_konto'); $oRdf->sendHeader(); $wawi_konto = new wawi_konto(); $wawi_konto->getKontoPerson($person_id); foreach ($wawi_konto->result as $row) { $i = $oRdf->newObjekt($row->konto_id); $oRdf->obj[$i]->setAttribut('konto_id', $row->konto_id, true); $oRdf->obj[$i]->setAttribut('beschreibung', $row->beschreibung[DEFAULT_LANGUAGE], true); $oRdf->obj[$i]->setAttribut('kurzbz', $row->kurzbz, true); $oRdf->obj[$i]->setAttribut('aktiv', $row->aktiv ? 'true' : 'false', true); $oRdf->addSequence($row->konto_id); } $oRdf->sendRdfText();