<!--#include file="inc_top.asp" -->
<% dim lbid,lbname
lbid=clng(request("lbid"))
if lbid=0 or isnull("lbid") then
response.redirect "index.asp"
response.end
end if
set rs = conn.execute("select * from lb where lbid="&lbid&"")
lbname=rs("lbname")
rs.close
%>
<TABLE width=770 border=0 align=center cellPadding=0 cellSpacing=0 bgColor=#ffffff>
<TR><TD vAlign=top width=5 background=image/bg_left.gif></TD>
    <TD>
	<TABLE width=762 border=0 cellPadding=0 cellSpacing=0 class="pian">
	<TR><TD bgcolor="#333333"><img height=34 src="image/sectN_black.gif" width=180 border=0></TD>
	<TD bgColor=#2b2b2b>
		<TABLE height=30 cellSpacing=0 cellPadding=0 width=580 border=0>
		<TR><TD><IMG height=3 src="image/sectN1_black.gif" width=580></TD></TR>
		<TR><TD bgColor=#292829 height=31>
			<TABLE cellSpacing=0 cellPadding=0 width=580 border=0>
			<TR><TD align=middle width=35><IMG height=6 src="image/t_dot.gif" width=15></TD>
			<TD vAlign=center><a href="allsubject.asp?lbname=<%=lbname%>" target="_blank"><FONT color=#ffffff><%=lbname%>促销专题</FONT></a><FONT color=#ffffff> | <a href="topnew.asp?lbid=<%=lbid%>" target="_blank"><FONT color=#ffffff><%=lbname%>最新产品</FONT></a> | <a href="tophot.asp?lbid=<%=lbid%>" target="_blank"><FONT color=#ffffff><%=lbname%>最旺产品</FONT></a> | <a href="onsale.asp?lbid=<%=lbid%>" target="_blank"><FONT color=#ffffff><%=lbname%>特价产品</FONT></a> | <a href="speciality.asp?lbid=<%=lbid%>" target="_blank"><FONT color=#ffff00><%=lbname%>品牌店</FONT></a></FONT></TD></TR>
			</TABLE></TD></TR>
		</TABLE></TD>          
</TR></TABLE>
<!-- Banner 760-->
<TABLE width=762 border=0 cellPadding=0 cellSpacing=0 class="pian">   
<TR><TD alogn=center><%
set rs = conn.execute("select * from zhuanti where lbid="&lbid&" order by id desc")
if not rs.eof then
set rszhuti = conn.execute("select * from zhuanti where lbid="&lbid&" order by id desc")
else
set rszhuti = conn.execute("select * from zhuanti where lbid=0 order by id desc")
end if
rs.close
set rs=nothing
do while not rszhuti.eof
if rszhuti("url")<>"" then%>
<a href="<%=rszhuti("url")%>" onFocus="this.blur()" target=_blank><img src="pic/zhuanti/<%=rszhuti("tp")%>" border="0"></a>
<% else%>
<img src="pic/zhuanti/<%=rszhuti("tp")%>" border="0">
<% end if
rszhuti.movenext
loop
rszhuti.close
set rszhuti=nothing%></TD></TR>
</TABLE>
<!-- 商城热点 和推荐产品 -->
	<TABLE width=762 height="100%" border=0 cellPadding=0 cellSpacing=0 class="pian">
	<TR><TD height=25 align=center><%=lbname%>热点：
    <% 	set rs = conn.execute("select top 4 * from hotpro where lbid="&lbid&" order by id desc")
while not rs.eof
        Response.Write "&nbsp;<a href="&rs("links")&" target=_blank>"&rs("texts")&"</a>&nbsp;&nbsp;"
     rs.movenext
    wend
rs.close
%></TD></TR>
	<TR><TD bgColor=#cccccc height=1></TD></TR>
	<TR>
	  <TD bgColor=#FF9900 height=30><span style="color: #FFFFFF; font-size: 10pt">　　本类最受欢喜产品之四</span></TD>
	</TR>
	<TR><TD><table cellspacing=0 cellpadding=0 width="100%" border=0><tr><% i=1
	set rs = conn.execute("select top 4 * from chanpin where cang=0 and lbid="&lbid&" order by tuitop desc,sj desc")
	while not rs.eof
	%>
	<TD width="25%">
		<table cellspacing=0 cellpadding=0 width=190 border=0>
		<tr><td><img height=50 src="image/week_num_0<%=i%>.gif" width=50></td></tr>
		<tr><td valign=top align=center height=80><a href="product.asp?id=<%=rs("id")%>" class="img" target="_blank"><img height=75 src="user/image_cp/<%=rs("xt")%>" alt="<%=rs("mc")%>" width=75  border=0></a></td></tr>
		<tr><td height="25" align=center><a href="product.asp?id=<%=rs("id")%>" target="_blank"><%=left(rs("mc"),13)%>...</a></td>
		</tr>
		<tr><td height="25">&nbsp;&nbsp;&nbsp;&nbsp;<img src="image/icon_won.gif" width=12 height=12 align="absmiddle">&nbsp;<b><font color=#bd205a><s><%=rs("jg1")%></s>元 -&gt; <%=rs("jg2")%>元</font></b></td></tr>
		<tr><td height="25">&nbsp;&nbsp;&nbsp;&nbsp;<img src="image/icon_mu.gif" width=11 height=11 align="absmiddle">&nbsp;<a href="addcart.asp?cpid=<%=rs("id")%>" target="_blank">马上购买</a>&nbsp;<a href="addfav.asp?cp_id=<%=rs("id")%>" target="_blank">放入收藏</a></td>
		</tr>
		<tr><td height=15>&nbsp;</td></tr>
		</table></td>
<%	i=i+1
	rs.movenext
	wend
	rs.close
%>		
	</tr>
	</table></TD></TR>
</TABLE>
</TD><TD width=5 background=image/bg_right.gif></TD></TR>
</TABLE>
<!--分类导航-->

	<TABLE width=762 border=0 align="center" cellPadding=0 cellSpacing=0 class="pian" algin=center>
		<TR><TD bgColor=#cccccc height=1 colspan=2></TD></TR>
		<%	set rs1 = conn.execute("select * from xlb where lbid="&lbid&" order by xlbid")
	do while not rs1.eof
%>
	<tr height="30" valign="middle">
	<td width=150  bgcolor="#efebe7">&nbsp;&nbsp;<img src=image/icon_jeok.gif border=0 align="absmiddle">&nbsp;<a href=xlb.asp?lbid=<%=rs1("lbid")%>&xlbid=<%=rs1("xlbid")%>&xlbname=<%=rs1("xlbname")%> target=_blank><u><%=rs1("xlbname")%></u></td>
	<td width=610 align=center bgcolor="#ffffff">
		<table width=610><tr>
	 <% set rs2 = conn.execute("select * from slb where xlbid="&rs1("xlbid")&" order by slbid")
		i=1
		if rs2.eof then Response.Write("<td align=left height=25><a href=xlb.asp?lbid="&rs1("lbid")&"&xlbid="&rs1("xlbid")&"&xlbname="&rs1("xlbname")&" target=_blank>"&rs1("xlbname")&"</td>")
		do while not rs2.eof
		Response.Write("<td align=left height=25 width=73><a href=slb.asp?lbid="&rs1("lbid")&"&xlbid="&rs1("xlbid")&"&xlbname="&rs1("xlbname")&"&slbname="&rs2("slbname")&" target=_blank>"&rs2("slbname")&"</a></td>")
		if i mod 10 = 0 then
		Response.Write("</tr><tr>")
		end if
		rs2.movenext
		i=i+1
		loop
		rs2.close
		set rs2=nothing
	%>
		</tr>
		</table>
	</td>
	</tr>
	<TR><TD bgColor=#cccccc height=1 colspan=2></TD></TR>
<%
	rs1.movenext
	loop
	rs1.close
	set rs1=nothing%>
	<tr><td height=15 colspan=2>&nbsp;</td></tr>
	</TABLE>

<!--专题促销-->

	<TABLE width=762 border=0 align="center" cellPadding=0 cellSpacing=0 class="pian" algin=center>
	<tr valign="middle" bgcolor="#FF9900" height="30">
	<td width=625 height="30"><% set rs = conn.execute("select top 3* from zhuanti_g where cang=0 and lbname='"&lbname&"' order by sj desc")
	while not rs.eof
	Response.Write "&nbsp;&nbsp;<img src=image/icon_jeok.gif border=0 align='absmiddle'><a href=subject.asp?id="&rs("id")&" target=_blank>『"&left(rs("bt"),15)&"』</a>"
	rs.movenext
	wend
	rs.close
	%></td>
	<td width=110 align=right><a href="allsubject.asp?lbname=<%=lbname%>" target="_blank" style="color: #FFFFFF">...更多促销专题</a></td>
	</tr>
	<TR><TD bgColor=#cccccc height=1 colspan=2></TD></TR>
	<tr><td height=15 colspan=2>&nbsp;</td></tr>
</TABLE>
<!-- 最新产品 -->
	<TABLE width=762 border=0 align=center cellPadding=0 cellSpacing=0 class="pian">
		<TR><TD><IMG src="image/lb_new.gif"></TD>
		<TD align=right><a href="topnew.asp?lbid=<%=lbid%>" target="_blank"><font color=#ff3300>...查看更多<%=lbname%>最新产品</font></a>&nbsp;&nbsp;<a href="#top">返回顶部↑↑</a></TD>
		</TR>
		<TR><TD bgColor=#ff3400 colSpan=2 height=3></TD></TR>
		<TR><TD bgColor=#e5e5e5 colSpan=2 height=3></TD></TR>
		<TR><TD width="100%" colSpan=2><table cellspacing=0 cellpadding=0 width="720" border=0><tr><% i=1
	set rs = conn.execute("select top 8 * from chanpin where cang=0 and lbid="&lbid&" order by id desc")
	while not rs.eof
	%>
	<TD width=180>
		<table cellspacing=0 cellpadding=0 width="100%" border=0>
		<tr><td align=center height=100><a href="product.asp?id=<%=rs("id")%>" class="img" target="_blank"><img height=75 src="user/image_cp/<%=rs("xt")%>" alt="<%=rs("mc")%>" width=75  border=0></a></td></tr>
		<tr><td height="25" align=center><a href="product.asp?id=<%=rs("id")%>" target="_blank"><%=left(rs("mc"),13)%>...</a></td>
		</tr>
		<tr><td height="25">&nbsp;&nbsp;<img src="image/icon_won.gif" width=12 height=12 align="absmiddle">&nbsp;<b><font color=#bd205a><s><%=rs("jg1")%></s>元 -&gt; <%=rs("jg2")%>元</font></b></td></tr>
		<tr><td height="25">&nbsp;&nbsp;<img src="image/icon_mu.gif" width=11 height=11 align="absmiddle">&nbsp;<a href="addcart.asp?cpid=<%=rs("id")%>" target="_blank">马上购买</a>&nbsp;<a href="addfav.asp?cp_id=<%=rs("id")%>" target="_blank">放入收藏</a></td>
		</tr>
		<tr><td height=15>&nbsp;</td></tr>
		</table></td>
<%	if i mod 4=0 then response.write "</tr><tr>"
	i=i+1
	rs.movenext
	wend
	rs.close
%>		
	</tr>
	</table>
	</td></tr>
</TABLE>
<!-- 最旺产品 -->

	<TABLE width=762 border=0 align=center cellPadding=0 cellSpacing=0 class="pian">
		<TR><TD><IMG src="image/lb_hot.gif"></TD>
		<TD align=right><a href="tophot.asp?lbid=<%=lbid%>" target="_blank"><font color=#ff3300>...查看更多<%=lbname%>最旺产品</font></a>&nbsp;&nbsp;<a href="#top">返回顶部↑↑</a></TD>
		</TR>
		<TR><TD bgColor=#ff8a00 colSpan=2 height=3></TD></TR>
		<TR><TD bgColor=#e5e5e5 colSpan=2 height=3></TD></TR>
		<TR><TD width="100%" colSpan=2><table cellspacing=0 cellpadding=0 width="720" border=0><tr><% i=1
	set rs = conn.execute("select top 8 * from chanpin where cang=0 and lbid="&lbid&" order by rq desc")
	while not rs.eof
	%>
	<TD width=180>
		<table cellspacing=0 cellpadding=0 width="100%" border=0>
		<tr><td align=center height=100><a href="product.asp?id=<%=rs("id")%>" class="img" target="_blank"><img height=75 src="user/image_cp/<%=rs("xt")%>" alt="<%=rs("mc")%>" width=75  border=0></a></td></tr>
		<tr><td height="25" align=center><a href="product.asp?id=<%=rs("id")%>" target="_blank"><%=left(rs("mc"),13)%>...</a></td>
		</tr>
		<tr><td height="25">&nbsp;&nbsp;<img src="image/icon_won.gif" width=12 height=12 align="absmiddle">&nbsp;<b><font color=#bd205a><s><%=rs("jg1")%></s>元 -&gt; <%=rs("jg2")%>元</font></b></td></tr>
		<tr><td height="25">&nbsp;&nbsp;<img src="image/icon_mu.gif" width=11 height=11 align="absmiddle">&nbsp;<a href="addcart.asp?cpid=<%=rs("id")%>" target="_blank">马上购买</a>&nbsp;<a href="addfav.asp?cp_id=<%=rs("id")%>" target="_blank">放入收藏</a></td>
		</tr>
		<tr><td height=15>&nbsp;</td></tr>
		</table></td>
<%	if i mod 4=0 then response.write "</tr><tr>"
	i=i+1
	rs.movenext
	wend
	rs.close
%>		
	</tr>
	</table>
	</td></tr>
</TABLE>
<!-- 最新产品 -->

	<TABLE width=762 border=0 align=center cellPadding=0 cellSpacing=0 class="pian">
		<TR><TD><IMG src="image/lb_sale.gif"></TD>
		<TD align=right><a href="onsale.asp?lbid=<%=lbid%>" target="_blank"><font color=#ff3300>...查看更多<%=lbname%>特价产品</font></a>&nbsp;&nbsp;<a href="#top">返回顶部↑↑</a></TD>
		</TR>
		<TR><TD bgColor=#ffd300 colSpan=2 height=3></TD></TR>
		<TR><TD bgColor=#e5e5e5 colSpan=2 height=3></TD></TR>
		<TR><TD width="100%" colSpan=2><table cellspacing=0 cellpadding=0 width="720" border=0><tr><% i=1
	set rs = conn.execute("select top 8 * from chanpin where cang=0 and lbid="&lbid&" order by jg2/jg1")
	while not rs.eof
	%>
	<TD width=180>
		<table cellspacing=0 cellpadding=0 width="100%" border=0>
		<tr><td align=center height=100><a href="product.asp?id=<%=rs("id")%>" class="img" target="_blank"><img height=75 src="user/image_cp/<%=rs("xt")%>" alt="<%=rs("mc")%>" width=75  border=0></a></td></tr>
		<tr><td height="25" align=center><a href="product.asp?id=<%=rs("id")%>" target="_blank"><%=left(rs("mc"),13)%>...</a></td>
		</tr>
		<tr><td height="25">&nbsp;&nbsp;<img src="image/icon_won.gif" width=12 height=12 align="absmiddle">&nbsp;<b><font color=#bd205a><s><%=rs("jg1")%></s>元 -&gt; <%=rs("jg2")%>元</font></b></td></tr>
		<tr><td height="25">&nbsp;&nbsp;<img src="image/icon_mu.gif" width=11 height=11 align="absmiddle">&nbsp;<a href="addcart.asp?cpid=<%=rs("id")%>" target="_blank">马上购买</a>&nbsp;<a href="addfav.asp?cp_id=<%=rs("id")%>" target="_blank">放入收藏</a></td>
		</tr>
		<tr><td height=15>&nbsp;</td></tr>
		</table></td>
<%	if i mod 4=0 then response.write "</tr><tr>"
	i=i+1
	rs.movenext
	wend
	rs.close
%>		
	</tr>
	</table>
	</td></tr>
</TABLE>
    <table width="0" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td>&nbsp;</td>
      </tr>
    </table>
<!-- 底部文件开始 -->
<!--#include file="inc_end.asp" -->