📄 selectright.jsp~3~
字号:
<%@ page contentType="text/html; charset=gb2312" language="java" import="java.sql.*" errorPage="" %>
<%@page import="java.sql.*"%>
<%@page import="java.util.*"%>
<%@page import="com.actionForm.RightForm"%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link href="css/style.css" rel="stylesheet">
<title>员工权限设置</title>
<style type="text/css">
<!--
.style1 {
color: #0000FF;
font-weight: bold;
}
-->
</style>
</head>
<%
List list = (List) request.getAttribute("list");
int number=Integer.parseInt((String)request.getAttribute("number"));
int maxPage=Integer.parseInt((String)request.getAttribute("maxPage"));
int pageNumber=Integer.parseInt((String)request.getAttribute("pageNumber"));
int start=number*10;//开始条数
int over=(number+1)*10;//结束条数
int count=pageNumber-over;//还剩多少条记录
if(count<=0){
over=pageNumber;
}
%>
<body>
<div align="center">
<br>
查看员工权限
<table width="661" height="24" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="379" ><div align="right"></div></td>
<td width="282" ><div align="right"><span class="style1">1:代表有这个权限,0:代表没有这个权限</span></div></td>
</tr>
</table>
<table width="661" border="1" cellpadding="0" cellspacing="0" bordercolor="#FFFFFF" bordercolordark="#819BBC" bordercolorlight="#FFFFFF">
<tr bgcolor="#EFF6FE">
<td width="73" height="30"><div align="center">员工账号</div></td>
<td width="73" ><div align="center">基础信息</div></td>
<td width="73" ><div align="center">基础资料</div></td>
<td width="73" ><div align="center">业务管理</div></td>
<td width="73" ><div align="center">信息查询</div></td>
<td width="73" ><div align="center">辅助工具</div></td>
<td width="74" ><div align="center">系统设置</div></td>
<td width="131" ><div align="center">操作</div></td>
</tr>
<%
for (int i =start; i < over; i++) {
RightForm form=(RightForm)list.get(i);
%>
<tr>
<td height="30"><div align="center"><a href="managerAction.do?method=selectOneManager&account=<%=form.getManagerAccount()%>"><%=form.getManagerAccount()%></a></div></td>
<td><div align="center"><strong><%=form.getJcxx()%></strong></div></td>
<td><div align="center"><strong><%=form.getJczl()%></strong></div></td>
<td><div align="center"><strong><%=form.getYwgl()%></strong></div></td>
<td><div align="center"><strong><%=form.getXxcx()%></strong></div></td>
<td><div align="center"><strong><%=form.getFzgj()%></strong></div></td>
<td><div align="center"><strong><%=form.getXtsz()%></strong></div></td>
<td><div align="center"><a href="rightAction.do?method=selectOneRight&account=<%=form.getManagerAccount()%>">修改权限</a> <a href="managerAction.do?method=deleteManager&account=<%=form.getManagerAccount()%>">删除员工</a></div></td>
</tr>
<%}%>
</table>
<table width="661" border="0" align="center" cellpadding="0" cellspacing="0">
<tr align="center">
<td height="52" width="80">共为<%=maxPage%>页</td>
<td width="80">共有<%=pageNumber%>条</td>
<td width="80">当前为第<%=number+1%>页</td>
<td width="80"><%if((number+1)==1){%>第一页<%}else{%><a href="rightAction.do?method=selectRight&i=0">第一页</a></td><%}%>
<td width="80"><%if(maxPage<=(number+1)){%>最后一页<%}else{%><a href="rightAction.do?method=selectRight&i=<%=maxPage-1%>">最后一页</a></td><%}%>
<td width="140"><br><form name="form" method="post" action="rightAction.do?method=selectRight">
<select name="i" >
<%
for(int j=0;j<maxPage;j++){
%>
<option value="<%=j%>"><%=j+1%></option>
<%}%>
</select>
<input type="submit" name="Submit" value="查询">
</form></td>
<td width="80"><%if((number+1)==1){%> 上一页<%}else{%><a href="rightAction.do?method=selectRight&i=<%=number-1%>">上一页</a></td><%}%>
<td width="80"><%if(maxPage<=(number+1)){%>下一页<%}else{%><a href="rightAction.do?method=selectRight&i=<%=number+1%>">下一页</a></td><%}%>
<td width="80"><a href="index.jsp">退出操作</a></td>
</tr>
</table>
</div>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -