📄 savesysperm.jsp
字号:
<%@ page import="com.everstar.usermanage.*" %>
<jsp:useBean id="dbConn" scope="request" class="com.everstar.database.Database"/>
<%@ include file="header.jsp" %>
<%
// if the login user is not administrator
HttpSession AuthInfoPoolList=request.getSession();
if (!Auth.checkSubAdmin(AuthInfoPoolList))
{
out.println("the logined user is not subsystem admin");
return;
}
String userid = request.getParameter( "userid" );
String[] operateNameList = request.getParameterValues("operateName");
int theuserid = Integer.parseInt(userid);
Perm userPermission = new Perm(dbConn);
for (int i=0;i<operateNameList.length;i++)
userPermission.setPerm(theuserid,operateNameList[i]);
%>
<html>
<head>
<title>WebStar</title>
<META content="text/html; charset=gb2312" http-equiv=Content-Type>
<style type="text/css">
<!--
.normal { text-decoration: underline; color:#0033cc; }
.nomalsize { font-size: 10pt; color: #0033cc; }
h2 { font-size: 14pt; color: #3C7BFF; }
.nomalsize { font-size: 10pt; color: #0033cc; }
a { text-decoration: none; font-size: 10pt; color: #0033cc; }
-->
</style>
<center><h2>grant success!<a href="javascript:history.go(-2)">back</a></h2></center>
</html>
<%@ include file="footer.jsp" %>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -