<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">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">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">forum_shortpost:</td>
    <td>
    <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">forum_longpost:</td>
    <td>
    <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">forum_manydiscussions:</td>
    <td>
    <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">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">forum_trackreadposts:</td>
    <td>
    <?php
       unset($options);
       $options[0] = get_string("no");
       $options[1] = get_string("yes");
       choose_from_menu ($options, "forum_trackreadposts", $CFG->forum_trackreadposts, "", "", "");
    ?>
    </td>
    <td>
    <?php print_string("configtrackreadposts", "forum") ?>
    </td>
</tr>
<tr valign="top">
    <td align="right">forum_oldpostdays:</td>
    <td>
    <input name="forum_oldpostdays" type="text" size="5" value="<?php p($CFG->forum_oldpostdays) ?>" />
    </td>
    <td>
    <?php print_string("configoldpostdays", "forum") ?>
    </td>
</tr>
<tr valign="top">
    <td align="right">forum_usermarksread:</td>
    <td>
    <?php
       unset($options);
       $options[0] = get_string("no");
       $options[1] = get_string("yes");
       choose_from_menu ($options, "forum_usermarksread", $CFG->forum_usermarksread, "", "", "");
    ?>
    </td>
    <td>
    <?php print_string("configusermarksread", "forum") ?>
    </td>
</tr>
<tr valign="top">
    <td align="right">forum_cleanreadtime:</td>
    <td>
    <?php
       unset($options);
       $options[0] = '0';
       $options[1] = '1';
       $options[2] = '2';
       $options[3] = '3';
       $options[4] = '4';
       $options[5] = '5';
       $options[6] = '6';
       $options[7] = '7';
       $options[8] = '8';
       $options[9] = '9';
       $options[10] = '10';
       $options[11] = '11';
       $options[12] = '12';
       $options[13] = '13';
       $options[14] = '14';
       $options[15] = '15';
       $options[16] = '16';
       $options[17] = '17';
       $options[18] = '18';
       $options[19] = '19';
       $options[20] = '20';
       $options[21] = '21';
       $options[22] = '22';
       $options[23] = '23';
       choose_from_menu ($options, "forum_cleanreadtime", $CFG->forum_cleanreadtime, "", "", "");
    ?>
    </td>
    <td>
    <?php print_string("configcleanreadtime", "forum") ?>
    </td>
</tr>

<tr valign="top">
        <td align="right">forum_enablerssfeeds:</td>
        <td>
    <?php
        if (!isset($CFG->enablerssfeeds) || $CFG->enablerssfeeds == 0) {
            print_string("no");
        } else {
            unset($options);
            $options[0] = get_string("no");
            $options[1] = get_string("yes");

            $forum_enablerssfeeds = false;
            if (isset($CFG->forum_enablerssfeeds) && $CFG->forum_enablerssfeeds == 1) {
                $forum_enablerssfeeds = true;
            }

 
            choose_from_menu ($options, "forum_enablerssfeeds", $forum_enablerssfeeds, "", "", "");
        }
    ?>
    </td>
    <td>
    <?php 
        print_string("configenablerssfeeds","forum");
        if (!isset($CFG->enablerssfeeds) || $CFG->enablerssfeeds == 0) {
            print_string("configenablerssfeedsdisabled");
        }
    ?>
    </td>
</tr>

<tr>
    <td colspan="3" align="center">
    <input type="submit" value="<?php print_string("savechanges") ?>" /></td>
</tr>
</table>

</form>
