diff --git a/include/statistik.class.php b/include/statistik.class.php
index fd48e7d28..364c6d1a0 100644
--- a/include/statistik.class.php
+++ b/include/statistik.class.php
@@ -513,6 +513,7 @@ class statistik extends basis_db
$this->json=array();
$this->countRows=0;
set_time_limit(600);
+ $parseHtml = (strpos($this->preferences, 'parseHTML: true') !== false);
// In case a decryption function is used then perform password substitution
$this->sql = $this->replaceSQLDecryptionPassword($this->sql);
@@ -565,7 +566,13 @@ class statistik extends basis_db
for($spalte=0;$spalte<$anzahl_spalten;$spalte++)
{
$name = $this->db_field_name($this->data,$spalte);
- $this->html.= '
'.$this->convert_html_chars($row->$name).' | ';
+ if ($parseHtml) {
+ // HTML direkt rendern
+ $this->html .= ''.($row->$name).' | ';
+ } else {
+ // wie bisher escapen
+ $this->html .= ''.$this->convert_html_chars($row->$name).' | ';
+ }
// Umwandeln von Punkt in Komma bei Float-Werten
if (is_numeric($row->$name))
{
diff --git a/vilesci/bis/lehrgangsmeldung.php b/vilesci/bis/lehrgangsmeldung.php
index dd7597689..f16dafc91 100644
--- a/vilesci/bis/lehrgangsmeldung.php
+++ b/vilesci/bis/lehrgangsmeldung.php
@@ -390,30 +390,34 @@ if($result = $db->db_query($qry))
$error_log.=(!empty($error_log)?', ':'')."Matrikelnummer ('".trim($row->matr_nr)."') ist nicht 8 Zeichen lang";
}
//SVNR mu߸ 10-stellig sein
+ /* Alle SVNR Checks entfernt
if($row->svnr!='' && $row->svnr!=null && mb_strlen(trim($row->svnr))!=10)
{
$error_log.=(!empty($error_log)?', ':'')."SVNR ('".trim($row->svnr)."') ist nicht 10 Zeichen lang";
- }
+ }*/
//Ersatzkennzeichen muß 10-stellig sein
if($row->ersatzkennzeichen!='' && $row->ersatzkennzeichen!=null && mb_strlen(trim($row->ersatzkennzeichen))!=10)
{
$error_log.=(!empty($error_log)?', ':'')."Ersatzkennzeichen ('".trim($row->ersatzkennzeichen)."') ist nicht 10 Zeichen lang";
}
+
//Vergleich der letzten 6 Stellen der SVNR mit Geburtsdatum - ausser bei 01.01. und 01.07.
+ /* Alle SVNR Checks entfernt
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_hinweis.=(!empty($error_log_hinweis)?', ':'')."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)
{
$error_log.=(!empty($error_log)?', ':'')."Ersatzkennzeichen ('".$row->ersatzkennzeichen."') enthält Geburtsdatum (".$row->gebdatum.") nicht";
}
// Wenn SVNR fehlt, darf Ersatzkennzeichen nicht fehlen (und umgekehrt)
+ /* Alle SVNR Checks entfernt
if(($row->svnr=='' || $row->svnr==null)&&($row->ersatzkennzeichen=='' || $row->ersatzkennzeichen==null))
{
$error_log.=(!empty($error_log)?', ':'')."SVNR ('".$row->svnr."') bzw. ErsKz ('".$row->ersatzkennzeichen."') fehlt";
- }
+ }*/
if($row->staatsbuergerschaft=='' || $row->staatsbuergerschaft==null)
{
$error_log.=(!empty($error_log)?', ':'')."Staatsbürgerschaft ('".$row->staatsbuergerschaft."')";
@@ -714,7 +718,7 @@ if($result = $db->db_query($qry))
$qry_ap="SELECT * FROM lehre.tbl_abschlusspruefung WHERE student_uid=".$db->db_add_param($row->student_uid)." AND abschlussbeurteilung_kurzbz!='nicht' AND abschlussbeurteilung_kurzbz IS NOT NULL";
if($result_ap = $db->db_query($qry_ap))
{
- $ap=0;
+ $ap = array();
while($row_ap = $db->db_fetch_object($result_ap))
{
if($row_ap->datum=='' || $row_ap->datum==null)
@@ -725,12 +729,19 @@ if($result = $db->db_query($qry))
{
$error_log.=(!empty($error_log)?', ':'')."Datum der Sponsion ('".$row_ap->sponsion."')";
}
- $ap++;
+ if (!isset($ap[$row_ap->pruefungstyp_kurzbz]))
+ {
+ $ap[$row_ap->pruefungstyp_kurzbz] = 0;
+ }
+ $ap[$row_ap->pruefungstyp_kurzbz]++;
$sponsion=$row_ap->sponsion;
}
- if($ap!=1)
+ foreach ($ap as $typ => $count)
{
- $error_log.=(!empty($error_log)?', ':'').$ap." bestandene Abschlussprüfungen";
+ if ($count > 1)
+ {
+ $error_log.=(!empty($error_log)?', ':'').$count." bestandene Abschlussprüfungen desselben Typs";
+ }
}
}
}
@@ -815,13 +826,16 @@ if($result = $db->db_query($qry))
".$row->vorname."
".$row->nachname."";
+ /* Alle SVNR Checks entfernt
if($row->svnr!='')
{
$datei.="
".$row->svnr."";
- }
+ }*/
// Ersatzkennzeichen nur inkludieren wenn svnr nicht gesetzt
- if($row->ersatzkennzeichen!='' && $row->svnr == null)
+ // Alle SVNR Checks entfernt
+ // if($row->ersatzkennzeichen!='' && $row->svnr == null)
+ if($row->ersatzkennzeichen!='')
{
$datei.="
".$row->ersatzkennzeichen."";
diff --git a/vilesci/bis/studentenmeldung.php b/vilesci/bis/studentenmeldung.php
index 8c7e31d36..7e06726ec 100644
--- a/vilesci/bis/studentenmeldung.php
+++ b/vilesci/bis/studentenmeldung.php
@@ -930,26 +930,29 @@ function GenerateXMLStudentBlock($row)
{
$error_log.=(!empty($error_log)?', ':'')."Matrikelnummer ('".trim($row->matr_nr)."') ist nicht 8 Zeichen lang";
}
+ /* Alle SVNR Checks entfernt
if($row->svnr!='' && $row->svnr!=null && mb_strlen(trim($row->svnr))!=10)
{
$error_log.=(!empty($error_log)?', ':'')."SVNR ('".trim($row->svnr)."') ist nicht 10 Zeichen lang";
- }
+ }*/
if($row->ersatzkennzeichen!='' && $row->ersatzkennzeichen!=null && mb_strlen(trim($row->ersatzkennzeichen))!=10)
{
$error_log.=(!empty($error_log)?', ':'')."Ersatzkennzeichen ('".trim($row->ersatzkennzeichen)."') ist nicht 10 Zeichen lang";
}
+ /* Alle SVNR Checks entfernt
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_hinweis.=(!empty($error_log_hinweis)?', ':'')."SVNR ('".$row->svnr."') enthält Geburtsdatum (".$datum_obj->formatDatum($row->gebdatum,'d.m.Y').") nicht (Nicht BIS-Relevant)";
- }
+ }*/
if($row->ersatzkennzeichen!='' && $row->ersatzkennzeichen!=null && substr($row->ersatzkennzeichen,4,6)!=$row->vdat)
{
$error_log.=(!empty($error_log)?', ':'')."Ersatzkennzeichen ('".$row->ersatzkennzeichen."') enthält Geburtsdatum (".$datum_obj->formatDatum($row->gebdatum,'d.m.Y').") nicht";
}
+ /* Alle SVNR Checks entfernt
if(($row->svnr=='' || $row->svnr==null)&&($row->ersatzkennzeichen=='' || $row->ersatzkennzeichen==null))
{
$error_log.=(!empty($error_log)?', ':'')."SVNR ('".$row->svnr."') bzw. ErsKz ('".$row->ersatzkennzeichen."') fehlt";
- }
+ }*/
if($row->staatsbuergerschaft=='' || $row->staatsbuergerschaft==null)
{
$error_log.=(!empty($error_log)?', ':'')."Staatsbürgerschaft ('".$row->staatsbuergerschaft."')";
@@ -1510,14 +1513,17 @@ function GenerateXMLStudentBlock($row)
" . $row->vorname . "
" . $row->nachname . "";
+ /* Alle SVNR Checks entfernt
if ($row->svnr != '')
{
$datei .= "
" . $row->svnr . "";
- }
+ }*/
// Ersatzkennzeichen nur inkludieren wenn svnr nicht gesetzt
- if ($row->ersatzkennzeichen != '' && $row->svnr == null)
+ // Alle SVNR Checks entfernt
+ // if ($row->ersatzkennzeichen != '' && $row->svnr == null)
+ if ($row->ersatzkennzeichen != '')
{
$datei .= "
" . $row->ersatzkennzeichen . "";