<div class="breadcrumbs" id="breadcrumbs">
	<ul class="breadcrumb">
		<li>
			<i class="home-icon fa fa-home"></i>
			<a href="#">订单</a>
		</li>
		<li>
			<a href="#">订单管理</a>
		</li>
		<li class="active">订单回收站</li>
	</ul>
</div>

<div class="content">
	<form name="orderForm" action="" method="post">
	<table class="table list-table">
		<colgroup>
			<col width="35px" />
			<col width="165px" />
			<col width="80px" />
			<col width="80px" />
			<col width="80px" />
			<col width="80px" />
			<col width="80px" />
			<col />
			<col width="180px" />
			<col width="120px" />
		</colgroup>
		<caption>
            <a class="btn btn-default" href='{url:/order/order_list}'>
                <i class="fa fa-reply"></i>返回列表
            </a>
            <a class="btn btn-default" onclick="selectAll('id[]')">
                <i class="fa fa-check"></i>全选
            </a>
            <a class="btn btn-default" onclick="delModel({link:'{url:/order/order_recycle_del}',form:'orderForm'});">
                <i class="fa fa-close"></i>彻底删除
            </a>
            <a class="btn btn-default" onclick="delModel({'form':'orderForm',link:'{url:/order/order_recycle_restore}','msg':'是否还原所选择的订单？'});">
                <i class="fa fa-recycle"></i>还原
            </a>
		</caption>
		<thead>
			<tr>
				<th></th>
				<th>订单号</th>
				<th>收货人</th>
				<th>支付状态</th>
				<th>发货状态</th>
				<th>订单状态</th>
				<th>支付方式</th>
				<th>用户名</th>
				<th>下单时间</th>
				<th>操作</th>
			</tr>
		</thead>

		<tbody>
            {set:$queryObj=Api::run('getOrderRecycleList');$resultData=$queryObj->find()}
            {foreach:items=$resultData}
			<tr>
				<td><input name="id[]" type="checkbox" value="{$item['oid']}" /></td>
				<td>{$item['order_no']}</td>
				<td>{$item['accept_name']}</td>
				<td>{echo:Order_Class::getOrderPayStatusText($item)}</td>
				<td>{echo:Order_Class::getOrderDistributionStatusText($item)}</td>
				<td>{echo:order_class::orderStatusText(order_class::getOrderStatus($item))}</td>
				<td>{$item['pname']}</td>
				<td>{echo:$item['username']=='' ? '游客' : $item['username']}</td>
				<td>{$item['create_time']}</td>
				<td>
					{if:$item['status']<3}
					<a href="{url:/order/order_edit/id/$item['oid']}"><i class='operator fa fa-edit'></i></a>
					{/if}
					<a href="javascript:delModel({link:'{url:/order/order_recycle_del/id/$item['oid']}'})"><i class='operator fa fa-close'></i></a>
				</td>
			</tr>
			{/foreach}
		</tbody>
	</table>
	</form>
</div>
{$queryObj->getPageBar()}