RoleList.jsp~13~
资源名称:shihua.rar [点击查看]
上传用户:zghglow
上传日期:2022-08-09
资源大小:27227k
文件大小:4k
源码类别:
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>RoleList</title>
- <link href="Css/skinv2.0.css" rel="stylesheet" type="text/css" />
- <script type="text/javascript">
- function doPost(params){
- var action="<%=request.getContextPath()%>/Manage/";
- form.action=action;
- form.submit();
- }
- function searchAction(){
- var action = "<%=request.getContextPath()%>/Manage/";
- var form = document.getElementById("form");
- form.action = action;
- form.submit();
- }
- function DeleteRole(count){
- if(count != 0){
- alert("该角色下有多个帐号,不能执行删除操作!");
- return false;
- }else{
- var form = document.getElementById("form");
- }
- }
- </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 />
- <a href='<%=request.getContextPath()%>/Manage/Role.do?todo=OpenRole'>点这里添加新的角色</a>
- <br /><br />
- <table width="520" 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="100" 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="role" items="${list}" varStatus="status">
- <table width="520" border="0" cellpadding="0" cellspacing="0" class="table_Left">
- <tr>
- <td height="25" width="150" align="center" class="table_Right">
- <c:out value="${role.rol_Name}" />
- </td>
- <td width="100" align="center" class="table_Right">
- <c:out value="${role.rol_Count}" />
- </td>
- <td width="150" align="center" class="table_Right">
- <bean:write name="role" property="rol_Time" format="yyyy-MM-dd"/>
- </td>
- <td width="120" align="center" class="table_Right">
- <a href='<%=request.getContextPath()%>/Manage/Role.do?todo=OpenRole&RolID=<c:out value="${role.rol_ID}" />'>编辑</a>
- |
- <a href='<%=request.getContextPath()%>/Manage/Role.do?todo=DeleteRole&roleID=<c:out value="${role.rol_ID}" />'>删除</a>
- </td>
- </tr>
- </table>
- </c:forEach>
- </div>
- </td>
- </tr>
- </table>
- </form>
- </body>
- </html>