From 524f8241d0a1ca860912ea8a3c994c8f30dad6c3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andreas=20=C3=96sterreicher?= Date: Tue, 6 Nov 2007 12:50:59 +0000 Subject: [PATCH] --- rdf/diplomasupplement.xml.php | 31 +++++++++++++++++-------------- 1 file changed, 17 insertions(+), 14 deletions(-) diff --git a/rdf/diplomasupplement.xml.php b/rdf/diplomasupplement.xml.php index 86dab6254..2806a4c7b 100644 --- a/rdf/diplomasupplement.xml.php +++ b/rdf/diplomasupplement.xml.php @@ -69,23 +69,11 @@ if (isset($_REQUEST["xmlformat"]) && $_REQUEST["xmlformat"] == "xml") } else die('Student not found'.$uid_arr[$i]); - $qry = "SELECT * FROM lehre.tbl_akadgrad WHERE studiengang_kz='$row->studiengang_kz'"; - $titel = ''; - $titel_kurzbz = ''; - if($result_titel = pg_query($conn, $qry)) - { - if($row_titel = pg_fetch_object($result_titel)) - { - $titel = $row_titel->titel; - $titel_kurzbz = $row_titel->akadgrad_kurzbz; - } - } + echo ' '; echo ' nachname.']]>'; echo ' '.$row->vorname.''; echo ' '.$row->vornamen.''; - echo ' '.$titel.''; - echo ' '.$titel_kurzbz.''; echo ' '.$datum->convertISODate($row->gebdatum).''; echo ' '.$row->matrikelnr.''; echo ' '.sprintf("%04s", $row->studiengang_kz).''; @@ -133,15 +121,30 @@ if (isset($_REQUEST["xmlformat"]) && $_REQUEST["xmlformat"] == "xml") } - $qry = "SELECT bezeichnung FROM lehre.tbl_abschlusspruefung JOIN lehre.tbl_abschlussbeurteilung USING(abschlussbeurteilung_kurzbz) WHERE student_uid='".$uid_arr[$i]."' ORDER BY datum DESC LIMIT 1"; + $qry = "SELECT bezeichnung, akadgrad_id FROM lehre.tbl_abschlusspruefung JOIN lehre.tbl_abschlussbeurteilung USING(abschlussbeurteilung_kurzbz) WHERE student_uid='".$uid_arr[$i]."' ORDER BY datum DESC LIMIT 1"; if($result1 = pg_query($conn, $qry)) { if($row1 = pg_fetch_object($result1)) { echo " $row1->bezeichnung"; + $akadgrad_id = $row1->akadgrad_id; } } + $qry = "SELECT * FROM lehre.tbl_akadgrad WHERE akadgrad_id='$akadgrad_id'"; + $titel = ''; + $titel_kurzbz = ''; + if($result_titel = pg_query($conn, $qry)) + { + if($row_titel = pg_fetch_object($result_titel)) + { + $titel = $row_titel->titel; + $titel_kurzbz = $row_titel->akadgrad_kurzbz; + } + } + echo ' '.$titel.''; + echo ' '.$titel_kurzbz.''; + $qry = "SELECT projektarbeit_id FROM lehre.tbl_projektarbeit WHERE student_uid='".$uid_arr[$i]."' AND projekttyp_kurzbz='Praxis'"; if($result = pg_query($conn, $qry)) {