<%
i=1
num=0
typeb="select * from mainclass where mainclass<>'工程案例' and mainclass<>'廠房設備' and mainclass<>'榮譽資質' and mainclass<>'強制性認證' and mainclass<>'自愿性證書' and mainclass<>'專利證書' order by classorder,ID ASC"
set rs_product=conn.execute(typeb)
do while not rs_product.eof
if i=1 and mainclass="" then
line="inline"
else
if rs_product("mainclass")=mainclass then line="inline" else line="none" end if
end if
%>
<%
sql1="select * from proclass where mainclass='"&rs_product("mainclass")&"' order by classorder,ID DESC"
set rs_pro2=conn.execute(sql1)
do while not rs_pro2.eof
%>
<%rs_pro2.movenext
loop
i=i+1
num=num+1
rs_product.movenext
loop
rs_product.close
set rs_product=nothing
%>
<%
i=1
num=0
typeb="select * from mainclass where mainclass<>'工程案例' and mainclass<>'廠房設備' and mainclass<>'榮譽資質' and mainclass<>'強制性認證' and mainclass<>'自愿性證書' and mainclass<>'專利證書' order by classorder,ID ASC"
set rs_product=conn.execute(typeb)
do while not rs_product.eof
if i=1 and mainclass="" then
line="inline"
else
if rs_product("mainclass")=mainclass then line="inline" else line="none" end if
end if
%>
<%
sql1="select * from proclass where mainclass='"&rs_product("mainclass")&"' order by classorder,ID DESC"
set rs_pro2=conn.execute(sql1)
do while not rs_pro2.eof
%>
<%rs_pro2.movenext
loop
i=i+1
num=num+1
rs_product.movenext
loop
rs_product.close
set rs_product=nothing
%>