diff --git a/content/statistik/abgaengerstatistik.php b/content/statistik/abgaengerstatistik.php index 88a40664f..b20641ec0 100644 --- a/content/statistik/abgaengerstatistik.php +++ b/content/statistik/abgaengerstatistik.php @@ -142,8 +142,8 @@ if($stsem!='') studiengang_kz>0 AND studiengang_kz<10000 AND aktiv $stgwhere ORDER BY kurzbzlang; "; if($db->db_query($qry)) - { - echo " + { ?> +
@@ -170,28 +170,27 @@ if($stsem!='') - "; - while($row = $db->db_fetch_object()) - { - echo ''; - echo ""; - echo ""; - echo ""; - echo ""; - echo ""; - echo ""; - echo ""; - echo ""; - echo ""; - echo ""; - echo ""; - echo ""; - echo ""; - echo ""; - } - echo '
".strtoupper($row->typ.$row->kurzbz)." ($row->kurzbzlang)$row->abgewiesene_maennlich$row->abgewiesene_weiblich$row->abgewiesene$row->abbrecher_maennlich$row->abbrecher_weiblich$row->abbrecher$row->unterbrecher_maennlich$row->unterbrecher_weiblich$row->unterbrecher$row->absolvent_maennlich$row->absolvent_weiblich$row->absolvent
'; - } + db_fetch_object()) + { ?> + + typ.$row->kurzbz)?> (kurzbzlang ?>) + abgewiesene_maennlich ?> + abgewiesene_weiblich ?> + abgewiesene ?> + abbrecher_maennlich ?> + abbrecher_weiblich ?> + abbrecher ?> + unterbrecher_maennlich ?> + unterbrecher_weiblich ?> + unterbrecher ?> + absolvent_maennlich ?> + absolvent_weiblich ?> + absolvent ?> + + + + diff --git a/include/statistik.class.php b/include/statistik.class.php index 94d0cfe78..81a5e2b7f 100644 --- a/include/statistik.class.php +++ b/include/statistik.class.php @@ -525,18 +525,15 @@ class statistik extends basis_db { $this->html.= ''; $anzahl_spalten = $this->db_num_fields($this->data); + for($spalte=0;$spalte<$anzahl_spalten;$spalte++) { $name = $this->db_field_name($this->data,$spalte); $this->html.= ''.$row->$name.''; $this->csv.= '"'.$row->$name.'",'; - - if($spalte>0) - { - $name_spalte_0 = $this->db_field_name($this->data,0); - $this->json[$row->$name_spalte_0][$name]=$row->$name; - } - } + } + + $this->json[] = $row; $this->html.= ''; $this->csv=substr($this->csv,0,-1)."\n"; } @@ -590,4 +587,3 @@ function parseVars($value) return array_unique($result); } } -?>