


第 2 レベルのページにアップロードされたメニューが第 1 レベルのメニューであるか第 2 レベルのメニューであるかを判断するにはどうすればよいですか? _html/css_WEB-ITnose
<%
typeid=cint(request.querystring("E_typeid"))
bigclassid=cint(request.QueryString("e_bigclassid"))
smallclassid=cint(request.QueryString("e_smallclassid"))
Pages=cint (request.QueryString("pages"))
if pages=0 または isnull(pages) then pages=1
if typeid=0 then typeid=99999
if bigclassid=0 then bigclassid=99999
if smallclassid=0 then smallclassid= 99999
if typeid<>"" または typeid<>0 then str="E_typeid="&typeid
if bigclassid<>"" または bigclassid<>0 then str=str&"&e_bigclassid="&bigclassid
if smallclassid= 0 then str=str else str=str&"&smallclassid="&smallclassid
sql1="select E_bigclassname from EC_BigClass where E_BigClassID="&bigclassid
sql2="select E_smallClassName from ec_smallclass where E_smallClassID="&smallclassid
' typeid&smallclassid&bigclassid を書き込みます
set rs1 =server.createobject("adodb.recordset")
rs1.open sql1,conn,1,3
bigclassname=rs1("E_bigclassname")
rs1.close
rs1.open sql2,conn,1,3
smallclassname=rs1 ("E_smallclassname")
rs1.close
if smallclassid<>0 then smallclassname=rs1("E_smallclassname")
rs1.close
'response.write bigclassname &smallclassname&sql1&sql2
%>