

<TABLE align="center" cellSpacing=0 cellPadding=0 width=100% border=0   bgcolor="<% = bgclr3 %>">
  <TBODY>
    <TR> 
      <TD valign="top">

        <TABLE height=28 cellSpacing=0 cellPadding=0 width=100% border=0 background="skin/skin1/classmenu/mnu<% = webbg6 %>_bg.png">
          <TBODY>
            <TR> 
			  <td align="center"><font color="<% = bgclr6 %>" >产品分类</font></td>
			 
            </TR>
			
          </TBODY>
			 </TABLE>
	<SCRIPT language=JavaScript> 
NS4 = (document.layers) ? 1 : 0; 
IE4 = (document.all) ? 1 : 0; 
ver4 = (NS4 || IE4) ? 1 : 0; 

if (ver4) { 
with (document) { 
write("<STYLE TYPE='text/css'>"); 
if (NS4) { 
write(".parent {position:absolute; visibility:visible}"); 
write(".child {position:absolute; visibility:visible}"); 
write(".regular {position:absolute; visibility:visible}") 
} 
else { 
write(".child {display:none}") 
} 
write("</STYLE>"); 
} 
} 

function getIndex(el) { 
ind = null; 
for (i=0; i<document.layers.length; i++) { 
whichEl = document.layers[i]; 
if (whichEl.id == el) { 
ind = i; 
break; 
} 
} 
return ind; 
} 

function arrange() { 
nextY = document.layers[firstInd].pageY +document.layers[firstInd].document.height; 
for (i=firstInd+1; i<document.layers.length; i++) { 
whichEl = document.layers[i]; 
if (whichEl.visibility != "hide") { 
whichEl.pageY = nextY; 
nextY += whichEl.document.height; 
} 
} 
} 

function initIt(){ 
if (!ver4) return; 
if (NS4) { 
for (i=0; i<document.layers.length; i++) { 
whichEl = document.layers[i]; 
if (whichEl.id.indexOf("Child") != -1) whichEl.visibility = "hide"; 
} 
arrange(); 
} 
else { 
divColl = document.all.tags("DIV"); 
for (i=0; i<divColl.length; i++) { 
whichEl = divColl(i); 
if (whichEl.className == "child") whichEl.style.display = "none"; 
} 
} 
} 

function expandIt(el) { 
if (!ver4) return; 
if (IE4) { 
whichEl = eval(el + "Child"); 
if (whichEl.style.display == "none") { 
whichEl.style.display = "block"; 
} 
else { 
whichEl.style.display = "none"; 
} 
} 
else { 
whichEl = eval("document." + el + "Child"); 
if (whichEl.visibility == "hide") { 
whichEl.visibility = "show"; 
} 
else { 
whichEl.visibility = "hide"; 
} 
arrange(); 
} 
} 
onload = initIt; 
</SCRIPT>	
        <table cellspacing=0 cellpadding=0 width="100%" border=0 >
          <tbody>
            <%  dim follows
               follows=1
              
	  set rs = server.CreateObject("adodb.recordset")
	  rs.open "select categoryid,category from category where first=0 order by categoryorder",conn,1,1
	  if rs.eof and rs.bof then
	  response.Write "<tr><td align=center>还没有商品分类</td></tr>"
	   
          else
	  do while not rs.eof %>
             
          <tr> 
              <td valign="top" height=20  align="left"> 
 <DIV class=parent id=KB<%=follows%>Parent><A 
            onclick="expandIt('KB<%=follows%>'); return false" 
            href="#" onFocus="this.blur()">
<IMG src="images/plus1.gif" width=22 height=22 border=0 align="absmiddle"></A>
<a href=proclass.asp?bid=<% = rs("categoryid") %>><font color="<%=bgclr8%>"><% = rs("category") %></font></A>
 </DIV>
            <DIV class=child id=KB<%=follows%>Child>  
            <% 
	  Dim rs1 
 
	  set rs1 = server.CreateObject("adodb.recordset")
	  rs1.open "select categoryid,sortsid,sorts from sorts where sorts.categoryid="&rs("categoryid")&" order by sortsorder",conn,1,1
	 do while not rs1.eof %>
        
        &nbsp;&nbsp;
       <IMG src="images/plus2.gif" width=30 height=17 align="absmiddle">&nbsp;
        <A href="proclass.asp?bid=<% = rs1("categoryid") %>&sid=<% = rs1("sortsid") %>" onFocus="this.blur()"><font color="<%=bgclr9%>"> <% = rs1("sorts") %></font></A><BR>
    
             <% if rs1.eof then %>
              <%
	  exit do
	  else %>
         
              
          
            <%	  rs1.movenext 
	 end if
	  loop
	  rs1.close
	  set rs1 = nothing %>
           </td>
            </tr> 
         </DIV>
        <% follows=follows+1 %>
	  <%  rs.movenext
	  loop
	  rs.close
	  set rs = nothing
	  end if
	  %>
         
      </td>
            </tr>
          </tbody>
        </table> </TD>
    </TR>
  </TBODY>
</TABLE>

<SCRIPT language=JavaScript> 
if (NS4) { 
firstEl = "KB1Parent"; 
firstInd = getIndex(firstEl); 
arrange(); 
} 
</SCRIPT>