dirroot/mod/workshop/lib.php"); // for parameter arrays require_once("$CFG->dirroot/mod/workshop/locallib.php"); // for parameter arrays // ...and fill the form if needed if (empty($form->name)) { $form->name = ""; } if (empty($form->description)) { $form->description = ""; } if (empty($form->format)) { $form->format = ""; } if (!isset($form->gradinggrade)) { $form->gradinggrade = 100; } if (!isset($form->grade)) { $form->grade = 100; } if (!isset($form->gradingstrategy)) { $form->gradingstrategy = 1; // default is accumulative } if (!isset($form->nelements)) { $form->nelements = 1; } if (!isset($form->nattachments)) { $form->nattachments = 0; } if (empty($form->resubmit)) { $form->resubmit = ""; } if (!isset($form->ntassessments)) { $form->ntassessments = 0; } if (!isset($form->assessmentcomps)) { $form->assessmentcomps = 2; } if (!isset($form->nsassessments)) { $form->nsassessments = 0; } if (!isset($form->teacherweight)) { $form->teacherweight = 1; } if (!isset($form->overallocation)) { $form->overallocation = 0; } if (empty($form->includeself)) { $form->includeself = ""; } if (empty($form->agreeassessments)) { $form->agreeassessments = ""; } if (empty($form->hidegrades)) { $form->hidegrades = ""; } if (empty($form->showleaguetable)) { $form->showleaguetable = 0; } if (empty($form->anonymous)) { $form->anonymous = 0; } if (empty($form->usepassword)) { $form->usepassword = 0; } if (empty($form->maxbytes)) { $form->maxbytes = ""; } if (empty($form->submissionstart)) { $form->submissionstart = time()+60*60*24; } if (empty($form->assessmentstart)) { $form->assessmentstart = time()+60*60*24; } if (empty($form->submissionend)) { $form->submissionend = time()+60*60*24*8; } if (empty($form->assessmentend)) { $form->assessmentend = time()+60*60*24*8; } if (empty($form->releasegrades)) { $form->releasegrades = time()+60*60*24*15; } ?>
groupings = true; print_standard_coursemodule_settings($form, $features); ?>
: " />
:
"; if ($usehtmleditor) { helpbutton("richtext", get_string("helprichtext"), "moodle", true, true); } else { helpbutton("text", get_string("helptext"), "moodle", true, true); echo "
"; emoticonhelpbutton("form", "description", "moodle", true, true); echo "
"; } ?>
description); if ($usehtmleditor) { echo ''; } else { echo '

'; helpbutton("textformat", get_string("formattexttype")); print_string("formattexttype"); echo ': '; if (!$form->format) { $form->format = $defaultformat; } choose_from_menu(format_text_menu(), "format", $form->format, ""); echo '

'; } ?>
: =0; $i--) { $grades[$i] = $i; } choose_from_menu($grades, "gradinggrade", "$form->gradinggrade", ""); helpbutton("gradinggrade", get_string("gradeforassessments", "workshop"), "workshop"); ?>
: grade", ""); helpbutton("grade", get_string("gradeforsubmission", "workshop"), "workshop"); ?>
: gradingstrategy, ""); helpbutton("gradingstrategy", get_string("gradingstrategy", "workshop"), "workshop"); ?>
: =0; $i--) { $numbers[$i] = $i; } choose_from_menu($numbers, "nelements", "$form->nelements", ""); helpbutton("nelements", get_string("numberofassessmentelements", "workshop"), "workshop"); ?>
: =0; $i--) { $numbers[$i] = $i; } choose_from_menu($numbers, "nattachments", "$form->nattachments", ""); helpbutton("nattachments", get_string("numberofattachments", "workshop"), "workshop"); ?>
: resubmit, ""); helpbutton("resubmit", get_string("allowresubmit", "workshop"), "workshop"); ?>
: =0; $i--) { $numbers[$i] = $i; } choose_from_menu($numbers, "ntassessments", $form->ntassessments, ""); helpbutton("nassessmentsofteachersexamples", get_string("numberofassessmentsofteachersexamples", "workshop"), "workshop"); ?>
: $COMPARISON) { $COMPARISONS[] = $COMPARISON['name']; } choose_from_menu($COMPARISONS, "assessmentcomps", $form->assessmentcomps, ""); helpbutton("comparisonofassessments", get_string("comparisonofassessments", "workshop"), "workshop"); ?>
: =0; $i--) { $numbers[$i] = $i; } choose_from_menu($numbers, "nsassessments", $form->nsassessments, ""); helpbutton("nassessmentsofstudentsubmissions", get_string("numberofassessmentsofstudentsubmissions", "workshop"), "workshop"); ?>
: =0; $i--) { $numbers[$i] = $i; } choose_from_menu($numbers, "teacherweight", $form->teacherweight, ""); helpbutton("teacherweight", get_string("weightforteacherassessments", "workshop"), "workshop"); ?>
: =0; $i--) { $numbers[$i] = $i; } choose_from_menu($numbers, "overallocation", "$form->overallocation", ""); helpbutton("overallocation", get_string("overallocation", "workshop"), "workshop"); ?>
: includeself, ""); helpbutton("selfassessment", get_string("selfassessment", "workshop"), "workshop"); ?>
: agreeassessments, ""); helpbutton("agreeassessments", get_string("assessmentsmustbeagreed", "workshop"), "workshop"); ?>
: hidegrades, ""); helpbutton("showinggrades", get_string("hidegradesbeforeagreement", "workshop"), "workshop"); ?>
: =0; $i--) { $numbers[$i] = $i; } choose_from_menu($numbers, "showleaguetable", $form->showleaguetable, ""); helpbutton("leaguetable", get_string("leaguetable", "workshop"), "workshop"); ?>
students) ?>: anonymous, ""); helpbutton("anonymous", get_string("hidenamesfromstudents", "workshop", $course->students), "workshop"); ?>
: usepassword, ""); helpbutton("password", get_string("usepassword", "workshop"), "workshop"); ?>
: " />
: maxbytes, $course->maxbytes); choose_from_menu($choices, "maxbytes", "$form->maxbytes","" ); ?>
: submissionstart); echo " - "; print_time_selector("submissionstarthour", "submissionstartminute", $form->submissionstart); helpbutton("submissionstart", get_string("submissionstart", "workshop"), "workshop"); ?>
: assessmentstart); echo " - "; print_time_selector("assessmentstarthour", "assessmentstartminute", $form->assessmentstart); helpbutton("assessmentstart", get_string("assessmentstart", "workshop"), "workshop"); ?>
: submissionend); echo " - "; print_time_selector("submissionendhour", "submissionendminute", $form->submissionend); helpbutton("submissionend", get_string("submissionend", "workshop"), "workshop"); ?>
: assessmentend); echo " - "; print_time_selector("assessmentendhour", "assessmentendminute", $form->assessmentend); helpbutton("assessmentend", get_string("assessmentend", "workshop"), "workshop"); ?>
: releasegrades); echo " - "; print_time_selector("releasehour", "releaseminute", $form->releasegrades); helpbutton("releasegrades", get_string("releaseteachergrades", "workshop"), "workshop"); ?>

" /> " />