diff --git a/vilesci/bis/lehrgangsmeldung.php b/vilesci/bis/lehrgangsmeldung.php index b9d6a2526..8649c2a5b 100644 --- a/vilesci/bis/lehrgangsmeldung.php +++ b/vilesci/bis/lehrgangsmeldung.php @@ -38,6 +38,7 @@ if(!$rechte->isBerechtigt('student/stammdaten', null, 'suid')) die('Sie haben keine Berechtigung für diese Seite'); $error_log=''; +$error_log_hinweis=''; $error_log1=''; $error_log_all=""; $fehler=''; @@ -310,7 +311,7 @@ if($result = $db->db_query($qry)) //Vergleich der letzten 6 Stellen der SVNR mit Geburtsdatum - ausser bei 01.01. und 01.07. if($row->svnr!='' && $row->svnr!=null && substr($row->svnr,4,6)!=$row->vdat && substr($row->vdat,0,4)!='0101' && substr($row->vdat,0,4)!='0107') { - $error_log.=(!empty($error_log)?', ':'')."SVNR ('".$row->svnr."') enthält Geburtsdatum (".$row->gebdatum.") nicht"; + $error_log_hinweis.=(!empty($error_log)?', ':'')."SVNR ('".$row->svnr."') enthält Geburtsdatum (".$row->gebdatum.") nicht"; } //Vergleich der letzten 6 Stellen des Ersatzkennzeichen mit Geburtsdatum if($row->ersatzkennzeichen!='' && $row->ersatzkennzeichen!=null && substr($row->ersatzkennzeichen,4,6)!=$row->vdat) @@ -387,7 +388,7 @@ if($result = $db->db_query($qry)) } } } - /*if($row->bpk == '' || $row->bpk == null) + if($row->bpk == '' || $row->bpk == null) { $error_log .= (!empty($error_log) ? ', ' : '') . "bPK fehlt"; } @@ -403,7 +404,7 @@ if($result = $db->db_query($qry)) { $error_log.=(!empty($error_log) ? ', ' : ''). "bPK ist nicht 28 Zeichen lang"; } - }*/ + } if ($zustell_plz == '' || $zustell_plz == null) { @@ -482,6 +483,7 @@ if($result = $db->db_query($qry)) { $error_log=''; $error_log1=''; + $error_log_hinweis=''; continue; } $aktstatus=$rowstatus->status_kurzbz; @@ -528,6 +530,7 @@ if($result = $db->db_query($qry)) { $error_log=''; $error_log1=''; + $error_log_hinweis=''; continue; } $aktstatus=$rowstatus->status_kurzbz; @@ -588,6 +591,11 @@ if($result = $db->db_query($qry)) { $v.="     ".$error_log1; } + if($error_log_hinweis != '') + { + $v.="     ".$error_log_hinweis." (Nicht BIS-Relevant)\n"; + $error_log_hinweis = ''; + } $zaehl++; $v.="\n"; $error_log=''; @@ -596,6 +604,13 @@ if($result = $db->db_query($qry)) } else { + if($error_log_hinweis != '') + { + $v.="Bei Student (UID, Vorname, Nachname) '".$row->student_uid."', '".$row->nachname."', '".$row->vorname."' ($laststatus->status_kurzbz): \n"; + $v.="     ".$error_log_hinweis." (Nicht BIS-Relevant)\n"; + $error_log_hinweis = ''; + } + $anzahl_gemeldet++; $tabelle.=''.$row->student_uid.''.$row->nachname.''.$row->vorname.''.$row->matrikelnr.''; @@ -635,9 +650,9 @@ if($result = $db->db_query($qry)) ".$row->ersatzkennzeichen.""; } - /*$datei.=" + $datei.=" ".$row->bpk." - ";*/ + "; $datei.=" ".$row->staatsbuergerschaft." diff --git a/vilesci/bis/studentenmeldung.php b/vilesci/bis/studentenmeldung.php index 73f9098e2..ff59fd77b 100644 --- a/vilesci/bis/studentenmeldung.php +++ b/vilesci/bis/studentenmeldung.php @@ -428,6 +428,10 @@ if ($rechte->isBerechtigt('admin')) $typ = ''; foreach ($studiengang->result AS $row) { + if ($row->typ != 'b' && $row->typ != 'm' && $row->typ != 'd' && $row->typ != 'e') + { + continue; + } if ($row->studiengang_kz == $stg_kz) { $selected = 'selected';