?? send_email_form.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>
<%
//獲取當前用戶的用戶名
String sUserName = (String) session.getAttribute("UserName");
String sSubject = "";
String sContent = "";
String sReceiver = "";
//獲得索要回復的郵件的索引號,并將它轉化為長整型
String sEmailID = request.getParameter("EmailID");
long lEmailID = Long.parseLong(sEmailID);
//判斷是否是回復郵件,如果是的話則獲取郵件信息
if(lEmailID != 0)
{
Email.setEmailID(lEmailID);
Email.init();
sSubject = "回復:"+Email.getSubject();
sReceiver = Email.getSender();
sContent = Email.getContent();
if(sContent.length()>100)
{
sContent = sContent.substring(1,100);
sContent = sContent + "………………";
}
sContent = "【 在 "+sReceiver+" 的來信中提到: 】\r\n" + sContent;
sContent = "\r\n\r\n\r\n\r\n---------------------------------------\r\n" + sContent;
}
%>
<body bgcolor="#F2F2F2">
<div align="center">
<form name="form1" method="post" action="send_email_save.jsp" target="_self" enctype="multipart/form-data" >
<table width="500" border="0" cellpadding="0" cellspacing="1">
<tr>
<td align="right" width="30%" height="25">發信人:</td>
<td align="left" width="70%" height="25"><font color="#0000FF"><%=sUserName%></font></td>
</tr>
<tr>
<td align="right" width="30%" height="25">標 題:</td>
<td align="left" width="70%" height="25"><input type="text" name="Subject" size="40" value="<%=sSubject%>"></td>
</tr>
<tr>
<td align="right" width="30%" height="25">收信人:</td>
<td align="left" width="70%" height="25"><input type="text" name="Receiver" value="<%=sReceiver%>"></td>
</tr>
<tr>
<td align="right" width="30%" height="25">郵件內容:</td>
<td align="left" width="70%" height="25"><textarea name="Content" rows="12" cols="50"><%=sContent%></textarea></td>
</tr>
<tr>
<td align="right" width="30%" height="25">上傳附件:</font>
<td align="left" width="70%" height="25"><input name="Attachment" type="file" size="40"></td>
</tr>
</table>
<p align="center">
<input type="submit" value="發送" name="sub">
<input type="reset" value="重寫" name="res">
</p>
</form>
</div>
</body>
</html>
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -