name)) { $form->name = ""; } if (!isset($form->type)) { $form->type = ""; } if (!isset($form->intro)) { $form->intro = ""; } if (!isset($form->open)) { $form->open = 2; } if (!isset($form->assessed)) { $form->assessed = 0; } if (!isset($form->assesspublic)) { $form->assesspublic = 0; } if (!isset($form->forcesubscribe)) { $form->forcesubscribe = 0; } if (!isset($form->maxbytes)) { $form->maxbytes = $CFG->forum_maxbytes; } ?>
action="mod.php">

:

:

student); require("$CFG->dirroot/mod/forum/lib.php"); asort($FORUM_TYPES); if (! $form->type) { $form->type = "general"; } if ($form->type == "news") { print_string("namenews", "forum"); echo ""; } else if ($form->type == "social") { print_string("namesocial", "forum"); echo ""; } else { choose_from_menu($FORUM_TYPES, "type", $form->type, ""); helpbutton("forumtype", get_string("forumtype", "forum"), "forum"); } ?>

:

"; helpbutton("questions", get_string("helpquestions"), "moodle", true, true); echo "
"; emoticonhelpbutton("form", "intro"); echo "
"; ?>

student")) ?>:

open, ""); helpbutton("allowdiscussions", get_string("allowdiscussions", "forum", moodle_strtolower("$course->student")), "forum"); ?>

:

forcesubscribe, ""); helpbutton("subscription", get_string("forcesubscribeq", "forum"), "forum"); ?>

:

maxbytes, $course->maxbytes); $choices[0] = get_string("courseuploadlimit") . " (".display_size($course->maxbytes).")"; choose_from_menu ($choices, "maxbytes", $form->maxbytes, ""); helpbutton("maxattachmentsize", get_string("maxattachmentsize", "forum"), "forum"); ?>

:

"; echo " var subitemstime = ['startday','startmonth','startyear','starthour', 'startminute',". "'finishday','finishmonth','finishyear','finishhour','finishminute'];"; echo " var subitemsall = ['assessed', 'assesspublic', 'ratingtime', 'scale', ". "'startday','startmonth','startyear','starthour', 'startminute',". "'finishday','finishmonth','finishyear','finishhour','finishminute'];"; echo ""; echo "assessed) { echo " checked "; } echo ">"; echo get_string("ratingsuse", "forum").":"; echo "
"; // The odd order below was to maintain backward compatibility unset($options); $options[2] = get_string("ratingonlyteachers", "forum", moodle_strtolower($course->teachers)); $options[1] = get_string("ratingeveryone", "forum"); echo get_string("users").":"; choose_from_menu($options, "assessed", $form->assessed, ""); echo "
"; unset($options); $options[0] = get_string("ratingpublicnot", "forum", $course->students); $options[1] = get_string("ratingpublic", "forum", $course->students); echo get_string("view").":"; choose_from_menu($options, "assesspublic", $form->assesspublic, ""); echo "
"; echo get_string("grade").":"; print_grade_menu($course->id, "scale", $form->scale, false); echo "
"; echo "assesstimestart and $form->assesstimefinish and $form->assessed) { $form->ratingtime = 1; echo " checked "; } echo ">"; print_string("ratingtime", "forum"); echo "
"; echo get_string("from").":"; print_date_selector("startday", "startmonth", "startyear", $form->assesstimestart); print_time_selector("starthour", "startminute", $form->assesstimestart); echo "
"; echo get_string("to").":"; print_date_selector("finishday", "finishmonth", "finishyear", $form->assesstimefinish); print_time_selector("finishhour", "finishminute", $form->assesstimefinish); echo "
"; echo "
"; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; if (empty($form->ratingtime)) { echo ""; } ?>
"> ">