writepostforgwhuizhi.asp
来自「绿叶oa系统办公自动化 2008.工作日志管理,文件管理」· ASP 代码 · 共 64 行
ASP
64 行
<%
Response.ExpiresAbsolute=now()-1
Response.CacheControl="no-cache"
%>
<%
' *** 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
%>
<%server.ScriptTimeout=6000%>
<%'on error resume next%>
<!--#include file="../../Connections/oavbsconncopy.asp" --><br>
<%
Dim Recordset22
Dim Recordset22_numRows
Set Recordset22 = Server.CreateObject("ADODB.Recordset")
Recordset22.ActiveConnection = MM_oavbsconncopy_STRING
Recordset22.Source = "SELECT 标题,内容,接收人姓名,发送人姓名,发送人帐号,入库日期,信息属性,sms发送人level,发送人部门,sms是否为群发,回执 FROM infoall"
Recordset22.CursorType = 0
Recordset22.CursorLocation = 3
Recordset22.LockType = 3
Recordset22.Open()
Recordset22.addnew
Recordset22("标题")=huizhiinfo("标题")&"公文收到"
Recordset22("内容")="你好!你发送到"&huizhiinfo("公文接收部门")&"的主题为:"&huizhiinfo("标题")&"的公文收到,已"&juti&",谢谢!"
Recordset22("接收人姓名")=huizhiinfo("公文报送人姓名")
Recordset22("发送人姓名")=session("names")
Recordset22("发送人帐号")=Session("userssdfgfhtrh")
Recordset22("入库日期")=date()
Recordset22("信息属性")="短消息"
Recordset22("sms发送人level")=Session("levels")
Recordset22("发送人部门")=session("bumen")
Recordset22("sms是否为群发")="否"
Recordset22("回执")="公文"
Recordset22.update
Recordset22_numRows = 0
%>
<%
Recordset22.Close()
Set Recordset22 = Nothing
%>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?