Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

65 lines (62 sloc) 2.621 kb
<form name="form" method="post" action="<?=$ME ?>">
<table cellpadding=5>
<tr>
<tr valign=top>
<td align=right><P><B><? print_string("forumname", "forum")?>:</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("forumtype", "forum")?>:</B></P></TD>
<td>
<?
$student = strtolower($course->student);
require("$CFG->dirroot/mod/forum/lib.php");
asort($FORUM_TYPES);
choose_from_menu($FORUM_TYPES, "type", $form->type);
?>
</td>
</tr>
<tr valign=top>
<td align=right><P><B><? print_string("forumintro", "forum")?>:</B></P></TD>
<td>
<textarea name="intro" rows=4 cols=50 wrap="virtual"><? p($form->intro) ?></textarea>
</td>
</tr>
<tr valign=top>
<td align=right><P><B><? print_string("allowdiscussions", "forum", "$course->student") ?>:</B></P></TD>
<td>
<? $stryes = get_string("yes"); $strno = get_string("no"); ?>
<input type=radio name=open value=1 <? if ($form->open == 1) echo "CHECKED"; ?> ><?=$stryes ?>
<input type=radio name=open value=0 <? if ($form->open == 0) echo "CHECKED"; ?> ><?=$strno ?>
</td>
</tr>
<tr>
<td align=right><P><B><? print_string("allowratings", "forum") ?>
<? helpbutton("waysofknowing", get_string("separateandconnected")) ?>
:</B></P></TD>
<td>
<input type=radio name=assessed value=1 <? if ($form->assessed == 1) echo "CHECKED"; ?> ><?=$stryes ?>
<input type=radio name=assessed value=0 <? if ($form->assessed == 0) echo "CHECKED"; ?> ><?=$strno ?>
</td>
</tr>
<tr>
<td align=right><P><B><? print_string("forcesubscribeq", "forum") ?>:</B></P></TD>
<td>
<input type=radio name=forcesubscribe value=1 <? if ($form->forcesubscribe == 1) echo "CHECKED"; ?> ><?=$stryes ?>
<input type=radio name=forcesubscribe value=0 <? if ($form->forcesubscribe == 0) echo "CHECKED"; ?> ><?=$strno ?>
</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>
Jump to Line
Something went wrong with that request. Please try again.