Menuarr = new array ()
Menulenarr = new array ()
Submenuarr = new array ()
Menuidarr = new array ()
Menuarr [1] = "<% call top11 %>" // continent name |...
Menuarr [2] = "<% call top1 %>" // continent name ### country name |...
Menuidarr [1] = "Zhou"
Menuidarr [2] = "author"
Menuclass = 2 // Level 4 menu
Splitchar1 = "| ";
Splitchar2 = "###";
Basic menuarr [1] and menuarr [2] use class output
Options. Add (New Option ("----- select -----",""));
Add (New Option ("text", "value") Usage
The value generated by JS is the name in top1, some use ID, some use text, and modify sub top1 in combination with the feasibility of database select.
SQL = "select * From type2"
Rs. Open SQL, Conn, 1, 1
While not Rs. EOF
A = RS ("ID2 ")
B = RS ("p_type2 ")
Call top2 (A,)
Rs. movenext
Wend
Rs. Close
End sub
Sub top11
SQL = "select * From type2"
Rs. Open SQL, Conn, 1, 1
While not Rs. EOF
Response. Write (RS ("p_type2") & "| ")
Rs. movenext
Wend
Rs. Close
End sub
Sub top2 (ID, B)
Sqle = "select distinct (author) from product where Id2 =" & ID
Set RSA = server. Createobject ("ADODB. recordset ")
RSA. Open sqle, Conn, 1, 1
If not (RSA. EOF) then
While not RSA. EOF
Response. Write (B &"###")
Response. Write RSA ("author") & "|"
RSA. movenext
Wend
Else
Response. Write (B &"###")
Response. Write "NONE" & "|"
End if
RSA. Close
End sub
%>