📄 category_save.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 + -