?? delete_email.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="Email" class="com.chapter15.Email" />
</head>
<body bgcolor="#F2F2F2">
<div align="center">
<%
//獲取所要刪除的郵件信息
String[] sEmailID = request.getParameterValues("DeleteID");
String sDeleteEmailID = "0";
if (sEmailID != null)
{
for(int i=0;i<sEmailID.length;i++)
{
sDeleteEmailID = sDeleteEmailID +"," + sEmailID[i];
}
}
//刪除郵件
if(Email.delete(sDeleteEmailID))
{
out.println("<p><font color=blue>郵件刪除成功</font></p>");
out.println("<p><a href=\"email_management.jsp\" target=\"_self\"><font color=blue>返回郵件管理</font></a></p>");
}
else
{
out.println("<p><font color=red>郵件刪除失敗,請重試</font></p>");
out.println("<div><input type=\"button\" name=\"btn\" value=\"返回\" onClick=\"javascript:window.history.go(-1)\"></div>");
}
%>
</div>
</body>
</html>
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -