<!--#include file="inc_top.asp" -->
<table width="762" bgcolor=#f7f7f7 align="center" cellpadding="0" cellspacing="0" class="table-zuoyou">
<tr><td width=760 height=163 align=center background="image/bannerhot.gif"><a href="tophot.asp">【 点击查看全部热卖产品 】</a></td>
</tr>
<tr><td width=760>
<table width="720" align="center" cellpadding="0" cellspacing="0">
<tr>
<%	set rs = conn.execute("select * from lb order by lbid")
	j=0
	while not rs.eof%>
<TD height=24 width=144><font color=#ff3300>＋</font>&nbsp;<a href="?lbid=<%=rs("lbid")%>"><%=rs("lbname")%></a></td>
	<% rs.movenext
	j=j+1
	if j mod 5=0 then response.write "</tr><tr>"
	wend
	rs.close
	set rs=nothing %>
</tr>
</table></td></tr></table>
<table width="762" bgcolor="#efefef" align="center" cellpadding="0" cellspacing="1" class="table-zuoyou">
	<% 
	lbid=nohack(Request("lbid"))
	if lbid="" or isempty("lbid") then
	set rs = conn.execute("select top 100 * from chanpin where cang=0 order by rq desc")
	else
	set rs = conn.execute("select top 100 * from chanpin where cang=0 and lbid='"&lbid&"' order by rq desc")
	end if
	if rs.eof then
		response.write "<font color=red>本类暂时没有产品</font>"
		rs.close
		set rs=nothing
	else
		rs.pagesize = 10
		if request("page")=""  or isempty(request("page")) then
		page = 1
		else
		page=cint(request("page"))
		end if
		if page>rs.pagecount then
		page=rs.pagecount
		end if
		if not rs.BOF then
		Rs.Move Rs.PageSize*(page-1)
		end if
		i=1
%>
        <tr height="30" valign="middle"> 
	<td width=150 align=center><font color=#000066>产品预览</font></td>
	<td width=460 align=center><font color=#000066>产品名称</font></td>
	<td width=150 align=center><font color=#000066>产品价格</font></td>
	</tr>
	<tr><td height=1 colspan=3 bgcolor=#cccccc></td><tr>
<%	do while not rs.eof and i<=rs.pagesize
	jg1=rs("jg1")
	jg2=rs("jg2")
	if jg1<>0 then
	jgshang=formatnumber(jg2/jg1,2)*100
	shuqian=int(jgshang/10)
	shuhou=jgshang mod 10
	else
	shuqian=0
	shuhou=0
	end if
%>
	<tr height="120" valign="middle" bgcolor="#fbfbff">
	<td width=150 align=center valgin=middle><a href=product.asp?id=<%=rs("id")%> target=_blank><img src="user/image_cp/<%=rs("xt")%>" width="75" height="75" border="0"></a><P style="MARGIN-TOP: -30px" align=right><IMG height=36 src="image/zhekou/<%=shuqian%>d.gif" width=20><IMG height=38 src="image/zhekou/<%=shuhou%>z.gif" width=17></P></td>
	<td width=460 align=center valgin=top><table width=440><tr><td><img src="image/ring03.gif" width="11" height="11">&nbsp;<a href=product.asp?id=<%=rs("id")%> target=_blank><%=rs("mc")%></a><br><br>简评：<%=left(rs("jp"),100)%>...</td></tr></table></td>
	<td width=150 align=center valgin=middle>市场价：<s>￥<%=jg1%>元</s><br><font color=#ff0000>会员价：￥<%=jg2%>元</font><br><a href="addcart.asp?cpid=<%=rs("id")%>"  target=blank onFocus="this.blur()"><img src="image/buy.gif" width="65" height="20" border="0"></a><br><a href="addfav.asp?cp_id=<%=rs("id")%>" target="_blank" onFocus="this.blur()"><img src="image/aad.gif" width="65" height="20" border="0"></a></td>
	</tr>
<%
	rs.movenext
	i=i+1
	loop
%>
<tr><td height=1 colspan=3 bgcolor=#cccccc></td><tr>
<tr><td colspan=3>
  <table width="98%" height="30" align="center" cellpadding="0" cellspacing="0">
        <form name=form method=post action=?lbid=<%=request("lbid")%>>
          <tr> 
            <td valign="middle" align="center">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <%
if rs.recordcount<>0 then
if page-1 mod 10=0 then
		p=(page-1) \ 10
	else
		p=(page-1) \ 10
	end if

	response.write " >> 分页："

	if p*10>0 then response.write "<a href='?lbid="&request("lbid")&"&page="&p*10&"' title=上十页>[&lt;&lt;]</a>   "
    uming_i=1
	for ii=p*10+1 to P*10+10
		   if ii=page then
	          response.write "<font color=#ff0000>["+Cstr(ii)+"]</font> "
		   else
		      response.write "<a href='?lbid="&request("lbid")&"&page="&ii&"'>["+Cstr(ii)+"]</a>   "
		   end if
		if ii=rs.pagecount then exit for
		 uming_i=uming_i+1
	next
	if ii<=rs.pagecount and uming_i=11 then response.write "<a href='?lbid="&request("lbid")&"&page="&ii&"' title=下十页>[&gt;&gt;]</a>   "
response.write(" 　跳页：<input type=text name=page size=2 maxlength=3 class=wenbenkuang> <input type=submit name=Submit2 value=Go class=go-wenbenkuang>")
end if
rs.close
set rs=nothing%> </td>
          </tr>
        </form>
      </table>
</td></tr>
<% end if%>
</table>
<!--#include file="inc_end.asp" -->