mail_show.jsp
上传用户:jhtang88
上传日期:2014-01-27
资源大小:28528k
文件大小:4k
源码类别:

Jsp/Servlet

开发平台:

Java

  1. <%@ page contentType="text/html; charset=utf-8"%>
  2. <%@ page import="com.redmoon.oa.emailpop3.*"%>
  3. <%@ page import="cn.js.fan.web.*"%>
  4. <%@ page import="cn.js.fan.util.*"%>
  5. <html>
  6. <head>
  7. <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  8. <title>发邮件</title>
  9. <link href="../common.css" rel="stylesheet" type="text/css">
  10. <script>
  11. function form1_onsubmit() {
  12. form1.content.value = getHtml();
  13. if (form1.content.value.length>3000) {
  14. // alert("您输入的数据太长,不允许超过3000字!");
  15. // return false;
  16. }
  17. }
  18. function saveDrafe() {
  19. form1.action = "pop3_draft_save.jsp";
  20. form1.content.value = getHtml();
  21. if (form1.content.value.length>3000) {
  22. // alert("您输入的数据太长,不允许超过3000字!");
  23. // return false;
  24. }
  25. form1.submit();
  26. }
  27. </script>
  28. </head>
  29. <body leftmargin="0" topmargin="5">
  30. <jsp:useBean id="fchar" scope="page" class="cn.js.fan.util.StrUtil"/>
  31. <jsp:useBean id="privilege" scope="page" class="com.redmoon.oa.pvg.Privilege"/>
  32. <%
  33. String op = ParamUtil.get(request, "op");
  34. MailMsgMgr mmm = new MailMsgMgr();
  35. int id = ParamUtil.getInt(request, "id");
  36. MailMsgDb mmd = null;
  37. try {
  38. mmd = mmm.getMailMsgDb(request, id);
  39. }
  40. catch (ErrMsgException e) {
  41. out.print(SkinUtil.makeErrMsg(request, e.getMessage()));
  42. return;
  43. }
  44. %>
  45. <table width="" border="0" align="center" cellpadding="0" cellspacing="0">
  46.   <tr> 
  47.     <td width="367" height="23" class="right-title">&nbsp;&nbsp;查 看 
  48.       邮 件</td>
  49.     <td width="127" class="right-title">&nbsp;</td>
  50.   </tr>
  51.   <tr>
  52.     <td colspan="2" valign="top" background="../images/tab-b-back.gif">
  53. <table width="98%" border="0" align="center" cellpadding="0" cellspacing="2">
  54.           <tr> 
  55.             <td align="right">邮 箱:</td>
  56.             <td>
  57. <jsp:useBean id="userpop3setup" scope="page" class="com.redmoon.oa.emailpop3.UserPop3Setup"/>
  58. <%=mmd.getSender()%>
  59. </td>
  60.           </tr>
  61.           <tr> 
  62.             <td width="11%" align="right">收件人:</td>
  63.             <td width="89%"><%=mmd.getReceiver()%></td>
  64.           </tr>
  65.           <tr> 
  66.             <td align="right">主 题:</td>
  67.             <td><%=mmd.getSubject()%></td>
  68.           </tr>
  69.           
  70.           <tr> 
  71.             <td align="right">正&nbsp;&nbsp;&nbsp;&nbsp;文:</td>
  72.             <td>&nbsp;</td>
  73.           </tr>
  74.           <tr> 
  75.             <td colspan="2">
  76. <%=mmd.getContent()%>
  77. </td>
  78.           </tr>
  79.           <tr align="center">
  80.             <td colspan="2" align="left">附件:
  81.               <%
  82.   java.util.Iterator attir = mmd.getAttachments().iterator();
  83.   while (attir.hasNext()) {
  84.    Attachment att = (Attachment)attir.next();
  85.   %>
  86.                 <li><img src="../images/attach.gif" width="17" height="17">&nbsp;<a target="_blank" href="email_getfile.jsp?id=<%=mmd.getId()%>&attachId=<%=att.getId()%>"><%=att.getName()%></a>&nbsp;&nbsp;&nbsp;<a href="?op=delattach&id=<%=mmd.getId()%>&attachId=<%=att.getId()%>"></a></li>
  87.             <%}%></td>
  88.           </tr>
  89.           <tr align="center"> 
  90.             <td colspan="2"> 
  91.               <input type="button" class="button1" value=" 发 送 " onClick="window.location.href='mail_send_do.jsp?op=send&id=<%=mmd.getId()%>'">
  92.               &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
  93.               <input type="button" onClick="window.location.href='mail_edit.jsp?id=<%=mmd.getId()%>'" class="button1" value=" 修 改 ">            </td>
  94.           </tr>
  95.       </table> 
  96.       <p>&nbsp;</p></td>
  97.   </tr>
  98.   <tr> 
  99.     <td height="9" colspan="2"><img src="../images/tab-b-bot.gif" height="9"></td>
  100.   </tr>
  101. </table>
  102. </body>
  103. </html>