moodle/mod/journal/mod.html

49 lines
1.7 KiB
HTML
Raw Normal View History

2001-11-22 06:23:56 +00:00
<form name="form" method="post" action="<?=$ME ?>">
<table cellpadding=5>
<tr valign=top>
2002-08-12 09:38:31 +00:00
<td align=right><P><B><? print_string("journalname", "journal") ?>:</B></P></TD>
2001-11-22 06:23:56 +00:00
<td>
<input type="text" name="name" size=30 value="<? p($form->name) ?>">
</td>
</tr>
<tr valign=top>
2002-08-12 09:38:31 +00:00
<td align=right><P><B><? print_string("journalquestion", "journal") ?>:</B></P></TD>
2001-11-22 06:23:56 +00:00
<td>
<textarea name="intro" rows=15 cols=30 wrap="virtual"><? p($form->intro) ?></textarea>
</td>
</tr>
<tr valign=top>
2002-08-12 09:38:31 +00:00
<TD align=right><P><B><? print_string("daysavailable", "journal") ?>:</B></P></TD>
2001-11-22 06:23:56 +00:00
<TD>
<?
$options = array();
2002-08-12 09:38:31 +00:00
$options[0] = get_string("alwaysopen", "journal");
2002-07-26 02:15:03 +00:00
for ($i=1;$i<=13;$i++) {
2002-08-12 09:38:31 +00:00
$options[$i] = get_string("numdays", "", $i);
2001-11-22 06:23:56 +00:00
}
for ($i=2;$i<=16;$i++) {
$days = $i * 7;
2002-08-12 09:38:31 +00:00
$options[$days] = get_string("numweeks", "", $i);
2001-11-22 06:23:56 +00:00
}
2002-08-12 09:38:31 +00:00
$options[365] = get_string("numweeks", "", 52);
2001-11-22 06:23:56 +00:00
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=coursemodule value="<? p($form->coursemodule) ?>">
<input type="hidden" name=section value="<? p($form->section) ?>">
2001-11-22 06:23:56 +00:00
<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) ?>">
2002-08-17 08:59:12 +00:00
<input type="submit" value="<? print_string("savechanges") ?>">
2001-11-22 06:23:56 +00:00
</CENTER>
</FORM>