2002-06-20 15:15:22 +00:00
|
|
|
<form name="form" method="post" action="<?=$ME ?>">
|
|
|
|
<table cellpadding=5>
|
|
|
|
<tr>
|
|
|
|
<tr valign=top>
|
2002-08-15 17:41:24 +00:00
|
|
|
<td align=right><P><B><? print_string("forumname", "forum")?>:</B></P></TD>
|
2002-06-20 15:15:22 +00:00
|
|
|
<td>
|
|
|
|
<input type="text" name="name" size=30 value="<? p($form->name) ?>">
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
<tr valign=top>
|
2002-08-15 17:41:24 +00:00
|
|
|
<td align=right><P><B><? print_string("forumtype", "forum")?>:</B></P></TD>
|
2002-06-20 15:15:22 +00:00
|
|
|
<td>
|
|
|
|
<?
|
|
|
|
$student = strtolower($course->student);
|
|
|
|
require("$CFG->dirroot/mod/forum/lib.php");
|
2002-08-02 09:50:53 +00:00
|
|
|
asort($FORUM_TYPES);
|
2002-08-26 10:01:46 +00:00
|
|
|
if (! $form->type) {
|
|
|
|
$form->type = "general";
|
|
|
|
}
|
|
|
|
choose_from_menu($FORUM_TYPES, "type", $form->type, "");
|
2002-08-18 14:40:19 +00:00
|
|
|
helpbutton("forumtype", get_string("forumtype", "forum"), "forum");
|
2002-06-20 15:15:22 +00:00
|
|
|
?>
|
|
|
|
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
<tr valign=top>
|
2002-08-15 17:41:24 +00:00
|
|
|
<td align=right><P><B><? print_string("forumintro", "forum")?>:</B></P></TD>
|
2002-06-20 15:15:22 +00:00
|
|
|
<td>
|
|
|
|
<textarea name="intro" rows=4 cols=50 wrap="virtual"><? p($form->intro) ?></textarea>
|
2002-08-18 14:40:19 +00:00
|
|
|
<? helpbutton("text", get_string("helptext")); ?>
|
2002-06-20 15:15:22 +00:00
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
|
|
|
|
<tr valign=top>
|
2002-10-03 11:15:50 +00:00
|
|
|
<td align=right><P><B><? print_string("allowdiscussions", "forum", strtolower("$course->student")) ?>:</B></P></TD>
|
2002-06-20 15:15:22 +00:00
|
|
|
<td>
|
2002-10-03 11:15:50 +00:00
|
|
|
<? choose_from_menu($FORUM_OPEN_MODES, "open", $form->open, ""); ?>
|
2002-08-18 14:40:19 +00:00
|
|
|
<? helpbutton("allowdiscussions", get_string("allowdiscussions", "forum"), "forum") ?>
|
2002-06-20 15:15:22 +00:00
|
|
|
</td>
|
|
|
|
</tr>
|
2002-10-03 11:15:50 +00:00
|
|
|
|
2002-06-20 15:15:22 +00:00
|
|
|
<tr>
|
2002-08-18 14:40:19 +00:00
|
|
|
<td align=right><P><B><? print_string("allowratings", "forum") ?>:</B></P></TD>
|
2002-06-20 15:15:22 +00:00
|
|
|
<td>
|
2002-10-03 11:15:50 +00:00
|
|
|
<? $options[0] = get_string("no"); $options[1] = get_string("yes"); ?>
|
|
|
|
<? choose_from_menu($options, "assessed", $form->assessed, ""); ?>
|
2002-08-18 14:40:19 +00:00
|
|
|
<? helpbutton("ratings", get_string("allowratings", "forum"), "forum") ?>
|
2002-06-20 15:15:22 +00:00
|
|
|
</td>
|
|
|
|
</tr>
|
2002-07-31 14:19:35 +00:00
|
|
|
<tr>
|
2002-08-15 17:41:24 +00:00
|
|
|
<td align=right><P><B><? print_string("forcesubscribeq", "forum") ?>:</B></P></TD>
|
2002-07-31 14:19:35 +00:00
|
|
|
<td>
|
2002-10-03 11:15:50 +00:00
|
|
|
<? choose_from_menu($options, "forcesubscribe", $form->forcesubscribe, ""); ?>
|
2002-08-18 14:40:19 +00:00
|
|
|
<? helpbutton("subscription", get_string("forcesubscribeq", "forum"), "forum") ?>
|
2002-07-31 14:19:35 +00:00
|
|
|
</td>
|
|
|
|
</tr>
|
2002-06-20 15:15:22 +00:00
|
|
|
</table>
|
|
|
|
<CENTER>
|
|
|
|
<input type="hidden" name=course value="<? p($form->course) ?>">
|
|
|
|
<input type="hidden" name=coursemodule value="<? p($form->coursemodule) ?>">
|
2002-06-25 11:49:06 +00:00
|
|
|
<input type="hidden" name=section value="<? p($form->section) ?>">
|
2002-06-20 15:15:22 +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-15 17:41:24 +00:00
|
|
|
<input type="submit" value="<? print_string("savechanges") ?>">
|
2002-06-20 15:15:22 +00:00
|
|
|
</CENTER>
|
|
|
|
</FORM>
|