mirror of
https://github.com/moodle/moodle.git
synced 2025-08-05 08:56:36 +02:00
Minor bug fixes.
This commit is contained in:
parent
1aea04dcbf
commit
8033d8423f
1 changed files with 5 additions and 9 deletions
|
@ -285,6 +285,7 @@ class quiz_grading_report extends quiz_default_report {
|
|||
|
||||
// get the attempts and process them
|
||||
if ($attempts = $DB->get_records_sql($select.$from.$where.$sort, $params, $table->get_page_start(), $table->get_page_size())) {
|
||||
echo '<div id="tablecontainer">';
|
||||
// grade all link
|
||||
$links = "<strong><a href=\"report.php?mode=grading&gradeall=1&q=$quiz->id&questionid=$question->id\">".get_string('gradeall', 'quiz_grading', $totalattempts).'</a></strong>';
|
||||
if ($ungraded>0){
|
||||
|
@ -320,7 +321,6 @@ class quiz_grading_report extends quiz_default_report {
|
|||
$table->add_separator();
|
||||
$table->add_data_keyed(array('grade'=> $links));
|
||||
// print everything here
|
||||
echo '<div id="tablecontainer">';
|
||||
$table->print_html();
|
||||
echo '</div>';
|
||||
} else {
|
||||
|
@ -339,7 +339,7 @@ class quiz_grading_report extends quiz_default_report {
|
|||
global $CFG, $DB;
|
||||
|
||||
// TODO get the context, and put in proper roles an permissions checks.
|
||||
$context = NULL;
|
||||
$context = get_context_instance(CONTEXT_MODULE, $this->cm->id);
|
||||
|
||||
$questions[$question->id] = &$question;
|
||||
$usehtmleditor = can_use_html_editor();
|
||||
|
@ -417,10 +417,6 @@ class quiz_grading_report extends quiz_default_report {
|
|||
}
|
||||
echo '<div class="boxaligncenter"><input type="submit" value="'.get_string('savechanges').'" /></div>'.
|
||||
'</form>';
|
||||
|
||||
if ($usehtmleditor) {
|
||||
use_html_editor();
|
||||
}
|
||||
} else {
|
||||
notify(get_string('noattemptstoshow', 'quiz'));
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue