<?php (!defined('IN_ADMIN') || !defined('IN_MUDDER')) && exit('Access Denied'); ?>
<div id="body">
<form method="post" action="admincp.php?action=<?=$action?>&file=<?=$file?>">
    <div class="space">
        <div class="subtitle">增加文章</div>
        <table class="maintable" border="0" cellspacing="0" cellpadding="0">
            <tr>
                <td class="altbg1" width="15%">标题:</td>
                <td width="*"><input type="text" class="txtbox" name="article[subject]" /></td>
            </tr>
            <tr>
                <td class="altbg1">分类:</td>
                <td><select name="article[classid]">
                    <option>==选择分类==</option>
                    <?foreach($articleclass as $key => $val) { ?>
                    <option value="<?=$key?>"<?if($classid==$key)echo' selected';?>><?=$val['classname']?></option>
                    <? } ?>
                </select></td>
            </tr>
            <tr>
                <td class="altbg1">绑定商铺ID:</td>
                <td><input type="text" class="txtbox4" name="article[shopid]" value="" /></td>
            </tr>
            <tr>
                <td class="altbg1">属性att:</td>
                <td><input type="text" class="txtbox4" name="article[att]" /></td>
            </tr>
            <tr>
                <td class="altbg1">作者:</td>
                <td><input type="text" class="txtbox" name="article[author]" value="<?=$admin->adminname?>" /></td>
            </tr>
            <tr>
                <td class="altbg1">关键字:</td>
                <td><input type="text" class="txtbox" name="article[keywords]" /></td>
            </tr>
            <tr>
                <td class="altbg1">来源:</td>
                <td><input type="text" class="txtbox" name="article[copyfrom]" value="本站原创" /></td>
            </tr>
            <tr>
                <td class="altbg1">是否审核:</td>
                <td>
                    <input type="radio" name="article[status]" value="1" checked />已审核&nbsp;
                    <input type="radio" name="article[status]" value="2" />未审核&nbsp;
                </td>
            </tr>
            <tr>
                <td class="altbg1" valign="top">简介:<br />纯文字，不多于200字</td>
                <td><textarea name="article[introduce]" rows="5" cols="65"></textarea></td>
            </tr>
            <tr>
                <td class="altbg1" valign="top">详细内容:</td>
                <td><?=$fckhtml?></td>
            </tr>
        </table>
        <center>
            <button type="submit" name="dosubmit" value="yes" class="btn">发布文章</button>&nbsp;
            <button type="button" class="btn" onclick="history.go(-1);"> 返回 </button>
        </center>
    </div>
</form>
</div>