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 = ""; } if (!isset($form->forcesubscribe)) { $form->forcesubscribe = ""; } ?>
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"); ?>

:

"; echo " var subitemstime = ['startday','startmonth','startyear','starthour', 'startminute',". "'finishday','finishmonth','finishyear','finishhour','finishminute'];"; echo " var subitemsall = ['assessed', '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 "
"; 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 ""; if (empty($form->ratingtime)) { echo ""; } ?>

:

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