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

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>RoleList</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/";
  11.   form.action=action;
  12.   form.submit();
  13. }
  14. function searchAction(){
  15.   var action = "<%=request.getContextPath()%>/Manage/";
  16.   var form = document.getElementById("form");
  17.   form.action = action;
  18.   form.submit();
  19. }
  20. function DeleteRole(count,ID){
  21.   if(count != 0){
  22.     alert("该角色下有多个帐号,不能执行删除操作!");
  23.     return false;
  24.   }else{
  25.     var form = document.getElementById("form");
  26.     form.action = "<%=request.getContextPath()%>/Manage/Role.do?todo=DeleteRole&roleID=<c:out value="${role.rol_ID}" />";
  27.     form.submit();
  28.   }
  29. }
  30. </script>
  31. </head>
  32. <body bgcolor="#ffffff">
  33. <form name="form" id="form" method="post" action="News.jsp">
  34. <table cellspacing="0" cellpadding="0" width="100%" border="0">
  35.   <tr bgcolor="#cfdbe8">
  36.     <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>
  37.     <td valign="middle" bgcolor="#cfdbe8" colSpan="2">&nbsp; 角色管理</td>
  38.   </tr>
  39.   <tr>
  40.     <td style="HEIGHT: 31px" valign="top" align="left" height="80">&nbsp;</td>
  41.     <td style="HEIGHT: 31px" valign="middle" align="left" colSpan="2">
  42.       &nbsp;<img src="<%=request.getContextPath()%>/Manage/images/edit.gif" alt="" />
  43.       &nbsp;角色列表
  44.     </td>
  45.   </tr>
  46.   <tr>
  47.     <td style="HEIGHT: 1px" valign="top" align="left"></td>
  48.     <td style="HEIGHT: 1px" valign="top" align="left" width="820" bgcolor="#cfdbe8"></td>
  49.     <td style="HEIGHT: 1px" valign="top" align="left" width="144"></td>
  50.   </tr>
  51.   <tr>
  52.     <td style="HEIGHT: 381px" valign="top" align="left"></td>
  53.     <td style="HEIGHT: 381px" valign="top" align="left" colspan="2">
  54.       <br />
  55.       <a href='<%=request.getContextPath()%>/Manage/Role.do?todo=OpenRole'>点这里添加新的角色</a>
  56.       <br /><br />
  57.       <table width="520" border="0" cellpadding="0" cellspacing="0" class="table_Left">
  58.         <tr>
  59.           <td height="30" width="150" align="center" bgcolor="#5983B0" class="STYLE1 table_Right"><strong>角色名</strong></td>
  60.           <td width="100" align="center" bgcolor="#5983B0" class="STYLE1 table_Right"><strong>帐号数</strong></td>
  61.           <td width="150" align="center" bgcolor="#5983B0" class="STYLE1 table_Right"><strong>创建时间</strong></td>
  62.           <td width="120" align="center" bgcolor="#5983B0" class="STYLE1 table_Right"><strong>操作</strong></td>
  63.         </tr>
  64.       </table>
  65.       <div id="divList">
  66.         <c:forEach var="role" items="${list}" varStatus="status">
  67.           <table width="520" border="0" cellpadding="0" cellspacing="0" class="table_Left">
  68.             <tr>
  69.               <td height="25" width="150" align="center" class="table_Right">
  70.                 <c:out value="${role.rol_Name}" />
  71.               </td>
  72.               <td width="100" align="center" class="table_Right">
  73.                 <c:out value="${role.rol_Count}" />
  74.               </td>
  75.               <td width="150" align="center" class="table_Right">
  76.                 <bean:write name="role" property="rol_Time" format="yyyy-MM-dd"/>
  77.               </td>
  78.               <td width="120" align="center" class="table_Right">
  79.                 <a href='<%=request.getContextPath()%>/Manage/Role.do?todo=OpenRole&RolID=<c:out value="${role.rol_ID}" />'>编辑</a>
  80.                 &nbsp;|&nbsp;
  81.                 <a href='<%=request.getContextPath()%>/Manage/Role.do?todo=DeleteRole&roleID=<c:out value="${role.rol_ID}" />'>删除</a>
  82.               </td>
  83.             </tr>
  84.           </table>
  85.         </c:forEach>
  86.       </div>
  87.     </td>
  88.   </tr>
  89. </table>
  90. </form>
  91. </body>
  92. </html>