quiz reports: MDL-19205 Improved tooltips on individual question grades.
This commit is contained in:
@@ -640,6 +640,7 @@ $string['reviewopen'] = 'Later, while the quiz is still open';
|
||||
$string['reviewoptions'] = 'Students may review';
|
||||
$string['reviewoptionsheading'] = 'Review options';
|
||||
$string['reviewresponse'] = 'Review response';
|
||||
$string['reviewresponsetoq'] = 'Review response (question $a)';
|
||||
$string['reviewthisattempt'] = 'Review your responses to this attempt';
|
||||
$string['rqp'] = 'Remote Question';
|
||||
$string['rqps'] = 'Remote Questions';
|
||||
|
||||
@@ -228,7 +228,8 @@ class quiz_report_overview_table extends table_sql {
|
||||
}
|
||||
$linktopopup = link_to_popup_window('/mod/quiz/reviewquestion.php?attempt=' .
|
||||
$attempt->attempt . '&question=' . $question->id,
|
||||
'reviewquestion', $grade, 450, 650, get_string('reviewresponse', 'quiz'),
|
||||
'reviewquestion', $grade, 450, 650,
|
||||
get_string('reviewresponsetoq', 'quiz', $question->formattedname),
|
||||
'none', true);
|
||||
if (($this->questions[$questionid]->maxgrade != 0)){
|
||||
$fractionofgrade = $stateforqinattempt->grade
|
||||
|
||||
@@ -357,7 +357,8 @@ class quiz_overview_report extends quiz_default_report {
|
||||
}
|
||||
$header .='--/'.quiz_rescale_grade($question->maxgrade, $quiz, 'question');
|
||||
$headers[] = $header;
|
||||
}
|
||||
$question->formattedname = strip_tags(format_string($question->name));
|
||||
}
|
||||
}
|
||||
if (!$table->is_downloading() && has_capability('mod/quiz:regrade', $this->context) && $regradedattempts){
|
||||
$columns[] = 'regraded';
|
||||
|
||||
@@ -292,6 +292,7 @@ class quiz_responses_report extends quiz_default_report {
|
||||
// Ignore questions of zero length
|
||||
$columns[] = 'qsanswer'.$id;
|
||||
$headers[] = '#'.$question->number;
|
||||
$question->formattedname = strip_tags(format_string($question->name));
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -165,7 +165,8 @@ class quiz_report_responses_table extends table_sql {
|
||||
if ($summary){
|
||||
$summary = link_to_popup_window('/mod/quiz/reviewquestion.php?attempt=' .
|
||||
$attempt->attempt . '&question=' . $question->id,
|
||||
'reviewquestion', $summary, 450, 650, get_string('reviewresponse', 'quiz'),
|
||||
'reviewquestion', $summary, 450, 650,
|
||||
get_string('reviewresponsetoq', 'quiz', $question->formattedname),
|
||||
'none', true);
|
||||
if (question_state_is_graded($stateforqinattempt)
|
||||
&& ($question->maxgrade > 0)){
|
||||
|
||||
Reference in New Issue
Block a user