<!--Ʒ࿪ʼ-->

                  
                    <%
sql="select * from productSort where fatherID=0 order by id desc"
set sortRootRs=conn.execute (sql)
i=0
do while not (sortRootRs.eof or err)
	sortRootRsID=sortRootRs("id")
	%>
	                <table width="100%" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td height="32" background="images/menu000_03.jpg"><div class="STYLE1abc"><a href=products.asp?productSort=<%=sortRootRs("id")%> title="<%=sortRootRs("name")%>"><%=sortRootRs("name")%></a></div></td>
  </tr>
  <tr><td height="10"></td>
  </tr>
</table>
	<%
	sql="select * from productSort where fatherID="&sortRootRs("id")
	set sortChildRs=server.createObject("adodb.recordset")
'	set sortChildRs=conn.execute (sql)
	sortChildRs.open sql,conn,1,1
	j=1
	k=sortchildRs.recordcount
'	response.write "count"&k
	do while not (sortChildRs.eof or err)
		if j=k then
			response.write "&nbsp;&nbsp;<img src='images/line_tri.gif' align='absmiddle' width='19' height='16'>"
		else
			response.write "&nbsp;&nbsp;<img src='images/line_tri.gif' align='absmiddle' width='19' height='16'>"
		end if
		response.write "&nbsp;<a href=products.asp?productSort="&sortChildRs("id")&" title="&sortChildRs("name")&">"&sortChildRs("name")&"</a><br><img src='images/000.gif' width='15' height='8'><br>"
		j=j+1
		if j>100 then exit do
		sortChildRs.moveNext
	loop
	i=i+1
	if i>100 then exit do
	sortRootRs.moveNext
loop 
%>
                    
            <!--Ʒ-->