📄 duasmscontent.asp
字号:
<%@LANGUAGE="VBSCRIPT"%>
<!--#include file="../../Connections/oavbsconn.asp" -->
<!--#include file="../../Connections/oavbsconncopy.asp" -->
<%
' *** Restrict Access To Page: Grant or deny access to this page
MM_authorizedUsers=""
MM_authFailedURL="../../index.asp"
MM_grantAccess=false
If Session("userssdfgfhtrh") <> "" Then
If (true Or CStr(Session("MM_UserAuthorization"))="") Or _
(InStr(1,MM_authorizedUsers,Session("MM_UserAuthorization"))>=1) Then
MM_grantAccess = true
End If
End If
If Not MM_grantAccess Then
MM_qsChar = "?"
If (InStr(1,MM_authFailedURL,"?") >= 1) Then MM_qsChar = "&"
MM_referrer = Request.ServerVariables("URL")
if (Len(Request.QueryString()) > 0) Then MM_referrer = MM_referrer & "?" & Request.QueryString()
MM_authFailedURL = MM_authFailedURL & MM_qsChar & "accessdenied=" & Server.URLEncode(MM_referrer)
Response.Redirect(MM_authFailedURL)
End If
%>
<!--#include file="../../Connections/ifr/ifrasp.asp" -->
<%
Dim rsms__varid
rsms__varid = "20"
If (request.querystring("id") <> "") Then
rsms__varid = request.querystring("id")
End If
%>
<%
Dim rsms__varsessionuser
rsms__varsessionuser = "1"
If (Session("names") <> "") Then
rsms__varsessionuser = Session("names")
End If
%>
<%
Dim rsms
Dim rsms_numRows
Set rsms = Server.CreateObject("ADODB.Recordset")
rsms.ActiveConnection = MM_oavbsconn_STRING
rsms.Source = "SELECT id,标题,内容,发送人姓名,发送人部门,入库时间,sms是否为群发,回执,是否阅读,阅读次数,文件名,文件编号,spid,sp类型 FROM infoall WHERE (信息属性 = '短消息' or 信息属性 = '短消息回复') and (接收人姓名='" + Replace(rsms__varsessionuser, "'", "''") + "' or 接收人姓名='对所有人群发') and 是否标记为接收人删除='否' and id=" + Replace(rsms__varid, "'", "''") + " ORDER BY ID DESC"
rsms.CursorType = 0
rsms.CursorLocation = 3
rsms.LockType = 3
rsms.Open()
rsms_numRows = 0
%>
<% dim n,id
if rsms.eof or not rsms.bof then
rsms("阅读次数")=rsms("阅读次数")+1
rsms("是否阅读")="是"
rsms.update
n=rsms("文件名")
id=rsms("文件编号")
end if
%>
<%
Dim MM_paramName
%>
<%
' *** Go To Record and Move To Record: create strings for maintaining URL and Form parameters
Dim MM_keepNone
Dim MM_keepURL
Dim MM_keepForm
Dim MM_keepBoth
Dim MM_removeList
Dim MM_item
Dim MM_nextItem
' create the list of parameters which should not be maintained
MM_removeList = "&index="
If (MM_paramName <> "") Then
MM_removeList = MM_removeList & "&" & MM_paramName & "="
End If
MM_keepURL=""
MM_keepForm=""
MM_keepBoth=""
MM_keepNone=""
' add the URL parameters to the MM_keepURL string
For Each MM_item In Request.QueryString
MM_nextItem = "&" & MM_item & "="
If (InStr(1,MM_removeList,MM_nextItem,1) = 0) Then
MM_keepURL = MM_keepURL & MM_nextItem & Server.URLencode(Request.QueryString(MM_item))
End If
Next
' add the Form variables to the MM_keepForm string
For Each MM_item In Request.Form
MM_nextItem = "&" & MM_item & "="
If (InStr(1,MM_removeList,MM_nextItem,1) = 0) Then
MM_keepForm = MM_keepForm & MM_nextItem & Server.URLencode(Request.Form(MM_item))
End If
Next
' create the Form + URL string and remove the intial '&' from each of the strings
MM_keepBoth = MM_keepURL & MM_keepForm
If (MM_keepBoth <> "") Then
MM_keepBoth = Right(MM_keepBoth, Len(MM_keepBoth) - 1)
End If
If (MM_keepURL <> "") Then
MM_keepURL = Right(MM_keepURL, Len(MM_keepURL) - 1)
End If
If (MM_keepForm <> "") Then
MM_keepForm = Right(MM_keepForm, Len(MM_keepForm) - 1)
End If
' a utility function used for adding additional parameters to these strings
Function MM_joinChar(firstItem)
If (firstItem <> "") Then
MM_joinChar = "&"
Else
MM_joinChar = ""
End If
End Function
%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title></title>
<link href="../../css/link.css" rel="stylesheet" type="text/css">
<style type="text/css">
<!--
.style36 {
font-size: 13px;
color: #FFFFFF;
font-weight: bold;
}
.style37 {color: #FFFFFF}
.style2 {font-size: 12px}
-->
</style>
</head>
<body>
<div align="center">
<table width="760" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="814" height="20"><table width="760" height="21" border="0" cellpadding="0" cellspacing="0" background="../../img/bw/line.gif">
<tr>
<td><div align="center"><span class="style36">阅 读 消 息</span></div></td>
</tr>
</table></td>
</tr>
</table>
<table width="760" border="0" cellpadding="0" cellspacing="1" bgcolor="#5AAE18">
<tr>
<td bgcolor="#FFFFFF"><table width="100%" border="0" cellpadding="2" cellspacing="1">
<tr>
<td valign="top" bgcolor="#FFFFFF"><table width="100%" border="0" cellpadding="3" cellspacing="0">
<tr>
<td height="6" colspan="2"></td>
</tr>
<tr>
<td height="16" colspan="2"><div align="center"><strong><%=(rsms.Fields.Item("标题").Value)%></strong></div></td>
</tr>
<tr>
<td colspan="2"><div align="left"><%=(rsms.Fields.Item("内容").Value)%>
<%if rsms("sp类型")="发文" or rsms("sp类型")="fawenhui" then%>
<a href="../fawen/doshenpideatilvbgf.asp?id=<%=(rsms.Fields.Item("spid").Value)%>">查看发文</a>
<%end if%><%if rsms("sp类型")="收文" or rsms("sp类型")="fawenhui" then%>
<a href="../shouwen/doshenpideatilvbgf.asp?id=<%=(rsms.Fields.Item("spid").Value)%>">查看收文</a>
<%end if%>
<%if rsms("回执")="文件" then %>
<a href="../../f/asp/filesupadmin/readmingxi.asp?id=<%=id%>&n=<%=n%>">查看明细</a> <a href="../../f/asp/userfolderasdffqerdfv/adminfiles/accessfiles/redirectrecord.asp?id=<%=id%>" target="_blank"><%=(rsms.Fields.Item("文件名").Value)%></a> <a href="../../f/asp/userfolderasdffqerdfv/adminfiles/accessfiles/downtrecord.asp?id=<%=id%>&n=<%=n%>">下载</a><img src="../../img/re.gif" width="16" height="16">
<%end if%>
</div></td>
</tr>
<tr>
<td colspan="2"><div align="right"><span class="style2">发送人:</span><%=(rsms.Fields.Item("发送人姓名").Value)%> (<%=(rsms.Fields.Item("发送人部门").Value)%>) <span class="style2"><br>
</span></div></td>
</tr>
<tr>
<td colspan="2"><A HREF="huifuwritesms.asp?id=<%=(rsms.Fields.Item("ID").Value)%>&bumen=<%=(rsms.Fields.Item("发送人部门").Value)%>">回复</A> <A HREF="zhuanfa.asp?<%= Server.HTMLEncode(MM_keepNone) & MM_joinChar(MM_keepNone) & "ID=" & rsms.Fields.Item("ID").Value %>">转发</A> <span class="style2"> <%=(rsms.Fields.Item("入库时间").Value)%></span></td>
</tr>
<tr>
<td width="89%"><div align="left">
<p>
<% if rsms("sms是否为群发")="是" then %>
<span class="style2">本记录为群发消息</span>
<%end if%>
<%if rsms("回执")="公文" then %>
<span class="style2">本消息由oa小秘书,为您发送的公文回执.</span><img src="../../img/oaserver.gif" width="30" height="31"> </p>
</div> <%end if%>
<div align="left">
<%if rsms("回执")="文件" then %>
<span class="style2">本消息由oa小秘书,为您发送的文件回执.</span><img src="../../img/oaserver.gif" width="30" height="31"> </p>
</div>
<%end if%></td>
<td width="11%"><input name="id" type="hidden" id="id" value="<%=(rsms.Fields.Item("ID").Value)%>">
<input name="消息接收人姓名" type="hidden" id="消息接收人姓名" value="<%=(rsms.Fields.Item("发送人姓名").Value)%>">
<img src="../../toall/gw/img/gif/pic4.gif" width="43" height="50"></td>
</tr>
<%session("huifujieshouren")=rsms.Fields.Item("发送人姓名").Value%>
</table></td>
</tr>
</table> <span class="style37"></span></td>
</tr>
</table>
<br>
<a href="javascript:history.go(-1)">返回 </a> </div>
</form>
</body>
</html>
<%
rsms.Close()
Set rsms = Nothing
%>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -