diff --git a/mod/quiz/report/grading/report.php b/mod/quiz/report/grading/report.php index 4232ecc1fd6..2f73e0a1a97 100644 --- a/mod/quiz/report/grading/report.php +++ b/mod/quiz/report/grading/report.php @@ -266,7 +266,7 @@ class quiz_grading_report extends quiz_default_report { } protected function display_index($includeauto) { - global $OUTPUT; + global $OUTPUT, $PAGE; if ($groupmode = groups_get_activity_groupmode($this->cm)) { // Groups is being used. @@ -297,6 +297,8 @@ class quiz_grading_report extends quiz_default_report { $row[] = $this->questions[$counts->slot]->number; + $row[] = $PAGE->get_renderer('question', 'bank')->qtype_icon($this->questions[$counts->slot]->type); + $row[] = format_string($counts->name); $row[] = $this->format_count_for_table($counts, 'needsgrading', 'grade'); @@ -322,6 +324,7 @@ class quiz_grading_report extends quiz_default_report { $table->id = 'questionstograde'; $table->head[] = get_string('qno', 'quiz_grading'); + $table->head[] = get_string('qtypeveryshort', 'question'); $table->head[] = get_string('questionname', 'quiz_grading'); $table->head[] = get_string('tograde', 'quiz_grading'); $table->head[] = get_string('alreadygraded', 'quiz_grading'); diff --git a/mod/quiz/report/reportlib.php b/mod/quiz/report/reportlib.php index 30f8261beef..7d585b841ef 100644 --- a/mod/quiz/report/reportlib.php +++ b/mod/quiz/report/reportlib.php @@ -98,6 +98,7 @@ function quiz_report_get_significant_questions($quiz) { $qsbyslot = $DB->get_records_sql(" SELECT slot.slot, q.id, + q.qtype, q.length, slot.maxmark @@ -113,6 +114,7 @@ function quiz_report_get_significant_questions($quiz) { foreach ($qsbyslot as $question) { $question->number = $number; $number += $question->length; + $question->type = $question->qtype; } return $qsbyslot;