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