📄 toothersmscontent.asp
字号:
<%@LANGUAGE="VBSCRIPT"%>
<!--#include file="../../Connections/oavbsconn.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__varuser
rsms__varuser = "1"
If (Session("userssdfgfhtrh") <> "") Then
rsms__varuser = Session("userssdfgfhtrh")
End If
%>
<%
Dim rsms__d
rsms__d = "1"
If (request("fid") <> "") Then
rsms__d = request("fid")
End If
%>
<%
Dim rsms
Dim rsms_numRows
Set rsms = Server.CreateObject("ADODB.Recordset")
rsms.ActiveConnection = MM_oavbsconn_STRING
rsms.Source = "SELECT * FROM infoall WHERE ((id=" + Replace(rsms__varid, "'", "''") + " and 发送人帐号='" + Replace(rsms__varuser, "'", "''") + "') or (文件编号=" + Replace(rsms__d, "'", "''") + " and 发送人帐号='" + Replace(rsms__varuser, "'", "''") + "')) and 是否标记为删除='否' ORDER BY ID DESC"
rsms.CursorType = 0
rsms.CursorLocation = 2
rsms.LockType = 3
rsms.Open()
rsms_numRows = 0
%>
<% dim n,id,bm
if rsms.eof or not rsms.bof then
bm=rsms("sms接收部门")
n=rsms("文件名")
id=rsms("文件编号")
if rsms("接收人姓名")=session("names") then
rsms("是否阅读")="是"
rsms.update
end if
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">
<!--
.style6 {font-size: 12px}
.style1 {
color: #FFFFFF;
font-size: 13px;
}
-->
</style>
</head>
<body>
<form name="form1" method="post" action="">
<div align="center">
<% If Not rsms.EOF Or Not rsms.BOF Then %>
<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="style1"><strong>已 发 消 息</strong></span></div></td>
</tr>
</table></td>
</tr>
</table>
<table width="760" border="0" cellpadding="0" cellspacing="1" bgcolor="#5AAE18">
<tr>
<td width="816" bgcolor="#FFFFFF"><div align="center">
<table width="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="740" bgcolor="#FFFFFF"><table width="100%" border="0" cellpadding="3">
<tr>
<td height="6" colspan="2"></td>
</tr>
<tr>
<td colspan="2"><div align="center"><strong><%=(rsms.Fields.Item("标题").Value)%></strong></div></td>
</tr>
<tr>
<td colspan="2"><p><%if rsms("是否为群发文件")="否" then%> <%=(rsms.Fields.Item("内容").Value)%>
<%if rsms("spid")<>0 then%> <a href="../shenpi/sendshenpidetailsgf.asp?id=<%=(rsms.Fields.Item("spid").Value)%>">查看审批</a><%end if%></p>
<%if rsms("回执")="文件" then %><a href="../../f/asp/userfolderasdffqerdfv/adminfiles/accessfiles/redirectforsmssended.asp?id=<%=id%>&name=<%=n%>" target="_blank"><%=n%></a> <a href="../../f/asp/userfolderasdffqerdfv/adminfiles/accessfiles/downfileforsmssended.asp?id=<%=id%>&n=<%=n%>">下载</a><img src="../../img/re.gif" width="16" height="16">
<%end if%><%else%> <%=(rsms.Fields.Item("内容").Value)%></p><%if rsms("回执")="文件" then %><a href="../../f/asp/userfolderasdffqerdfv/adminfiles/accessfiles/redirectforsmssendedforqunfa.asp?id=<%=id%>&name=<%=n%>" target="_blank"><%=n%></a> <a href="../../f/asp/userfolderasdffqerdfv/adminfiles/accessfiles/downfileforsmssendedforqunfa.asp?id=<%=id%>&n=<%=n%>">下载</a><img src="../../img/re.gif" width="16" height="16">
<%end if%> <%end if%>
<p> </p>
<div align="left">
<p> </p>
</div>
</td>
</tr>
<tr>
<td><div align="left"><A HREF="jixufa.asp?<%= Server.HTMLEncode(MM_keepNone) & MM_joinChar(MM_keepNone) & "ID=" & rsms.Fields.Item("ID").Value %>">继续发送</A></div></td>
<td><span class="style6">接收人:<%=(rsms.Fields.Item("接收人姓名").Value)%> <%=bm%></span></td>
</tr>
<tr>
<td colspan="2"><div align="right" class="style6"><%=(rsms.Fields.Item("入库时间").Value)%></div></td>
</tr>
<tr>
<td width="77%"><div align="left">
<p>
<%if rsms("回执")="公文" then %>
<span class="style6">本消息由oa小秘书,为您发送的公文回执.</span><img src="../../img/oaserver.gif" width="30" height="31"> </p>
</div>
<%end if%>
<div align="left">
<%if rsms("回执")="文件" then %>
<span class="style6">本消息由oa小秘书,为您发送的文件回执.</span><img src="../../img/oaserver.gif" width="30" height="31"> </div>
<%end if%></td>
<td width="23%"><div align="center"><img src="/toall/gw/img/gif/44.gif" width="33" height="36"></div></td>
</tr>
</table>
<p>
<%if rsms("信息属性")="短消息回复" then %>
<span class="style6">本消息属于回复</span><br>
<%end if%>
<% if rsms("sms是否为群发")="是" then %>
<span class="style6">本记录为群发消息</span>
<%end if%>
</p></td>
</tr>
</table>
</div></td>
</tr>
</table>
<br>
<a href="javascript:history.go(-1)">返回
</a>
<% End If ' end Not rsms.EOF Or NOT rsms.BOF %>
</div>
</form>
</body>
</html>
<%
rsms.Close()
Set rsms = Nothing
%>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -