<?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"><?=$MOD['name']?> - 模块配置</div>
        <table class="maintable" border="0" cellspacing="0" cellpadding="0">
            <tr>
                <td width="50%" class="altbg1"><strong>启用商家文章发布：</strong>通过商铺认领后，商家可在<?=$MOD['name']?>发布文章</td>
                <td width="*">
                    <input type="radio" name="modcfg[ownernews]" value="1" <?if($ownernews)echo'checked ';?>/>是
                    <input type="radio" name="modcfg[ownernews]" value="0" <?if(empty($ownernews))echo'checked ';?>/>否
                </td>
            </tr>
            <tr>
                <td class="altbg1"><strong>指定发布栏目：</strong>给商家指定发布文章的栏目</td>
                <td>
                    <select name="modcfg[ownernews_classid]">
                        <?foreach($articleclass as $val) {?>
                        <option value="<?=$val['classid']?>"<?if($val['classid']==$ownernews_classid)echo' selected';?>><?=$val['classname']?></option>
                        <?}?>
                    </select>
                </td>
            </tr>
            <tr>
                <td width="50%" class="altbg1"><strong>启用商家文章审核功能：</strong>对于商家发布的文章，须经过后台管理员审核。</td>
                <td width="*">
                    <input type="radio" name="modcfg[ownernews_check]" value="1" <?if($ownernews_check)echo'checked ';?>/>是
                    <input type="radio" name="modcfg[ownernews_check]" value="0" <?if(empty($ownernews_check))echo'checked ';?>/>否
                </td>
            </tr>
            <tr>
                <td class="altbg1"><strong>开启优惠券伪静态功能:</strong>请确认服务器支持rewrite模块，并且已经加入rewrite规则，规则请查询modoer官网教程。</td>
                <td>是 <input type="radio" name="modcfg[rewrite]" value="1"<?if($modcfg['rewrite'])echo ' checked'?> />&nbsp;&nbsp;&nbsp;否 <input type="radio" name="modcfg[rewrite]" value="0" <?if(empty($modcfg['rewrite']))echo ' checked'?> /><br />article/article.php?articleid=2 将替换为 article/article_2.html，</td>
            </tr>
        </table>
        <center><button type="submit" name="dosubmit" value="yes" class="btn" /> 提交 </button></center>
    </div>
</form>
</div>