1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-05-13 02:55:20 +02:00

No point in outputting two type fields in edit

git-svn-id: file:///svn/phpbb/trunk@3100 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
Paul S. Owen 2002-11-26 11:26:51 +00:00
parent 8f051f1b47
commit 16e8fb800f

View File

@ -451,28 +451,11 @@ 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>
@ -490,9 +473,33 @@ 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>