<META http-equiv=Content-Type content="text/html; charset=gb2312">
<%	 
		  rs.open "select top 8 id,name,pic,price1,price2,adddate,stock from product where stock >= 0 order by adddate desc",conn,1,1
		  if rs.eof and rs.bof then
		   rs.close
		  response.write "<table CELLSPACING=0 CELLPADDING=0 BORDER=0 WIDTH=""100%""><tr><td align=center>对不起，请您先到后台添加商品！</td></tr></table>"
		  else
%> 
            
<table width="740" border="0" cellspacing="0" cellpadding="0" align="center">
  <tr> 
    <td width="9">&nbsp;</td>
    <td> 
      <table cellspacing=0 cellpadding=0 width=738 align=right border=0>
        <tbody> 
        <tr> 
          <% 
			  j=0
			  do while not rs.eof %>
          <td width=130 border="0" align=center> 
            <table cellspacing=0 cellpadding=0 width=25% border=0>
              <tbody> 
              <tr> 
                <td height="143" width=184 colspan="2" align="center"> <a  href=product.asp?id=<%=rs("id")%> target=_blank> 
                  </a> 
                  <table class="kuang" border="0" cellspacing="1" cellpadding="1">
                    <tr> 
                      <td> 
                        <table border="0" cellspacing="5" cellpadding="5">
                          <tr> 
                            <td><a  href=product.asp?id=<%=rs("id")%> target=_blank><img  alt=上市日期<%=trim(rs("adddate"))%> src=<%if trim(rs("pic"))="" then %>
				  images/emptybook.gif
				  <% else %>
				  <% = trim(rs("pic")) %>
				  <% end if%> border=0 width="<% = webimg9 %>" height="<% = webimg10 %>"></a></td>
                          </tr>
                        </table>
                      </td>
                    </tr>
                  </table>
                </td>
              </tr>
              <tr align="center"> 
                <td width=188 colspan=2> 
                  <% if len(trim(rs("name")))>14 then
				response.write left(trim(rs("name")),13)&"..."
				else
				response.write trim(rs("name"))
				end if
				response.write "</font></a>"
				%>
                </td>
              </tr>
              <tr height=20> 
                <td width="40%" align=right>市场价：</td>
             <td width="60%"><s><%=formatnumber(rs("price1"),0)%>元</s></td>
              </tr>
              <tr height=20> 
                <td align=right>会员价：</td>
                <td><font color=#FF6600><%=trim(rs("price2"))%></font>&nbsp;元</td>
              </tr>
              <tr height=20> 
                <td align=right>节　省：</td>
                <td><%=FormatNumber(rs("price1")-rs("price2")) %>&nbsp;元</td>
              </tr>
              <% if rs("stock") > 0 then %>
              <tr align="center"> 
                <td colspan="2"> 
                  <table width="100%" border="0" cellpadding="0" cellspacing="0">
                    <tr> 
                      <td align="center"><a href="check.asp?ProdId=<% = rs("id") %>" target="_blank"><img src=images/skin/default/addto.gif align=absmiddle border=0></a></td>
                      <td align="center"><a href="product.asp?id=<%=rs("id")%>"><img src="images/skin/default/select_alipay_bors_one.gif" alt="选择支付宝购买" border="0"></a></td>
                    </tr>
                  </table>
                </td>
              </tr>
              <% else %>
              <tr> 
                <td colspan="2" align="center"><font color="#FF6600">暂时缺货</font></td>
              </tr>
              <% end if %>
              </tbody> 
            </table>
            <table width="50" border="0" cellspacing="0" cellpadding="0">
              <tr> 
                <td height="4"></td>
              </tr>
            </table>
          </td>
          <% rs.movenext 
				j=j+1
				if rs.eof then 
		  exit do
	  end if 
	if j>=4 then exit do
	  loop %>
        </tr>
        <%
	    rs.absoluteposition=5
		j=5 %>
        <tr> 
          <% 
			  do while not rs.eof %>
          <td width=130 border="0" align=center> 
            <table cellspacing=0 cellpadding=0 width=25% border=0>
              <tbody> 
              <tr> 
                <td height="143" width=184 colspan="2" align="center"> <a  href=product.asp?id=<%=rs("id")%> target=_blank> 
                  </a> 
                  <table class="kuang" border="0" cellspacing="1" cellpadding="1">
                    <tr> 
                      <td> 
                        <table border="0" cellspacing="5" cellpadding="5">
                          <tr> 
                            <td><a  href=product.asp?id=<%=rs("id")%> target=_blank><img  alt=上市日期<%=trim(rs("adddate"))%> src=<%if trim(rs("pic"))="" then %>
				  images/emptybook.gif
				  <% else %>
				  <% = trim(rs("pic")) %>
				  <% end if%> border=0 width="<% = webimg9 %>" height="<% = webimg10 %>"></a></td>
                          </tr>
                        </table>
                      </td>
                    </tr>
                  </table>
                </td>
              </tr>
              <tr align="center"> 
                <td width=188 colspan=2> 
                  <% if len(trim(rs("name")))>14 then
				response.write left(trim(rs("name")),13)&"..."
				else
				response.write trim(rs("name"))
				end if
				response.write "</font></a>"
				%>
                </td>
              </tr>
              <tr height=20> 
                <td width="40%" align=right>市场价：</td>
             <td width="60%"><s><%=formatnumber(rs("price1"),0)%>元</s></td>
              </tr>
              <tr height=20> 
                <td align=right>会员价：</td>
                <td><font color=#FF6600><%=trim(rs("price2"))%></font>&nbsp;元</td>
              </tr>
              <tr height=20> 
                <td align=right>节　省：</td>
                <td><%=FormatNumber(rs("price1")-rs("price2")) %>&nbsp;元</td>
              </tr>
              <% if rs("stock") > 0 then %>
              <tr align="center"> 
                <td colspan="2"> 
                  <table width="100%" border="0" cellpadding="0" cellspacing="0">
                    <tr> 
                      <td align="center"><a href="check.asp?ProdId=<% = rs("id") %>" target="_blank"><img src=images/skin/default/addto.gif align=absmiddle border=0></a></td>
                      <td align="center"><a href="product.asp?id=<%=rs("id")%>"><img src="images/skin/default/select_alipay_bors_one.gif" alt="选择支付宝购买" border="0"></a></td>
                    </tr>
                  </table>
                </td>
              </tr>
              <% else %>
              <tr> 
                <td colspan="2" align="center"><font color="#FF6600">暂时缺货</font></td>
              </tr>
              <% end if %>
              </tbody> 
            </table>
            <table width="50" border="0" cellspacing="0" cellpadding="0">
              <tr> 
                <td height="4"></td>
              </tr>
            </table>
          </td>
          <% rs.movenext 
				j=j+1
				if rs.eof then 
		  exit do
	  end if 
	if j>=9 then exit do
	  loop %>
        </tr>
        <%
	  rs.close
	   %>
        </tbody> 
      </table>
    </td>
  </tr>
</table>
<% end if 
		 rs.close
		%>
<map name="Map">
  <area shape="rect" coords="26,10,109,29" href="newarrivals.asp" target="_blank" alt="新品上市排行">
  <area shape="rect" coords="488,10,534,26" href="newarrivals.asp" target="_blank" alt="新品上市排行">
</map>
