AdminList.jsp
资源名称:shihua.rar [点击查看]
上传用户:zghglow
上传日期:2022-08-09
资源大小:27227k
文件大小:6k
源码类别:
WEB源码(ASP,PHP,...)
开发平台:
JavaScript
- <%@ page contentType="text/html; charset=GBK" %>
- <%@ taglib uri="http://java.sun.com/jstl/core_rt" prefix="c" %>
- <%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %>
- <html>
- <head>
- <title>AdminList</title>
- <link href="Css/skinv2.0.css" rel="stylesheet" type="text/css" />
- <script type="text/javascript">
- function doPost(params){
- var action="<%=request.getContextPath()%>/Manage/Admin.do?todo=OpenAdminList" + params;
- form.action=action;
- form.submit();
- }
- function searchAction(){
- var action = "<%=request.getContextPath()%>/Manage/Admin.do?todo=OpenAdminList";
- var form = document.getElementById("form");
- form.action = action;
- form.submit();
- }
- function AddNew(){
- var action = "<%=request.getContextPath()%>/Manage/Admin.do?todo=OpenAdminInfo";
- var form = document.getElementById("form");
- form.action = action;
- form.submit();
- }
- </script>
- </head>
- <body bgcolor="#ffffff">
- <form name="form" id="form" method="post" action="News.jsp">
- <table cellspacing="0" cellpadding="0" width="100%" border="0">
- <tr bgcolor="#cfdbe8">
- <td style="WIDTH: 20px" width="20" bgColor="#cfdbe8" height="19"> <img height="10" src="<%=request.getContextPath()%>/Manage/images/icon.gif" width="12" alt="" /></td>
- <td valign="middle" bgcolor="#cfdbe8" colSpan="2"> 用户管理</td>
- </tr>
- <tr>
- <td style="HEIGHT: 31px" valign="top" align="left" height="80"> </td>
- <td style="HEIGHT: 31px" valign="middle" align="left" colSpan="2">
- <img src="<%=request.getContextPath()%>/Manage/images/edit.gif" alt="" />
- 用户列表
- </td>
- </tr>
- <tr>
- <td style="HEIGHT: 1px" valign="top" align="left"></td>
- <td style="HEIGHT: 1px" valign="top" align="left" width="820" bgcolor="#cfdbe8"></td>
- <td style="HEIGHT: 1px" valign="top" align="left" width="144"></td>
- </tr>
- <tr>
- <td style="HEIGHT: 381px" valign="top" align="left"></td>
- <td style="HEIGHT: 381px" valign="top" align="left" colspan="2">
- <br/>
- 查询关键字:
- <select name="role">
- <option value="0">全部</option>
- <c:forEach var="role" items="${roleList}" varStatus="status">
- <option value='<c:out value="${role.rol_ID}" />'><c:out value="${role.rol_Name}" /></option>
- </c:forEach>
- </select>
- <input type="text" id="txtCondition" value='<c:out value="${condition}" />' name="condition" class="input000000_1" />
- <input type="hidden" name="hidCondition" value='<c:out value="${condition}" />' />
- <input type="button" name="btnQuery" value=" 重新刷新" class="Botton" onclick="searchAction();" />
- <input type="button" name="btnAdd" value=" 添加新用户" class="Botton" onclick="AddNew();" />
- <br /><br />
- <table width="570" border="0" cellpadding="0" cellspacing="0" class="table_Left">
- <tr>
- <td height="30" width="150" align="center" bgcolor="#5983B0" class="STYLE1 table_Right"><strong>用户名</strong></td>
- <td width="150" align="center" bgcolor="#5983B0" class="STYLE1 table_Right"><strong>用户角色</strong></td>
- <td width="150" align="center" bgcolor="#5983B0" class="STYLE1 table_Right"><strong>创建时间</strong></td>
- <td width="120" align="center" bgcolor="#5983B0" class="STYLE1 table_Right"><strong>操作</strong></td>
- </tr>
- </table>
- <div id="divList">
- <c:forEach var="admin" items="${pageInfo.rows}" varStatus="status">
- <table width="570" border="0" cellpadding="0" cellspacing="0" class="table_Left">
- <tr>
- <td height="25" width="150" class="table_Right">
- <c:out value="${admin.adm_Name}" />
- </td>
- <td width="150" align="center" class="table_Right">
- <c:out value="${admin.role.rol_Name}" />
- </td>
- <td width="150" align="center" class="table_Right">
- <bean:write name="admin" property="adm_Time" format="yyyy-MM-dd"/>
- </td>
- <td width="120" align="center" class="table_Right">
- <a href='<%=request.getContextPath()%>/Manage/Admin.do?todo=OpenAdminInfo&AdmID=<c:out value="${admin.adm_ID}" />'>编辑</a>
- |
- <a href='<%=request.getContextPath()%>/Manage/Admin.do?todo=DeleteAdmin&AdmID=<c:out value="${admin.adm_ID}" />'>删除</a>
- </td>
- </tr>
- </table>
- </c:forEach>
- </div>
- <table width="570" border="0" cellpadding="0" cellspacing="0" class="table_Left">
- <tr>
- <td valign="middle" colspan="9" align="center" class="STYLE1 table_Right" height="30">
- <div align="right" >
- 共<c:out value="${pageInfo.totalRows}"/>条记录 共<c:out value="${pageInfo.totalPages}"/>页 当前第<c:out value="${pageInfo.currentPageNO+1}"/>页
-
- <c:choose>
- <c:when test="${pageInfo.firstPageNO>=pageInfo.currentPageNO}">
- 第一页
- |
- 上一页
- </c:when>
- <c:otherwise>
- <a href="javascript:doPost('pageNo=<c:out value="${pageInfo.firstPageNO}"/>')">第一页</a>
- |
- <a href="javascript:doPost('pageNo=<c:out value="${pageInfo.previousPageNO}"/>')">上一页</a>
- </c:otherwise>
- </c:choose>
- |
- <c:choose>
- <c:when test="${pageInfo.lastPageNO<=pageInfo.currentPageNO}">
- 下一页
- |
- 最后页
- </c:when>
- <c:otherwise>
- <a href="javascript:doPost('pageNo=<c:out value="${pageInfo.nextPageNO}"/>')">下一页</a>
- |
- <a href="javascript:doPost('pageNo=<c:out value="${pageInfo.lastPageNO}"/>')">最后页</a>
- </c:otherwise>
- </c:choose>
- </div>
- </td>
- </tr>
- </table>
- </td>
- </tr>
- </table>
- </form>
- </body>
- </html>