From 6765f4d1e3525968529fd0417165efd19787fb9b Mon Sep 17 00:00:00 2001 From: oesi Date: Tue, 8 Nov 2016 15:32:16 +0100 Subject: [PATCH] Wenn Studierende mehrere Auslandssemester im Meldezeitraum haben, dann wird beim Outgoing Status die Anzahl der Auslandssemester angezeigt --- vilesci/bis/studentenmeldung.php | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/vilesci/bis/studentenmeldung.php b/vilesci/bis/studentenmeldung.php index 33883a46d..17e3005a2 100644 --- a/vilesci/bis/studentenmeldung.php +++ b/vilesci/bis/studentenmeldung.php @@ -1060,7 +1060,7 @@ function GenerateXMLStudentBlock($row) $qryio="SELECT * FROM bis.tbl_bisio WHERE student_uid=".$db->db_add_param($row->student_uid)." AND (von>".$db->db_add_param($bisprevious)." OR bis IS NULL OR bis>".$db->db_add_param($bisprevious).") AND von<=".$db->db_add_param($bisdatum).";"; - $is_a_outgoing=false; + $outgoing_count=0; if($resultio = $db->db_query($qryio)) { while($rowio = $db->db_fetch_object($resultio)) @@ -1091,7 +1091,7 @@ function GenerateXMLStudentBlock($row) $iosem[$storgform][$sem]=0; } $iosem[$storgform][$sem]++; - $is_a_outgoing=true; + $outgoing_count++; } else { @@ -1148,8 +1148,13 @@ function GenerateXMLStudentBlock($row) $status = $gsstatus; else $status = $aktstatus; - if($is_a_outgoing) - $status .= ' (Outgoing)'; + if($outgoing_count>0) + { + $status .= ' ( Outgoing '; + if($outgoing_count>1) + $status.= $outgoing_count.'x'; + $status .= ')'; + } //Studentenliste $stlist.="