From: moodler Date: Thu, 4 Sep 2003 15:52:56 +0000 (+0000) Subject: TITLEs have all tags stripped ... X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=a4634d830d82eb00dafdc03680ee29f6e6e2cefc;p=moodle.git TITLEs have all tags stripped ... Downloads have a row of percentages --- diff --git a/mod/quiz/report/simplestat/report.php b/mod/quiz/report/simplestat/report.php index b7fbdb366e..be287b56ec 100644 --- a/mod/quiz/report/simplestat/report.php +++ b/mod/quiz/report/simplestat/report.php @@ -102,14 +102,22 @@ class quiz_report extends quiz_default_report { $row++; } - $myxls->ChangePos($row,0); - /// Print all the averages + $myxls->ChangePos($row,0); $myxls->InsertText(""); for ($i=1; $i<=$count; $i++) { $myxls->InsertNumber($average[$i]); } + /// Print all the averages as percentages + $row++; + $myxls->ChangePos($row,0); + $myxls->InsertText("%"); + for ($i=1; $i<=$count; $i++) { + $percent = format_float($average[$i] * 100); + $myxls->InsertText("$percent%"); + } + $myxls->SendFileName("$course->shortname $quiz->name"); exit; @@ -150,6 +158,14 @@ class quiz_report extends quiz_default_report { echo "\t".$average[$i]; } echo "\n"; + + /// Print all the averages as percentages + echo "\t%"; + for ($i=1; $i<=$count; $i++) { + $percent = format_float($average[$i] * 100); + echo "\t$percent"; + } + echo "\n"; exit; } @@ -164,7 +180,7 @@ class quiz_report extends quiz_default_report { echo ""; echo " "; for ($i=1; $i<=$count; $i++) { - echo "questiontext."\">$i"; + echo "questiontext)."\">$i"; } echo "";