diff --git a/cis/public/incoming/incoming.php b/cis/public/incoming/incoming.php index 2ac0b2b8c..1b3840607 100644 --- a/cis/public/incoming/incoming.php +++ b/cis/public/incoming/incoming.php @@ -46,7 +46,7 @@ $method =""; $breadcrumb = ""; if(isset($_GET['method'])) { - $method = $_GET['method']; + $method = htmlspecialchars($_GET['method']); $breadcrumb = "> ".ucfirst($method); } @@ -98,7 +98,7 @@ $firma->getFirmen('Partneruniversität'); - '; echo ''; echo ''; echo ''; } @@ -344,8 +344,8 @@ else if($method=="lehrveranstaltungen") echo ''; echo ''; echo ''; echo ''; echo ''; @@ -428,12 +428,15 @@ else if ($method == "university") else if ($_REQUEST['dep_coordinator_id'] != "" && $_REQUEST['nachname_coordinator'] == "" && $_REQUEST['vorname_coordinator'] == "") { // löscht die Department Coordinator Person + $preincoming->person_id_coordinator_dep = ""; + if(!$preincoming->save()) + die($preincoming->errormsg); + if(!$depCoordinator->delete($_REQUEST['dep_coordinator_id'])) { - echo $depCoordinator->errormsg; - die($p->t('global/fehleraufgetreten')); - } - + echo $depCoordinator->errormsg; + die($p->t('global/fehleraufgetreten')); + } } else if($_REQUEST['dep_coordinator_id'] != "") { @@ -473,7 +476,7 @@ else if ($method == "university") // lösche Email-Kontakt if(!$kontakt->delete($_REQUEST['dep_coordinator_emailId'])) { - die("$kontakt->errormsg"); + die($kontakt->errormsg); } } else if($_REQUEST['dep_coordinator_emailId']!= "") @@ -586,6 +589,19 @@ else if ($method == "university") $preincoming->person_id_coordinator_int = $intCoordinator->person_id; $preincoming->save(); } + else if ($_REQUEST['int_coordinator_id'] != "" && $_REQUEST['nachname_intcoordinator'] == "" && $_REQUEST['vorname_intcoordinator'] == "") + { + // löscht die Department Coordinator Person + $preincoming->person_id_coordinator_int = ""; + if(!$preincoming->save()) + echo $preincoming->errormsg; + if(!$intCoordinator->delete($_REQUEST['int_coordinator_id'])) + { + echo $intCoordinator->errormsg; + die($p->t('global/fehleraufgetreten')); + } + + } else if($_REQUEST['int_coordinator_id'] != "") { // Person updaten @@ -727,7 +743,7 @@ else if ($method == "university") // Department Coordinator Kontakt $depCoordinatorKontakt = new kontakt(); - $depCoordinatorKontakt->load_pers($depCoordinator->person_id); + $depCoordinatorKontakt->load_pers($preincoming->person_id_coordinator_dep); $depTelefon = ""; $depTelefonId = ""; $depFax = ""; @@ -781,6 +797,18 @@ else if ($method == "university") } } + // Wenn die Person gerade gelöscht wurde zeige sie nicht mehr an + if($preincoming->person_id_coordinator_dep == "") + { + $depCoordinator->vorname = ""; + $depCoordinator->nachname =""; + } + if($preincoming->person_id_coordinator_int == "") + { + $intCoordinator->vorname = ""; + $intCoordinator->nachname = ""; + } + echo '
Administration titelpost." ".$person->vorname." ".$person->nachname." ".$person->titelpre?> + titelpre." ".$person->vorname." ".$person->nachname." ".$person->titelpost?> t("global/sprache")." "; echo ''.$p->t("global/englisch").' | @@ -245,8 +245,8 @@ else if($method=="lehrveranstaltungen") echo '',$lehrveranstaltung->bezeichnung,'',$lehrveranstaltung->bezeichnung_english,' - Deutsch  - Englisch + Deutsch  + Englisch
',$row->bezeichnung,'',$row->bezeichnung_english,' - Deutsch  - Englisch + Deutsch  + Englisch ',$freieplaetze,'
@@ -931,6 +959,10 @@ else if ($method == "profil") else if ($_REQUEST['emergency_name_id'] != "" && $_REQUEST['emergency_nachname'] == "" && $_REQUEST['emergency_vorname'] == "") { // löscht die Person + $preincoming->person_id_emergency = ""; + if(!$preincoming->save()) + die($p->t('global/fehleraufgetreten')); + if(!$emergencyPerson->delete($_REQUEST['emergency_name_id'])) { echo $emergencyPerson->errormsg; @@ -956,7 +988,7 @@ else if ($method == "profil") { { // Neu anlegen - $emkontakt->person_id = $_REQUEST['emergency_name_id']; + $emkontakt->person_id = $emergencyPerson->person_id; $emkontakt->kontakttyp = "email"; $emkontakt->kontakt = $_REQUEST['emergency_email']; $emkontakt->new = true; @@ -996,7 +1028,7 @@ else if ($method == "profil") { { // Neu anlegen - $emkontakt->person_id = $_REQUEST['emergency_name_id']; + $emkontakt->person_id = $emergencyPerson->person_id; $emkontakt->kontakttyp = "telefon"; $emkontakt->kontakt = $_REQUEST['emergency_telefon']; $emkontakt->new = true; @@ -1123,8 +1155,8 @@ else if ($method == "profil") - - + + @@ -1141,8 +1173,8 @@ else if ($method == "profil") - - + + @@ -1315,7 +1347,7 @@ echo '
'.$p->t('global/titel').' Post'.$p->t('global/titel').' Pre '.$p->t('incoming/zugangsvoraussetzung').'
'.$p->t('global/titel').' Pre'.$p->t('global/titel').' Post '.$p->t('incoming/abgelegtam').'