<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<!--#include file="conn.asp"-->
<!--#include file="config.asp"-->
<title><%=webname%>--库存商品--</title>
<meta name="description" content="网域电子商务网站,公司企业网站管理系统中英繁，仿阿里巴巴商贸通商务网,商城购物系统程序,源码下载，多用户商城,客隆电子商务网站管理系统,装饰,家具,旅社社旅游网站建设，程序开发,网站开发，网站推广,商城代码,系统销售,网络营销,企业商务,整站程序,ASP代码销售,企业电子商务平台,电子政务，官方站点：http://www.wygk.cn">
<meta name="keywords" content="网域电子商务网站,公司企业网站管理系统中英繁，仿阿里巴巴商贸通商务网,商城购物系统程序,源码下载，多用户商城,客隆电子商务网站管理系统,装饰,家具,旅社社旅游网站建设，程序开发,网站开发，网站推广,商城代码,系统销售,网络营销,企业商务,整站程序,ASP代码销售,企业电子商务平台,电子政务，官方站点：http://www.wygk.cn">
<META http-equiv=Content-Type content="text/html; charset=gb2312"><LINK 
href="img/code43.css" type=text/css rel=stylesheet>
<META content="MSHTML 6.00.2800.1505" name=GENERATOR></HEAD>
<BODY text=#000000 bgColor=#ffffff leftMargin=0 topMargin=0 background="image/bg.gif" marginwidth="0" marginheight="0" >
<TABLE cellSpacing=0 cellPadding=0 width="100%" border=0>
  <TBODY>
  <TR>
    <TD vAlign=top height=114><A name=top></A>
      <TABLE cellSpacing=0 cellPadding=0 width="100%" border=0>
        <TBODY>
        <TR>
              <TD vAlign=top> 
                <TABLE height=128 cellSpacing=0 cellPadding=0 width=780 border=0>
                  <TBODY>
                    <TR> 
                      <TD rowspan="2" vAlign=top><!--#include file="include/header.asp"--></TD>
                      <TD height="96" align=right 
                background=img/right_bg.gif>&nbsp;</TD>
                    </TR>
                    <TR> 
                      <TD width=15 height="32" align=right 
                background=img/right_bg.gif>&nbsp;</TD>
                    </TR>
                  </TBODY>
                </TABLE></TD></TR></TBODY></TABLE>
      </TD>
    </TR></TBODY></TABLE>
<TABLE cellSpacing=0 cellPadding=0 width="100%" border=0>
  <TBODY>
  <TR>
    <TD vAlign=top bgColor=#4296b5>
      <TABLE cellSpacing=0 cellPadding=0 width=780 border=0>
        <TBODY>
        <TR>
              <TD><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="765" height="140">
                  <param name="movie" value="img/hot.swf">
                  <param name="quality" value="high">
                  <embed src="img/hot.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="765" height="140"></embed></object> 
              </TD>
          <TD vAlign=top width=15><IMG height=140 
            src="img/main_right01.gif" 
      width=15></TD></TR></TBODY></TABLE></TD></TR>
  <TR>
      <TD height="575" vAlign=top> 
        <TABLE width=780 height="608" border=0 cellPadding=0 cellSpacing=0>
          <TBODY>
        <TR>   
              <TD vAlign=top align=middle><TABLE cellSpacing=0 cellPadding=0 width=98% border=0>
          <TBODY>
            <TR> 
              <TD colSpan=2 height=6 rowSpan=2><IMG height=6 
                        src="img/rnd_subCon01.gif" 
                        width=6></TD>
              <TD bgColor=#cccccc height=1></TD>
              <TD colSpan=2 height=6 rowSpan=2><IMG height=6 
                        src="img/rnd_subCon02.gif" 
                        width=6></TD>
            </TR>
            <TR> 
              <TD height=5></TD>
            </TR>
            <TR> 
              <TD width=1 bgColor=#cccccc></TD>
              <TD width=5></TD>
              
      <TD vAlign=top align=middle width=100%>
