mirror of
https://github.com/moodle/moodle.git
synced 2025-03-09 10:19:56 +01:00
49 lines
1.7 KiB
HTML
49 lines
1.7 KiB
HTML
<form name="form" method="post" action="<?=$ME ?>">
|
|
<table cellpadding=5>
|
|
<tr valign=top>
|
|
<td align=right><P><B><? print_string("journalname", "journal") ?>:</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("journalquestion", "journal") ?>:</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><? print_string("daysavailable", "journal") ?>:</B></P></TD>
|
|
<TD>
|
|
<?
|
|
$options = array();
|
|
$options[0] = get_string("alwaysopen", "journal");
|
|
for ($i=1;$i<=13;$i++) {
|
|
$options[$i] = get_string("numdays", "", $i);
|
|
}
|
|
for ($i=2;$i<=16;$i++) {
|
|
$days = $i * 7;
|
|
$options[$days] = get_string("numweeks", "", $i);
|
|
}
|
|
$options[365] = get_string("numweeks", "", 52);
|
|
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) ?>">
|
|
<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>
|