<{include file="index/header.html"}> 
<div class="nav">
	<a href="?m=goods_act&a=group">拼团团购</a> 
	<a href="?m=goods_act&a=group_order" class="ch">拼团订单</a> 
</div>   
<div class="main"> 
	<table class="ltable">
	  	<thead>
		  	<tr> 
				<th width="50">头像</th>
				<th width="200">账号</td>
				<th width="60">拼主</th>
				<th width="140">支付时间</th>
				<th width="120">订单号</th>
				<th></th>
		  	</tr>
	  	</thead>
		<tbody>
		<{if $data.list}>
			<{foreach item=i name=lname from=$data.list}>
				<tr> 
					<td>
					<{if $i.avatar}>
					<a href="index.php?m=goods&a=detail&id=<{$i.gid}>" target="_blank"><img src="<{$__IMG__}><{$i.avatar|img_size:50x50}>" width="35" height="35"/></a>
					<{else}>
						<a href="index.php?m=goods&a=detail&id=<{$i.gid}>" target="_blank"><img src="<{$__PUBLIC__}>images/avatar.png" width="35" height="35"/></a>
					<{/if}>
					</td> 
					<td valign="top"><a href="?m=member&a=enter&uid=<{$i.uid}>" target="_blank"><{$i.mobile}></a></td> 
					<td><{if $smarty.foreach.lname.first}><span style="color:#f00; font-weight:bold;">拼主</span><{else}>拼员<{/if}></td> 
					<td><{$i.addtime}></td>
					<td><a href="?m=goods_order&a=detail&id=<{$i.order_id}>" class="view">查看订单</a></td> 
					<td></td>
				</tr>
			<{/foreach}>
		<{else}>
				<tr><td colspan="13">还没有数据，赶快添加吧！</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_act&a=seckill_del", '.del_ck');
function status(id,type){
	$.post("?m=goods_act&a=group_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>