<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="{url:/order/delivery_del}" method="post">
	<table class="table list-table">
		<colgroup>
			<col width="35px" />
			<col width="200px" />
			<col width="105px" />
			<col />
		</colgroup>
		<caption>
            <a class="btn btn-default" onclick="selectAll('id[]')">
                <i class="fa fa-check"></i>全选
            </a>
            <a class="btn btn-default" onclick="delModel()">
                <i class="fa fa-close"></i>批量删除
            </a>
            <a class="btn btn-default" href='{url:/order/delivery_recycle_list}'>
                <i class="fa fa-trash"></i>回收站
            </a>
		</caption>
		<thead>
			<tr>
				<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('getListByDeliveryDoc',array('if_del'=>'0'));$resultData=$queryObj->find()}
            {foreach:items=$resultData}
			<tr>
				<td><input name="id[]" type="checkbox" value="{$item['id']}" /></td>
				<td>{$item['order_no']}</td>
				<td>{$item['name']}</td>
				<td>{$item['delivery_code']}</td>
				<td>{$item['freight_name']}</td>
				<td>{$item['freight']}</td>
				<td>{echo:$item['username']=='' ? '游客' : $item['username']}</td>
				<td>{$item['time']}</td>
				<td><a href="{url:/order/delivery_show/id/$item['id']}"><i class='operator fa fa-edit'></i></a></td>
			</tr>
			{/foreach}
		</tbody>
	</table>
	</form>
</div>
{$queryObj->getPageBar()}