This commit is contained in:
Andreas Österreicher
2007-06-22 12:58:21 +00:00
parent 372d2c3106
commit 7cf06951c8
11 changed files with 666 additions and 334 deletions
-21
View File
@@ -500,26 +500,5 @@ class lehrveranstaltung
return false;
}
}
// *****************************************
// * Erstellt das XML File fuers Zeugnis
// * @param $uid
// *****************************************
function generateZeugnisXML($uid)
{
$qry = "SELECT * FROM lehre.tbl_zeugnisnote JOIN lehre.tbl_lehrveranstaltung USING(lehrveranstaltung_id) WHERE student_uid='".addslashes($uid)."' ORDER BY bezeichnung";
$xml = '<?xml version="1.0" encoding="ISO-8859-15" ?><zeugnis>';
if($result = pg_query($this->conn, $qry))
{
while($row = pg_fetch_object($result))
{
$xml.='<lehreinheit typ="lehreinheit">
<titel>'.$row->titel.'</titel>
</lehreinheit>';
}
}
$xml.='</zeugnis>';
return $xml;
}
}
?>