name)) { $form->name = ""; } if (empty($form->text)) { $form->text = ""; } if (empty($form->format)) { $form->format = 0; } if (empty($form->display)) { $form->display = 0; } if (empty($form->timeopen)) { $form->timeopen = ""; $form->timerestrict = 0; } else { $form->timerestrict = 1; } if (empty($form->timeclose)) { $form->timeclose = ""; } if (empty($form->publish)) { $form->publish = 0; } if (empty($form->release)) { $form->release = 0; } if (empty($form->allowupdate)) { $form->allowupdate = 0; } if (empty($form->showunanswered)) { $form->showunanswered = 0; } if (empty($form->limitanswers)) { $form->limitanswers = 0; } ?>
instance, 'id', 'id,text')) && ($options2 = get_records_menu('choice_options','choiceid', $form->instance, 'id', 'id,maxanswers')) ) { foreach ($options as $id => $text) { $count++; ?> limitanswers == 0) { //lock the limit fields if limit isn't used. ?>
: " value="name) ?>" />
:

"; helpbutton("questions", get_string("helpquestions"), "moodle", true, true); echo "
"; if ($usehtmleditor) { helpbutton("richtext", get_string("helprichtext"), "moodle", true, true); } else { emoticonhelpbutton("form", "text"); } echo "
"; ?>
text); if ($usehtmleditor) { echo ''; } else { echo "
"; helpbutton("textformat", get_string("formattexttype")); print_string("formattexttype"); echo ": "; if (!$form->format) { $form->format = $defaultformat; } choose_from_menu(format_text_menu(), "format", $form->format, ""); echo "
"; } ?>
: :
: :
: limitanswers", "", "return lockselects('form','limitanswers.options[0]', limititems)"); ?>
: " onclick="return lockoptions('form','timerestrict', timeitems)" timerestrict) echo 'checked="checked"'; ?> />
 
: timeopen and $course->format == "weeks") { $form->timeopen = $course->startdate + (($form->section - 1) * 608400); } print_date_selector("openday", "openmonth", "openyear", $form->timeopen); print_time_selector("openhour", "openminute", $form->timeopen); ?>
: timeclose and $course->format == "weeks") { $form->timeclose = $course->startdate + (($form->section) * 608400); } print_date_selector("closeday", "closemonth", "closeyear", $form->timeclose); print_time_selector("closehour", "closeminute", $form->timeclose); ?> timerestrict) { echo "\n"; } ?>
: dirroot/mod/choice/lib.php"); choose_from_menu($CHOICE_DISPLAY, "display", "$form->display", ""); ?>
: dirroot/mod/choice/lib.php"); choose_from_menu($CHOICE_RELEASE, "release", "$form->release", "", "return lockselects('form','release.options[0]',['publish'])"); ?>
: dirroot/mod/choice/lib.php"); choose_from_menu($CHOICE_PUBLISH, "publish", "$form->publish", ""); ?>
: allowupdate", ""); ?>
: showunanswered", ""); ?>
" /> " />