aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPaul S. Owen <psotfx@users.sourceforge.net>2002-11-26 11:26:51 +0000
committerPaul S. Owen <psotfx@users.sourceforge.net>2002-11-26 11:26:51 +0000
commit16e8fb800fb3b72d1c87fca829faab1cbb668f25 (patch)
tree2202eeecf59052ceded442f4f2b0e009998ced9c
parent8f051f1b474fe8ede0540baca4ad1bc80742f4db (diff)
downloadforums-16e8fb800fb3b72d1c87fca829faab1cbb668f25.tar
forums-16e8fb800fb3b72d1c87fca829faab1cbb668f25.tar.gz
forums-16e8fb800fb3b72d1c87fca829faab1cbb668f25.tar.bz2
forums-16e8fb800fb3b72d1c87fca829faab1cbb668f25.tar.xz
forums-16e8fb800fb3b72d1c87fca829faab1cbb668f25.zip
No point in outputting two type fields in edit
git-svn-id: file:///svn/phpbb/trunk@3100 89ea8834-ac86-4346-8a33-228a782c2dd0
-rw-r--r--phpBB/admin/admin_forums.php45
1 files changed, 26 insertions, 19 deletions
diff --git a/phpBB/admin/admin_forums.php b/phpBB/admin/admin_forums.php
index 23ff74bb06..9491624db1 100644
--- a/phpBB/admin/admin_forums.php
+++ b/phpBB/admin/admin_forums.php
@@ -451,30 +451,13 @@ switch ($mode)
<td class="row1"><?php echo $user->lang['Forum_desc'] ?></td>
<td class="row2"><textarea class="post" rows="5" cols="45" wrap="virtual" name="forum_desc"><?php echo $forum_desc ?></textarea></td>
</tr>
- <tr>
- <td class="row1"><?php echo $user->lang['FORUM_TYPE'] ?></td>
- <td class="row2"><input type="radio" name="is_postable" value="1" <?php echo $postable_checked ?>/><?php echo $user->lang['IS_POSTABLE'] ?> &nbsp; <input type="radio" name="is_postable" value="0" <?php echo $nonpostable_checked ?>/><?php echo $user->lang['NOT_POSTABLE'] ?></td>
- </tr>
- <tr>
- <th colspan="2"><?php echo $user->lang['Forum_settings'] ?></th>
- </tr>
<?php
- if ($forum_postable || $mode == 'add')
+ if ($forum_postable && $mode == 'edit')
{
?>
<tr>
- <td class="row1"><?php echo $user->lang['FORUM_STATUS'] ?></td>
- <td class="row2"><select name="forum_status"><?php echo $statuslist ?></select></td>
- </tr>
-<?php
-
- if ($mode == 'edit')
- {
-
-?>
- <tr>
<td class="row1"><?php echo $user->lang['FORUM_TYPE'] ?></td>
<td class="row2"><table width="100%" cellspacing="0" cellpadding="0" border="0">
<tr>
@@ -490,10 +473,34 @@ switch ($mode)
</tr>
<?php
- }
+ }
+ else
+ {
?>
<tr>
+ <td class="row1"><?php echo $user->lang['FORUM_TYPE'] ?></td>
+ <td class="row2"><input type="radio" name="is_postable" value="1" <?php echo $postable_checked ?>/><?php echo $user->lang['IS_POSTABLE'] ?> &nbsp; <input type="radio" name="is_postable" value="0" <?php echo $nonpostable_checked ?>/><?php echo $user->lang['NOT_POSTABLE'] ?></td>
+ </tr>
+<?php
+
+ }
+
+?>
+ <tr>
+ <th colspan="2"><?php echo $user->lang['Forum_settings'] ?></th>
+ </tr>
+<?php
+
+ if ($forum_postable || $mode == 'add')
+ {
+
+?>
+ <tr>
+ <td class="row1"><?php echo $user->lang['FORUM_STATUS'] ?></td>
+ <td class="row2"><select name="forum_status"><?php echo $statuslist ?></select></td>
+ </tr>
+ <tr>
<td class="row1"><?php echo $user->lang['FORUM_STYLE'] ?></td>
<td class="row2"><select name="forum_style"><option value="0"><?php echo $user->lang['Default_style'] ?></option><?php echo $styles_list ?></select></td>
</tr>