- <%@ page contentType="text/html; charset=gb2312"%>
- <%@ page import="com.gforce.gfoa.*,com.gforce.currency.*,java.util.*" %>
- <jsp:include page="/CheckLogin1.jsp" flush="true"/> <% Session m_session = new Session(session); %>
- <%
- Request m_request = new Request(request);
- int iMsgID = m_request.GetInt("ID");
- int iUserID = m_session.GetInt("UserID");
- Vector vt = OnlineMessage.getRecordByID(iMsgID);
- if(vt.size()==1)
- {
- int iRecieveUserID=Integer.parseInt(((Vector)vt.get(0)).get(5).toString());
- int iSendUserID=Integer.parseInt(((Vector)vt.get(0)).get(4).toString());
- int iMessageID = Integer.parseInt(((Vector)vt.get(0)).get(11).toString());
- if(iRecieveUserID==iUserID || iSendUserID==iUserID)
- {
- if(iRecieveUserID == iUserID) OnlineMessage.setReaded(iMsgID);
- %>
- <html>
- <head>
- <meta http-equiv="Content-Type" content="text/html; charset=gb2312"><meta http-equiv="pragma" content="no-cache">
- <title><%=((Vector)vt.get(0)).get(1).toString()%>-- GForce OA 2.0</title>
- <link href="/css/txt.jsp" rel="stylesheet" type="text/css">
- <script language="JavaScript" type="text/javascript">
- </script>
- <style type="text/css">
- <!--
- .imgtd {
- border: 1px solid #0A0A0A;
- }
- -->
- </style>
- </head>
- <body bgcolor="<%=m_session.GetString("BackColor")%>" leftmargin="0" topmargin="0">
- <div align="center">
- <table width="85%" border="0" cellpadding="0" style="border-collapse: collapse" height="349">
- <tr>
- <td align="left" height="10" valign="bottom" width="15%" style="border-left-width: 1px; border-right-width: 1px; border-bottom-width: 1px" bordercolor="#000000">
- <div align="center">
- <table border="0" width="103" cellspacing="0" cellpadding="0" id="table1" align="left">
- <tr>
- <td><font face="方正姚体" size="5">
- <strong>阅读信件</strong></font></td>
- </tr>
- </table>
- </div>
- </td>
- <td align="right" height="10" valign="top" style="border-left-width: 1px; border-right-width: 1px; border-bottom-width: 1px" bordercolor="#000000">
- <p align="right">
- <p align="right">
- <input type="button" value="关闭窗口" onclick="window.close()" style="color: #000000; border-style: solid; border-width: 1px; padding-left: 2px; padding-right: 2px; padding-top: 1px; padding-bottom: 1px; background-color: #FFFFFF"></td>
- </tr>
- <tr>
- <td align="left" colspan="2" height="4" valign="top">
- </td>
- </tr>
- <tr>
- <td align="left" colspan="2" height="3" valign="top" style="border-left-style: double; border-left-width: 3px; border-right-style: double; border-right-width: 3px; border-top-style: double; border-top-width: 3px; padding-left: 4px; padding-right: 4px; padding-top: 1px; padding-bottom: 1px" bordercolor="#000000">
- </td>
- </tr>
- <tr>
- <td align="right" width="15%" height="25" style="border-left-width: 3px; border-top-width: 1px; border-left-style:double; border-bottom-width:1px" bordercolor="#000000">
- <font size="2">信件标题:</font></td>
- <td align="left" width="85%" height="25" style="border-right-width: 3px; border-top-width: 1px; border-right-style:double; border-bottom-width:1px" bordercolor="#000000">
- <font size="2"><b><%=((Vector)vt.get(0)).get(1).toString()%></b></font></td>
- </tr>
- <tr>
- <td align="right" width="15%" style="border-left-width: 3px; border-top-width: 1px; border-left-style:double; border-bottom-width:1px" height="25" bordercolor="#000000">
- <font size="2">接收人:</font></td>
- <td align="left" width="85%" style="border-right-width: 3px; border-top-width: 1px; border-right-style:double; border-bottom-width:1px" height="25" bordercolor="#000000">
- <font size="2">
- <%
- if(((Vector)vt.get(0)).get(9).toString().equalsIgnoreCase("true"))
- {
- out.print(UserManager.getPersonnelNameByUserID(iRecieveUserID));
- }
- else
- {
- Vector vtt = OnlineMessage.getRecieverInfo(iMessageID);
- for(int j=0;j<vtt.size();j++)
- {
- if(j>0)out.print("、");
- out.print(((Vector)vtt.get(j)).get(1).toString());
- }
- }
- %>
- </font>
- </td>
- </tr>
- <tr>
- <td align="right" width="15%" style="border-left-width: 3px; border-top-width: 1px; border-left-style:double; border-bottom-width:1px" height="25" bordercolor="#000000">
- <font size="2">发送人:</font></td>
- <td align="left" width="85%" style="border-right-width: 3px; border-top-width: 1px; border-right-style:double; border-bottom-width:1px" height="25" bordercolor="#000000">
- <font size="2"><%=UserManager.getPersonnelNameByUserID(iSendUserID)%></font></td>
- </tr>
- <tr>
- <td align="right" width="15%" style="border-left-width: 3px; border-top-width: 1px; border-left-style:double; border-bottom-width:1px" height="25" bordercolor="#000000">
- <font size="2">发送时间:</font></td>
- <td align="left" width="85%" style="border-right-width: 3px; border-top-width: 1px; border-right-style:double; border-bottom-width:1px" height="25" bordercolor="#000000">
- <font size="2"><%=StringNew.GetDateString(((Vector)vt.get(0)).get(2).toString(),"yyyy年MM月dd日HH:mm:ss")%></font></td>
- </tr>
- <tr>
- <td align="right" width="15%" style="border-left-width: 3px; border-top-width: 1px; border-left-style:double; border-bottom-width:1px" height="25" bordercolor="#000000">
- <font size="2">附件信息:</font></td>
- <td align="left" width="85%" style="border-right-width: 3px; border-top-width: 1px; border-right-style:double; border-bottom-width:1px" height="25" bordercolor="#000000">
- <font size="2">
- <%
- Vector vt1 = OnlineMessage.getAttInfo(Integer.parseInt(((Vector)vt.get(0)).get(11).toString()));
- String strAccessoriesList = "";
- if(vt1.size()>0)
- {
- for(int j=0;j<vt1.size();j++)
- {
- strAccessoriesList += "<a href="" + ((Vector)vt1.get(j)).get(2).toString() + "" target="_blank" onclick="alert('请点击右键,然后选择“目标另存为”或者使用下载工具下载保存!');return false;">" + ((Vector)vt1.get(j)).get(1).toString() + "</a><br>";
- }
- }
- else
- {
- strAccessoriesList = " ";
- }
- out.println(strAccessoriesList);
- %>
- </font>
- </td>
- </tr>
- <tr>
- <td align="center" width="100%" height="33" colspan="2" style="border-left-style: double; border-left-width: 3px; border-right-style: double; border-right-width: 3px; border-top-style: solid; border-top-width: 1px; border-bottom-style: solid; border-bottom-width: 1px" bordercolor="#000000">
- <b><font size="2">信 件 内 容</font></b></td>
- </tr>
- <tr>
- <td align="center" width="100%" height="16" colspan="2" style="border-left-style: double; border-left-width: 3px; border-right-style: double; border-right-width: 3px; border-top-width: 1px" bordercolor="#000000">
- </td>
- </tr>
- <tr>
- <td width="100%" height="26" colspan="2" style="border-left-style: double; border-left-width: 3px; border-right-style: double; border-right-width: 3px; border-top-width: 1px" bordercolor="#000000"><font size="2">
- <table border="0" width="100%" id="table2" height="22" cellpadding="0" cellspacing="0">
- <tr>
- <td width="10"></td>
- <td><%=((Vector)vt.get(0)).get(3).toString()%></td>
- </tr>
- </table>
- </font></td>
- </tr>
- <tr>
- <td align="right" height="20" colspan="2" style="border-left-style: double; border-left-width: 3px; border-right-style: double; border-right-width: 3px; border-top-width: 1px; border-bottom-style: double; border-bottom-width: 3px" bordercolor="#000000">
- </td>
- </tr>
- <tr>
- <td align="right" height="12" colspan="2">
- </td>
- </tr>
- <tr>
- <td align="right" height="21" colspan="2">
- <input type="button" value="关闭窗口" onclick="window.close()" style="color: #000000; border-style: solid; border-width: 1px; padding-left: 2px; padding-right: 2px; padding-top: 1px; padding-bottom: 1px; background-color: #FFFFFF"></td>
- </tr>
- <tr>
- <td align="right" height="6" colspan="2">
- </td>
- </tr>
- </table>
- </div>
- </body>
- </html>
- <%
- }
- else
- {
- %>
- <script language="JavaScript" type="text/JavaScript">
- alert("您没有权限查看此记录,请与管理员联系!");
- window.close();
- </script>
- <%
- }
- }
- else
- {
- %>
- <script language="JavaScript" type="text/JavaScript">
- alert("此记录已被删除,请与管理员联系!");
- window.close();
- </script>
- <%
- }
- %>