moodle/mod/forum/config.html

104 lines
2.9 KiB
HTML
Raw Normal View History

<form method="post" action="module.php" name="form">
<input type="hidden" name="sesskey" value="<?php echo $USER->sesskey ?>">
<table cellpadding="9" cellspacing="0" >
<tr valign="top">
<td align="right"><p>forum_displaymode:</td>
<td>
<?php choose_from_menu ($FORUM_LAYOUT_MODES, "forum_displaymode", $CFG->forum_displaymode, "", "", ""); ?>
</td>
<td>
<?php print_string("configdisplaymode", "forum") ?>
</td>
</tr>
<tr valign="top">
<td align="right"><p>forum_replytouser:</td>
<td>
<?php
unset($options);
$options[0] = get_string("no");
$options[1] = get_string("yes");
choose_from_menu ($options, "forum_replytouser", $CFG->forum_replytouser, "", "", "");
?>
</td>
<td>
<?php print_string("configreplytouser", "forum") ?>
</td>
</tr>
<tr valign="top">
<td align="right"><p>forum_shortpost:</td>
<td>
2004-09-12 22:23:51 +00:00
<input name="forum_shortpost" type="text" size="5" value="<?php p($CFG->forum_shortpost) ?>" />
</td>
<td>
<?php print_string("configshortpost", "forum") ?>
</td>
</tr>
<tr valign="top">
<td align="right"><p>forum_longpost:</td>
<td>
2004-09-12 22:23:51 +00:00
<input name="forum_longpost" type="text" size="5" value="<?php p($CFG->forum_longpost) ?>" />
</td>
<td>
<?php print_string("configlongpost", "forum") ?>
</td>
</tr>
<tr valign="top">
<td align="right"><p>forum_manydiscussions:</td>
<td>
2004-09-12 22:23:51 +00:00
<input name="forum_manydiscussions" type="text" size="5" value="<?php p($CFG->forum_manydiscussions) ?>" />
</td>
<td>
<?php print_string("configmanydiscussions", "forum") ?>
</td>
</tr>
<tr valign="top">
<td align="right"><p>forum_maxbytes:</td>
<td><?php
$choices = get_max_upload_sizes($CFG->maxbytes);
choose_from_menu ($choices, "forum_maxbytes", $CFG->forum_maxbytes, "");
?>
</td>
<td>
<?php print_string("configmaxbytes", "forum") ?>
</td>
</tr>
<tr valign="top">
<td align="right"><p>forum_enablerssfeeds:</td>
<td>
<?php
2004-08-07 17:21:43 +00:00
if (!isset($CFG->enablerssfeeds) || $CFG->enablerssfeeds == 0) {
print_string("no");
} else {
unset($options);
$options[0] = get_string("no");
$options[1] = get_string("yes");
2004-08-07 17:21:43 +00:00
$forum_enablerssfeeds = false;
if (isset($CFG->forum_enablerssfeeds) && $CFG->forum_enablerssfeeds == 1) {
$forum_enablerssfeeds = true;
}
2004-08-07 17:21:43 +00:00
choose_from_menu ($options, "forum_enablerssfeeds", $forum_enablerssfeeds, "", "", "");
}
?>
</td>
<td>
<?php
print_string("configenablerssfeeds","forum");
2004-08-07 17:21:43 +00:00
if (!isset($CFG->enablerssfeeds) || $CFG->enablerssfeeds == 0) {
print_string("configenablerssfeedsdisabled");
}
?>
</td>
</tr>
<tr>
<td colspan="3" align="center">
2004-09-12 22:23:51 +00:00
<input type="submit" value="<?php print_string("savechanges") ?>" /></td>
</tr>
</table>
</form>