<?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="50%"><strong>启用后台审核:</strong>管理员通过后台对前台发布的优惠券进行审核。</td>
                <td width="*">是 <input type="radio" name="modcfg[check]" value="1"<?if($modcfg['check'])echo ' checked'?> />&nbsp;&nbsp;&nbsp;否 <input type="radio" name="modcfg[check]" value="0" <?if(empty($modcfg['check']))echo ' checked'?> /></td>
            </tr>
            <tr>
                <td class="altbg1"><strong>优惠券水印:</strong>是否在优惠券上加入水印，注意：加了水印的优惠券可能失效。</td>
                <td>是 <input type="radio" name="modcfg[watermark]" value="1"<?if($modcfg['watermark'])echo ' checked'?> />&nbsp;&nbsp;&nbsp;否 <input type="radio" name="modcfg[watermark]" value="0" <?if(empty($modcfg['watermark']))echo ' checked'?> /></td>
            </tr>
            <tr>
                <td class="altbg1"><strong>优惠券缩略图宽度和高度:</strong>优惠券上传后自动截取大小，宽度 x 高度，建议（默认）为72 x 47 px</td>
                <td><input type="text" name="modcfg[thumb_width]" value="<?=$modcfg['thumb_width']?>" class="txtbox5" />&nbsp;x&nbsp;<input type="text" name="modcfg[thumb_height]" value="<?=$modcfg['thumb_height']?>" class="txtbox5" /></td>
            </tr>
            <tr>
                <td class="altbg1"><strong>开启兑换验证码:</strong>发布优惠券时，必须输入验证码。</td>
                <td>是 <input type="radio" name="modcfg[seccode]" value="1"<?if($modcfg['seccode'])echo ' checked'?> />&nbsp;&nbsp;&nbsp;否 <input type="radio" name="modcfg[seccode]" value="0" <?if(empty($modcfg['seccode']))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 />coupon/coupon.php?couponid=2 将替换为 coupon/2，</td>
            </tr>
        </table>
        <center><input type="submit" name="dosubmit" value=" 提交 " class="btn" /></center>
    </div>
</form>
</div>