<%side_goods_sort_show=site.object_p%>
<!-- object[<%=site.object_p%>]::side_goods_sort_show -->
<%
site.object(site.object_p).rs.open "select * from jins_goods_sort where sort_open=1 and sort_up=0 order by sort_num",conn,1,1
%>
<!--#####菜单弹出js-->
<SCRIPT language=javascript>
	function opencat_<%=site.object(site.object_p).id%>(cat)
	{
 	 	if(cat.style.display=="none"){
     	cat.style.display="";
  		} else {
     	cat.style.display="none"; 
  		}
  		auto_height();
	}
</SCRIPT>
<style>
.td_menu_left_goods  {
background-image: url(<%=site.object(site.object_p).image%>/bg1.gif);
line-height: 30px;
padding-left: 45px;
}

.td_menu1_left_goods {
background-image: url(<%=site.object(site.object_p).image%>/bg2.gif);
line-height: 23px; 
padding-left: 34px;
}
</style>
<!--#####菜单弹出jsend-->
<table cellpadding="0" cellspacing="0" width="17%" <%=site.object(site.object_p).style%>>
   	<tr><td height="2%" width="100%" valign="top"><img border="0" src="<%=site.object(site.object_p).image%>/menu.gif" width="175" height="46"></td></tr>
	<tr>
		<td  width="99%" valign="top"  align="center" style="padding-bottom: 4px; padding-top:5px" background="<%=site.object(site.object_p).image%>/bg.gif">
<%
if site.object(site.object_p).rs.eof then
response.write "<center>目前还没有商品大类"
else
response.write "<table cellpadding='0' cellspacing='0' width='151' >"
num_sort=1
do while not site.object(site.object_p).rs.eof

response.write "<tr id=item$pval[CatID]) style='CURSOR: hand' onmousedown='opencat_"&site.object(site.object_p).id&"(cat_"&site.object(site.object_p).id&"_"&num_sort&")'>"
response.write "<td height='30' class='td_menu_left_goods'><a href='temp.asp?tr=goods|search&mode=sort&sort_id="&site.object(site.object_p).rs("sort_id")&"&object_print="&site.object(site.object_p).prints&"_"&site.object(site.object_p).name&"'><b>"&site.object(site.object_p).rs("sort_name")&"</a></td>"
response.write "</tr>"
response.write "<tr id=cat_"&site.object(site.object_p).id&"_"&num_sort&" style='DISPLAY: none'>"
response.write "<td valign='top'  class='td_menu1_left_goods'>"

set rs_class2=server.CreateObject("adodb.recordset")
rs_class2.open "select * from jins_goods_sort where sort_up="&site.object(site.object_p).rs("sort_id")&" and sort_open=1 order by sort_num",conn,1,1
if rs_class2.recordcount=0 then 

response.write "<center>暂无小分类</center>"

else
do while not rs_class2.eof

response.write "<a href='temp.asp?tr=goods|search&mode=sort&sort_id="&rs_class2("sort_id")&"'>"&rs_class2("sort_name")&"</a><br>"

rs_class2.movenext
loop
end if
rs_class2.close
set rs_class2=nothing

response.write "</td>"
response.write "</tr>"
response.write "<tr><td height=4></td></tr>"

site.object(site.object_p).rs.movenext
num_sort=num_sort+1
loop
response.write "</table>"
end if
site.object(site.object_p).rs.close
%>
		</td>
	</tr>						
</table>