moodle/mod/journal/mod.html
2001-11-22 06:23:56 +00:00

47 lines
1.4 KiB
HTML

<form name="form" method="post" action="<?=$ME ?>">
<table cellpadding=5>
<tr valign=top>
<td align=right><P><B>Journal Name:</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>Journal Question:</B></P></TD>
<td>
<textarea name="intro" rows=15 cols=30 wrap="virtual"><? p($form->intro) ?></textarea>
</td>
</tr>
<tr valign=top>
<TD align=right><P><B>Days available:</B></P></TD>
<TD>
<?
$options = array();
for ($i=0;$i<=13;$i++) {
$options[$i] = "$i days";
}
for ($i=2;$i<=16;$i++) {
$days = $i * 7;
$options[$days] = "$i weeks";
}
$options[365] = "1 year";
if ($form->days == "") {
$form->days == "14";
}
choose_from_menu($options, "days", "$form->days");
?>
</TD>
</tr>
</table>
<CENTER>
<input type="hidden" name=course value="<? p($form->course) ?>">
<input type="hidden" name=week value="<? p($form->week) ?>">
<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="Save these settings">
</CENTER>
</FORM>