📄 admin_class_del.asp
字号:
<%@LANGUAGE="VBSCRIPT" CODEPAGE="936"%>
<!--#include file="admin_check.asp" -->
<!--#include file="conn_acc.asp" -->
<!--#include file="function.asp" -->
<%
if cint(Request.QueryString("g"))>0 then
call firste_error("必须先删除所属子分类",Request.QueryString("url"))
end if
on error resume next
if cint(Request.QueryString("upid"))> 0 then
Set Command2 = Server.CreateObject ("ADODB.Command")
Command2.ActiveConnection = MM_conn_comm_STRING
Command2.CommandText = "UPDATE firste_city SET f_grade =f_grade-1 WHERE fid ="&Trim(Request.QueryString("upid"))
Command2.CommandType = 1
Command2.CommandTimeout = 0
Command2.Prepared = true
Command2.Execute()
end if
%>
<%
Set Command1 = Server.CreateObject ("ADODB.Command")
Command1.ActiveConnection = MM_conn_comm_STRING
Command1.CommandText = "DELETE FROM firste_city WHERE fid ="&Trim(Request.QueryString("delid"))
Command1.CommandType = 1
Command1.CommandTimeout = 0
Command1.Prepared = true
Command1.Execute()
if err then
call firste_error("错误的操作!",Request.QueryString("url"))
else
response.Redirect Request.QueryString("url")
end if
%>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -