print_string("category") ?>: |
$displaylist = array(); $parentlist = array(); make_categories_list($displaylist, $parentlist); choose_from_menu($displaylist, "category", "$form->category", ""); helpbutton("coursecategory", get_string("category")); ?> |
print_string("fullname") ?>: |
helpbutton("coursefullname", get_string("fullname")) ?> if (isset($err["fullname"])) formerr($err["fullname"]); ?> |
print_string("shortname") ?>: |
helpbutton("courseshortname", get_string("shortname")) ?> if (isset($err["shortname"])) formerr($err["shortname"]); ?> |
print_string("summary") ?>: |
helpbutton("text", get_string("helptext")) ?> if (isset($err["summary"])) formerr($err["summary"]); ?> |
print_string("availability") ?>: |
unset($choices); $choices["0"] = get_string("courseavailablenot"); $choices["1"] = get_string("courseavailable"); choose_from_menu ($choices, "visible", $form->visible, ""); helpbutton("courseavailability", get_string("availability")); ?> |
print_string("enrolmentkey") ?>: |
helpbutton("enrolmentkey", get_string("enrolmentkey")) ?> if (isset($err["password"])) formerr($err["password"]); ?> |
print_string("opentoguests") ?>: |
unset($choices); $choices["0"] = get_string("guestsno"); $choices["1"] = get_string("guestsyes"); $choices["2"] = get_string("guestskey"); choose_from_menu ($choices, "guest", $form->guest, ""); helpbutton("guestaccess", get_string("opentoguests")); ?> |
print_string("format") ?>: |
choose_from_menu ($form->courseformats, "format", "$form->format", ""); helpbutton("courseformats", get_string("courseformats")); ?> |
print_string("newsitemsnumber") ?>: |
$newsitem = get_string("newsitem"); $newsitems = get_string("newsitems"); $options = array("0" => "0 $newsitems", "1" => "1 $newsitem", "2" => "2 $newsitems", "3" => "3 $newsitems", "4" => "4 $newsitems", "5" => "5 $newsitems", "6" => "6 $newsitems", "7" => "7 $newsitems", "8" => "8 $newsitems", "9" => "9 $newsitems", "10" => "10 $newsitems"); choose_from_menu ($options, "newsitems", "$form->newsitems", ""); helpbutton("coursenewsitems", get_string("newsitemsnumber")); ?> |
print_string("startdate") ?>: |
print_date_selector("startday", "startmonth", "startyear", $form->startdate); helpbutton("coursestartdate", get_string("startdate")); ?> |
print_string("numberweeks") ?>: |
for ($i=1; $i<=52; $i++) { $sectionmenu[$i] = "$i"; } choose_from_menu ($sectionmenu, "numsections", "$form->numsections", ""); helpbutton("coursenumsections", get_string("numberweeks")); ?> |
print_string("showrecent") ?>: |
unset($choices); $choices["0"] = get_string("no"); $choices["1"] = get_string("yes"); choose_from_menu ($choices, "showrecent", $form->showrecent, ""); helpbutton("courserecent", get_string("recentactivity")); ?> |
print_string("showgrades") ?>: |
unset($choices); $choices["0"] = get_string("no"); $choices["1"] = get_string("yes"); choose_from_menu ($choices, "showgrades", $form->showgrades, ""); helpbutton("coursegrades", get_string("grades")); ?> |
print_string("wordforteacher") ?>: |
( print_string("wordforteachereg") ?>) if (isset($err["teacher"])) formerr($err["teacher"]); ?> |
print_string("wordforteachers") ?>: |
( print_string("wordforteacherseg") ?>) if (isset($err["teachers"])) formerr($err["teachers"]); ?> |
print_string("wordforstudent") ?>: |
( print_string("wordforstudenteg") ?>) if (isset($err["student"])) formerr($err["student"]); ?> |
print_string("wordforstudents") ?>: |
( print_string("wordforstudentseg") ?>) if (isset($err["students"])) formerr($err["students"]); ?> |
"> |