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

📄 down_folderdel.asp

📁 SK信息采集2.0功能介绍: 1.可针对任何静态网页,动态网页进行采集。包括htm,html,shtml,ASP,ASPX,JSP,PHP等。 2.增加自定文件采集.用户可采集网页中的所有文件.
💻 ASP
字号:
<%@LANGUAGE="VBSCRIPT" CODEPAGE="936"%>
<%Option Explicit%>
<!--#include file="../../Conn.asp"-->
<!--#include file="../../SysCls/KS_CommonCls.asp"-->
<!--#include file="../Inc/Session.asp"-->
<%
'===================================================================================================================
'软件名称:科汛网站管理系统
'当前版本:科汛网站管理系统 V2.2 SP2 Free
'Copyright (C) 2006-2008 Kesion.Com  All rights reserved.
'产品咨询QQ:9537636,41904294
'技术支持QQ:111394,54004407 
'程序版权:科汛网络
'程序开发:科汛网络开发组(总策划:林文仲)
'E-Mail  :kesioncms@hotmail.com webmaster@kesion.com
'官方网站:http://www.kesion.com  
'演示站点:http://test.kesion.com 
'郑重声明:
'    ①、免费版本请在程序首页保留版权信息,并做上本站LOGO友情连接,商业版本无此要求;
'    ②、任何个人或组织不得在授权允许的情况下删除、修改、拷贝本软件及其他副本上一切关于版权的信息;
'    ③、科汛网络保留此软件的法律追究权利
'===================================================================================================================
Dim KSCls
Set KSCls = New Down_FolderDel
KSCls.Execute()
Set KSCls = Nothing

Class Down_FolderDel
        Private KSCMS
		Private Sub Class_Initialize()
		  Set KSCMS=New CommonCls
		End Sub
        Private Sub Class_Terminate()
		 Call KSCMS.CloseConn()
		 Set KSCMS=Nothing
		End Sub
		Sub Execute()
		Dim EL, K, ID, ParentID, ButtonSymbol, CurrPath
		Dim RS
		Dim FolderRS
		Dim Page, FolderID, DisplayMode
		Dim Sql, Folder, Fso
		
		Page = KSCMS.G("Page")
		DisplayMode = KSCMS.G("DisplayMode")
		
		ButtonSymbol = Trim(Request("ButtonSymbol"))
		ID = Split(Request("FolderID"), ",") '获得要删除目录的ID集合
		Set RS=Server.CreateObject("ADODB.Recordset")
		For K = LBound(ID) To UBound(ID)
		 Sql = "select * from KS_Class where id='" & ID(K) & "'"
		 RS.Open Sql, conn, 1, 1
		 If Not RS.EOF Then
			ParentID = RS("TN")
			If ParentID = "0" Then
				 If Not KSCMS.ReturnPowerResult(3, "KMD10003") Then                  '删除下载频道权限检查
				   RS.Close
				   Set RS = Nothing
				   Call KSCMS.ReturnErr(2, "Down_Main.asp?DisplayMode=" & DisplayMode & "&Page=" & Page & "&id=" & ParentID)
				   Exit Sub
				 End If
			Else
				 If Not KSCMS.ReturnPowerResult(3, "KMD10006") Then                  '删除下载栏目权限检查
				   RS.Close
				   Set RS = Nothing
				   Call KSCMS.ReturnErr(2, "Down_Main.asp?DisplayMode=" & DisplayMode & "&Page=" & Page & "&ID=" & ParentID)
				   Exit Sub
				 End If
			End If
			Folder = RS("folder")
			Folder = Left(Folder, Len(Folder) - 1)
					Set FolderRS=Server.CreateObject("ADODB.Recordset")

			FolderRS.Open "SELECT * FROM [KS_Class] WHERE ts LIKE '" & RS("ts") & "%'", conn, 1, 1
				Do While Not FolderRS.EOF
					FolderID = FolderRS("ID")
					conn.Execute ("DELETE  from [KS_DownLoad] where TID='" & FolderID & "'")
					conn.Execute ("DELETE  from [KS_Class] where ID='" & FolderID & "'")
				FolderRS.MoveNext
				Loop
			FolderRS.Close
			Set FolderRS = Nothing
		 End If
		 If KSCMS.GetConfig("PicDir") = "/" Or KSCMS.GetConfig("PicDir") = "\" Then
		  CurrPath = KSCMS.GetConfig("InstallDir") & Folder
		 Else
		  CurrPath = KSCMS.GetConfig("InstallDir") & KSCMS.GetConfig("PicDir") & Folder
		 End If
		 If (KSCMS.DeleteFolder(CurrPath) = False) Then
		   Call KSCMS.Alert("Delete Folder Error!", "Down_Main.asp")
		   Exit Sub
		 End If
		 RS.Close
		 Next
		Set RS = Nothing
		Set Fso = Nothing
		Dim TypeStr
		If ParentID = "0" Then
		 TypeStr = "-1"
		Else
		 TypeStr = "0"
		End If
		If KSCMS.GetConfig("ShowDetail") = 1 Then   '判断是否左栏显示详细信息
		  Response.Write "<script>parent.frames['LeftFrame'].LeftInfoFrame.location.href='Down_Left.asp?Type=" & TypeStr & "&ID=" & ParentID & "';location.href='Down_Main.asp?DisplayMode=" & DisplayMode & "&Page=" & Page & "&id=" & ParentID & "'</script>"
		Else
		  Response.Write "<script>location.href='Down_Main.asp?DisplayMode=" & DisplayMode & "&Page=" & Page & "&id=" & ParentID & "'</script>"
		End If
		End Sub
End Class
%>

⌨️ 快捷键说明

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