<{include file="index/header.html"}> 
<div class="nav"><span>打折优惠</span></div> 
<div class="main"> 
	<table class="ltable">
	  	<thead>
		  	<tr> 
				<th width="40">编号</th>
				<th width="100">店铺名称</td> 
				<th width="200">名称</th>
				<th width="120">开始时间</th> 
				<th width="120">结束时间</th>
				<th width="120">时间</th>
				<th width="70">操作</th>
				<th></th>
		  	</tr>
	  	</thead>
		<tbody>
		<{if $data.list}>
			<{foreach item=i from=$data.list}>
				<tr> 
					<td><{$i.id}></td> 
					<td><{$i.shop_name}></td> 
					<td><{$i.name}></td>
					<td><{$i.start_time}></td> 
					<td><{$i.end_time}></td> 
					<td><{$i.addtime}> </td>
					<td><a href="javascript:;" data-id="<{$i.id}>" class="del">删除</a></td>
					<td></td>
				</tr>
			<{/foreach}>
		<{else}>
				<tr><td colspan="8">还没有数据，赶快添加吧！</td></tr>
		<{/if}>
		</tbody>
	</table>
	<div class="operate">
		&nbsp;
		<{if $data.page}><div class="tpage"><{$data.page}></div><{/if}>
	</div>
</div>
<{include file="index/footer.html"}> 
<script type="text/javascript">
_delete("?m=goods_act&a=reduce_del", '.del_ck');
function status(id,type){
	$.post("?m=goods_act&a=seckill_status",{id:id, type:type},function(data){
 		if(data == '0' || data == '1'){
			$("#"+type+"_"+id+" img").attr('src','<{$__APP__}>public/images/status_'+data+'.png');
		}else{ alert('更新失败'); } 
	});	
} 
</script>