<%@ page contentType="text/html;charset=UTF-8" %>
<%@ include file="/WEB-INF/views/include/taglib.jsp"%>
<html>
<head>
	<title>评卷员管理</title>
	<meta name="decorator" content="default"/>
	<%@include file="/WEB-INF/views/include/head.jsp" %>
	<style type="text/css">.sort{color:#0663A2;cursor:pointer;}</style>
</head>
<body>
	<form id="searchForm"  action="${ctx}/admin/sys/school" method="post" class="breadcrumb form-search">
		<input type="hidden" id="pageNumber" name="pageNumber" value="${query.pageNumber}"/>
		<input type="hidden" id="pageSize" name="pageSize" value="${query.pageSize}"/>
		<div>
			<label>名称</label>
			<input type="text" name="name" value="${query.name}"  maxlength="20" class="input-medium"/>
			
			&nbsp;
			<input id="btnSubmit" class="btn btn-primary" type="button" value="查询" onclick="goSearch()"/>
			&nbsp;
			<a href="${ctx}/admin/sys/school/add" class="btn btn-primary">新建</a>
		</div>
	</form>
	<tags:message content="${message}"/>
	<table id="contentTable" class="table table-striped table-bordered table-condensed">
		<thead>
			<tr>
				<th>名称</th>
				<th>省份</th>
				<th>地市</th>
				<th>操作</th>
			</tr>
		</thead>
		<tbody>
		<c:forEach items="${query.result}" var="school">
			<tr>
				<td>${school.name}</td>
				<td>${school.province}</td>
				<td>${school.city}</td>
				<td>
					<a href="${ctx}/admin/sys/school/edit?id=${school.id}">修改</a>
					&nbsp;
					<%--<a href="${ctx}/admin/sys/school/admin?id=${school.id}">编辑管理员</a>--%>
					<a href="${ctx}/admin/sys/school/admin/view/${school.id}">编辑管理员</a>
					<a href="${ctx}/admin/sys/school/viewer?id=${school.id}">编辑查询员</a>
				</td>
			</tr>
		</c:forEach>
		</tbody>
	</table>
	<div class="pagination">${query}</div>
<script type="text/javascript">
function page(n,s){
	$("#pageNumber").val(n);
	$("#pageSize").val(s);
	$("#searchForm").submit();
	return false;
}
function goSearch(){
	$("#pageNumber").val(1);
	$("#pageSize").val('${query.pageSize}');
	$("#searchForm").submit();
	return false;
}
</script>	
</body>
</html>