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

📄 removesubsystem.jsp

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

<%
HttpSession AuthInfoPool=request.getSession();
if (!Auth.checkAdmin(AuthInfoPool))
{
		out.println("the logined user is not administrator");
		return;
}		
	String systemidTemp = request.getParameter( "systemid" );
	SubSystemList allSystem = new SubSystemList(dbConn);
	int[]  systemIdList= allSystem.subSystemList();

 	if (systemidTemp ==null)
	{ 
		%>
<html>
<head>
	<title></title>
</head>
<body >
	<table  cellpadding="1" cellspacing="0" border="0" width="100%">
	<td><table  cellpadding="3" cellspacing="0" border="0" width="100%">
	<td>
	<span>Remove Subsystem</span>
	</td>
	</table></td>
	</table>
<p>
		<form action="removeSubSystem.jsp" method="post">
	<select name="systemid">
	<% 
	for(int i=0; i < systemIdList.length; i++)
	{
		SubSystem theSystem = allSystem.getSubSystem(systemIdList[i]);

		out.println("<option value=\""+systemIdList[i]+"\">"+theSystem.getSystemName()+"</option>");
	}		
	%>
	</select>
		<input type="submit" value="Remove">
	</form>
		<%
	}
	else
	{
		int thesystemid = Integer.parseInt(systemidTemp);
		allSystem.removeSubSystem(thesystemid); 
		out.println("子系统被删除!");
		out.println("<a href='removeSubSystem.jsp'>返回</a>");
	}
%>

⌨️ 快捷键说明

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