?? delete_department.jsp
字號:
<%@ page contentType="text/html; charset=gb2312" language="java" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>歡迎光臨企業辦公平臺</title>
<link rel=stylesheet type=text/css href="../lib/enterprise.css">
<jsp:useBean scope="page" id="Department" class="com.chapter15.Department" />
</head>
<body bgcolor="#F2F2F2">
<div align=center>
<%
//獲取所要刪除的部門的索引號
String[] sDepartmentID = request.getParameterValues("DeleteID");
String sDeleteDepartmentID = "0";
if (sDepartmentID != null)
{
for(int i=0;i<sDepartmentID.length;i++)
{
sDeleteDepartmentID = sDeleteDepartmentID +"," + sDepartmentID[i];
}
}
//刪除選中的部門信息
if(Department.delete(sDeleteDepartmentID))
{
out.println("<p><font color=blue>部門刪除成功</font></p>");
out.println("<p><a href=\"department_management.jsp\" target=\"_self\"><font color=blue>返回部門管理</font></a></p>");
}
else
{
out.println("<p><font color=red>部門刪除失敗,請重試</font></p>");
out.println("<input type=\"button\" name=\"btn2\" value=\"返回\" onClick=\"javascript:window.history.go(-1)\">");
}
%>
</div>
</body>
</html>
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -