showMail.jsp 5.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156
  1. <%@ page contentType="text/html;charset=GBK"%>
  2. <%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
  3. <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
  4. <html>
  5. <head>
  6. <Title>查看邮件</Title>
  7. <script type="text/javascript" src="/shares/js/jquery-1.3.2.min.js"></script>
  8. <script type="text/javascript" src="/shares/js/constant.js"></script>
  9. <script type="text/javascript" src="/shares/js/common.js"></script>
  10. <script type="text/javascript" src="/shares/js/yw/master1_oa/mail/mail.js"></script>
  11. <link href="${pageContext.request.contextPath }/liger/lib/ligerUI/skins/${sessionScope.css}/css/ligerui-all.css" rel="stylesheet" type="text/css" />
  12. <script src="${pageContext.request.contextPath }/liger/lib/ligerUI/js/ligerui.all.js" type="text/javascript"></script>
  13. <link href="main.css" rel="stylesheet" type="text/css" />
  14. <SCRIPT type="text/javascript">
  15. /**
  16. * 转发
  17. */
  18. function doReply(){
  19. $("#task").val("reply");
  20. //$("#box").val("inbox");
  21. theForm.submit();
  22. }
  23. /**
  24. * 回复全部
  25. */
  26. function doReplyAll(){
  27. $("#task").val("replyAll");
  28. //$("#box").val("inbox");
  29. theForm.submit();
  30. }
  31. /*
  32. * 删除
  33. */
  34. /**
  35. function doMove(){
  36. if(confirm('邮件删除操作将把邮件移到垃圾箱,是否执行该操作?')){
  37. //theForm.newBox.value="delbox";
  38. $("#task").val("move");
  39. $("#newbox").val("delbox");
  40. theForm.submit();
  41. }
  42. } */
  43. /**
  44. * 删除
  45. */
  46. function delMail(){
  47. if("${box}" == "delbox"){
  48. // 如果是垃圾箱的邮件,则永久删除
  49. $.ligerDialog.confirm('该邮件将被永久删除,确定要继续吗?', function (yes) {
  50. if(yes){
  51. location.href = "${pageContext.request.contextPath }/MTMailAction.do?task=delMail&ids=${mailMap.id}&box=${box}";
  52. }
  53. });
  54. }else{
  55. // 移动到垃圾箱
  56. $.ligerDialog.confirm('确定要删除该邮件吗?', function (yes) {
  57. if(yes){
  58. location.href = "${pageContext.request.contextPath }/MTMailAction.do?task=move&ids=${mailMap.id}&newbox=delbox&box=${box}";
  59. }
  60. });
  61. }
  62. }
  63. function doForward(){
  64. $("#task").val("forward");
  65. theForm.submit();
  66. }
  67. </SCRIPT>
  68. <style>
  69. .sub_title{font:bold 14px "lucida Grande",Verdana,"Microsoft YaHei";}
  70. .addrtitle{color:#798699;}
  71. #mailContentContainer .txt {height:auto;}
  72. .mailinfo{word-break: break-all; padding: 2px 12px 0 14px; line-height: 19px;width:99%}
  73. </style>
  74. </head>
  75. <Body>
  76. <div class="container-layout">
  77. <DIV id="btn_title" class="form-button">
  78. <input type="button" onclick="toMailList()" class="l-button" style="width:100px;" value="返回邮件列表" />&nbsp;
  79. <input type="button" id="mail_send" onclick="doReply()" class="l-button" value="回复" />&nbsp;
  80. <input type="button" id="mail_send" onclick="doReplyAll()" class="l-button" value="回复全部" />&nbsp;
  81. <input type="button" id="mail_send" onclick="doForward()" class="l-button" value="转发" />&nbsp;
  82. <input type="button" id="mail_send" onclick="delMail()" class="l-button" value="删除" />
  83. </DIV>
  84. <%@ include file="/include/message.jsp"%>
  85. <FORM method='POST' name="theForm" id="theForm" action="MTMailAction.do">
  86. <input type="hidden" name="id" id="id" value="${mailMap.id}">
  87. <input type="hidden" name="task" id="task" value="">
  88. <input type="hidden" name="box" id="box" value="${mailMap.box}">
  89. <input type="hidden" name="newbox" id="newbox" value="">
  90. <div class="forum-container">
  91. <table border="0" cellspacing="0" cellpadding="0" style="background:#eff5fb;border-top:1px solid #fff;border-bottom:1px solid #aac1de;">
  92. <tbody>
  93. <tr>
  94. <td height="24" valign="middle" style="word-break: break-all; padding: 9px 8px 2px 14px;">
  95. <div style="padding-bottom: 3px;">
  96. <span id="subject" class="sub_title ">${mailMap.subject}</span>
  97. </div>
  98. </td>
  99. </tr>
  100. <tr>
  101. <td class="mailinfo">
  102. <span class="addrtitle">发件人:${mailMap.from }</span>
  103. </td>
  104. </tr>
  105. <tr>
  106. <td class="mailinfo">
  107. <span class="addrtitle">时&nbsp;&nbsp;间:${mailMap.sendDate}</span>
  108. </td>
  109. </tr>
  110. <tr>
  111. <td class="mailinfo">
  112. <span class="addrtitle">收件人:${mailMap.to }</span>
  113. </td>
  114. </tr>
  115. <c:if test="${mailMap.cc != null}">
  116. <tr>
  117. <td class="mailinfo">
  118. <span class="addrtitle">抄&nbsp;&nbsp;送:${mailMap.cc }</span>
  119. </td>
  120. </tr>
  121. </c:if>
  122. <c:if test="${mailMap.bcc != null}">
  123. <tr>
  124. <td class="mailinfo">
  125. <span class="addrtitle">密&nbsp;&nbsp;送:${mailMap.bcc }</span>
  126. </td>
  127. </tr>
  128. </c:if>
  129. <c:if test="${mailMap.attachsCount > 0 }">
  130. <tr>
  131. <td class="mailinfo">
  132. <span class="addrtitle">附&nbsp;&nbsp;件:
  133. <c:forEach items="${mailMap.attachs}" var="list">
  134. <a href="${pageContext.request.contextPath }/MTMailAction.do?task=download&id=${mailMap.id}&box=${mailMap.box}&fileName=${list.fileName }&userName=${mailMap.userName}&domainName=${mailMap.domainName}" >${list.description }</a>&nbsp;&nbsp;
  135. </c:forEach>
  136. </span>
  137. </td>
  138. </tr>
  139. </c:if>
  140. </tbody>
  141. </table>
  142. <div id="contentDiv" style="position:relative;font-size:14px;height:auto;padding:15px 15px 10px 15px;z-index:1;zoom:1;line-height:1.7;" class="body">
  143. ${mailMap.content}
  144. </div>
  145. </div>
  146. </FORM>
  147. </div>
  148. </BODY>
  149. </HTML>