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

📄 writeforeadfielsehuizhi.asp

📁 本oa系统内部短信.手机短信.文件传输.公文收发.邮件服务.共享下载.内部论坛等功能
💻 ASP
字号:
<%  
Response.ExpiresAbsolute=now()-1
Response.CacheControl="no-cache"
%> 
<%
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/oavbsconncopy.asp" -->
<%
Dim r__MMColParam
r__MMColParam = "1"
If (id <> "") Then 
  r__MMColParam = id
End If
%>
<%
Dim r
Dim r_numRows
Set r = Server.CreateObject("ADODB.Recordset")
r.ActiveConnection = MM_oavbsconncopy_STRING
r.Source = "SELECT 上传人部门  FROM 文件信息  WHERE ID = " + Replace(r__MMColParam, "'", "''") + ""
r.CursorType = 0
r.CursorLocation = 2
r.LockType = 1
r.Open()
r_numRows = 0
%>
<%
Dim Recordset22__d
Recordset22__d = "1"
If (id <> "") Then 
  Recordset22__d = id
End If
%>
<%
Dim Recordset22
Dim Recordset22_numRows
Set Recordset22 = Server.CreateObject("ADODB.Recordset")
Recordset22.ActiveConnection = MM_oavbsconncopy_STRING
Recordset22.Source = "SELECT 标题,内容,接收人姓名,sms接收部门,文件名,发送人姓名,文件编号,发送人帐号,入库日期,信息属性,sms发送人level,发送人部门,sms是否为群发,回执  FROM infoall  where 文件编号=" + Replace(Recordset22__d, "'", "''") + ""
Recordset22.CursorType = 0
Recordset22.CursorLocation = 3
Recordset22.LockType = 3
Recordset22.Open()
if Recordset22.eof and Recordset22.bof then

Recordset22.addnew
dim f
f=huizhi("文件名")
Recordset22("标题")=f&"文件收到"
Recordset22("内容")="你好!你发送给"&huizhi("接收人部门")&"--"& huizhi("接收人姓名")&":"&f&"的文件收到,已"&juti&",谢谢!"
Recordset22("接收人姓名")=huizhi("上传人姓名")
Recordset22("发送人姓名")=session("names")
Recordset22("发送人帐号")=Session("userssdfgfhtrh")   
Recordset22("入库日期")=date()
Recordset22("信息属性")="短消息"
Recordset22("sms发送人level")=Session("levels")
Recordset22("发送人部门")=session("bumen")
Recordset22("sms是否为群发")="否"
Recordset22("sms接收部门")=r("上传人部门")
Recordset22("回执")="文件"
Recordset22("文件名")=n
Recordset22("文件编号")=id
Recordset22.update
Recordset22_numRows = 0
end if

%>
<%
Recordset22.Close()
Set Recordset22 = Nothing
%>

<%
r.Close()
Set r = Nothing
%>

⌨️ 快捷键说明

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