|
@@ -8,19 +8,16 @@
|
|
</head>
|
|
</head>
|
|
<body>
|
|
<body>
|
|
<form id="searchForm" action="${ctx}/admin/sys/school/adminList" method="post" class="breadcrumb form-search">
|
|
<form id="searchForm" action="${ctx}/admin/sys/school/adminList" 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}"/>
|
|
|
|
- <input type="hidden" id="schoolId" name="schoolId" value="${query.schoolId}"/>
|
|
|
|
<div>
|
|
<div>
|
|
- <label>登录账号</label>
|
|
|
|
- <input type="text" name="loginName" value="${query.loginName}" maxlength="20" class="input-medium"/>
|
|
|
|
-
|
|
|
|
- <label>登录名</label>
|
|
|
|
- <input type="text" name="name" value="${query.name}" maxlength="20" class="input-medium"/>
|
|
|
|
-
|
|
|
|
- <input id="btnSubmit" class="btn btn-primary" type="button" value="查询" onclick="goSearch()"/>
|
|
|
|
-
|
|
|
|
- <a href="${ctx}/admin/sys/school/adminList/add?id=${query.schoolId}" class="btn btn-primary">新建</a>
|
|
|
|
|
|
+<!-- <label>登录账号</label> -->
|
|
|
|
+<%-- <input type="text" name="loginName" value="${query.loginName}" maxlength="20" class="input-medium"/> --%>
|
|
|
|
+<!-- -->
|
|
|
|
+<!-- <label>登录名</label> -->
|
|
|
|
+<%-- <input type="text" name="name" value="${query.name}" maxlength="20" class="input-medium"/> --%>
|
|
|
|
+<!-- -->
|
|
|
|
+<!-- <input id="btnSubmit" class="btn btn-primary" type="button" value="查询" onclick="goSearch()"/> -->
|
|
|
|
+<!-- -->
|
|
|
|
+ <a href="${ctx}/admin/sys/school/adminList/add?id=${schoolId}" class="btn btn-primary">新建</a>
|
|
|
|
|
|
<input id="btnCancel" class="btn" type="button" value="返 回" onclick="backCtn();"/>
|
|
<input id="btnCancel" class="btn" type="button" value="返 回" onclick="backCtn();"/>
|
|
</div>
|
|
</div>
|
|
@@ -37,7 +34,7 @@
|
|
</tr>
|
|
</tr>
|
|
</thead>
|
|
</thead>
|
|
<tbody>
|
|
<tbody>
|
|
- <c:forEach items="${query.result}" var="user">
|
|
|
|
|
|
+ <c:forEach items="${query}" var="user">
|
|
<tr>
|
|
<tr>
|
|
<td>${user.loginName}</td>
|
|
<td>${user.loginName}</td>
|
|
<td>${user.name}</td>
|
|
<td>${user.name}</td>
|
|
@@ -57,20 +54,8 @@
|
|
</c:forEach>
|
|
</c:forEach>
|
|
</tbody>
|
|
</tbody>
|
|
</table>
|
|
</table>
|
|
- <div class="pagination">${query}</div>
|
|
|
|
<script type="text/javascript">
|
|
<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;
|
|
|
|
-}
|
|
|
|
|
|
+
|
|
function reSetPW(userId) {
|
|
function reSetPW(userId) {
|
|
$.post('${ctx}/admin/sys/school/adminList/reSetPW',{userId:userId},function(obj){
|
|
$.post('${ctx}/admin/sys/school/adminList/reSetPW',{userId:userId},function(obj){
|
|
if(obj.success){
|
|
if(obj.success){
|
|
@@ -84,7 +69,7 @@ function setStartOrStop(status,userId,type){
|
|
$.post('${ctx}/admin/sys/school/adminList/update',{userId:userId,status:type},function(obj){
|
|
$.post('${ctx}/admin/sys/school/adminList/update',{userId:userId,status:type},function(obj){
|
|
if(obj.success){
|
|
if(obj.success){
|
|
alert("修改成功!");
|
|
alert("修改成功!");
|
|
- window.location.href='${ctx}/admin/sys/school/admin/view/${query.schoolId}';
|
|
|
|
|
|
+ window.location.href='${ctx}/admin/sys/school/admin/view/${schoolId}';
|
|
}else {
|
|
}else {
|
|
alert(obj.message);
|
|
alert(obj.message);
|
|
}
|
|
}
|