<html xmlns="http://www.w3.org/1999/xhtml">
<!--#include file="../Inc/Conn.asp" -->
<!--#include file="../Inc/SK.Session.asp" -->
<!--#include file="../Inc/SK.Funtion.asp" -->
<%if Not (getconfig("SK_Office")="0" AND (Session("Manager")="1" OR (JudgePopedomTF(Session("UserName"),"SK100000000") AND JudgePopedomTF(Session("UserName"),"SK100000702")))) then Call ReturnError()%>
<%
if Not isnumeric(JCID(F("ID"))) then Call ReturnError10()
set rs=server.createobject("adodb.recordset")
sql="SELECT * from SK_OfficeMsn where (SK_Receiver="&Session("UID")&" OR SK_Sender="&session("UID")&") and SK_Draft=0 and MsnID="&JCID(F("ID"))&""
rs.Open sql,conn,1,3
if rs.eof and rs.bof then Call ReturnError4()
conn.execute(sql)
if rs("SK_Received")=0 and rs("SK_Receiver")=Session("UID") then
rs("SK_Received")="1"
rs("SK_Retime")=Now()
end if
rs.Update
%>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=GB2312" />
<title>阅读消息--<%=Rs("SK_Title")%></title>
<META http-equiv=Page-Enter content=SKCRM>
<META http-equiv=Page-Exit content=SKCRM>
<META content="MSHTML 6.00.3790.2858" name=GENERATOR>
<LINK href="../images/style.css" type=text/css rel=stylesheet>

<style type="text/css">
<!--
body {
margin: 5px 0px 5px 0px;
overflow-x: hidden;
}
-->
</style>
<script>
function sh(id)
{
 if (id==1)
 {
 {
 thisForm.target='_self';
 thisForm.action="SK.AddMsn.asp";
 thisForm.submit();
 }
 }
}
</script>
</head>
<body>
<table width="99%" border="0" align="center" cellpadding="0" cellspacing="0">
<TBODY>
<tr>
<td class="SK_Td_Top"><table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="12" height="25"><img src="../images/tab_03.gif" width="12" height="25" /></td>
<td><table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="46%" valign="middle">查看消息</td>
<td width="54%"></td>
</tr>
</table></td>
<td width="16"><img src="../images/tab_07.gif" width="16" height="25" /></td>
</tr>
</table></td>
</tr>
<tr>
<td>

<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="8" background="../images/tab_12.gif"></td>
<td>
<form name="thisForm" id="form1" method="post" action="">	  
<table width="100%" border="0" cellpadding="0" cellspacing="1" bgcolor="b5d6e6">
<tr>
  <td colspan="6" class="SK_Title1"><%=Rs("SK_Title")%></td>
  </tr>
<tr>
  <td class="SK_Text2">发件人</td>
  <td colspan="5" class="SK_Text1"><%
set RsFuser=server.createobject("adodb.recordset")
SqlFuser="select * from SK_SystemUsers where UsersID="&Rs("SK_Sender")&""
RsFuser.open SqlFuser,conn,1,1
Response.write""&RsFuser("SK_OName")&""
%>
</td>
</tr>
<tr>
  <td width="13%" class="SK_Text2">收件人</td>
  <td width="87%" colspan="5" class="SK_Text1"><%
set RsSFuser=server.createobject("adodb.recordset")
SqlSFuser="select * from SK_SystemUsers where UsersID="&Rs("SK_Receiver")&""
RsSFuser.open SqlSFuser,conn,1,1
Response.write""&RsSFuser("SK_OName")&""
RsSFuser.close
Set RsSFuser=Nothing
%>
</td>
</tr>
<tr>
  <td class="SK_Text2">时　间</td>
  <td colspan="5" class="SK_Text1"><%=Rs("SK_Sendtime")%></td>
</tr>
<tr>
  <td class="SK_Text2">重要度</td>
  <td colspan="5" class="SK_Text1"><font color=red><%if Rs("SK_Importance")=0 then%>一般<%elseif Rs("SK_Importance")=1 then%>重要<%elseif Rs("SK_Importance")=2 then%>保密<%end if%></font></td>
</tr>


<tr>
  <td valign="top" class="SK_Text2">内　容</td>
  <td colspan="5" valign="top" class="SK_FContent"><%=Rs("SK_Content")%></td>
</tr>

<tr>
<td colspan="6" class="SK_Text">
<input type="hidden" name="ReMsnID" value="<%=Rs("MsnID")%>">
<input type="hidden" name="ReUser" value="<%=RsFuser("SK_OName")%>">
<input type="hidden" name="ReTitle" value="回复:<%=Rs("SK_Title")%>">
<input type="hidden" name="ReContent" value="<br><br><br><br><br>-----------------<%=Rs("SK_Sendtime")%>----------<%=RsFuser("SK_OName")%> 写道:---------------<br><%=Rs("SK_Content")%>">
<input type="submit" name="SK_Re" value="回复" class="button1" onClick="javascript:sh(1)">
<input type="button" value=" 关闭 " onClick="window.opener.location.reload();window.close();" class="button1" /></td>
</tr>
</table>
<%
RsFuser.close
Set RsFuser=Nothing
%>
</form>
</td>
<td width="8" background="../images/tab_15.gif"></td>
</tr>
</table></td>
</tr>
<tr>
<td class="SK_Td_Foot">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="1%" height="20"><img src="../images/tab_18.gif" width="12" height="20" /></td>
<td width="98%" class="SK_Td_Page"></td>
<td width="1%"><img src="../images/tab_20.gif" width="16" height="20" /></td>
</tr>
</table>

</td>
</tr>
</TBODY>
</table>
</body>
<%
Call CloseDB()
%>
</html>