<%
dim rs
dim sql
dim count
set rs=server.createobject(“adodb.recordset”)
sql = “select * from kml_sclass”
rs.open sql,conn,1,1
%>
sql = “select * from kml_bclass”
rs.open sql,1
if rs.eof and rs.bof then
response.write “请先添加栏目。”
response.end
else
%>
<%dim selclass
selclass=rs(“bclassid”)
rs.movenext
do while not rs.eof
%>
<%
rs.movenext
loop
end if
rs.close
%>
<%
sql=”select * from kml_sclass where bclassid=”&selclass
rs.open sql,1
if not(rs.eof and rs.bof) then
%>
<%
rs.movenext
do while not rs.eof
%>
<%
rs.movenext
loop
end if
rs.close
set rs = nothing
%>