📄 sub_admin.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 administrator");
return;
}
AuthInformation aaaa = (AuthInformation)AuthInfoPoolList.getValue("Webstar.userPerm");
int theSubSystemId = aaaa.getTheSubSystem();
UserList allUser = new UserList(dbConn);
SubSystemList allSubSys = new SubSystemList(dbConn);
int[] userIDList = allUser.Users();
%>
<table cellpadding="1" cellspacing="0" border="0" width="100%">
<td><table cellpadding="3" cellspacing="0" border="0" width="100%">
<td>
select user name and subsystem
</td>
</table></td>
</table>
<p>
<form action="listSysPerm.jsp" method="post">
User:<select name="userid">
<%
for(int i=0; i < userIDList.length; i++)
{
User theUser = allUser.getUser(userIDList[i]);
out.println("<option value=\""+userIDList[i]+"\">"+theUser.getUserName()+"</option>");
}
%>
</select> Subsystem:
<select name="systemid">
<%
SubSystem theSystem = allSubSys.getSubSystem(theSubSystemId);
out.println("<option value=\""+theSubSystemId+"\">"+theSystem.getSystemName()+"</option>");
%>
</select>
<input type="submit" value="确定">
</form>
<%@ include file="footer.jsp" %>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -