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

📄 category_save.asp

📁 这是我根据动网新闻核心自行设计的校园新闻系统
💻 ASP
字号:
<!-- #include file="../login/check.asp" -->
<!-- #include file="../../inc/conn.asp" -->
<!-- #include file="../../inc/function.asp" -->
<!-- #include file="../category/category_class.asp" -->
<%
'接收参数
dim deep,categorytype
dim action
dim categoryname
dim fid
dim categoryid
action=request.querystring("action")
deep=dishtml(request.querystring("deep"))
categorytype=dishtml(request.querystring("categorytype"))
categoryname=DisHtml(request.Form("categoryname"))
fid=Dishtml(request.Querystring("fid"))
categoryid=dishtml(request.querystring("categoryid"))


set ct=new LBCategory
ct.CategoryType=categorytype

Select Case action
	Case "add"
		if len(fid)/5<deep or deep=0 then
			ct.CategoryName=categoryname
			ct.Add(fid)
		end if
	Case "mod"
		ct.categoryName=categoryname
		ct.Modify(categoryid)
	Case "del"
		ct.Delete(categoryid)
end Select

if err then
	call showerror("操作失败")
else
	call showsuccess("操作成功","category_list.asp?categorytype="&categorytype&"&deep="&deep)
end if
set ct=nothing
call connclose

		

%>

⌨️ 快捷键说明

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