{x2;if:!$userhash}
{x2;include:header}
<body>
{x2;include:nav}
<div class="container-fluid">
	<div class="row-fluid">
		<div class="main">
			<div class="col-xs-2 leftmenu">
				{x2;include:menu}
			</div>
			<div id="datacontent">
{x2;endif}
				<div class="box itembox" style="margin-bottom:0px;border-bottom:1px solid #CCCCCC;">
					<div class="col-xs-12">
						<ol class="breadcrumb">
							<li><a href="index.php?{x2;$_app}-master">{x2;$apps[$_app]['appname']}</a></li>
							<li class="active">订单列表</li>
						</ol>
					</div>
				</div>
				<div class="box itembox" style="padding-top:10px;margin-bottom:0px;">
					<h4 class="title" style="padding:10px;">
						订单列表
					</h4>
					<form action="index.php?bank-master-orders" method="post" class="form-inline">
						<table class="table">
							<thead>
							<tr>
								<td>
									订单号：
								</td>
								<td>
									<input name="search[ordersn]" class="form-control" size="15" type="text" value="{x2;$search['ordersn']}"/>
								</td>
								<td>
									下单时间：
								</td>
								<td>
									<input class="form-control datetimepicker" data-date="{x2;date:TIME,'Y-m-d'}" data-date-format="yyyy-mm-dd" type="text" name="search[stime]" size="10" id="stime" value="{x2;$search['stime']}"/> - <input class="form-control datetimepicker" data-date="{x2;date:TIME,'Y-m-d'}" data-date-format="yyyy-mm-dd" size="10" type="text" name="search[etime]" id="etime" value="{x2;$search['etime']}"/>
								</td>
								<td>
									客户名：
								</td>
								<td>
									<input class="form-control" name="search[username]" size="15" type="text" value="{x2;$search['username']}"/>
								</td>
							</tr>
							<tr>
								<td>
									订单状态：
								</td>
								<td>
									<select name="search[orderstatus]" class="form-control">
										<option value="0">不限</option>
										{x2;tree:$orderstatus,status,sid}
										<option value="{x2;v:key}"{x2;if:$search['orderstatus'] == v:key} selected{x2;endif}>{x2;v:status}</option>
										{x2;endtree}
									</select>
								</td>
								<td>
									支付方式：
								</td>
								<td>
									<select name="search[paytype]" class="form-control">
										<option value="0">不限</option>
										{x2;tree:$paytypes,paytype,pid}
										<option value="{x2;v:key}"{x2;if:$search['paytype'] == v:key} selected{x2;endif}>{x2;v:paytype}</option>
										{x2;endtree}
									</select>
								</td>
								<td>
									<button class="btn btn-primary" type="submit">提交</button>
								</td>
							</tr>
							</thead>
						</table>
						<div class="input">
							<input type="hidden" value="1" name="search[argsmodel]" />
						</div>
					</form>
					<form action="index.php?bank-master-orders-batremove" method="post">
						<fieldset>
							<table class="table table-hover table-bordered">
								<thead>
									<tr class="info">
										<th width="40"><input type="checkbox" class="checkall" target="delids"/></th>
										<th width="175">订单号</th>
										<th>商品</th>
										<th width="120">订单客户</th>
										<th width="90">充值金额</th>
										<th width="100">下单时间</th>
										<th width="90">订单状态</th>
										<th width="90">支付方式</th>
										<th width="100">操作</th>
									</tr>
								</thead>
								<tbody>
									{x2;tree:$orders['data'],order,oid}
									<tr>
										<td><input type="checkbox" name="delids[{x2;v:order['ordersn']}]" value="1"></td>
										<td>{x2;v:order['ordersn']}</td>
										<td>{x2;v:order['ordertitle']}</td>
										<td>{x2;v:order['orderuserinfo']['username']}</td>
										<td>{x2;v:order['orderprice']}</td>
										<td>{x2;date:v:order['ordercreatetime'],'Y-m-d'}</td>
										<td>
											{x2;$orderstatus[v:order['orderstatus']]}
								        </td>
										<td>
											{x2;$paytypes[v:order['orderpaytype']]}
										</td>
										<td>
											<div class="btn-group">
												<a class="btn" href="index.php?{x2;$_app}-master-orders-orderdetail&ordersn={x2;v:order['ordersn']}&page={x2;$page}{x2;$u}" title="订单详情"><em class="glyphicon glyphicon-list"></em></a>
												<a class="btn confirm" href="index.php?{x2;$_app}-master-orders-remove&ordersn={x2;v:order['ordersn']}&page={x2;$page}{x2;$u}" title="删除订单"><em class="glyphicon glyphicon-remove"></em></a>
											</div>
										</td>
									</tr>
									{x2;endtree}
								</tbody>
							</table>
							<div class="form-group">
					            <div class="controls">
						            <label class="radio-inline">
						                <input type="radio" name="action" value="delete" checked/>删除
						            </label>
						            {x2;tree:$search,arg,sid}
						            <input type="hidden" name="search[{x2;v:key}]" value="{x2;v:arg}"/>
						            {x2;endtree}
						            <label class="radio-inline">
						            	<button class="btn btn-primary" type="submit">提交</button>
						            </label>
						            <input type="hidden" name="page" value="{x2;$page}"/>
						        </div>
					        </div>
							<ul class="pagination pull-right">
								{x2;$orders['pages']}
							</ul>
						</fieldset>
					</form>
				</div>
			</div>
{x2;if:!$userhash}
		</div>
	</div>
</div>
{x2;include:footer}
</body>
</html>
{x2;endif}