]> git.mjollnir.org Git - moodle.git/commitdiff
MDL-16263 - next bit. Flags on the quiz summary page.
authortjhunt <tjhunt>
Fri, 29 Aug 2008 11:40:58 +0000 (11:40 +0000)
committertjhunt <tjhunt>
Fri, 29 Aug 2008 11:40:58 +0000 (11:40 +0000)
mod/quiz/summary.php
theme/standard/styles_layout.css

index 0e375a124237a325b8153afd4fc9cee61bd72c56..eb3fe54f45ebc746f320cbb4408a144c4bda0041 100644 (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);
index c29cf6c6d9db06d9ca1626696d2f774c80510e6e..8b40414609c97aba8501fac8cf08970dc6d4599c 100644 (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;
 }