📄 special_del.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 Special_Del
KSCls.Execute()
Set KSCls = Nothing
Class Special_Del
Private KSCMS
Private Sub Class_Initialize()
Set KSCMS=New CommonCls
End Sub
Private Sub Class_Terminate()
Call KSCMS.CloseConn()
Set KSCMS=Nothing
End Sub
Public Sub Execute()
Dim K, ID, SpecialRS, FolderPath, ArticleRS
Dim FolderID, Page
Dim KeyWord, SearchType, StartDate, EndDate
'收集搜索参数
KeyWord = KSCMS.G("KeyWord")
SearchType = KSCMS.G("SearchType")
StartDate = KSCMS.G("StartDate")
EndDate = KSCMS.G("EndDate")
Set SpecialRS = Server.CreateObject("Adodb.RecordSet")
Set ArticleRS = Server.CreateObject("Adodb.RecordSet")
ID = Trim(KSCMS.G("SpecialID"))
Page = KSCMS.G("Page")
ID = Split(ID, ",")
For K = LBound(ID) To UBound(ID)
SpecialRS.Open "Select * FROM [KS_Special] Where ID='" & Trim(ID(K)) & "'", Conn, 1, 3
If SpecialRS.EOF And SpecialRS.BOF Then
Call KSCMS.AlertHistory("参数传递出错!", -1)
Response.End
Else
FolderID = Trim(SpecialRS("FolderID"))
If Not KSCMS.ReturnPowerResult(0, "KMSP10003") Then '删除专题权限检查
If KeyWord = "" Then
Call KSCMS.ReturnErr(2, "Special_Main.asp?Page=" & Page & "&FolderID=" & FolderID)
Else
Call KSCMS.ReturnErr(2, "Special_Main.asp?Page=" & Page & "&KeyWord=" & KeyWord & "&SearchType=" & SearchType & "&StartDate=" & StartDate & "&EndDate=" & EndDate)
End If
Exit Sub
End If
If KSCMS.GetConfig("SpecialDir") = "/" Or KSCMS.GetConfig("SpecialDir") = "\" Then
FolderPath = KSCMS.GetConfig("InstallDir") & SpecialRS("SpecialEName")
Else
FolderPath = KSCMS.GetConfig("InstallDir") & KSCMS.GetConfig("SpecialDir") & SpecialRS("SpecialEName")
End If
If KSCMS.DeleteFolder(FolderPath) = False Then
Call KSCMS.AlertHistory("error!", -1)
Set KSCMS = Nothing
Response.End
End If
'从文章中删除此JSID
ArticleRS.Open "Select SpecialID From KS_Article Where SpecialID ='" & Trim(ID(K)) & "'", Conn, 1, 3
If Not ArticleRS.EOF Then
While Not ArticleRS.EOF
ArticleRS(0) = ""
ArticleRS.Update
ArticleRS.MoveNext
Wend
End If
SpecialRS.Delete
SpecialRS.Close
ArticleRS.Close
End If
Next
Set ArticleRS = Nothing
Set SpecialRS = Nothing
Set Conn = Nothing
Set KSCMS = Nothing
If KeyWord = "" Then
Response.Write ("<script>location.href='Special_Main.asp?Page=" & Page & "&FolderID=" & FolderID & "';</script>")
Else
Response.Write ("<script>location.href='Special_Main.asp?Page=" & Page & "&KeyWord=" & KeyWord & "&SearchType=" & SearchType & "&StartDate=" & StartDate & "&EndDate=" & EndDate & "';</script>")
End If
End Sub
End Class
%>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -