📄 rightdistribute.jsp
字号:
<%@ page language="java" import="java.util.*"
contentType="text/html; charset=GBK"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>My JSP 'rightDistribute.jsp' starting page</title>
<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="0">
<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
<meta http-equiv="description" content="This is my page">
<link href="<%=request.getContextPath()%>/css/style_2.css" rel="stylesheet">
</head>
<body>
<c:if test="${! empty hasuser}">
<%
out
.println("<script language='javascript'></script>");
session.removeAttribute("hasuser");
%>
</c:if>
<table width="95%" border="0" align="center" cellpadding="0"
cellspacing="0">
<tr>
<td width="20%" valign="bottom" scope="col" align="right">
<img src="../images/docu.gif" width="26" height="25">
<a href="<%=request.getContextPath()%>/roes/index.jsp"
target="bottomFrame">权限管理</a>
</td>
<td height="29" align="left" valign="bottom" scope="col">
>>>权限分配
<a href="th_init.jsp?init=1" target="bottomFrame"></a> <img src="../images/icon_group.gif">
<a href="<%=request.getContextPath() %>/roes/addRoes.jsp" target="mainName">添加新角色</a>
</td>
</tr>
</table>
<hr color="#0080c0">
<table width="100%" border="1" cellspacing="0" cellpadding="0"
bordercolor="#FFFFFF" bordercolordark="#ffffff"
bordercolorlight="#EEF2F9">
<tr align="center" bgcolor="#DFE7F0" >
<td width="47%" align="center" scope="col">
角色名称
</td>
<td width="33%" scope="col">
操作
</td>
</tr>
<c:if test="${!empty roesnames}">
<c:forEach items="${roesnames}" var="rname"
begin="${(roescurrentPage -1)*5}"
end="${(((roescurrentPage*5-1)>RoesCount)?RoesCount:(roescurrentPage*5-1))}">
<tr align="center" valign="middle" >
<td width="30%" height="23">
<a
href="<%=request.getContextPath()%>/servlet/RoesNameServlet?roesId=${rname.id}&roesName=${rname.roesName }">${rname.roesName
}</a>
</td>
<td width="30%" height="23">
<img src="../images/delete.gif">
<a href="<%=request.getContextPath()%>/servlet/AddAndDeleteRoesNameServlet?roesId=${rname.id}">删除</a>
</td>
</tr>
</c:forEach>
</c:if>
<tr align="center" bgcolor="#DFE7F0">
<td width="47%" align="center" scope="col">
<c:choose>
<c:when test="${(RoesCount > 1) && (RoesCount > 5)}">
<c:if test="${roescurrentPage * 5 >= RoesCount}">
<a
href="<%=request.getContextPath()%>/servlet/RoesPaginationServlet?who=right&page=${roescurrentPage-1}"><img src="../images/1-prev.gif" width="36"
height="11" border="0"></a>
<a><img
src="../images/1-next.gif" width="36" height="11" border="0"></a>
</c:if>
<c:if test="${(roescurrentPage * 5 < RoesCount) && (roescurrentPage > 1)}">
<a
href="<%=request.getContextPath()%>/servlet/RoesPaginationServlet?who=right&page=${roescurrentPage-1}"><img src="../images/1-prev.gif" width="36"
height="11" border="0"></a>
<a
href="<%=request.getContextPath()%>/servlet/RoesPaginationServlet?who=right&page=${roescurrentPage+1}"><img
src="../images/1-next.gif" width="36" height="11" border="0"></a>
</c:if>
<c:if test="${roescurrentPage <= 1}">
<a><img src="../images/1-prev.gif" width="36"
height="11" border="0"></a>
<a
href="<%=request.getContextPath()%>/servlet/RoesPaginationServlet?who=right&page=${roescurrentPage+1}"><img
src="../images/1-next.gif" width="36" height="11" border="0"></a>
</c:if>
</c:when>
<c:otherwise>
<a><img src="../images/1-prev.gif" width="36"
height="11" border="0"></a>
<a><img
src="../images/1-next.gif" width="36" height="11" border="0"></a>
</c:otherwise>
</c:choose>
</td>
<td width="33%" scope="col" align="left">
共 ${RoesCount}行 每页5行
</td>
</tr>
</table>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -