student.html 2.5 KB
<include file="public@header" />
</head>
<body>
	<div class="wrap js-check-wrap">
		<ul class="nav nav-tabs">
			<li class="active"><a href="{:url('student')}">学员列表</a></li>
			<li><a href="{:url('student_add')}">添加学员</a></li>
		</ul>
        <form class="well form-inline margin-top-20" method="post" action="{:url('student')}">
            姓名:
            <input type="text" class="form-control" name="user_nickname" style="width: 120px;" value="{:input('request.user_nickname/s','')}" placeholder="请输入姓名">
            手机号:
            <input type="text" class="form-control" name="mobile" style="width: 120px;" value="{:input('request.mobile/s','')}" placeholder="请输入手机号">
            <input type="submit" class="btn btn-primary" value="搜索" />
            <a class="btn btn-danger" href="{:url('student')}">清空</a>
        </form>
		<table class="table table-hover table-bordered">
			<thead>
				<tr>
					<th>学员ID</th>
					<th>姓名</th>
					<th>手机号</th>
					<th>性别</th>
					<th>年龄</th>
					<th>身份证号</th>
					<th>已学车学时</th>
					<th>报名科目</th>

					<th>用户类型</th>
					<th>注册类型</th>
					<th>状态</th>
					<th width="130">操作</th>
				</tr>
			</thead>
			<tbody>

				<foreach name="users" item="vo">
				<tr>
					<td>{$vo.id}</td>
					<td>{$vo.user_nickname}</td>
					<td>{$vo.mobile}</td>

					<td>{$vo.sex|sex_name}</td>
					<td>{$vo.birthday|birthday_old}</td>
					<td>{$vo.idnumber}</td>
					<td>{$vo.id|id_xueshi}</td>
					<td>{$vo.kemu}</td>
					<td>{$vo.student_type|student_type_name}</td>
					<td>{$vo.add_type|add_type_name}</td>
					<td>{$vo.user_status|user_status_name}</td>
					<td>

						<a href='{:url("student_edit",array("id"=>$vo["id"]))}'>{:lang('EDIT')}</a>
						<a class="js-ajax-delete" href="{:url('student_delete',array('id'=>$vo['id']))}">{:lang('DELETE')}</a>
						<if condition="$vo['user_status'] eq 1">
							<a href="{:url('user/ban',array('id'=>$vo['id']))}" class="js-ajax-dialog-btn" data-msg="{:lang('BLOCK_USER_CONFIRM_MESSAGE')}">{:lang('BLOCK_USER')}</a>
						<else />
							<a href="{:url('user/cancelban',array('id'=>$vo['id']))}" class="js-ajax-dialog-btn" data-msg="{:lang('ACTIVATE_USER_CONFIRM_MESSAGE')}">{:lang('ACTIVATE_USER')}</a>
						</if>
					</td>
				</tr>
				</foreach>
			</tbody>
		</table>
		<div class="pagination">{$page}</div>
	</div>
	<script src="__STATIC__/js/admin.js"></script>
</body>
</html>