index.html 2.3 KB
<include file="public@header" />
<style type="text/css">
	.pagination{display:inline-block;padding-left:0;border-radius:4px;margin-left: 30%}
	.pagination li{display:inline}
	.pagination li a,.pagination li span{position:relative;float:left;padding:6px 12px;line-height:1.42857143;color:#393D49;background:#fff;margin:0 0 0 8px;border:1px solid #eee}
	.pagination li a:hover{color:#fff;background:#1E9FFF}
	.pagination .active span{background:#1E9FFF;color:#fff}
</style>
</head>
<body>
	<div class="wrap">
		<ul class="nav nav-tabs">
			<li class="active"><a href="{:url('index')}">列表管理</a></li>
			<!--<li><a href="{:url('add')}">添加</a></li>-->
		</ul>
		<form class="well form-inline margin-top-20" method="post" action="{:url('index')}">


			状态:
			<select class="form-control" name="status" style="width: 140px;">
				<option value=''>全部</option>
				<option value='1'>已付款</option>
				<option value='0'>待付款</option>
			</select> &nbsp;&nbsp;

			学员手机号:
			<input type="text" class="form-control" name="mobile" style="width: 200px;"
				   value="{$keyword|default=''}" placeholder="请输入手机号...">


			<input type="submit" class="btn btn-primary" value="搜索"/>
			<a class="btn btn-danger" href="{:url('index')}">清空</a>
		</form>
			<table class="table table-hover table-bordered table-list">
				<thead>
					<tr>
						<th width="50">ID</th>

						<th>订单号</th>
						<th>报名类型</th>
						<th>学生姓名</th>
						<th>手机号</th>
						<th>金额</th>
						<th>实际付款</th>
						<th>下单时间</th>
						<th>状态</th>
						<th>操作</th>
					</tr>
				</thead>
				<tbody>
					<foreach name="list" id="vo">
						<tr>
							<td>{$vo.id}</td>
							<td>{$vo.out_trade_no}</td>
							<td>{$vo.gname}</td>
							<td>{$vo.uid|id_name}</td>
							<td>{$vo.uid|id_mobile}</td>
							<td>{$vo.price}</td>
							<td>{$vo.true_price/100}</td>
							<td>{$vo.create_time|date="Y-m-d H:i:s",###}</td>
							<td>{$vo.status|pay_type_name}</td>
							<td>
								<a href='{:url("admin/user/student",array("id"=>$vo["uid"]))}'>查看学员详情</a>
							</td>
						</tr>
					</foreach>
				</tbody>
			</table>


	</div>
	<div class="pagination">
		{$page}
	</div>
	<script src="__STATIC__/js/admin.js"></script>
</body>
</html>