dirroot/mod/lesson/lib.php"); // for parameter array // set the defaults if (empty($form->name)) { $form->name = ""; } if (!isset($form->grade)) { $form->grade = 0; } if (!isset($form->maxanswers)) { $form->maxanswers = 4; } if (!isset($form->maxattempts)) { $form->maxattempts = 5; } if (!isset($form->nextpagedefault)) { $form->nextpagedefault = 0; } if (!isset($form->maxpages)) { $form->maxpages = 0; } if (!isset($form->retake)) { $form->retake = 1; } if (!isset($form->available)) { $form->available = 0; } if (!isset($form->deadline)) { $form->deadline = 0; } ?>

:

:

=0; $i--) { $grades[$i] = $i; } choose_from_menu($grades, "grade", "$form->grade", ""); helpbutton("grade", get_string("maximumgrade", "lesson"), "lesson"); ?>

:

1; $i--) { $numbers[$i] = $i; } choose_from_menu($numbers, "maxanswers", "$form->maxanswers", ""); helpbutton("maxanswers", get_string("maximumnumberofanswers", "lesson"), "lesson"); ?>

:

0; $i--) { $numbers[$i] = $i; } choose_from_menu($numbers, "maxattempts", "$form->maxattempts", ""); helpbutton("maxattempts", get_string("maximumnumberofattempts", "lesson"), "lesson"); ?>

:

nextpagedefault, ""); helpbutton("nextpageaction", get_string("actionaftercorrectanswer", "lesson"), "lesson"); ?>

:

=0; $i--) { $numbers[$i] = $i; } choose_from_menu($numbers, "maxpages", "$form->maxpages", ""); helpbutton("maxpages", get_string("numberofpagestoshow", "lesson"), "lesson"); ?>

student) ?>:

retake, ""); helpbutton("retake", get_string("canretake", "lesson", $course->student), "lesson"); ?>

:

available); echo " - "; print_time_selector("availablehour", "availableminute", $form->available); ?>

:

deadline); echo " - "; print_time_selector("deadlinehour", "deadlineminute", $form->deadline); ?>
">