| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156 |
- <%@ page contentType="text/html;charset=GBK"%>
- <%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
- <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
- <html>
- <head>
- <Title>查看邮件</Title>
- <script type="text/javascript" src="/shares/js/jquery-1.3.2.min.js"></script>
- <script type="text/javascript" src="/shares/js/constant.js"></script>
- <script type="text/javascript" src="/shares/js/common.js"></script>
- <script type="text/javascript" src="/shares/js/yw/master1_oa/mail/mail.js"></script>
- <link href="${pageContext.request.contextPath }/liger/lib/ligerUI/skins/${sessionScope.css}/css/ligerui-all.css" rel="stylesheet" type="text/css" />
- <script src="${pageContext.request.contextPath }/liger/lib/ligerUI/js/ligerui.all.js" type="text/javascript"></script>
- <link href="main.css" rel="stylesheet" type="text/css" />
- <SCRIPT type="text/javascript">
- /**
- * 转发
- */
- function doReply(){
- $("#task").val("reply");
- //$("#box").val("inbox");
- theForm.submit();
- }
- /**
- * 回复全部
- */
- function doReplyAll(){
- $("#task").val("replyAll");
- //$("#box").val("inbox");
- theForm.submit();
- }
- /*
- * 删除
- */
- /**
- function doMove(){
- if(confirm('邮件删除操作将把邮件移到垃圾箱,是否执行该操作?')){
- //theForm.newBox.value="delbox";
- $("#task").val("move");
- $("#newbox").val("delbox");
- theForm.submit();
- }
- } */
- /**
- * 删除
- */
- function delMail(){
- if("${box}" == "delbox"){
- // 如果是垃圾箱的邮件,则永久删除
- $.ligerDialog.confirm('该邮件将被永久删除,确定要继续吗?', function (yes) {
- if(yes){
- location.href = "${pageContext.request.contextPath }/MTMailAction.do?task=delMail&ids=${mailMap.id}&box=${box}";
- }
- });
- }else{
- // 移动到垃圾箱
- $.ligerDialog.confirm('确定要删除该邮件吗?', function (yes) {
- if(yes){
- location.href = "${pageContext.request.contextPath }/MTMailAction.do?task=move&ids=${mailMap.id}&newbox=delbox&box=${box}";
- }
- });
- }
- }
- function doForward(){
- $("#task").val("forward");
- theForm.submit();
- }
- </SCRIPT>
- <style>
- .sub_title{font:bold 14px "lucida Grande",Verdana,"Microsoft YaHei";}
- .addrtitle{color:#798699;}
- #mailContentContainer .txt {height:auto;}
- .mailinfo{word-break: break-all; padding: 2px 12px 0 14px; line-height: 19px;width:99%}
- </style>
- </head>
- <Body>
- <div class="container-layout">
- <DIV id="btn_title" class="form-button">
- <input type="button" onclick="toMailList()" class="l-button" style="width:100px;" value="返回邮件列表" />
- <input type="button" id="mail_send" onclick="doReply()" class="l-button" value="回复" />
- <input type="button" id="mail_send" onclick="doReplyAll()" class="l-button" value="回复全部" />
- <input type="button" id="mail_send" onclick="doForward()" class="l-button" value="转发" />
- <input type="button" id="mail_send" onclick="delMail()" class="l-button" value="删除" />
- </DIV>
- <%@ include file="/include/message.jsp"%>
- <FORM method='POST' name="theForm" id="theForm" action="MTMailAction.do">
- <input type="hidden" name="id" id="id" value="${mailMap.id}">
- <input type="hidden" name="task" id="task" value="">
- <input type="hidden" name="box" id="box" value="${mailMap.box}">
- <input type="hidden" name="newbox" id="newbox" value="">
- <div class="forum-container">
- <table border="0" cellspacing="0" cellpadding="0" style="background:#eff5fb;border-top:1px solid #fff;border-bottom:1px solid #aac1de;">
- <tbody>
- <tr>
- <td height="24" valign="middle" style="word-break: break-all; padding: 9px 8px 2px 14px;">
- <div style="padding-bottom: 3px;">
- <span id="subject" class="sub_title ">${mailMap.subject}</span>
- </div>
- </td>
- </tr>
- <tr>
- <td class="mailinfo">
- <span class="addrtitle">发件人:${mailMap.from }</span>
- </td>
- </tr>
- <tr>
- <td class="mailinfo">
- <span class="addrtitle">时 间:${mailMap.sendDate}</span>
- </td>
- </tr>
- <tr>
- <td class="mailinfo">
- <span class="addrtitle">收件人:${mailMap.to }</span>
- </td>
- </tr>
- <c:if test="${mailMap.cc != null}">
- <tr>
- <td class="mailinfo">
- <span class="addrtitle">抄 送:${mailMap.cc }</span>
- </td>
- </tr>
- </c:if>
- <c:if test="${mailMap.bcc != null}">
- <tr>
- <td class="mailinfo">
- <span class="addrtitle">密 送:${mailMap.bcc }</span>
- </td>
- </tr>
- </c:if>
- <c:if test="${mailMap.attachsCount > 0 }">
- <tr>
- <td class="mailinfo">
- <span class="addrtitle">附 件:
- <c:forEach items="${mailMap.attachs}" var="list">
- <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>
- </c:forEach>
- </span>
- </td>
- </tr>
- </c:if>
- </tbody>
- </table>
- <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">
- ${mailMap.content}
- </div>
- </div>
- </FORM>
-
- </div>
- </BODY>
- </HTML>
|