<?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 class="altbg2">
                <th colspan="5">
                    <ul class="subtab">
                        <li<?=empty($pcd)?' class="current"':''?>><a href="admincp.php?action=<?=$action?>&file=<?=$file?>">所有商家</a></li>
                        <?foreach($_panels as $p_key => $panel) { ?>
                        <li<?=$p_key==$pcd?' class="current"':''?>><a href="admincp.php?action=<?=$action?>&file=<?=$file?>&pcd=<?=$p_key?>"><?=$panel?></a></li>
                        <?}?>
                    </ul>
                </th>
            </tr>
            <tr class="altbg1">
                <td width="5%">删?</td>
                <td width="30%">名称</td>
                <td width="25%">折扣信息</td>
                <td width="30%">备注</td>
                <td width="10%">推荐</td>
            </tr>
            <?if($shops) { foreach($shops as $shop) { ?>
            <tr>
                <input type="hidden" name="shops[<?=$shop['shopid']?>][shopid]" value="<?=$shop['shopid']?>" />
                <td><input type="checkbox" name="shopids[]" value="<?=$shop['shopid']?>" /></td>
                <td><a href="<?=$_modules['shop']['url'].'shop.php?shopid='.$shop['shopid']?>" target="_blank"><?=$shop['shopname']?></a></td>
                <td><span class="font_1"><?=$shop['membercard_msg']?></span></td>
                <td><?=$shop['exception']?></td>
                <td><input type="checkbox" name="shops[<?=$shop['shopid']?>][finer]" value="1" <?=($shop['finer'] ? 'checked="checked" ' : '')?> /></td>
            </tr>
            <? } ?>
            <? } else { ?>
            <tr><td colspan="7">暂无信息。</td></tr>
            <? } ?>
        </table>
        <?if($multipage){?><div class="multipage"><?=$multipage?></div><?}?>
        <center><input type="submit" name="dosubmit" value=" 提交 " class="btn" /></center>
    </div>
</form>