instance->pagetype != 'mod-quiz-view') { ?>
|
instance->pageid, '', 'id, name');
if(empty($quizzes)) {
echo ''.get_string('config_no_quizzes_in_course', 'block_quiz_results').'';
echo '';
}
else {
$options = array();
foreach($quizzes as $quiz) {
$options[$quiz->id] = $quiz->name;
}
choose_from_menu($options, 'quizid', empty($this->config->quizid) ? 0 : $this->config->quizid);
}
?>
|
instance->pagetype != PAGE_QUIZ_VIEW) ?>
|
|
|
|
|
config->usegroups)) echo 'checked="checked"'; ?> value="1" />
config->usegroups)) echo 'checked="checked"'; ?> value="0" />
|
|
get_string('config_names_full', 'block_quiz_results'), B_QUIZRESULTS_NAME_FORMAT_ID => get_string('config_names_id', 'block_quiz_results'), B_QUIZRESULTS_NAME_FORMAT_ANON => get_string('config_names_anon', 'block_quiz_results'));
choose_from_menu($usenames, 'nameformat', empty($this->config->nameformat) ? B_QUIZRESULTS_NAME_FORMAT_FULL : $this->config->nameformat, '');
?>
|
|
get_string('config_format_percentage', 'block_quiz_results'), B_QUIZRESULTS_GRADE_FORMAT_FRA => get_string('config_format_fraction', 'block_quiz_results'), B_QUIZRESULTS_GRADE_FORMAT_ABS => get_string('config_format_absolute', 'block_quiz_results'));
choose_from_menu($formats, 'gradeformat', empty($this->config->gradeformat) ? 0 : $this->config->gradeformat, '');
?>
|
|