dirroot . '/mod/quiz/locallib.php'); if (!isset($form->timeopen)) { $form->timeopen = ""; } if (!isset($form->timeclose)) { $form->timeclose = ""; } if (!isset($form->attempts)) { $form->attempts = $CFG->quiz_attempts; } if (!isset($form->attemptonlast)) { $form->attemptonlast = $CFG->quiz_attemptonlast; } if (!isset($form->grademethod)) { $form->grademethod = $CFG->quiz_grademethod; } if (!isset($form->decimalpoints)) { $form->decimalpoints = $CFG->quiz_decimalpoints; } if (!isset($form->review)) { $form->review = $CFG->quiz_review; } if (!isset($form->questionsperpage)) { $form->questionsperpage = $CFG->quiz_questionsperpage; } if (!isset($form->shufflequestions)) { $form->shufflequestions = $CFG->quiz_shufflequestions; } if (!isset($form->shuffleanswers)) { $form->shuffleanswers = $CFG->quiz_shuffleanswers; } if (!isset($form->grade)) { $form->grade = $CFG->quiz_maximumgrade; } if (!isset($form->questions)) { $form->questions = ""; } if (!isset($form->password)) { $form->password = $CFG->quiz_password; } if (!isset($form->subnet)) { $form->subnet = $CFG->quiz_subnet; } if (!isset($form->timelimit)) { $form->timelimit = $CFG->quiz_timelimit; } if (!isset($form->popup)) { $form->popup = $CFG->quiz_popup; } if (!isset($form->optionflags)) { $form->optionflags = $CFG->quiz_optionflags; } if (!isset($form->penaltyscheme)) { $form->penaltyscheme = $CFG->quiz_penaltyscheme; } if (!isset($form->maximumgrade)) { $form->maximumgrade = $CFG->quiz_maximumgrade; } ?>
get_config_options(); if ($options) { // Temporary code if (!$table_created) { echo ''; } ?>
 
: timelimit, get_string("minutes","quiz"), 'timelimit'); helpbutton("timelimit", get_string("quiztimer","quiz"), "quiz"); ?> quiz_fix_timelimit ? "checked" : "") ?> />
: questionsperpage, ''); helpbutton('questionsperpage', get_string('questionsperpage'), 'quiz'); ?> quiz_fix_questionsperpage ? "checked" : "") ?> />
: shufflequestions, "", "", ""); helpbutton("shufflequestions", get_string("shufflequestions","quiz"), "quiz"); ?> quiz_fix_shufflequestions ? "checked" : "") ?> />
: shuffleanswers, "", "", ""); helpbutton("attempts", get_string("attemptsallowed","quiz"), "quiz"); ?> quiz_fix_shuffleanswers ? "checked" : "") ?> />
: attempts, "", "", ""); helpbutton("attempts", get_string("attemptsallowed","quiz"), "quiz"); ?> quiz_fix_attempts ? "checked" : "") ?> />
: attemptonlast, "", "", ""); helpbutton("repeatattempts", get_string("eachattemptbuildsonthelast", "quiz"), "quiz"); ?> quiz_fix_attemptonlast ? "checked" : "") ?> />
: grademethod, "", "", ""); helpbutton("grademethod", get_string("grademethod","quiz"), "quiz"); ?> quiz_fix_grademethod ? "checked" : "") ?> />
: quiz_optionflags & QUIZ_ADAPTIVE, ""); helpbutton("adaptive", get_string("adaptive","quiz"), "quiz"); ?> quiz_fix_adaptive ? "checked" : "") ?> />
: penaltyscheme", ""); helpbutton("penaltyscheme", get_string("penaltyscheme","quiz"), "quiz"); ?> quiz_fix_penaltyscheme ? "checked" : "") ?> />
: decimalpoints, "", "", ""); helpbutton("decimalpoints", get_string("decimalpoints","quiz"), "quiz"); ?> quiz_fix_decimalpoints ? "checked" : "") ?> />
quiz_fix_review ? "checked" : "") ?> />
: popup, "", "", ""); helpbutton("popup", get_string("popup","quiz"), "quiz"); ?> quiz_fix_popup ? "checked" : "") ?> />
: quiz_fix_password ? "checked" : "") ?> />
: quiz_fix_subnet ? "checked" : "") ?> />
: =1; $i--) { $grades[$i] = $i; } $grades[0] = get_string("nograde"); choose_from_menu ($grades, "maximumgrade", $form->maximumgrade, "", "", ""); helpbutton("maxgrade", get_string("maximumgrade"), "quiz"); ?>
" />
'; echo '\n"; $table_created = true; } $typename = $type->name(); $strtype = get_string($typename, 'quiz'); echo "\n"; echo '\n"; echo "\n"; foreach ($options as $option) { if (!isset($option->name)) { continue; } echo "\n"; if (!empty($option->link)) { echo '\n"; } else { if (!isset($option->code)) { $option->code = ''; } echo '\n"; echo '\n"; if (empty($option->help)) { echo "\n"; } else { echo '\n"; } $submitbutton = 'true'; } echo "\n"; } } } if ($table_created) { echo '
'; print_heading(get_string('questiontypesetupoptions', 'quiz')); echo "
' . $strtype . "
' . get_string($option->name, 'quiz') . "'; print_string($option->name, 'quiz'); echo ":' . $option->code . "' . get_string($option->help, 'quiz') . "
" />