<?php (!defined('IN_ADMIN') || !defined('IN_MUDDER')) && exit('Access Denied'); ?>
<div id="body">
<form method="post" action="admincp.php?action=<?=$action?>&file=<?=$file?>">
<input type="hidden" name="articleid" value="<?=$articleid?>" />
    <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]" value="<?=$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($article['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="<?=$article['shopid']?>" /></td>
            </tr>
            <tr>
                <td class="altbg1">属性att:</td>
                <td><input type="text" class="txtbox4" name="article[att]" value="<?=$article['att']?>" /></td>
            </tr>
            <tr>
                <td class="altbg1">作者:</td>
                <td><input type="text" class="txtbox" name="article[author]" value="<?=$article['author']?>" /></td>
            </tr>
            <tr>
                <td class="altbg1">关键字:</td>
                <td><input type="text" class="txtbox" name="article[keywords]" value="<?=$article['keywords']?>" /></td>
            </tr>
            <tr>
                <td class="altbg1">来源:</td>
                <td><input type="text" class="txtbox" name="article[copyfrom]" value="<?=$article['copyfrom']?>" /></td>
            </tr>
            <tr>
                <td class="altbg1">是否审核:</td>
                <td>
                    <input type="radio" name="article[status]" value="1"<?if($article['status']==1)echo' checked';?> />已审核&nbsp;
                    <input type="radio" name="article[status]" value="2"<?if($article['status']==2)echo' checked';?> />未审核&nbsp;
                </td>
            </tr>
            <tr>
                <td class="altbg1">发布时间:</td>
                <td><input type="checkbox" name="newdateline" id="newdateline" value="1" />
                <label for="newdateline">更新至当前</label></td>
            </tr>
            <tr>
                <td class="altbg1" valign="top">简介:<br />纯文字，不多于200字</td>
                <td><textarea name="article[introduce]" rows="5" cols="65"><?=$article['introduce']?></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>