AdminList.jsp
上传用户:zghglow
上传日期:2022-08-09
资源大小:27227k
文件大小:6k
源码类别:

WEB源码(ASP,PHP,...)

开发平台:

JavaScript

  1. <%@ page contentType="text/html; charset=GBK" %>
  2. <%@ taglib uri="http://java.sun.com/jstl/core_rt" prefix="c" %>
  3. <%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %>
  4. <html>
  5. <head>
  6. <title>AdminList</title>
  7. <link href="Css/skinv2.0.css" rel="stylesheet" type="text/css" />
  8. <script type="text/javascript">
  9. function doPost(params){
  10.   var action="<%=request.getContextPath()%>/Manage/Admin.do?todo=OpenAdminList" + params;
  11.   form.action=action;
  12.   form.submit();
  13. }
  14. function searchAction(){
  15.   var action = "<%=request.getContextPath()%>/Manage/Admin.do?todo=OpenAdminList";
  16.   var form = document.getElementById("form");
  17.   form.action = action;
  18.   form.submit();
  19. }
  20. function AddNew(){
  21.   var action = "<%=request.getContextPath()%>/Manage/Admin.do?todo=OpenAdminInfo";
  22.   var form = document.getElementById("form");
  23.   form.action = action;
  24.   form.submit();
  25. }
  26. </script>
  27. </head>
  28. <body bgcolor="#ffffff">
  29. <form name="form" id="form" method="post" action="News.jsp">
  30. <table cellspacing="0" cellpadding="0" width="100%" border="0">
  31.   <tr bgcolor="#cfdbe8">
  32.     <td style="WIDTH: 20px" width="20" bgColor="#cfdbe8" height="19">&nbsp;<img height="10" src="<%=request.getContextPath()%>/Manage/images/icon.gif" width="12" alt="" /></td>
  33.     <td valign="middle" bgcolor="#cfdbe8" colSpan="2">&nbsp; 用户管理</td>
  34.   </tr>
  35.   <tr>
  36.     <td style="HEIGHT: 31px" valign="top" align="left" height="80">&nbsp;</td>
  37.     <td style="HEIGHT: 31px" valign="middle" align="left" colSpan="2">
  38.       &nbsp;<img src="<%=request.getContextPath()%>/Manage/images/edit.gif" alt="" />
  39.       &nbsp;用户列表
  40.     </td>
  41.   </tr>
  42.   <tr>
  43.     <td style="HEIGHT: 1px" valign="top" align="left"></td>
  44.     <td style="HEIGHT: 1px" valign="top" align="left" width="820" bgcolor="#cfdbe8"></td>
  45.     <td style="HEIGHT: 1px" valign="top" align="left" width="144"></td>
  46.   </tr>
  47.   <tr>
  48.     <td style="HEIGHT: 381px" valign="top" align="left"></td>
  49.     <td style="HEIGHT: 381px" valign="top" align="left" colspan="2">
  50.       <br/>
  51.       查询关键字:
  52.       <select name="role">
  53.         <option value="0">全部</option>
  54.         <c:forEach var="role" items="${roleList}" varStatus="status">
  55.           <option value='<c:out value="${role.rol_ID}" />'><c:out value="${role.rol_Name}" /></option>
  56.         </c:forEach>
  57.       </select>
  58.       <input type="text" id="txtCondition" value='<c:out value="${condition}" />' name="condition" class="input000000_1" />
  59.       <input type="hidden" name="hidCondition" value='<c:out value="${condition}" />' />
  60.       <input type="button" name="btnQuery" value="  重新刷新" class="Botton" onclick="searchAction();" />
  61.       <input type="button" name="btnAdd" value="  添加新用户" class="Botton" onclick="AddNew();" />
  62.       <br /><br />
  63.       <table width="570" border="0" cellpadding="0" cellspacing="0" class="table_Left">
  64.         <tr>
  65.           <td height="30" width="150" align="center" bgcolor="#5983B0" class="STYLE1 table_Right"><strong>用户名</strong></td>
  66.           <td width="150" align="center" bgcolor="#5983B0" class="STYLE1 table_Right"><strong>用户角色</strong></td>
  67.           <td width="150" align="center" bgcolor="#5983B0" class="STYLE1 table_Right"><strong>创建时间</strong></td>
  68.           <td width="120" align="center" bgcolor="#5983B0" class="STYLE1 table_Right"><strong>操作</strong></td>
  69.         </tr>
  70.       </table>
  71.       <div id="divList">
  72.         <c:forEach var="admin" items="${pageInfo.rows}" varStatus="status">
  73.           <table width="570" border="0" cellpadding="0" cellspacing="0" class="table_Left">
  74.             <tr>
  75.               <td height="25" width="150" class="table_Right">
  76.                 &nbsp;<c:out value="${admin.adm_Name}" />
  77.               </td>
  78.               <td width="150" align="center" class="table_Right">
  79.                 <c:out value="${admin.role.rol_Name}" />
  80.               </td>
  81.               <td width="150" align="center" class="table_Right">
  82.                 <bean:write name="admin" property="adm_Time" format="yyyy-MM-dd"/>
  83.               </td>
  84.               <td width="120" align="center" class="table_Right">
  85.                 <a href='<%=request.getContextPath()%>/Manage/Admin.do?todo=OpenAdminInfo&AdmID=<c:out value="${admin.adm_ID}" />'>编辑</a>
  86.                 &nbsp;|&nbsp;
  87.                 <a href='<%=request.getContextPath()%>/Manage/Admin.do?todo=DeleteAdmin&AdmID=<c:out value="${admin.adm_ID}" />'>删除</a>
  88.               </td>
  89.             </tr>
  90.           </table>
  91.         </c:forEach>
  92.       </div>
  93.       <table width="570" border="0" cellpadding="0" cellspacing="0" class="table_Left">
  94.         <tr>
  95.           <td valign="middle" colspan="9" align="center" class="STYLE1 table_Right" height="30">
  96.             <div align="right" >
  97.               共<c:out value="${pageInfo.totalRows}"/>条记录 共<c:out value="${pageInfo.totalPages}"/>页 当前第<c:out value="${pageInfo.currentPageNO+1}"/>页
  98.               &nbsp;&nbsp;&nbsp;&nbsp;
  99.               <c:choose>
  100.                 <c:when test="${pageInfo.firstPageNO>=pageInfo.currentPageNO}">
  101.                 第一页
  102.                 |
  103.                 上一页
  104.                 </c:when>
  105.                 <c:otherwise>
  106.                   <a href="javascript:doPost('pageNo=<c:out value="${pageInfo.firstPageNO}"/>')">第一页</a>
  107.                   |
  108.                   <a href="javascript:doPost('pageNo=<c:out value="${pageInfo.previousPageNO}"/>')">上一页</a>
  109.                 </c:otherwise>
  110.               </c:choose>
  111.               |
  112.               <c:choose>
  113.                 <c:when test="${pageInfo.lastPageNO<=pageInfo.currentPageNO}">
  114.                 下一页
  115.                 |
  116.                 最后页
  117.                 </c:when>
  118.                 <c:otherwise>
  119.                   <a href="javascript:doPost('pageNo=<c:out value="${pageInfo.nextPageNO}"/>')">下一页</a>
  120.                   |
  121.                   <a href="javascript:doPost('pageNo=<c:out value="${pageInfo.lastPageNO}"/>')">最后页</a>
  122.                 </c:otherwise>
  123.               </c:choose>&nbsp;&nbsp;
  124.             </div>
  125.           </td>
  126.         </tr>
  127.       </table>
  128.     </td>
  129.   </tr>
  130. </table>
  131. </form>
  132. </body>
  133. </html>