- <%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
- <%@page import="com.softeem.webmail.sendbox.SelectMail"%>
- <%@page import="com.softeem.webmail.send.ShowMail"%>
- <%@page import="com.softeem.webmail.sendbox.SendboxBean"%>
- <html>
- <head>
- <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
- <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
- <title>发送邮件</title>
- <style type="text/css">
- <!--
- .Max {
- width: 100%;
- }
- -->
- </style>
- <script language="JavaScript" src="include/CheckDataFunction.js" type="text/JavaScript"></script>
- <script language="javascript">
- <!--
- //-->
- </script>
- <link href="css/style.css" rel="stylesheet" type="text/css">
- </head>
- <body bgcolor="#F2F1F2" leftmargin="0" topmargin="0" rightmargin="0" bottommargin="0" scroll="no" background="images/login_bg.gif">
- <div style="overflow: auto;height:100%;width:100%;">
- <table width="100%" border="0" cellspacing="0" cellpadding="0">
- <tr>
- <td width="11" height="11"></td>
- <td ></td>
- </tr>
- </table>
- <table width="100%" height="98%" border="0" cellpadding="0" cellspacing="0">
- <tr>
- <td width="11" background="images/1.gif"> </td>
- <td align="center" valign="top" bgcolor="ECF4F5">
- <table width="99%" border="0" >
- <tr>
- <td ><table width="100%" height="100%" border="0" align="center" cellpadding="0" cellspacing="0">
- <tr align="center">
- <td width="200" align="center" colspan="2"><font color="#FF0000">收件人、抄送人地址请用逗号隔开</font></td>
- <td width="50" class="coolbutton" style="cursor: hand;" onClick="doSend()" ><img src="images/posts.gif" width="16" height="16" border="0" align="absmiddle">发送</td>
- <td width="50"></td>
- <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>
- <td width="50"></td>
- <td width="90" class="coolbutton" style="cursor: hand;" onClick="doSendAndSave();" ><img src="images/mail.gif" width="16" height="16" border="0" align="absmiddle">发送并保存</td>
- <td width="50"></td>
- </tr>
- <%
- String id = request.getParameter("id");
- ShowMail sm = new ShowMail();
- List list = sm.select(Integer.parseInt(id));
- for(Iterator item = list.iterator();item.hasNext();){
- SendboxBean sbb = (SendboxBean) item.next();
- pageContext.setAttribute("pc",sbb);
- %>
- <tr>
- <td colspan="1" width="10%" align="center" nowrap class="coolbutton" style="cursor: hand;" onClick="choiceAddress(EditForm.toUser);">收件人:</td>
- <td colspan="6" width="90%"><input name="toUser" type="text" class="Max" id="toUser" value="${pc.mail_to }" > </td>
- </tr>
- <tr>
- <td colspan="1" width="10%" align="center" class="coolbutton" style="cursor: hand;" onClick="choiceAddress(EditForm.copyTo);">抄 送:</td>
- <td colspan="6" width="90%"><input name="copyTo" type="text" class="Max" id="copyTo" value="${pc.mail_to }"></td>
- </tr>
- <tr>
- <td colspan="1" width="10%" align="center" class="coolbutton" style="cursor: hand;" onClick="choiceAddress(EditForm.secretTo);">暗 送:</td>
- <td colspan="6" width="90%"><input name="secretTo" type="text" class="Max" id="secretTo" value="${pc.mail_to }"></td>
- </tr>
- <tr>
- <td colspan="1" width="10%" align="center">主 题:</td>
- <td colspan="6" width="90%"><input name="subject" type="text" class="Max" id="subject" value="${pc.subject }"></td>
- </tr>
- <tr>
- <td width="10%" colspan="1" align="center">优先级:</td>
- <td><select name="priority" id="priority" >
- <option value="3" >一般</option>
- <option value="1" >高</option>
- <option value="5" >低</option>
- </select></td>
- <td colspan="2">需要已接收回执
- <input type="checkbox" name="needAutoReply" id="needAutoReply" value="1" > </td>
- <td colspan="2"> </td>
- </tr>
- <tr id="htmlView" style="display:">
- <td colspan="7" width="100%">
- <textarea id='richedit' name='richedit' cols="82" rows="19" maxlength="1000000" style="width:100% " >${pc.content }</textarea>
- </tr>
- <tr id="textView" style="display:none">
- <td bgcolor="#C1F9FD" colspan="7" width="100%"><textarea id='richedit' name='richedit' cols="82" rows="19" maxlength="1000000" style="width:100% " ></textarea></td>
- </tr>
- <tr>
- <td colspan="7" width="100%">
- <table width="100%" border="0" id="attachTable">
- <tbody>
- <tr id="dataRow0">
- <td width="60">附 件 : </td>
- <td><input type="file" name="file0" contenteditable="false"/>
- <a href="#" onClick="deleteRow(attachTable,this.parentElement.parentElement.id);" >删除附件</a></td>
- </tr>
- </tbody>
- </table> </td>
- </tr>
- <tr>
- <td colspan="7">当前已有附件:
- <input name="addAccessory" type="button" class="TableTitle" style="cursor: hand;" id="addAccessory" value="添加附件"
- onclick="addRow(attachTable);"/>
- 提示:您能发送的邮件附件总容量最大为15M! </td>
- </tr>
- <tr>
- <td colspan="7"> </td>
- </tr>
- <%
- }
- %>
- </table></td>
- </tr>
- </table></td>
- <td width="11" bgcolor="ECF4F5"> </td>
- </tr>
- </table>
- <script language="javascript">
- </script>
- </div>
- </body>
- </html>