<TABLE cellSpacing=0 cellPadding=0 width="100%" border=0>
              <TBODY>
              <TR>
                <TD class=tl></TD>
                <TD class=tm>
                  <TABLE cellSpacing=0 cellPadding=0 width="100%" border=0>
                    <TBODY>
                    <TR>
                      <TD style="PADDING-LEFT: 20px" width=80 
                      background="img/title_m.gif" 
                        height=28><NOBR>库 存 商 品</NOBR></TD>
                      <TD width=* background="img/title_bg1.gif"><div align="right"><a href="recommend.asp" target="_blank"><FONT  
                    size=1 face=Arial><font color="#3399CC"><a href="index.asp"><b><%=webname%></b></a>&nbsp;-&gt;&nbsp;<a href="stock.asp">热销断货商品</a></font></FONT></a></div></TD></TR></TBODY></TABLE></TD>
                <TD class=tr></TD></TR></TBODY></TABLE>
            <TABLE cellSpacing=0 cellPadding=0 width="100%" border=0>
              <TBODY>
              <TR>
                <TD class=ml></TD>
                <TD align=left>
                  <TABLE width="100%" align=center>
                    <TBODY>
                    <TR>
                      
                                      <TD class=mm>
<TABLE WIDTH="100%" BORDER="0" CELLSPACING="0" CELLPADDING="0" align="center" class=table-zuoyou>
  <TR>
    <td valign="top" height=150> 
      <table border="0" cellpadding="0" cellspacing="0" width="100%" align="center">
        <tr> 
          <td valign="top"> 
            <%	dim i
				Const MaxPerPage=10
   				dim totalPut   
   				dim CurrentPage
   				dim TotalPages
   				dim j
   				dim sql
    			if Not isempty(SafeRequest("page",1)) then
      				currentPage=Cint(SafeRequest("page",1))
   				else
      				currentPage=1
   				end if 
		  
		  set rs=server.CreateObject("adodb.recordset")
		  rs.open "select id,pic,prename,name,company,mark,pretype,type,intro,introduce,predate,productdate,viewnum,other,grade,price1,price2,discount,stock from product where stock <= 0 order by adddate desc",conn,1,1
				
  				if rs.eof And rs.bof then
       				Response.Write "<p align='center' class='contents'><br>对不起，暂无缺货商品！</p>"
   				else
	  				totalPut=rs.recordcount

      				if currentpage<1 then
          				currentpage=1
      				end if

      				if (currentpage-1)*MaxPerPage>totalput then
	   					if (totalPut mod MaxPerPage)=0 then
	     					currentpage= totalPut \ MaxPerPage
	   					else
	      					currentpage= totalPut \ MaxPerPage + 1
	   					end if
      				end if

       				if currentPage=1 then
            			showContent
            			showpage totalput,MaxPerPage,"stock.asp"
       				else
          				if (currentPage-1)*MaxPerPage<totalPut then
            				rs.move  (currentPage-1)*MaxPerPage
            				dim bookmark
            				bookmark=rs.bookmark
            				showContent
             				showpage totalput,MaxPerPage,"stock.asp"
        				else
	        				currentPage=1
           					showContent
           					showpage totalput,MaxPerPage,"stock.asp"
	      				end if
	   				end if
   				end if

   				sub showContent
       			dim i
	   			i=0

			%>
            <table width="100%" border="0" cellspacing="0" cellpadding="0">
              <tr><td><% do while not rs.eof%>
                  <table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
                    <tr><td height="140" width="140" colspan="2" align="center" background="images/136.jpg">
					  <a href=product.asp?id=<% = rs("id") %>>
                          <% if trim(rs("pic"))<>"" then %>
						  <img src=<% = trim(rs("pic")) %>  border=0 width="<% = webimg9 %>" height="<% = webimg10 %>"></a>
						  <%  else %>
						<img src=images/emptybook.jpg  border=0 width="<% = webimg9 %>" height="<% = webimg10 %>"></a>
						<%  end if %>
                       </td>
                      <td width="80%">
					   <table width="100%" border="0" align="center" cellpadding="2" cellspacing="1">
                          <tr><td colspan="3"> 
                              <% = trim(rs("prename")) %><a href=product.asp?id=<%=rs("id")%>><font color="#FF6600"><%=trim(rs("name"))%></font></a></td>
                          </tr>
                          <tr> 
                            <td> <%=trim(rs("company"))%><a href=timesmark.asp?MarkName=<% = rs("mark") %>><font color="#FF6600"><% = rs("mark") %></font></a></td>
                            <td colspan="2"><%=trim(rs("pretype"))%><%=trim(rs("type"))%></td>
                          </tr>
                          <tr> 
                            <td colspan="3"><%=trim(rs("intro"))%><%=trim(rs("introduce"))%></td>
                          </tr>
                          <tr> 
                            <td> <%=trim(rs("predate"))%><%=trim(rs("productdate"))%></td>
                            <td>浏览次数：<%=trim(rs("viewnum"))%></td>
                            <td><%=trim(rs("other"))%><%=trim(rs("grade"))%></td>
                          </tr>
                          <tr> 
                            <td width="33%">市场价：<S>￥<%=rs("price1")%>元</S></td>
                            <td width="34%">会 员 价：<FONT COLOR="#FF6600">￥</FONT><font color=red><%=rs("price2")%>元</font></td>
                            <td width="33%">折扣：<%=rs("discount")*10%>折</td>
                          </tr>
        <tr> 
          <td COLSPAN="4" height="5"></td>
        </tr> <% if rs("stock") > 0 then %> <TR>
                      <TD align="center" colspan="4"><a href="check.asp?ProdId=<% = rs("id") %>" target="_blank"><img src=images/skin/default/addto.gif align=absmiddle border=0></a></TD>
                    </TR>
					<% else %>
					<tr><td colspan="4" align="center"><font color="#FF6600">暂时缺货</font></td></tr>
					<% end if %>
        </TR>
                        </table></td>
                    </tr>
                  </table>
				  <table width="98%" align="center"><TR>
          <TD class=table-xia>&nbsp;</TD>
        </TR></table>
                  <%
			i=i+1
			if i>=MaxPerPage then Exit Do
			rs.movenext
			loop
			rs.close
			set rs=nothing
			%>
                </td>
              </tr>
            </table>
            <%  
				End Sub   
  
				Function showpage(totalnumber,maxperpage,filename)  
  				Dim n
  				
				If totalnumber Mod maxperpage=0 Then  
					n= totalnumber \ maxperpage  
				Else
					n= totalnumber \ maxperpage+1  
				End If %>
				<form method=Post action= <% = filename %>>
				<p align='center'> 
				<%
				If CurrentPage<2 Then  %>
				首 页 上一页
				<%
				Else   %>
				<a href=<% = filename %>?page=1>首 页</a>
				<a href=<% = filename %>?page=<% = CurrentPage-1 %>>上一页</a>
				<%
				End If	
				If n-currentpage<1 Then  %>
				下一页 末 页
				<%
				Else   %>
				<a href=<% = filename %>?page=<% = (CurrentPage+1) %>>下一页</a>
				<a href=<% = filename %>?page=<% = n %>>末 页</a>
				<%
				End If  %>
					第 <b><% = CurrentPage %></b> 页 共 <b><% = n %></b> 页
				共&nbsp;<b><% = totalnumber %></b>&nbsp;件商品　每页 <b><% = maxperpage %></b> 件商品
				转到第：<input type='text' name='page' size=2 maxlength=10 class=smallInput value=<% = currentpage %>>
				页<input type='submit'  class='contents' value='跳转' name='cndok'></form>
				<%
				End Function  
			%>
          </td>
        </tr>
      </table> </td>
  </tr>
