📄 sysstaffrightlist.jsp
字号:
<%@ page contentType="text/html;charset=GBK" %><%@ include file="/manage_it/fuction/include.jsp"%>
<%@ page import="com.ahbay.RightMgr.*" %>
<%@ page import="com.ahbay.commenMgr.*" %>
<%@ page import="javax.servlet.http.*" %>
<html>
<head>
<meta name = "Generator" content = "Easy Struts Xslt generator for Eclipse (http://easystruts.sf.net).">
<title>Struts Form for paradateForm</title>
<link href="../../../style/css.css" rel="stylesheet" type="text/css">
</head>
<script language="javascript">
function confirmremove()
{
if(confirm('是否确认注销本条记录?'))
{
return true;
}
else
{
return false;
}
}
</script>
<%
commMethodMgr comm= new commMethodMgr();
String staffId = request.getParameter("staffId");
%>
<body>
<h5>员工权限管理[<%=comm.ConvertCodeToName("staffname",staffId)%>]</h5>
<table width="100%" border="0" cellpadding="10" cellspacing="1" align="center" bordercolor="#D1D1D1" >
<tr>
<td class="grayE" align="right" colspan="6">
<%
%>
<a href="sysAddRight.jsp?staffId=<%=staffId%>">新增权限</a>
</td>
</tr>
<tr>
<td class="grayD" align="center" width="8%">序号</td>
<td class="grayD" align="center" width="30%">菜单名</td>
<td class="grayD" align="center" width="25%">开始时间</td>
<td class="grayD" align="center" width="25%">结束时间</td>
<td class="grayD" align="center" width="15%">操作</td>
</tr>
<%
RightinfoMgr RightList = new RightinfoMgr();
RightList.setStaff_id(staffId);
ArrayList rightArray = RightList.GetRightList("SEL_BY_STAFF_SYS");
RightinfoMgr[] rightinfo = RightList.GetList(rightArray);
String strRows = String.valueOf(rightinfo.length);
int intBegin=0;
int realcount=rightinfo.length;
String Begin="0";
if (request.getParameter("Begin")==null)
{
intBegin=0;
}
else
{
intBegin = new Integer(request.getParameter("Begin")).intValue();
}
if (intBegin>=realcount)
{
intBegin=realcount;
}
if (intBegin<=0)
{
intBegin=0;
}
String upBegin = String.valueOf(new Integer(intBegin).intValue()-15);
String downBegin= "0";
String endBegin = String.valueOf(realcount-15);
int j = 0;
for (int i=intBegin;i<rightinfo.length;i++)
{
String menuId = rightinfo[i].getMenu_id();
String rightstaffId = rightinfo[i].getStaff_id();
String startDate = rightinfo[i].getStart_date().substring(0,10);
String endDate = rightinfo[i].getEnd_date().substring(0,10);
HashMap menumap=new HashMap();
menumap.put("menuId",menuId);
menumap.put("staffId",rightstaffId);
pageContext.setAttribute("menumap",menumap);
%>
<tr>
<td class="grayBL" align="left"><%=String.valueOf(i+1)%></td>
<td class="grayBL" align="left">
<%=comm.ConvertCodeToName("menuname",menuId)%></td>
<td class="grayBL" align="left"><%=startDate%></td>
<td class="grayBL" align="left"><%=endDate%></td>
<td class="grayBL" align="left">
<html:link action="/delright" name="menumap" onclick="return confirmremove()">
删除
</html:link></td>
</tr>
<%
downBegin=String.valueOf(i+1);
j++;
if (j>=15) break;
}
%>
<tr>
<td colspan=7>
<table width="100%" border="0" cellspacing="1" cellpadding="0">
<tr>
<td height="20">共<font color="#990000"><%=strRows%></font> 条信息 [ 每页最多显示15个信息 ] </td>
<td width="220">
<div align="right">
<%
HashMap indexmap=new HashMap();
indexmap.put("Begin","0");
indexmap.put("staffId",staffId);
pageContext.setAttribute("indexmap",indexmap);
%>
<html:link href="sysStaffRightList.jsp" name="indexmap">首页</html:link>
<%
HashMap upmap=new HashMap();
upmap.put("Begin",upBegin);
upmap.put("staffId",staffId);
pageContext.setAttribute("upmap",upmap);
%>
<html:link href="sysStaffRightList.jsp" name="upmap">上一页</html:link>
<%
HashMap downmap=new HashMap();
downmap.put("Begin",downBegin);
downmap.put("staffId",staffId);
pageContext.setAttribute("downmap",downmap);
%>
<html:link href="sysStaffRightList.jsp" name="downmap">下一页</html:link>
<%
HashMap endmap=new HashMap();
endmap.put("Begin",endBegin);
endmap.put("staffId",staffId);
pageContext.setAttribute("endmap",endmap);
%>
<html:link href="sysStaffRightList.jsp" name="endmap">末页</html:link>
</div>
</td>
</tr>
</table>
</td>
</tr>
</table>
<body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -