<%
lb = request(\"lb\")
if lb=\"\" then
%>
<td align=\"center\">没有参数~~ </td>
<%
else
'猎取三级分类
set rs=server.createobject(\"adodb.recordset\")
rs.open \"select * from product_class where id=\"&lb&\" order by nm desc\",conn,3,2
if rs(\"c3\")=true then
class3=rs(\"labe_cs\")
c0=rs(\"c0\")
end if
rs.close
'猎取二级分类
if c0<>\"\" then
rs.open \"select * from product_class where id=\"&c0&\" order by nm desc\",conn,3,2
if rs(\"c2\")=true then
class2=rs(\"labe_cs\")
c0=rs(\"c0\")
end if
rs.close
end if
'猎取一级分类
if c0<>\"\" then
rs.open \"select * from product_class where id=\"&c0&\" order by nm desc\",conn,3,2
if rs(\"c1\")=true then
class1=rs(\"labe_cs\")
end if
rs.close
end if
rs.open \"select * from works where class1=\"&lb&\" order by id\",conn,3,2
%>
<div class=\"labe\">产品 》 <a href=\"lista.asp?lb=<%=lb%>\"></a><%= class1 %> 》 <%= class2 %> 》 <%= class3 %></div>
<%if rs.eof then%>
<td align=\"center\">没有查找到您想要的产品~~</td>
<%
else
rs.pagesize=12
if request(\"page\")=\"\" or request(\"page\")=\"1\" then
page=1
else
page=request(\"page\")
end if
rs.absolutepage=page
rowcount=rs.pagesize
allcount=rs.recordcount
%>
<div class=\"labx\">产品列表</div>
<%
do while not rs.eof and rowcount>0
g=rs(\"upic\")
%>
<div class=\"box\" style=\"height:130px; width:102px; float:left;\">
<div style=\"width:102px; border:3px solid #eee; height:102px; clear:none;\">
<div style=\"border:1px solid #ccc; width:100px; height:100px; overflow:hidden; text-align:center;\" onMouseOver=\"this.style.border='1px solid #7af'\" onMouseOut=\"this.style.border='1px solid #ccc'\">
<a href=\"../goods/goods_<%= rs(\"id\") %>.htm\">
<%if g=\"\" then%>
<img src=\"../zzone/skin/icon_info.gif\" alt=\"<%=rs(\"labe\")%>\" width=\"80\" height=\"80\" border=\"0\" />
<%else%>
<img src=\"<%if left(g,5)=\"http:\" then%><%=g%><% Else %>../uppic/<%=left(g,6)%>/<%=g%><% End If %>\" alt=\"<%=rs(\"labe\")%>\" width=\"100\" border=\"0\" onload=\"if(this.height>100){this.width=10000/this.height; this.height='100'}else{this.style.margin=(100-this.height)/2+'px 0px'};\" />
<%end if%>
</a></div>
</div>
<div align=\"center\">
<div>
<div style=\"line-height:17px; border:0px solid #ddd; padding:5px;\">
strong><%= rs(\"numb\") %></strong></div>
</div>
</div>
</div>
<%
rowcount=rowcount-1
rs.movenext
loop
%>
<div class=\"div_pnm\" style=\"clear:both;\">
<%if page>1 then%><a href=\"../<%=rs1(\"id\")%>_<%=rs1(\"labe_cs\")%>类目_第<%= page-1 %>页.htm\">上一页</a><%end if%> 共<%= allcount %>件产品 当前第<%= page %>页/共<%= rs.pagecount %>页 <%if rs.pagecount>page*1 then%><a href=\"../<%=rs1(\"id\")%>_<%=rs1(\"labe_cs\")%>类目_第<%= page+1 %>页.htm\">下一页</a> <a href=\"../<%=rs1(\"id\")%>_<%=rs1(\"labe_cs\")%>类目_第<%= rs.pagecount %>页.htm\">最后一页</a><%end if%>
</div>
<% rs.close
end if
end if%> |