📄 savefunction.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 systemid = request.getParameter("systemid");
String[] allFunId = request.getParameterValues("functionid");
String[] allFunName = request.getParameterValues("funName");
String[] allOperate = request.getParameterValues("operateName");
SubSystemList AllSubSys= new SubSystemList(dbConn);
int subSystemID = Integer.parseInt(systemid);
SubSystem theSystem = AllSubSys.getSubSystem(subSystemID);
for (int i=0;i<allFunId.length;i++)
{
int functionID = Integer.parseInt(allFunId[i]);
Fun theFun= theSystem.getFunction(functionID);
theFun.setfunctionName(allFunName[i]);
theFun.setoperate(allOperate[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>modify success!<a href="listFunction.jsp">back</a></h2></center>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -