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

📄 zwdel.asp

📁 人事管理系统 人事管理系统 人事管理系统 人事管理系统
💻 ASP
字号:

<!--#include file="inc/Conndb.asp"-->
<!--#include file="inc/Function.asp"-->
<!--#include file="inc/Config.asp"-->
<%
dim ID,Action,sqlDel,rsDel,FoundErr,ErrMsg,ObjInstalled
id=trim(request("id"))
Action=Trim(Request("Action"))
FoundErr=False
ObjInstalled=IsObjInstalled("Scripting.FileSystemObject")

if id="" or Action<>"Del" then
	FoundErr=True
	ErrMsg=ErrMsg & "<br><li>2?êy2?×?£?</li>"
end if
if FoundErr=False then
	if instr(id,",")>0 then
		dim idarr,i
		idArr=split(id)
		for i = 0 to ubound(idArr)
			call DelArticle(clng(idarr(i)))
		next
	else
		call DelArticle(clng(id))
	end if
end if
if FoundErr=False then
	call CloseConn()
	response.Redirect "zwwh.asp"
else
	call CloseConn()
	call WriteErrMsg()
end if

sub DelArticle(ID)
	PurviewChecked=False
	sqlDel="select * from zwda where id=" & CLng(ID)
	Set rsDel= Server.CreateObject("ADODB.Recordset")
	rsDel.open sqlDel,conn,1,3
	if FoundErr=False then		
		rsDel.delete
		rsDel.update
		set rsDel=nothing
		'conn.execute "delete from Comment where id=" & CLng(ID)
	end if
end sub
%>

⌨️ 快捷键说明

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