print_string("title", "workshop") ?>: |
|
print_string("description", "workshop") ?>: |
print_textarea($usehtmleditor, 20, 60, 595, 400, "description", $form->description);
if ($usehtmleditor) {
helpbutton("richtext", get_string("helprichtext"));
} else {
helpbutton("text", get_string("helptext"));
}
echo " ";
print_string("formattexttype");
echo ": ";
if (!$form->format) {
$form->format = $defaultformat;
}
choose_from_menu(format_text_menu(), "format", $form->format, "");
helpbutton("textformat", get_string("formattexttype"));
echo " ";
?>
|
print_string("maximumgrade") ?>: |
for ($i=100; $i>=0; $i--) {
$grades[$i] = $i;
}
choose_from_menu($grades, "grade", "$form->grade", "");
?>
|
print_string("gradingstrategy", "workshop") ?>: |
dirroot/mod/workshop/lib.php");
if (!isset($form->gradingstrategy)) {
$form->gradingstrategy = 1; // default
}
choose_from_menu($WORKSHOP_TYPE, "gradingstrategy", $form->gradingstrategy, "");
helpbutton("gradingstrategy", get_string("gradingstrategy", "workshop"), "workshop");
?>
|
print_string("numberofassessmentelements", "workshop") ?>: |
for ($i=20; $i>=0; $i--) {
$numbers[$i] = $i;
}
choose_from_menu($numbers, "nelements", "$form->nelements", "");
helpbutton("nelements", get_string("numberofassessmentelements", "workshop"), "workshop");
?>
|
print_string("allowresubmit", "workshop") ?>: |
resubmit, "");
helpbutton("resubmit", get_string("allowresubmit", "workshop"), "workshop");
?>
|
print_string("numberofassessmentsofteachersexamples", "workshop") ?>: |
=0; $i--) {
$numbers[$i] = $i;
}
choose_from_menu($numbers, "ntassessments", $form->ntassessments, "");
helpbutton("nassessmentsofteachersexamples", get_string("numberofassessmentsofteachersexamples", "workshop"), "workshop");
?>
|
print_string("numberofassessmentsofstudentsubmissions", "workshop") ?>: |
=0; $i--) {
$numbers[$i] = $i;
}
choose_from_menu($numbers, "nsassessments", $form->nsassessments, "");
helpbutton("nassessmentsofstudentsubmissions", get_string("numberofassessmentsofstudentsubmissions", "workshop"), "workshop");
?>
|
print_string("selfassessment", "workshop") ?>: |
includeself, "");
helpbutton("selfassessment", get_string("selfassessment", "workshop"), "workshop");
?>
|
print_string("assessmentsmustbeagreed", "workshop") ?>: |
agreeassessments, "");
helpbutton("agreeassessments", get_string("assessmentsmustbeagreed", "workshop"), "workshop");
?>
|
print_string("hidegradesbeforeagreement", "workshop") ?>: |
hidegrades, "");
helpbutton("showinggrades", get_string("hidegradesbeforeagreement", "workshop"), "workshop");
?>
|
print_string("maximumsize", "workshop") ?>: |
$sizelist = array("10Kb", "50Kb", "100Kb", "500Kb", "1Mb", "2Mb", "5Mb", "10Mb", "20Mb", "50Mb");
$maxsize = get_max_upload_file_size();
$sizeinlist = false;
foreach ($sizelist as $size) {
$sizebytes = get_real_size($size);
if ($sizebytes < $maxsize) {
$filesize[$sizebytes] = $size;
}
if ($form->maxbytes == $sizebytes) {
$sizeinlist = true;
}
}
$filesize[$maxsize] = display_size($maxsize);
if (!$sizeinlist) {
$form->maxbytes = get_real_size("500K");
}
ksort($filesize, SORT_NUMERIC);
choose_from_menu($filesize, "maxbytes", "$form->maxbytes", "");
?>
|
print_string("deadline", "workshop") ?>: |
print_date_selector("deadlineday", "deadlinemonth", "deadlineyear", $form->deadline);
echo " - ";
print_time_selector("deadlinehour", "deadlineminute", $form->deadline);
?> |