<{include file="index/header.html"}> 
<div class="nav"><span>订单列表</span></div> 
<div class="explain">
	<div class="name"><span>操作提示</span></div>
	<div class="con">
		<p>订单删除功能，只能对只下单未支付的订单进行删除。</p>   
	</div> 
</div>
<div class="filter"> 
	<input type="button" name="del_checked" class="del_ck button" value="删除选项"/> 
	<a href="?m=goods_order" class="<{if $smarty.get.status == ''}>option_ch<{else}>option<{/if}>">全部</a>
	<a href="?m=goods_order&status=1" class="<{if $smarty.get.status == '1'}>option_ch<{else}>option<{/if}>">下单</a>
	<a href="?m=goods_order&status=2" class="<{if $smarty.get.status == '2'}>option_ch<{else}>option<{/if}>">支付</a>
	<a href="?m=goods_order&status=3" class="<{if $smarty.get.status == '3'}>option_ch<{else}>option<{/if}>">发货</a>
	<a href="?m=goods_order&status=4" class="<{if $smarty.get.status == '4'}>option_ch<{else}>option<{/if}>">收货</a>
	<a href="?m=goods_order&status=5" class="<{if $smarty.get.status == '5'}>option_ch<{else}>option<{/if}>">评价</a>
	<a href="?m=goods_order&status=0" class="<{if $smarty.get.status == '0'}>option_ch<{else}>option<{/if}>">失效</a>
	<form action="#" method="get">
		<input type="hidden" name="m" value="goods_order"/>	
		<input type="hidden" name="a" value="index"/>
		<div class="sch">
			<input type="text" name="order_no" class="text" value="" size="25" placeholder="订单号码"/>
			<input type="submit" class="submit" value="查找"/>
		</div>
	</form> 
</div>
<div class="main"> 
	<table class="ltable">
	  	<thead>
		  	<tr>
				<th width="30"><input type="checkbox" class="checked_all"/></th> 
				<th width="38">方式</th>
				<th width="120">下单时间</th> 
				<th width="150">订单编号</th>  
				<th width="150">商户名称</th>
				<th width="60">价格</th>
				<th width="60">支付</th>
				<th width="130">支付时间</th>
				<th width="80">订单状态</th>
				<th width="120">查看订单</th>
				<th></th>
		  	</tr>
	  	</thead>
		<tbody>
	<{if $data.list}>
		<{foreach item=i from=$data.list}>
			<tr>
				<td><input name="key_id[]" type="checkbox" value="<{$i.id}>" class="checked_list"/></td>
				<td><{if $i.position}><img src="<{$__APP__}>public/images/icon/pst_<{$i.position}>.png"/><{else}><{/if}></td>
				<td><{$i.addtime}></td>
				<td><{$i.order_no}></td> 
				<td><{$i.shop_name}></td>
				<td><{$i.goods_price}></td>  
				<td><{$i.total_price}></td>
				<td><{$i.pay_time}></td> 
				<td><{$i.order_status_cn}></td>  
				<td><a href="?m=goods_order&a=detail&id=<{$i.id}>" class="view">查看</a>
					<a href="javascript:;" data-id="<{$i.id}>" class="del">删除</a>
				</td>
				<td></td>
			</tr>
		<{/foreach}>
	<{else}>
	  		<tr><td colspan="11">还没有数据，赶快添加吧！</td></tr>
	<{/if}>
		</tbody> 
	</table> 
	<{if $data.page}>
		<div class="operate"> 
			<div class="tpage"><{$data.page}></div>
		</div>
	<{/if}> 
</div>
<{include file="index/footer.html"}> 
<script type="text/javascript">
_delete('?m=goods_order&a=del', '.del_ck');
</script>
