<?php (!defined('IN_ADMIN') || !defined('IN_MUDDER')) && exit('Access Denied'); ?>
<div id="body">
<form method="post" action="admincp.php?action=<?=$action?>&file=<?=$file?>&">
    <?if($panelcode){?>
    <input type="hidden" name="classsort" value="2" />
    <?}else{?>
    <input type="hidden" name="classsort" value="1" />
    <?}?>
    <div class="space">
        <div class="subtitle">添加板块</div>
        <table class="maintable" border="0" cellspacing="0" cellpadding="0">
            <tr>
                <td width="45%" class="altbg1"><strong>点评板块名称：</strong></td>
                <td width="55%"><input type="text" name="classname" class="txtbox" value="" /></td>
            </tr>
            <tr>
                <td class="altbg1"><strong>显示顺序：</strong></td>
                <td><input type="text" name="classorder" value="0" class="txtbox4" /></td>
            </tr>
            <?if($panelcode){?>
            <tr>
                <td class="altbg1">所属板块:</td>
                <td><select name="panelcode">
                    <option value="">==选择板块==</option>
                <?foreach($panels as $panel){?>
                    <option value="<?=$panel['classcode']?>"<?if($panelcode==$panel['classcode']){?> selected="selected"<?}?>><?=$panel['classname']?></option>
                <?}?>
                </select></td>
            </tr>
            <?}?>
        </table>
        <center><button type="submit" name="dosubmit" value="yes" class="btn" /><?if($panelcode){?> 提交 <?}else{?>下一步<?}?></button></center>
    </div>
</form>
</div>