: |
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");
}
?>
|
: |
";
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 "";
}
?>
|