dirroot/mod/assignment/lib.php"); if (empty($form->name)) { $form->name = ""; } if (empty($form->description)) { $form->description = ""; } if (empty($form->format)) { $form->format = ""; } if (empty($form->assignmenttype)) { $form->assignmenttype = "uploadsingle"; } if (!isset($form->grade)) { $form->grade = 100; } if (!isset($form->timedue)) { $form->timedue = time()+7*24*3600; } if (!isset($form->timeavailable)) { $form->timeavailable = time(); } if (!isset($form->preventlate)) { $form->preventlate = 0; } if (empty($form->maxbytes)) { $form->maxbytes = $CFG->assignment_maxbytes; } ?>
:
:

"; helpbutton("questions", get_string("helpquestions"), "moodle", true, true); echo "
"; if ($usehtmleditor) { helpbutton("richtext", get_string("helprichtext"), "moodle", true, true); } else { emoticonhelpbutton("form", "description"); } ?>
description); 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 '
'; } ?>
: id, "grade", "$form->grade"); ?>
: timeavailable) echo 'checked="checked"' ?> /> timeavailable); echo " - "; print_time_selector("availablehour", "availableminute", $form->timeavailable); ?>
: timedue) echo 'checked="checked"' ?> /> timedue); echo " - "; print_time_selector("duehour", "dueminute", $form->timedue); ?>
  : preventlate, ''); ?>
 
: assignmenttype, ''); helpbutton('types', get_string('assignmenttype', 'assignment'), 'assignment'); ?>

$assname)) { echo ''."\n"; } } ?>