From 2e08b42d8089c04f648854950d1e2fc539166631 Mon Sep 17 00:00:00 2001 From: Karl Burkhart Date: Mon, 23 May 2011 12:39:35 +0000 Subject: [PATCH] =?UTF-8?q?Pers=C3=B6nliche=20Daten=20und=20Ansprechperson?= =?UTF-8?q?en=20angepasst?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- vilesci/personen/incoming_detail.php | 261 ++++++++++++++++++++++++++- 1 file changed, 253 insertions(+), 8 deletions(-) diff --git a/vilesci/personen/incoming_detail.php b/vilesci/personen/incoming_detail.php index 3d06c5fd8..544eedd44 100644 --- a/vilesci/personen/incoming_detail.php +++ b/vilesci/personen/incoming_detail.php @@ -37,6 +37,7 @@ require_once('../../include/prestudent.class.php'); require_once('../../include/student.class.php'); require_once('../../include/lehrverband.class.php'); require_once('../../include/bisio.class.php'); +require_once('../../include/firma.class.php'); require_once('../../include/'.EXT_FKT_PATH.'/generateuid.inc.php'); $user = get_uid(); @@ -96,9 +97,12 @@ if($method!='') isset($_POST['titelpre']) && isset($_POST['titelpost']) && isset($_POST['vorname']) && isset($_POST['nachname']) && isset($_POST['anmerkung']) && isset($_POST['strasse']) && isset($_POST['plz']) && isset($_POST['ort']) && isset($_POST['nation']) && - isset($_POST['email']) && isset($_POST['universitaet']) && isset($_POST['mobilitaetsprogramm']) && - isset($_POST['zweck']) && isset($_POST['von']) && isset($_POST['bis'])) + isset($_POST['zgv']) && isset($_POST['zgv_name']) && isset($_POST['zgv_ort']) && isset($_POST['zgv_datum']) && + isset($_POST['zgv_master']) && isset($_POST['zgv_master_name']) && isset($_POST['zgv_master_ort']) && isset($_POST['zgv_master_datum']) && + isset($_POST['email']) && isset($_POST['universitaet']) && isset($_POST['mobilitaetsprogramm']) && isset($_POST['studienbezeichnung']) && + isset($_POST['jahre']) && isset($_POST['zweck']) && isset($_POST['von']) && isset($_POST['bis'])) { + $person_id = $_POST['person_id']; $adresse_id = $_POST['adresse_id']; $kontakt_id = $_POST['kontakt_id']; @@ -117,7 +121,22 @@ if($method!='') $zweck = $_POST['zweck']; $von = $_POST['von']; $bis = $_POST['bis']; + $zgv = $_POST['zgv']; + $zgv_name = $_POST['zgv_name']; + $zgv_ort = $_POST['zgv_ort']; + $zgv_datum = $_POST['zgv_datum']; $aktiv = isset($_POST['aktiv']); + $zgvmaster = $_POST['zgv_master']; + $zgvmaster_name = $_POST['zgv_master_name']; + $zgvmaster_ort = $_POST['zgv_master_ort']; + $zgvmaster_datum = $_POST['zgv_master_datum']; + $studienbezeichnung = $_POST['studienbezeichnung']; + $bachelor = isset($_POST['bachelor']); + $master = isset($_POST['master']); + $jahre = $_POST['jahre']; + $firma_auswahl = ($_POST['firma']!= 'firma_auswahl' ? $_POST['firma']:''); + echo $firma_auswahl; + //Person $person = new person(); @@ -194,6 +213,19 @@ if($method!='') $inc->bis = $datum_obj->formatDatum($bis); $inc->updateamum = date('Y-m-d H:i:s'); $inc->updatevon = $user; + $inc->zgv = $zgv; + $inc->zgv_name = $zgv_name; + $inc->zgv_ort = $zgv_ort; + $inc->zgv_datum = $datum_obj->formatDatum($zgv_datum); + $inc->zgvmaster = $zgvmaster; + $inc->zgvmaster_name = $zgvmaster_name; + $inc->zgvmaster_ort = $zgvmaster_ort; + $inc->zgvmaster_datum = $datum_obj->formatDatum($zgvmaster_datum); + $inc->program_name = $studienbezeichnung; + $inc->master = $master; + $inc->bachelor = $bachelor; + $inc->jahre = $jahre; + $inc->firma_id = $firma_auswahl; $inc->new = false; if(!$inc->save()) @@ -447,6 +479,8 @@ echo ' | '; print_menu('Dokumente', 'dokumente'); echo ' | '; print_menu('Lehrveranstaltungen', 'lehrveranstaltungen'); +echo ' | '; +print_menu('Ansprechpersonen', 'ansprechpersonen'); echo '
'.$message.'
'; echo '
'; switch($action) @@ -460,6 +494,9 @@ switch($action) case 'lehrveranstaltungen': print_lehrveranstaltungen(); break; + case 'ansprechpersonen': + print_ansprechpersonen(); + break; default: break; } @@ -480,6 +517,146 @@ function print_menu($name, $value) echo ''.$name.''; } +/** + * Erstellt den Tab zur Anzeige der Ansprechpersonen + */ +function print_ansprechpersonen() +{ + global $inc, $preincoming_id; + if($inc->person_id_emergency != "") + { + $emergencyPerson = new person(); + $emergencyPerson->load($inc->person_id_emergency); + + $emergencyKontakt = new kontakt(); + $emergencyKontakt->load_pers($emergencyPerson->person_id); + $emTelefon = ""; + $emEmail = ""; + foreach ($emergencyKontakt->result as $emKontakt) + { + if($emKontakt->kontakttyp == "telefon") + $emTelefon = $emKontakt->kontakt; + + if($emKontakt->kontakttyp == "email") + $emEmail = $emKontakt->kontakt; + } + } + + if($inc->person_id_coordinator_dep != "") + { + $depPerson = new person(); + $depPerson->load($inc->person_id_coordinator_dep); + + $depKontakt = new kontakt(); + $depKontakt->load_pers($depPerson->person_id); + $depTelefon = ""; + $depEmail = ""; + $depFax =""; + foreach ($depKontakt->result as $depKontakt) + { + if($depKontakt->kontakttyp == "telefon") + $depTelefon = $depKontakt->kontakt; + + if($depKontakt->kontakttyp == "email") + $depEmail = $depKontakt->kontakt; + + if($depKontakt->kontakttyp == "fax") + $depFax = $depKontakt->kontakt; + } + } + + if($inc->person_id_coordinator_dep != "") + { + $intPerson = new person(); + $intPerson->load($inc->person_id_coordinator_int); + + $intKontakt = new kontakt(); + $intKontakt->load_pers($intPerson->person_id); + $intTelefon = ""; + $intEmail = ""; + $intFax =""; + foreach ($intKontakt->result as $intKontakt) + { + if($intKontakt->kontakttyp == "telefon") + $intTelefon = $depKontakt->kontakt; + + if($intKontakt->kontakttyp == "email") + $intEmail = $depKontakt->kontakt; + + if($intKontakt->kontakttyp == "fax") + $intFax = $depKontakt->kontakt; + } + } + + echo '
'; + echo ' + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Ansprechperson für den Ernstfall
Vorname: Nachname:
Telefon: E-Mail:
 
Department Koordinator
Vorname: Nachname:
Telefon: E-Mail:
Fax:
International Koordinator
Vorname: Nachname:
Telefon: E-Mail:
Fax:
'; + +} + + /** * Erstellt den Tab zur Anzeige der Personendetails */ @@ -497,6 +674,9 @@ function print_personendetails() if(isset($kontakt->result[0])) $kontakt = $kontakt->result[0]; + $firma = new firma(); + $firma->getFirmen('Partneruniversität'); + echo '
'; echo '
'; echo ''; @@ -563,17 +743,82 @@ function print_personendetails() - Universität - - - Aktiv - aktiv?'checked':'').'> + ZGV 1 + + + ZGV 1 Ort + + + ZGV 1 Institution + + + ZGV 1 Datum + + + + ZGV MSc + + + ZGV MSc Ort + + + + ZGV MSc Institution + + + ZGV MSc Datum + + + +   + + + + + + + Universität + + + Jahre + + + + + Universität Dropdown + + + + BSC + bachelor?'checked':'').'> + MSC + master?'checked':'').'> + + + + Aktiv + aktiv?'checked':'').'> + + + Mobilitätsprogramm