MDL-16263 - next bit. Flags on the quiz summary page.

This commit is contained in:
tjhunt
2008-08-29 11:40:58 +00:00
parent 94eebf576e
commit e41a7d2841
2 changed files with 11 additions and 2 deletions
+6 -1
View File
@@ -86,7 +86,12 @@ foreach ($attemptobj->get_question_iterator() as $number => $question) {
if ($question->length == 0) {
continue;
}
$row = array('<a href="' . $attemptobj->attempt_url($question->id) . '">' . $number . '</a>',
$flag = '';
if ($attemptobj->is_question_flagged($question->id)) {
$flag = ' <img src="' . $CFG->pixpath . '/i/flagged.png" alt="' .
get_string('flagged', 'question') . '" class="questionflag" />';
}
$row = array('<a href="' . $attemptobj->attempt_url($question->id) . '">' . $number . $flag . '</a>',
get_string($attemptobj->get_question_status($question->id), 'quiz'));
if ($scorescolumn) {
$row[] = $attemptobj->get_question_score($question->id);
+5 -1
View File
@@ -3923,7 +3923,11 @@ body#mod-forum-search .introcontent {
#mod-quiz-summary .submitbtns {
margin-top: 1.5em;
}
#mod-quiz-summary .questionflag {
width: 16px;
height: 16px;
vertical-align: middle;
}
#mod-quiz-attempt #quiz-timer {
display: none;
}