</table> </TD>
            </TR></TBODY></TABLE></TD>
                <TD class=mr></TD></TR></TBODY></TABLE>
                        <!--右侧-->
                      </TD>
              <TD width=5></TD>
              <TD bgColor=#cccccc height=650></TD>
            </TR>
            <TR> 
              <TD colSpan=2 height=6 rowSpan=2><IMG height=6 
                        src="img/rnd_subCon03.gif" 
                        width=6></TD>
              <TD height=5></TD>
              <TD colSpan=2 height=6 rowSpan=2><IMG height=6 
                        src="img/rnd_subCon04.gif" 
                        width=6></TD>
            </TR>
            <TR> 
              <TD bgColor=#cccccc 
              height=1></TD>
            </TR>
          </TBODY>
        </TABLE></TD>
          <TD width=15 
        background=img/right_bg.gif>&nbsp;</TD></TR></TBODY></TABLE></TD></TR></TBODY></TABLE>
<TABLE height=55 cellSpacing=0 cellPadding=0 width=780 border=0>
  <TBODY>
  <TR>
    <TD>
      <TABLE cellSpacing=0 cellPadding=0 width="100%" border=0>
        <TBODY>
        <TR>
          <TD vAlign=top>
            <TABLE height=55 cellSpacing=0 cellPadding=0  border=0>
              <TBODY>
              <TR>
                      <TD width=760><!--#include file="include/footer.asp"--></TD>
                <TD align=right width=15 
                background=img/right_bg.gif>&nbsp;</TD></TR></TBODY></TABLE></TD></TR></TBODY></TABLE></TD></TR></TBODY></TABLE></BODY></HTML>
