<!--#include file="top.asp" -->
<TABLE width=760 bgcolor="#ffffff" border=0 align=center cellPadding=0 cellSpacing=0 class="table-zuoyou">
  <TBODY>
    <TR> 
      <TD width=170 height="300" vAlign=top class="table-you"> 
	<!--#include file="conn/logininc.asp" -->
	<!--#include file="conn/searchinc.asp" -->
	<!--#include file="conn/fenleiinc.asp" -->
	</TD>
    <td width="590" valign="top">
	 <!--#include file="conn/bannerinc.asp" --> 
	<table width="590" border="0" align="center" cellpadding="0" cellspacing="0" class="table-shang">
	 <tr><TD height=30 vAlign=center>&nbsp;&nbsp;您目前的位置：<A href="index.asp?userid=<%=userid%>">网站首页</A> -&gt; <A href="allcome.asp?userid=<%=userid%>">全部产品</A> -&gt; <a href=promotion.asp?userid=<%=userid%>>特价促销</a></TR>
	 <tr><td>
<table width="98%" align="center" cellpadding="5" cellspacing="0" class="table-shang">
<% Set rs=Server.CreateObject("ADODB.Recordset")
sql="select * from chanpin where userid="&userid&" and cang=0 order by jg2/jg1"
rs.open sql,conn,3,1 
rs.pagesize = 6
if request("page")=""  or isempty(request("page")) then
page = 1
else
page=int(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
dim jg1,jg2,jgshang,shuqian,shuhou
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> 
          <td width="80" height="100" align="center" valign="middle"><a href=xiangxi.asp?userid=<%=userid%>&id=<%=rs("id")%> target=_blank><img src=image_cp/<%=rs("xt")%> border=0 width="75" height="75"></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 valign="top"><a href=xiangxi.asp?userid=<%=userid%>&id=<%=rs("id")%> target=_blank><%=rs("mc")%></a><br> &nbsp;&nbsp; <%=left(rs("jp"),60)%>..<br> &nbsp;&nbsp; 市场价：<s>￥<%=jg1%>元</s>&nbsp;&nbsp; 会员价：<font color="#FF3333"><strong>￥<%=jg2%>元</strong></font>&nbsp;&nbsp; 
            <a href="addcart.asp?userid=<%=userid%>&cpid=<%=rs("id")%>" target="_blank" onFocus="this.blur()"><img src="../image/buy_on.gif" width="65" height="20" border="0" alt="购买"></a> 
            <a href="huiyuan-2.asp?userid=<%=userid%>&cp_id=<%=rs("id")%>" onFocus="this.blur()" target="_blank"><img src="../image/aad.gif" width="65" height="20" border="0"  alt="收藏"></a> 
          </td>
        </tr>        <tr> 
          <td height="1" background="../image/1x3.gif" colspan="2"></td>
        </tr>
        <%
i=i+1
 rs.MoveNext                                              
 loop 
%><tr> 
          <form name=form method=post action=?userid=<%=userid%>><td colspan="2" align="center" valign="middle">
              <%
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 "页次："& page &"/"& rs.pagecount &"页 每页"& rs.pagesize &" 共"& rs.recordcount &"条记录"&_
					"<br>分页："

	if p*10>0 then response.write "<a href='?userid="&userid&"&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='?userid="&userid&"&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='?userid="&userid&"&page="&ii&"' title=下十页>[&gt;&gt;]</a>   "
response.write(" 　跳页：<input type=text name=page size=2 maxlength=3 class=wenbenkuang onkeydown=onlyNum();> <input type=submit name=Submit value=Go class=go-wenbenkuang>")
end if
rs.close
set rs=nothing%></td></form>
        </tr>
      </table>
        </td></tr></table>     
    </TD>
    </TR>
  </TBODY>
</TABLE>
<!--#include file="bd.asp"-->
