Wenn Studierende mehrere Auslandssemester im Meldezeitraum haben, dann wird beim Outgoing Status die Anzahl der Auslandssemester angezeigt

This commit is contained in:
oesi
2016-11-08 15:32:16 +01:00
parent 36fc09b48b
commit 6765f4d1e3
+9 -4
View File
@@ -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.="