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);
#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;
}