2003-05-20 08:03:12 +00:00
|
|
|
<?php
|
2003-04-09 13:41:11 +00:00
|
|
|
if (!isset($form->name)) {
|
2003-01-01 13:17:27 +00:00
|
|
|
$form->name = "";
|
|
|
|
}
|
2003-04-09 13:41:11 +00:00
|
|
|
if (!isset($form->intro)) {
|
2003-01-01 13:17:27 +00:00
|
|
|
$form->intro = "";
|
|
|
|
}
|
2003-08-18 05:47:04 +00:00
|
|
|
if (!isset($form->assessed)) {
|
|
|
|
$form->assessed = "0";
|
|
|
|
}
|
2003-04-09 13:41:11 +00:00
|
|
|
if (!isset($form->days)) {
|
2003-08-20 12:03:26 +00:00
|
|
|
if ($course->format == "weeks") {
|
|
|
|
$form->days = "7";
|
|
|
|
} else {
|
|
|
|
$form->days = "0";
|
|
|
|
}
|
2003-01-01 13:17:27 +00:00
|
|
|
}
|
|
|
|
?>
|
|
|
|
|
2003-06-16 14:40:51 +00:00
|
|
|
<form name="form" method="post" <?php echo $onsubmit ?> action="mod.php">
|
2001-11-22 06:23:56 +00:00
|
|
|
<table cellpadding=5>
|
|
|
|
<tr valign=top>
|
2003-05-20 08:03:12 +00:00
|
|
|
<td align=right><p><b><?php print_string("journalname", "journal") ?>:</b></p></td>
|
2001-11-22 06:23:56 +00:00
|
|
|
<td>
|
2003-05-20 08:03:12 +00:00
|
|
|
<input type="text" name="name" size=30 value="<?php p($form->name) ?>">
|
2001-11-22 06:23:56 +00:00
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
<tr valign=top>
|
2003-05-20 08:03:12 +00:00
|
|
|
<td align=right><p><b><?php print_string("journalquestion", "journal") ?>:</b></p>
|
2002-12-13 09:06:30 +00:00
|
|
|
<font SIZE="1">
|
2003-05-20 08:03:12 +00:00
|
|
|
<?php
|
|
|
|
helpbutton("writing", get_string("helpwriting"), "moodle", true, true);
|
|
|
|
echo "<br />";
|
|
|
|
helpbutton("questions", get_string("helpquestions"), "moodle", true, true);
|
|
|
|
echo "<br />";
|
|
|
|
emoticonhelpbutton("form", "intro");
|
|
|
|
?>
|
|
|
|
<br />
|
|
|
|
</font>
|
2002-12-13 09:06:30 +00:00
|
|
|
|
|
|
|
</TD>
|
2001-11-22 06:23:56 +00:00
|
|
|
<td>
|
2003-05-20 08:03:12 +00:00
|
|
|
<textarea name="intro" rows=15 cols=30 wrap="virtual"><?php p($form->intro) ?></textarea>
|
2001-11-22 06:23:56 +00:00
|
|
|
</td>
|
|
|
|
</tr>
|
2003-08-18 05:47:04 +00:00
|
|
|
<tr valign=top>
|
|
|
|
<td align=right><p><b><?php print_string("grade") ?>:</b></p></td>
|
|
|
|
<td>
|
|
|
|
<?php
|
|
|
|
print_grade_menu($course->id, "assessed", "$form->assessed");
|
|
|
|
?>
|
|
|
|
</td>
|
|
|
|
</tr>
|
2001-11-22 06:23:56 +00:00
|
|
|
<tr valign=top>
|
2003-05-20 08:03:12 +00:00
|
|
|
<td align=right><p><b><?php print_string("daysavailable", "journal") ?>:</b></p></td>
|
|
|
|
<td>
|
|
|
|
<?php
|
2001-11-22 06:23:56 +00:00
|
|
|
$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
|
|
|
choose_from_menu($options, "days", "$form->days");
|
|
|
|
?>
|
2003-05-20 08:03:12 +00:00
|
|
|
</td>
|
2001-11-22 06:23:56 +00:00
|
|
|
</tr>
|
|
|
|
|
|
|
|
</table>
|
2003-05-20 08:03:12 +00:00
|
|
|
<center>
|
|
|
|
<input type="hidden" name=course value="<?php p($form->course) ?>">
|
|
|
|
<input type="hidden" name=coursemodule value="<?php p($form->coursemodule) ?>">
|
|
|
|
<input type="hidden" name=section value="<?php p($form->section) ?>">
|
|
|
|
<input type="hidden" name=module value="<?php p($form->module) ?>">
|
|
|
|
<input type="hidden" name=modulename value="<?php p($form->modulename) ?>">
|
|
|
|
<input type="hidden" name=instance value="<?php p($form->instance) ?>">
|
|
|
|
<input type="hidden" name=mode value="<?php p($form->mode) ?>">
|
|
|
|
<input type="submit" value="<?php print_string("savechanges") ?>">
|
|
|
|
<input type="submit" name=cancel value="<?php print_string("cancel") ?>">
|
|
|
|
</form>
|
|
|
|
</center>
|