diff --git a/cis/testtool/admin/auswertung_detail.php b/cis/testtool/admin/auswertung_detail.php
index 775234670..2e6b9f0e9 100644
--- a/cis/testtool/admin/auswertung_detail.php
+++ b/cis/testtool/admin/auswertung_detail.php
@@ -147,7 +147,7 @@ if(isset($_GET['show']))
Level |
Frage |
Gesamt (m/w) |
- Nummer | Punkte | Gesamt | Männlich | Weiblich |
+ Nummer | Punkte | Gesamt | % | Männlich | Weiblich |
';
}
}
@@ -244,12 +244,20 @@ if(isset($_GET['show']))
$anz_m = $row_geschlecht->anz_m;
$anz_w = $row_vorschlag->anzahl_vorschlag-$row_geschlecht->anz_m;
+ if ($row_vorschlag->anzahl_gesamt == 0)
+ $anzahl_gesamt = 1;
+ else
+ $anzahl_gesamt = $row_vorschlag->anzahl_gesamt;
+
+ $vorschlag_prozent = round(100 * $row_vorschlag->anzahl_vorschlag / $anzahl_gesamt, 1);
+ $vorschlag_prozent = number_format($vorschlag_prozent,1,',','');
$hlp2.= '
'.$row_vorschlag->nummer.' |
'.number_format($row_vorschlag->punkte,2).' |
'.$row_vorschlag->anzahl_vorschlag.' |
+ '.$vorschlag_prozent.'% |
'.$anz_m.' |
'.$anz_w.' | ';
diff --git a/cis/testtool/admin/auswertung_detail_frage.php b/cis/testtool/admin/auswertung_detail_frage.php
index 0256d00eb..8471eabf4 100644
--- a/cis/testtool/admin/auswertung_detail_frage.php
+++ b/cis/testtool/admin/auswertung_detail_frage.php
@@ -58,6 +58,7 @@ if($frage_id!='' && is_numeric($frage_id))
tbl_frage_sprache.text as frage_text,
tbl_frage_sprache.audio as frage_audio,
tbl_frage_sprache.bild as frage_bild,
+ tbl_vorschlag.nummer as vorschlag_nummer,
tbl_vorschlag_sprache.text as vorschlag_text,
tbl_vorschlag_sprache.audio as vorschlag_audio,
tbl_vorschlag_sprache.bild as vorschlag_bild,
@@ -108,9 +109,11 @@ if($frage_id!='' && is_numeric($frage_id))
}
//Vorschlaege
+ echo 'Nummer: '.$row->vorschlag_nummer.'
';
echo '';
//echo "Vorschlag $i: ";
$first=false;
+
echo $row->vorschlag_text;
if($row->vorschlag_audio!='')
{