下拉框二級分類關聯

2021-06-15 18:57:25 字數 4516 閱讀 3936

<%

if request.querystring("style")="del" then

on error resume next

conn.execute("delete * from [classname] where classname='"&request.form("classname2")&"'")

conn.execute("delete * from [imgbook] where classname='"&request.form("classname2")&"'")

elseif request.querystring("style")="modify" then

classname=trim(request.form("newclassname"))

if classname="" then

response.write("")

response.end()

end if

if instr(classname,"'") or instr(classname,"select") or instr(classname,"in") or instr(classname,"from") or instr(classname,"len") or instr(classname,"where") or instr(classname,"or") or instr(classname,"and") then

response.write("")

response.end

end if                    

on error resume next

conn.execute("update [classname] set classname='"&classname&"' where classname='"&request.form("classname")&"'")

conn.execute("update [imgbook] set classname='"&classname&"' where class='"&request.form("classname")&"'")

end if

if request.querystring("style")="add" then

classname=trim(request.form("classname3"))

if instr(classname,"'") or instr(classname,"select") or instr(classname,"in") or instr(classname,"from") or instr(classname,"len") or instr(classname,"where") or instr(classname,"or") or instr(classname,"and") then

response.write("")

response.end

end if                    

conn.execute("insert into [classname] (classname) values ('"&classname&"')")

response.write("")

end if

if request.querystring("style")="adds" then

bigclass=replace(trim(request.form("bigclass")),"'","")

smallclass=replace(trim(request.form("smallclass")),"'","")

if instr(smallclass,"'") or instr(smallclass,"select") or instr(smallclass,"in") or instr(smallclass,"from") or instr(smallclass,"len") or instr(smallclass,"where") or instr(smallclass,"or") or instr(smallclass,"and") then

response.write("")

response.end

end if

if smallclass="" then     

response.write("")

response.end     

end if        

conn.execute("insert into [smallclass] (smallclassname,bigclassname) values ('"&smallclass&"','"&bigclass&"')")

response.write("")

elseif request.querystring("style")="modifys" then

bigclass=replace(trim(request.form("bigclass")),"'","")

smallclass=replace(trim(request.form("smallclass")),"'","")

smallclassname=replace(trim(request.form("smallclassname")),"'","")

if instr(smallclass,"'") or instr(smallclass,"select") or instr(smallclass,"in") or instr(smallclass,"from") or instr(smallclass,"len") or instr(smallclass,"where") or instr(smallclass,"or") or instr(smallclass,"and") then

response.write("")

response.end

end if

if smallclass="" then     

response.write("")

response.end     

end if        

if smallclassname="" then     

response.write("")

response.end     

end if        

conn.execute("update [smallclass] set smallclassname='"&smallclassname&"' where bigclassname='"&bigclass&"' and smallclassname='"&smallclass&"'")

response.write("")

elseif request.querystring("style")="dels" then

bigclass=replace(trim(request.form("bigclass")),"'","")

smallclass=replace(trim(request.form("smallclass")),"'","")

if instr(smallclass,"'") or instr(smallclass,"select") or instr(smallclass,"in") or instr(smallclass,"from") or instr(smallclass,"len") or instr(smallclass,"where") or instr(smallclass,"or") or instr(smallclass,"and") then

response.write("")

response.end

end if

if smallclass="" then     

response.write("")

response.end     

end if        

conn.execute("delete from [smallclass] where bigclassname='"&bigclass&"' and smallclassname='"&smallclass&"'")

response.write("")

end if

set rstmp=server.createobject("adodb.recordset")

sql = "select * from smallclass order by smallclassid asc"

rstmp.open sql,conn,1,1

%>

<%

if session("flag")>0 then

response.write("

對不起。你沒有許可權進入此頁面!!!")

response.end

end if

%>

分類管理

注意:分類名稱不可包含以下非法字元:

'、@、+、or、from、select、len、where、&、and等  

二級分類管理

注意:分類名稱不可包含以下非法字元: '、@、+、or、from、select、len、where、&、and等  

python下拉框二級聯動 antd下拉框聯動說明

先說一下效果要求,上面乙個下拉框,下面乙個,要求上面選中的時候,下面的內容要跟著變。因為想到react是資料驅動的,就不打算再用jq的那種隱藏顯示了,而是通過在執行型別下拉框的onchange事件中,去改變下面的下拉框的資料,渲染出不同的下拉選擇。定義資料 modeoptions是各個下拉框的值,由...

js修改二級位址下拉框

請選擇 台北市基隆市 台北縣宜蘭縣 桃園縣新竹市 新竹縣苗栗縣 台中市台中縣 彰化縣南投縣 嘉義市嘉義縣 雲林縣台南市 台南縣高雄市 高雄縣屏東縣 花蓮縣台東縣 澎湖縣金門縣 連江縣請選擇 根據縣市選擇 var city x new array city x 請選擇 city x 基隆市 仁愛區 信...

省市二級聯動下拉框

doctype html zh utf 8 viewport content width device width,initial scale 1.0 省市二級聯動 title head 省份 id province select 城市 id city select form 將城市資訊新增 var...