<div class="headbar">
	<div class="position">订单<span>></span><span>单据管理</span><span>></span><span>收款单列表</span></div>
	<div class="operating">
		<a href="javascript:void(0)" onclick="selectAll('id[]')"><button class="operating_btn" type="button"><span class="sel_all">全选</span></button></a>
		<a href="javascript:void(0)" onclick="delModel()"><button class="operating_btn" type="button"><span class="delete">批量删除</span></button></a>
		<a href="javascript:void(0)"><button class="operating_btn" type="button" onclick="location.href='{url:/order/collection_recycle_list}'"><span class="recycle">回收站</span></button></a>
	</div>
</div>
<form name="orderForm" action="{url:/order/collection_del}" method="post">
<div class="content">
	<table class="list_table">
		<colgroup>
			<col width="30px" />
			<col width="30px" />
			<col width="200px" />
			<col width="105px" />
			<col />
		</colgroup>

		<thead>
			<tr>
				<th>选择</th>
				<th></th>
				<th>订单号</th>
				<th>收款金额</th>
				<th>付款人</th>
				<th>支付方式</th>
				<th>支付状态</th>
				<th>完成时间</th>
			</tr>
		</thead>
		<tbody>
			{set:$page= (isset($_GET['page'])&&(intval($_GET['page'])>0))?intval($_GET['page']):1;}
			{query: name=collection_doc as c join=left join order as o on c.order_id eq o.id left join user as u on u.id eq c.user_id left join payment as p on c.payment_id eq p.id fields=o.order_no,c.amount,u.username,p.name,c.id,c.pay_status,c.time where=c.if_del eq 0 order= o.id desc  page=$page }
			<tr>
				<td><input name="id[]" type="checkbox" value="{$item['id']}" /></td>
				<td><a href="{url:/order/collection_show/id/$item[id]}"><img class="operator" src="{skin:images/admin/icon_check.gif}" title="查看" /></a></td>
				<td>{$item['order_no']}</td>
				<td>{$item['amount']}</td>
				<td>{$item['username']}</td>
				<td>{$item['name']}</td>
				<td>{if:$item['pay_status']==1}支付完成{else:}准备中{/if}</td>
				<td>{$item['time']}</td>
			</tr>
			{/query}
		</tbody>
	</table>
</div>
{$query->getPageBar()}
</form>
