del.asp

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

ASP
53
字号
<%@LANGUAGE="VBSCRIPT"%>
<!--#include file="../../../Connections/oavbsconn.asp" -->
<%
Dim r__MMColParam
r__MMColParam = "1"
If (Request("ID") <> "") Then 
  r__MMColParam = Request("ID")
End If
%>
<%
Dim r__n
r__n = "1"
If (Session("userssdfgfhtrh")  <> "") Then 
  r__n = Session("userssdfgfhtrh") 
End If
%>
<%
Dim r
Dim r_numRows

Set r = Server.CreateObject("ADODB.Recordset")
r.ActiveConnection = MM_oavbsconn_STRING
r.Source = "SELECT *  FROM 工作日志4545zdfbdgg  WHERE ID = " + Replace(r__MMColParam, "'", "''") + " and 批阅人帐号='" + Replace(r__n, "'", "''") + "'"
r.CursorType = 0
r.CursorLocation = 2
r.LockType = 3
r.Open()
if r.eof and r.bof then%>
<script>
{
alert("本日志批阅不是您提交,不允许删除。");history.go(-1)
}
</script>
<%
else
r("批阅内容")=""
r("批阅人帐号")=""
r("批阅人姓名")=""
r("批阅人部门")=""
r.update
r_numRows = 0
%>
<%
r.Close()
Set r = Nothing
%>
<script>
{
alert("日志批阅删除成功");history.go(-1)
}
</script>
<%response.end()
end if%>

⌨️ 快捷键说明

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