⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 message_view.asp

📁 这是ASP的OA
💻 ASP
字号:
<!-- #include file="const.asp" -->
<%
call opendb()
checkuser()
dim sql,rs,title,from,to1,id,content,owner,addtime
id=nrequest("id")
if id<>"" then
	sql="select * from m3_message where id="&id&""
	set rs=server.CreateObject("adodb.recordset")
	rs.open sql,conn,1,3
	if rs.eof and rs.bof then
		rs.close
		set rs=nothing
		call closedb()
		response.write"<script>alert('无效的参数');window.close();</script>"
		response.End()
	else
		if rs("owner")<>request.Cookies("matrix3")("matrix3_name") and rs("from1")<>request.Cookies("matrix3")("matrix3_name") then
			rs.close
			set rs=nothing
			call closedb()
			response.write"<script>alert('您不能阅读他人的信件!');window.close();</script>"
			response.End()
		else
			title=rs("title")
			to1=rs("to1")
			from=rs("from1")
			addtime=rs("addtime")
			content=rs("content")
			if rs("owner")=request.Cookies("matrix3")("matrix3_name") then
				rs("isnew")=0
				rs.update
			end if
		end if
	end if
	rs.close
	set rs=nothing	
end if
position "阅读站内信件",0
call closedb()
%>
<html>
<head>
<title>阅读信件</title>
<meta http-equiv="content-Type" content="text/html; charset=gb2312">
<link href="images/css.css" rel="stylesheet" type="text/css">
</head>
<BODY BGCOLOR=#FFFFFF>
<table width="96%" border="0" align="center" cellpadding="3" cellspacing="1" bgcolor="#ECE9D9">
<tr background="images/bg4.gif" align="center">
    <td background="images/bg4.gif"><b>阅读信件</b></td>
</tr>
  <tr height="20" align="center"> 
    <td bgcolor="#FFFFFF" height="300" valign="top"><br>
      <table width="477" border="0" cellpadding="5" cellspacing="1" bgcolor="#CCCCCC">
        <tr bgcolor="#FFFFFF"> 
          <td width="23%" height="16" align="right">来自 :</td>
          <td width="44%" height="16"><%=from%></td>
          <td width="33%" height="16" align="center">&nbsp;<%if from<>request.Cookies("matrix3")("matrix3_name") then%><a href="msgnew.asp?name=<%=from%>">回复</a><%end if%></td>
        </tr>
        <tr bgcolor="#FFFFFF"> 
          <td height="16" align="right">发住 :</td>
          <td height="16" colspan="2"><%=to1%></td>
        </tr>
        <tr bgcolor="#FFFFFF"> 
          <td height="16" align="right">时间 :</td>
          <td height="16" colspan="2"><%=addtime%></td>
        </tr>
        <tr bgcolor="#FFFFFF"> 
          <td height="16" align="right">标题 :</td>
          <td height="16" colspan="2"><%=title%></td>
        </tr>
        <tr bgcolor="#FFFFFF"> 
          <td align="right" valign="top"><br>
            内容 : </td>
          <td height="200" colspan="2" valign="top"><table width="100%" border="0" cellspacing="0" cellpadding="8" style="word-break:break-all;WORD-WRAP: break-word;">
              <tr> 
                <td><%=content%></td>
              </tr>
            </table></td>
        </tr>
      </table></td>
</tr>
<tr height="20" align="center">
<td>&nbsp;</td>
</tr>
</table>
</body>
</html>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -