⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 saveuserperm.jsp

📁 一个关于商业的网站
💻 JSP
字号:
<%@ page  import="com.everstar.usermanage.*" %>
<jsp:useBean id="dbConn" scope="request" class="com.everstar.database.Database"/>

<%
	// if the login user is not administrator
	HttpSession AuthInfoPool=request.getSession();
	if (!Auth.checkAdmin(AuthInfoPool))
	{	
		out.println("the logined user is not administrator");
		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>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -