piyuepostfor10.asp

来自「绿叶oa系统办公自动化 2008.工作日志管理,文件管理」· ASP 代码 · 共 91 行

ASP
91
字号
<%@LANGUAGE="VBSCRIPT"%>
<%Response.Expires = -1
Response.ExpiresAbsolute = Now() - 1
Response.cachecontrol = "no-cache"%>
<%on error resume next
' *** Restrict Access To Page: Grant or deny access to this page
MM_authorizedUsers="10"
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/oavbsconn.asp" -->
<%
o=request("s")
if o<>"" then o="否"
if o="" then o="是"
response.write o

Dim r__u
r__u = "1"
If (Session("userssdfgfhtrh") <> "") Then 
  r__u = Session("userssdfgfhtrh")
End If
%>
<%
Dim r__d
r__d = "1"
If (request("id") <> "") Then 
  r__d = request("id")
End If
%>
<%
Dim r__b
r__b = "1"
If (Session("bumen")  <> "") Then 
  r__b = Session("bumen") 
End If
%>
<%
Dim r
Dim r_numRows

Set r = Server.CreateObject("ADODB.Recordset")
r.ActiveConnection = MM_oavbsconn_STRING
r.Source = "SELECT *  FROM beiwangluaery35t  WHERE 部门='" + Replace(r__b, "'", "''") + "' and (levels='999' or 帐号='" + Replace(r__u, "'", "''") + "') and 日程类型='工作日程' and 开关='是' and id=" + Replace(r__d, "'", "''") + ""
r.CursorType = 0
r.CursorLocation = 2
r.LockType = 3
r.Open()
if not r.eof or not r.bof then
r("批阅内容")=request("content")
r("批阅人帐号")=Session("userssdfgfhtrh")
r("批阅人姓名")=Session("names")
r("批阅人部门")=Session("bumen")
if r("批阅时间")="" then
r("批阅时间")=now()
end if
if r("批阅时间")<>"" then
r("批阅更新时间")=now()
end if
r("批阅开关")=o
r.update
r.Close()
Set r = Nothing
%>
<%
response.redirect "addpiyue.asp?id="&cint(request("id"))
else
r.Close()
Set r = Nothing
%>
<script>
{
alert("数据不存在。");history.go(-1)
}
</script>
<%response.end()
end if%>

⌨️ 快捷键说明

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