📄 del.asp
字号:
<%Response.Buffer=true
action=request.querystring("action")
NUMBER=clng(request.querystring("id"))
Set conn=Server.CreateObject("ADODB.CONNECTION")
Set rs=Server.CreateObject("ADODB.RecordSet")
connstr=Application("hg_connstr")
conn.open connstr
if action=30 then
conn.execute("update 工作日志 set 有效=true where id=" &NUMBER)
end if
if action=35 then
conn.execute("update 记事本 set 有效=true where id=" &NUMBER)
end if
if action=41 then
xian=session("xian")
ljl_xian=mid(xian,48,1)
if ljl_xian<>1 then%>
<script language=vbscript>
MsgBox "错误:您无权使用本功能模块,如果确实需要操作本模块的权限,请与管理员联系!"
location.href = "../config/txt.asp"
</script>
<%else
conn.execute("update 值班 set 有效=true where id=" &NUMBER)
end if
end if
if action=39 then
xian=session("xian")
ljl_xian=mid(xian,20,1)
if ljl_xian<>1 then%>
<script language=vbscript>
MsgBox "错误:您无权使用本功能模块,如果确实需要操作本模块的权限,请与管理员联系!"
location.href = "../config/txt.asp"
</script>
<%else
conn.execute("update 待办 set 有效=true where id=" &NUMBER)
end if
end if
if action=40 then
xian=session("xian")
ljl_xian=mid(xian,10,1)
if ljl_xian<>1 then%>
<script language=vbscript>
MsgBox "错误:您无权使用本功能模块,如果确实需要操作本模块的权限,请与管理员联系!"
location.href = "../config/txt.asp"
</script>
<%else
conn.execute("update 公文 set 有效=true where id=" &NUMBER)
end if
end if
if action=42 then
xian=session("xian")
ljl_xian=mid(xian,56,1)
if ljl_xian<>1 then%>
<script language=vbscript>
MsgBox "错误:您无权使用本功能模块,如果确实需要操作本模块的权限,请与管理员联系!"
location.href = "../config/txt.asp"
</script>
<%else
conn.execute("update 档案 set 有效=true where id=" &NUMBER)
end if
end if
if action=44 then
conn.execute("update 通讯录 set 有效=true where id=" &NUMBER)
end if
if action=45 then
xian=session("xian")
ljl_xian=mid(xian,59,1)
if ljl_xian<>1 then%>
<script language=vbscript>
MsgBox "错误:您无权使用本功能模块,如果确实需要操作本模块的权限,请与管理员联系!"
location.href = "../config/txt.asp"
</script>
<%else
conn.execute("update 档案 set 有效=true where id=" &NUMBER)
end if
end if
if action=101 or action=102 or action=103 then
xian=session("xian")
ljl_xian=mid(xian,61,1)
if ljl_xian<>1 then%>
<script language=vbscript>
MsgBox "错误:您无权使用本功能模块,如果确实需要操作本模块的权限,请与管理员联系!"
location.href = "../config/txt.asp"
</script>
<%else
conn.execute("update 附加 set 有效=true where id=" &NUMBER)
end if
end if
%>
<script language=vbscript>
MsgBox "系统提示:处理成功,按此返回!"
location.href = "javascript:history.go(-1)"
</script>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -