📄 mail.jsp
字号:
<%@ page contentType="text/html;charset=GB2312" %>
<%@ page import="cn.com.aheadsoft.recordset.MailInfoRecordSet" %>
<%@ page import="cn.com.aheadsoft.recordset.FileAccessoriesRecordSet" %>
<%@ page import="cn.com.aheadsoft.util.StringFormat" %>
<jsp:useBean id="userinfo" scope="session" class="cn.com.aheadsoft.util.UserInfo"/>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<link rel="stylesheet" type="text/css" href="/krm/jsp/css/css_Inform.css">
<link rel="stylesheet" type="text/css" href="/krm/jsp/css/css.css">
<title>留言阅读</title>
<script>
<!--
function MM_swapImgRestore() { //v3.0
var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}
function MM_preloadImages() { //v3.0
var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}
function MM_findObj(n, d) { //v4.01
var p,i,x; if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
if(!x && d.getElementById) x=d.getElementById(n); return x;
}
function MM_swapImage() { //v3.0
var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}
function openWin(url) {
window.open(url,'','toolbar=no,location=no,menubar=no,resizable=1,scrollbars=yes,left=100,top=100,width=600,height=400');
}
-->
</script>
</head>
<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
<table width="100%" border="0" cellspacing="0" cellpadding="0" align="center">
<tr height="8">
<td>
</td>
</tr>
<tr>
<td align="center">
<table border="0" width="98%" cellpadding="0" cellspacing="0">
<tr>
<td align="center">
<table border="0" width="100%" height="90%" class="collapse">
<tr>
<td class="tdA" colspan="9" align="center"><div align="left">
留言阅读</div></td>
</tr>
<%
MailInfoRecordSet recordset = (MailInfoRecordSet)request.getAttribute("mail");
//session.removeAttribute("mail");
if(recordset != null && recordset.size() > 0) {
while(recordset.next()) {
String title = StringFormat.Source2GB(recordset.getMI_Title());
title = StringFormat.StrReplace(title,""+(char)34,""+(char)39);
String sendName = StringFormat.Source2GB(recordset.getMI_Sender());
String sendId = StringFormat.Source2GB(recordset.getMI_SendID());
String firstDate = StringFormat.Source2GB(recordset.getMI_Date());
String nr = StringFormat.Source2GB(recordset.getMI_Content());
//String rnr = nr;
//rnr = StringFormat.StrReplace(rnr,""+(char)34,""+(char)39);
//nr = StringFormat.StrReplace(nr," "," ");
// nr = StringFormat.StrReplace(nr,""+(char)13,"");
nr = StringFormat.StrReplace(nr,""+(char)32," ");
String titlesend = "转发:"+title+" 原发件人:"+sendName+" 原发送时间: "+firstDate;
%>
<tr>
<td align="center" class="tdB" ><%= StringFormat.Source2GB(recordset.getMI_Title()) %></td>
</tr>
<tr>
<td align="left" class="common1" ><%= StringFormat.Source2GB(userinfo.GetRealName()) %>:</td>
</tr>
<tr>
<!--修改:曾红立-->
<td align="left" class="common1" ><textarea name=txtArea1 rows="28" style="overflow:auto;width:100%" readonly="readonly">
<%= nr %></textarea>
</td>
</tr>
<tr>
<tr>
<td class="common" >
附件:<%
FileAccessoriesRecordSet recordset1 = (FileAccessoriesRecordSet)request.getAttribute("accessories");
//session.removeAttribute("accessories");
if(recordset1 != null && recordset1.size() > 0) {
while(recordset1.next()) {
out.println(" | <a href=\"/krm/servlet/FileUploadServlet?status=q&id="+recordset1.getFA_ID()+"\">"+StringFormat.Source2GB(recordset1.getFA_FileName())+"</a>|" );
}
}
%></td></tr>
<tr>
<td align="right" class="common1" ><%= StringFormat.Source2GB(recordset.getMI_Sender()) %>
</td></tr>
<tr>
<td align="right" class="common1" ><%= StringFormat.Source2GB(recordset.getMI_Date()) %>
</td></tr>
<tr>
<%
nr = StringFormat.StrReplace(nr," ",""+(char)32);
nr = StringFormat.StrReplace(nr,""+(char)34,""+(char)39);
%>
<td class="tdC" align="center">
<input type="button" value="回 复" onmouseover="this.className='button2'" onmouseout="this.className='button1'" class="button1" onClick="javascript:window.opener.document.location.href='/krm/jsp/commanage/mail/reply.jsp?title=<%=title%>&sendName=<%=sendName%>&sendId=<%=sendId%>';window.close()">
<input type="button" value="转 发" onmouseover="this.className='button2'" onmouseout="this.className='button1'" class="button1" onClick="javascript:window.opener.document.location.href='/krm/jsp/commanage/mail/resend.jsp?ID=<%=recordset.getMI_ID()%>';window.close()">
<input type="button" value="关 闭" onmouseover="this.className='button2'" onmouseout="this.className='button1'" class="button1" onClick="javascript:window.close();">
</td>
</tr>
<%
}
}
%>
</table></td></tr>
</table></td></tr>
</table>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -