28,391
社区成员
发帖
与我相关
我的任务
分享
sub list()
set rs=server.CreateObject("adodb.recordset")
sql="Select * from u_big order by rootid"
rs.Open sql,conn,1,3
do while not rs.EOF
tempcataStr="<option value='"&trim(rs("rootid"))&"'"
if rs("id") = mcataid then tempcataStr = tempcataStr&" selected "
tempcataStr = tempcataStr&">"
tempcataStr = tempcataStr&" | |"
for i=1 to rs("level")-1
tempcataStr = tempcataStr&" |"
next
tempcataStr = tempcataStr&"_"&trim(rs("u_name"))&"</option>"
Response.Write tempcataStr
rs.MoveNext
loop
rs.Close()
set rs=nothing
end sub