mirror of
https://github.com/moodle/moodle.git
synced 2025-01-19 14:27:22 +01:00
TITLEs have all tags stripped ...
Downloads have a row of percentages
This commit is contained in:
parent
ffda99808a
commit
a4634d830d
@ -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;
|
||||
@ -151,6 +159,14 @@ class quiz_report extends quiz_default_report {
|
||||
}
|
||||
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 "<tr>";
|
||||
echo "<td> </td>";
|
||||
for ($i=1; $i<=$count; $i++) {
|
||||
echo "<th title=\"".$question[$i]->questiontext."\">$i</th>";
|
||||
echo "<th title=\"".strip_tags($question[$i]->questiontext)."\">$i</th>";
|
||||
}
|
||||
echo "</tr>";
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user