mirror of
https://github.com/moodle/moodle.git
synced 2025-02-13 12:34:28 +01:00
MDL-16653 "Adding colour highlighting of correct / incorrect / partially correct answers and tick / cross marks to overview report"
This commit is contained in:
parent
c849ed1e1e
commit
1c88737ffa
@ -226,10 +226,21 @@ class quiz_report_overview_table extends table_sql {
|
||||
$grade = '<del>'.$oldgrade.'</del><br />'.
|
||||
$newgrade;
|
||||
}
|
||||
return link_to_popup_window('/mod/quiz/reviewquestion.php?attempt=' .
|
||||
$linktopopup = link_to_popup_window('/mod/quiz/reviewquestion.php?attempt=' .
|
||||
$attempt->attempt . '&question=' . $question->id,
|
||||
'reviewquestion', $grade, 450, 650, get_string('reviewresponse', 'quiz'),
|
||||
'none', true);
|
||||
if (($this->questions[$questionid]->maxgrade != 0)){
|
||||
$fractionofgrade = $stateforqinattempt->grade
|
||||
/ $this->questions[$questionid]->maxgrade;
|
||||
$qclass = question_get_feedback_class($fractionofgrade);
|
||||
$feedbackimg = question_get_feedback_image($fractionofgrade);
|
||||
$questionclass = "que";
|
||||
return "<span class=\"$questionclass\"><span class=\"$qclass\">".$linktopopup."</span></span>$feedbackimg";
|
||||
} else {
|
||||
return $linktopopup;
|
||||
}
|
||||
|
||||
} else {
|
||||
return $grade;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user