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 = 1; } if (!isset($form->assesspublic)) { $form->assesspublic = 1; } if (!isset($form->forcesubscribe)) { $form->forcesubscribe = 0; } if (!isset($form->maxbytes)) { $form->maxbytes = $CFG->forum_maxbytes; } if (!isset($form->rsstype)) { $form->rsstype = 0; } if (!isset($form->rssarticles)) { $form->rssarticles = 0; } if (!isset($form->scale)) { $form->scale = 0; } if (!isset($form->assesstimestart)) { $form->assesstimestart = 0; } if (!isset($form->assesstimefinish)) { $form->assesstimefinish = 0; } ?>
enablerssfeeds && $CFG->forum_enablerssfeeds) { echo ''; echo ''; echo ''; echo ''; echo ''; echo ''; echo ''; echo ''; } ?>
:
: student); require_once("$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 '
'; if ($usehtmleditor) { helpbutton('richtext', get_string('helprichtext'), 'moodle', true, true); } else { emoticonhelpbutton('form', 'intro'); } echo '
'; ?>
intro); ?>
student")) ?>: open, ''); helpbutton('allowdiscussions', get_string('allowdiscussions', 'forum', moodle_strtolower("$course->student")), 'forum'); ?>
: forcesubscribe, ''); helpbutton('subscription2', get_string('forcesubscribeq', 'forum'), 'forum'); ?>
: maxbytes, $course->maxbytes); $choices[1] = get_string("uploadnotallowed"); $choices[0] = get_string("courseuploadlimit") . " (".display_size($course->maxbytes).")"; choose_from_menu ($choices, "maxbytes", $form->maxbytes, ""); helpbutton("maxattachmentsize", get_string("maxattachmentsize", "forum"), "forum"); ?>
'.get_string('rsstype').':'; unset($choices); $choices[0] = get_string('none'); $choices[1] = get_string('discussions', 'forum'); $choices[2] = get_string('posts', 'forum'); choose_from_menu ($choices, 'rsstype', $form->rsstype, ''); helpbutton('rsstype', get_string('rsstype'), 'forum'); echo '
'.get_string('rssarticles').':'; unset($choices); $choices[0] = '0'; $choices[1] = '1'; $choices[2] = '2'; $choices[3] = '3'; $choices[4] = '4'; $choices[5] = '5'; $choices[10] = '10'; $choices[15] = '15'; $choices[20] = '20'; $choices[25] = '25'; $choices[30] = '30'; $choices[40] = '40'; $choices[50] = '50'; choose_from_menu ($choices, 'rssarticles', $form->rssarticles, ''); helpbutton('rssarticles', get_string('rssarticles'), 'forum'); echo '
: '; echo ''; echo ''; echo ''; echo ''; echo '
'; 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="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').': '; echo ''; 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').': '; echo ''; choose_from_menu($options, 'assesspublic', $form->assesspublic, ''); echo '
'; echo get_string('grade').': '; echo ''; print_grade_menu($course->id, 'scale', $form->scale, false); echo '
'; echo 'assesstimestart and $form->assesstimefinish and $form->assessed) { $form->ratingtime = 1; echo ' checked="checked" '; } echo ' /> '; print_string('ratingtime', 'forum'); echo '
 '; 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 ''; echo ''; if (empty($form->ratingtime)) { echo ''; } ?>
" /> " />