<%
if nid="" then
sql_nid="select * from pclass where id1="&ph
set rs_nid = conn.execute(sql_nid)
if rs_nid("id2")<>0 then
n_nid=split(rs_nid("id2"),",")
sql_nid2="select * from pclass where id1="&n_nid(ubound(n_nid)-1)
set rs_nid2 = conn.execute(sql_nid2)
nid=rs_nid2("range")/2
else
nid=rs_nid("range")/2
end if
end if
%>
<%
sql="select * from pclass where id1="&ph
set rs = conn.execute(sql)
if not rs.eof then
if rs("id2")="0" then
mname=rs("name")
menu_title="
"&rs("name")&""
id1_ph=rs("id1")&",0"
else
id1_ph=rs("id1")&","&rs("id2")
ph_l=split(rs("id2"),",")
for i=ubound(ph_l)-1 to 0 step -1
sql_l="select * from pclass where id1="&ph_l(i)
set rs_l= conn.execute(sql_l)
if i=ubound(ph_l)-2 then mname=rs_l("name") end if
if mname="" then mname=rs("name") end if
if not rs_l.eof then
if i=ubound(ph_l)-1 then
menu_title=menu_title&"
"&rs_l("name")&" > "
else
menu_title=menu_title&"
"&rs_l("name")&" > "
end if
end if
next
menu_title=menu_title&"
"&rs("name")&""
end if
end if
%>