write0.jsp
上传用户:liangcc
上传日期:2019-05-24
资源大小:4412k
文件大小:7k
源码类别:

WEB邮件程序

开发平台:

Java

  1. <%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
  2. <%@page import="com.softeem.webmail.sendbox.SelectMail"%>
  3. <%@page import="com.softeem.webmail.send.ShowMail"%>
  4. <%@page import="com.softeem.webmail.sendbox.SendboxBean"%>
  5. <html>
  6. <head>
  7. <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  8. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
  9. <title>发送邮件</title>
  10. <style type="text/css">
  11. <!--
  12. .Max {
  13.  width: 100%;
  14. }
  15. -->
  16. </style>
  17. <script language="JavaScript" src="include/CheckDataFunction.js" type="text/JavaScript"></script>
  18. <script language="javascript">
  19.   <!--
  20.  
  21.  
  22. //-->
  23. </script>
  24. <link href="css/style.css" rel="stylesheet" type="text/css">
  25. </head>
  26. <body bgcolor="#F2F1F2" leftmargin="0" topmargin="0" rightmargin="0" bottommargin="0" scroll="no" background="images/login_bg.gif">
  27. <div style="overflow: auto;height:100%;width:100%;">
  28.   <table width="100%"  border="0" cellspacing="0" cellpadding="0">
  29.     <tr>
  30.       <td width="11" height="11"></td>
  31.       <td ></td>
  32.     </tr>
  33.   </table>
  34.   <table width="100%" height="98%"  border="0" cellpadding="0" cellspacing="0">
  35.     <tr>
  36.       <td width="11" background="images/1.gif">&nbsp;</td>
  37.       <td align="center" valign="top" bgcolor="ECF4F5">
  38.           <table width="99%" border="0" >
  39.               <tr>
  40.                 <td ><table width="100%" height="100%" border="0" align="center" cellpadding="0" cellspacing="0">
  41.                   <tr align="center"> 
  42.                     <td width="200" align="center" colspan="2"><font color="#FF0000">收件人、抄送人地址请用逗号隔开</font></td>
  43.                     <td width="50" class="coolbutton" style="cursor: hand;" onClick="doSend()" ><img  src="images/posts.gif" width="16" height="16" border="0" align="absmiddle">发送</td>
  44.                     <td width="50"></td>
  45.                     <td width="50" class="coolbutton" style="cursor: hand;" onClick="return doSave();" ><img  src="images/copyToDisk0a.gif" width="16" height="16" border="0" align="absmiddle">保存</td>
  46.                     <td width="50"></td>
  47.                     <td width="90" class="coolbutton" style="cursor: hand;" onClick="doSendAndSave();" ><img  src="images/mail.gif" width="16" height="16" border="0" align="absmiddle">发送并保存</td>
  48.                     <td width="50"></td>
  49.                   </tr>
  50.                   <%
  51.                    String id = request.getParameter("id");
  52.                    ShowMail sm = new ShowMail();
  53.                    List list = sm.select(Integer.parseInt(id));
  54.                    for(Iterator item = list.iterator();item.hasNext();){
  55.                    SendboxBean sbb = (SendboxBean) item.next();
  56.                    pageContext.setAttribute("pc",sbb);
  57.                   %>
  58.                   <tr> 
  59.                     <td colspan="1" width="10%" align="center" nowrap class="coolbutton" style="cursor: hand;" onClick="choiceAddress(EditForm.toUser);">收件人:</td>
  60.                     <td colspan="6" width="90%"><input name="toUser" type="text" class="Max" id="toUser" value="${pc.mail_to }" >                    </td>
  61.                   </tr>
  62.                   <tr> 
  63.                     <td colspan="1" width="10%" align="center" class="coolbutton" style="cursor: hand;" onClick="choiceAddress(EditForm.copyTo);">抄&nbsp;&nbsp;送:</td>
  64.                     <td colspan="6" width="90%"><input name="copyTo" type="text" class="Max" id="copyTo" value="${pc.mail_to }"></td>
  65.                   </tr>
  66.     <tr> 
  67.                     <td colspan="1" width="10%" align="center" class="coolbutton" style="cursor: hand;" onClick="choiceAddress(EditForm.secretTo);">暗&nbsp;&nbsp;送:</td>
  68.                     <td colspan="6" width="90%"><input name="secretTo" type="text" class="Max" id="secretTo" value="${pc.mail_to }"></td>
  69.                   </tr>
  70.                   <tr> 
  71.                     <td colspan="1" width="10%" align="center">主&nbsp;&nbsp;题:</td>
  72.                     <td colspan="6" width="90%"><input name="subject" type="text" class="Max" id="subject" value="${pc.subject }"></td>
  73.                   </tr>
  74.                   <tr> 
  75.                     <td width="10%" colspan="1" align="center">优先级:</td>
  76.                     <td><select name="priority" id="priority" >
  77.                         <option value="3" >一般</option>
  78.                         <option value="1" >高</option>
  79.                         <option value="5" >低</option>
  80.                       </select></td>
  81.                     <td colspan="2">需要已接收回执
  82.                       <input type="checkbox" name="needAutoReply" id="needAutoReply" value="1" >                    </td>
  83.                     <td colspan="2">&nbsp;</td>
  84.                   </tr>
  85.                    
  86.                  
  87.                   
  88.                   <tr id="htmlView" style="display:"> 
  89.                     <td colspan="7" width="100%">
  90.                   <textarea id='richedit' name='richedit' cols="82" rows="19" maxlength="1000000" style="width:100% " >${pc.content }</textarea>
  91.                   </tr>
  92.                   
  93.                   <tr id="textView" style="display:none"> 
  94.                     <td bgcolor="#C1F9FD" colspan="7" width="100%"><textarea id='richedit' name='richedit' cols="82" rows="19" maxlength="1000000" style="width:100% " ></textarea></td>
  95.                   </tr>
  96.                   
  97.                   <tr> 
  98.                     <td colspan="7" width="100%">
  99. <table width="100%" border="0" id="attachTable">
  100. <tbody>
  101.                         <tr id="dataRow0"> 
  102.                           <td width="60">附 件 : </td>
  103.                           <td><input type="file" name="file0" contenteditable="false"/>
  104.                               <a href="#" onClick="deleteRow(attachTable,this.parentElement.parentElement.id);" >删除附件</a></td>
  105.                         </tr>
  106. </tbody>
  107.                       </table>                    </td>
  108.                   </tr>
  109.                   <tr>
  110.                     <td colspan="7">当前已有附件:
  111.                        <input name="addAccessory" type="button" class="TableTitle" style="cursor: hand;" id="addAccessory" value="添加附件" 
  112.    onclick="addRow(attachTable);"/>
  113.                       提示:您能发送的邮件附件总容量最大为15M! </td>
  114.                   </tr>
  115.                   <tr>
  116.                     <td colspan="7">&nbsp;</td>
  117.                   </tr>
  118.                   <%
  119.                    }
  120.                   %>
  121.                 </table></td>
  122.               </tr>
  123.       </table></td>
  124.       <td width="11" bgcolor="ECF4F5">&nbsp;</td>
  125.     </tr>
  126.   </table>
  127. <script language="javascript">
  128. </script>  
  129. </div>
  130. </body>
  131. </html>