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