moodle/mod/assignment/mod.html
2002-08-17 08:59:12 +00:00

71 lines
2.5 KiB
HTML

<form name="form" method="post" action="<?=$ME ?>">
<table cellpadding=5>
<tr valign=top>
<td align=right><P><B><? print_string("assignmentname", "assignment") ?>:</B></P></TD>
<td>
<input type="text" name="name" size=30 value="<? p($form->name) ?>">
</td>
</tr>
<tr valign=top>
<td align=right><P><B><? print_string("description", "assignment") ?>:</B></P></TD>
<td>
<textarea name="description" rows=15 cols=30 wrap="virtual"><? p($form->description) ?></textarea>
</td>
</tr>
<tr valign=top>
<td align=right><P><B><? print_string("assignmenttype", "assignment") ?>:</B></P></TD>
<td>
<input type="hidden" name=type value="<? p($form->type) ?>">
<? print_string("typeuploadsingle", "assignment") ?>
</td>
</tr>
<tr valign=top>
<td align=right><P><B><? print_string("maximumgrade", "assignment") ?>:</B></P></TD>
<td>
<?
for ($i=100; $i>=0; $i--) {
$grades[$i] = $i;
}
choose_from_menu($grades, "grade", "$form->grade");
?>
</td>
</tr>
<tr valign=top>
<td align=right><P><B><? print_string("maximumsize", "assignment") ?>:</B></P></TD>
<td>
<?
$filesize[10000] = "10kb";
$filesize[50000] = "50kb";
$filesize[100000] = "100kb";
$filesize[500000] = "500kb";
$filesize[1000000] = "1000Kb (1Mb)";
$filesize[2000000] = "2000Kb (2Mb)";
if (!$form->maxbytes) {
$form->maxbytes = 500000;
}
choose_from_menu($filesize, "maxbytes", "$form->maxbytes");
?>
</td>
</tr>
<tr valign=top>
<td align=right><P><B><? print_string("duedate", "assignment") ?>:</B></td>
<td><?
print_date_selector("dueday", "duemonth", "dueyear", $form->timedue);
echo "&nbsp;-&nbsp;";
print_time_selector("duehour", "dueminute", $form->timedue);
formerr($err["duedate"]);
?></td>
</tr>
</table>
<CENTER>
<input type="hidden" name=course value="<? p($form->course) ?>">
<input type="hidden" name=coursemodule value="<? p($form->coursemodule) ?>">
<input type="hidden" name=section value="<? p($form->section) ?>">
<input type="hidden" name=module value="<? p($form->module) ?>">
<input type="hidden" name=modulename value="<? p($form->modulename) ?>">
<input type="hidden" name=instance value="<? p($form->instance) ?>">
<input type="hidden" name=mode value="<? p($form->mode) ?>">
<input type="submit" value="<? print_string("savechanges") ?>">
</CENTER>
</FORM>