mirror of
https://github.com/FH-Complete/FHC-Core.git
synced 2026-07-25 08:34:29 +00:00
- Anpassungen für Lehrgänge zur Weiterbildung
- XML für Ausbildungsvertrag
This commit is contained in:
Executable
+97
@@ -0,0 +1,97 @@
|
||||
<?php
|
||||
/* Copyright (C) 2013 FH Technikum-Wien
|
||||
*
|
||||
* 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 <[email protected]>
|
||||
*/
|
||||
header("Content-type: application/xhtml+xml");
|
||||
require_once('../config/vilesci.config.inc.php');
|
||||
require_once('../include/functions.inc.php');
|
||||
require_once('../include/studiengang.class.php');
|
||||
require_once('../include/student.class.php');
|
||||
require_once('../include/prestudent.class.php');
|
||||
require_once('../include/adresse.class.php');
|
||||
|
||||
$db = new basis_db();
|
||||
|
||||
|
||||
$uid_arr = (isset($_REQUEST['uid'])?$_REQUEST['uid']:null);
|
||||
|
||||
$uid_arr = explode(";",$uid_arr);
|
||||
|
||||
echo "<?xml version='1.0' encoding='UTF-8' standalone='yes'?>\n";
|
||||
echo "<ausbildungsvertraege>\n";
|
||||
foreach($uid_arr as $uid)
|
||||
{
|
||||
if($uid=='')
|
||||
continue;
|
||||
|
||||
echo "\t<ausbildungsvertrag>\n";
|
||||
|
||||
$student = new student();
|
||||
if($student->load($uid))
|
||||
{
|
||||
$datum_aktuell = date('d.m.Y');
|
||||
$gebdatum = date('d.m.Y',strtotime($student->gebdatum));
|
||||
$studiengang = new studiengang();
|
||||
$studiengang->load($student->studiengang_kz);
|
||||
|
||||
|
||||
|
||||
echo "\t\t<anrede>".$student->anrede."</anrede>\n";
|
||||
echo "\t\t<vorname>".$student->vorname."</vorname>\n";
|
||||
echo "\t\t<vornamen>".$student->vornamen."</vornamen>\n";
|
||||
echo "\t\t<nachname>".$student->nachname."</nachname>\n";
|
||||
echo "\t\t<titelpre>".$student->titelpre."</titelpre>\n";
|
||||
echo "\t\t<titelpost>".$student->titelpost."</titelpost>\n";
|
||||
echo "\t\t<gebdatum>".$gebdatum."</gebdatum>\n";
|
||||
echo "\t\t<svnr>".$student->svnr."</svnr>\n";
|
||||
echo "\t\t<matrikelnr>".trim($student->matrikelnr)."</matrikelnr>\n";
|
||||
echo "\t\t<studiengang>".$studiengang->bezeichnung."</studiengang>\n";
|
||||
echo "\t\t<studiengang_englisch>".$studiengang->english."</studiengang_englisch>\n";
|
||||
echo "\t\t<studiengang_kz>".sprintf('%04s', $studiengang->studiengang_kz)."</studiengang_kz>\n";
|
||||
echo "\t\t<studiengang_typ>".$studiengang->typ."</studiengang_typ>\n";
|
||||
echo "\t\t<studiengang_sprache>".$studiengang->sprache."</studiengang_sprache>\n";
|
||||
echo "\t\t<studiengang_maxsemester>".$studiengang->max_semester."</studiengang_maxsemester>\n";
|
||||
echo "\t\t<datum_aktuell>".$datum_aktuell."</datum_aktuell>\n";
|
||||
|
||||
$adresse = new adresse();
|
||||
$adresse->load_pers($student->person_id);
|
||||
|
||||
foreach($adresse->result as $row_adresse)
|
||||
{
|
||||
if($row_adresse->zustelladresse)
|
||||
{
|
||||
echo "\t\t<strasse>".$row_adresse->strasse."</strasse>\n";
|
||||
echo "\t\t<plz>".$row_adresse->plz."</plz>\n";
|
||||
echo "\t\t<ort>".$row_adresse->ort."</ort>\n";
|
||||
break;
|
||||
}
|
||||
}
|
||||
$prestudent = new prestudent();
|
||||
$prestudent->getLastStatus($student->prestudent_id, null, 'Student');
|
||||
|
||||
if($prestudent->orgform_kurzbz!='')
|
||||
$orgform = $prestudent->orgform_kurzbz;
|
||||
else
|
||||
$orgform = $studiengang->orgform_kurzbz;
|
||||
echo "\t\t<orgform>".$orgform."</orgform>\n";
|
||||
}
|
||||
echo "\t</ausbildungsvertrag>\n";
|
||||
}
|
||||
echo "</ausbildungsvertraege>";
|
||||
|
||||
?>
|
||||
Reference in New Issue
Block a user