<?php include mayi_tpl('inc_header'); ?><link rel="stylesheet"type="text/css"href="template/css/new.exchange.css"/><script src="template/javascript.js"></script><body class="blue"><div class="container"><div id="main"class="main section-setting"><div class="clearfix main-inner"><div class="content"><div class="clearfix content-inner"><div class="location"><?=$location?></div><div class="content-main"><div class="content-main-inner"><div class="pwrap"><div class="phead"></div><div class="pbody">
<div class="cleafix pagetab-wrap"><ul class="pagetab">
<li><a href="javascript:;"onClick="window.location.href='?m=avatar'" <?php if($m == 'avatar'){?>class="current"<?php }?>><span>店铺logo</span></a></li>
<li><a href="javascript:;"onClick="window.location.href='?m=shop&ac=base'" <?php if($m == 'base'){?>class="current"<?php }?>><span><?php echo $if_corp != 1 ? '申请开通店铺网站' : '店铺资料'; ?></span></a></li>
<li><a href="javascript:;"onClick="window.location.href='?m=shop&ac=template'" <?php if($ac == 'template'){?>class="current"<?php }?>><span>装修店铺</span></a></li>
<li><a href="javascript:;"onClick="window.location.href='?m=comment'" <?php if($m == 'comment'){?>class="current"<?php }?>><span>店铺点评</span></a></li>
<li><a href="javascript:;"onClick="window.location.href='?m=album'" <?php if($m == 'album'){?>class="current"<?php }?>><span>店铺相册</span></a></li>
<li><a href="javascript:;"onClick="window.location.href='?m=document'"<?php if($m == 'document'){?>class="current"<?php }?>><span>店铺新闻</span></a></li>
<?php if(ifplugin('goods')){?><li><a href="javascript:;"onClick="window.location.href='?m=goods'"<?php if($m == 'goods'){?>class="current"<?php }?>><span>店铺商品</span></a></li><?php }?>
<?php if(ifplugin('group')){?><li><a href="javascript:;"onClick="window.location.href='?m=group'"<?php if($m == 'group'){?>class="current"<?php }?>><span>店铺团购</span></a></li><?php }?>
<?php if(ifplugin('coupon')){?><li><a href="javascript:;"onClick="window.location.href='?m=coupon'"<?php if($m == 'coupon'){?>class="current"<?php }?>><span>店铺优惠券</span></a></li><?php }?>
</ul></div>
<div class="cleafix pagetab-wrap smallnav"><ul class="pagetab"><li><a href="?m=coupon&status=yes" <?php if($status == 'yes') echo 'class="current"'; ?>><span>可用</span></a><li><a href="?m=coupon&status=no" <?php if($status == 'no') echo 'class="current"'; ?>><span>失效</span></a></ul></div><div id="msg_success"></div><div id="msg_error"></div><div id="msg_alert"></div><form method="post"action="?m=<?=$m?>&ac=<?=$ac?>&page=<?=$page?>"><div class="datatablewrap"><table class="datatable"><thead><tr><td><input class="checkall"name="checkall"type="checkbox"id="checkall"onClick="CheckAll(this.form)"/><td width="100">缩略图<td>名称<td>打印次数<td>浏览<td>上传时间<td>详情<tbody><?php if($rows_num == 0 ){?><tr><td colspan="7"><div class="nodata">您尚未上传优惠券</div></tr><?php } else {
                $i = 1;
                foreach($coupon as $d){
                ?><tr <?php if($i%2 == 0) echo 'class="row-even"'?>><td><input class="checkbox"type="checkbox"name="selectedids[]"value="<?=$d[id]?>"id="<?=$d[id]?>'"><td><img src="<?php echo $d['pre_picture']; ?>"style="margin:5px 0"width="80"><td width="200"><a href="../coupon.php?id=<?=$d['id']?>"target="_blank"title="<?=$d['title']?>"><?=substring($d['title'],0,30)?></a><td><?=$d['prints']?><td><?=$d['hit']?><td><?=GetTime($d['dateline'])?><td><a href="?type=corp&m=coupon&ac=detail&id=<?=$d['id']?>"title="编辑"class="editme"></a></tr><?php 
                	$i++;
                    }
                    unset($i);
                }
                ?></table><div class="clearfix datacontrol"><div class="dataaction"><span class="minbtn-wrap"><span class="btn"><input type="submit"value="删除"class="button"name="coupon_submit"onClick="if(!confirm('您确定要删除这些优惠券吗?一旦删除将不可恢复'))return false;"/></span></span></div><div class="pagination"><?php echo page2(); ?></div></div></div></form></div><div class="pfoot"><p><b>-</b></div></div></div></div></div></div></div></div><?php include mayi_tpl('inc_foot'); ?></div>