⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 xpnewp.asp

📁 IMPORTANT YOU SHOUD LOAD IT DOWN FOR USING
💻 ASP
字号:
<!--#include file="conn_xp/xp.asp"-->
<!--#include file="conn_xp/shopxp.asp"-->
<html><head>
<title><%=webname%>--<%
					  leixing=lcase(trim(request("action_key_order")))
					  leixing=replace(leixing,"'","")
					  select case leixing
					  case "hot"
					  	response.write "热门推荐"
					  case "tejia"
					  	response.write "特价商品"
					  case "news"
					  	response.write "新品上架"
					  case "shopxpcjiao"
					  	response.write "销售排行榜"
					  case "liulancount"
					  	response.write "人气排行榜"
					  case else
					  	response.write "新品上架"					  
					  end select%></title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link href="img_shopxp/css.css" rel="stylesheet" type="text/css">
</head>
<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" onMouseOver="window.status='〖<%=webname%>〗<%=weburl%>如果您喜欢本站,别忘了把本站介绍给您的好友哦!';return false">
<!--#include file="xptop.asp"-->

<table width="996" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td width="92%"><table width="100%"  border="0" align="center" cellpadding="0" cellspacing="0">
      <tr>
        <td width="201" valign="top"><!--#include file="xpinfo/shopxp_flleft.asp"--></td>
        <td width="2" background="img_shopxp/xiao/bg_body.gif"></td>
        <td width="711" valign="top"><table width="90%" height="5"  border="0" cellpadding="0" cellspacing="0">
            <tr>
              <td></td>
            </tr>
          </table>
            <%
	
	
   	dim totalPut   
   	dim CurrentPage, TotalPages
   
      
   	if not isempty(request("page")) then
      		currentPage=cint(request("page"))
   	else
      		currentPage=1
   	end if
 
%>
            <table width="100%" height="5" border="0" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF">
              <%set rs=server.CreateObject("adodb.recordset")		
		if leixing="hot" then
			rs.open "select * from shopxp_product where shopxp_best_pt=1 order by adddate desc",conn,1,1
		elseif leixing="tejia" then
			rs.open "select * from shopxp_product where shopxp_tejia_pt=1 order by adddate desc",conn,1,1
		elseif leixing="news" then
			rs.open "select * from shopxp_product where shopxp_new_pt=1 order by adddate desc",conn,1,1		
		elseif leixing="liulancount" then
			rs.open "select * from shopxp_product order by liulancount desc",conn,1,1
		elseif leixing="shopxpcjiao" then
			rs.open "select * from shopxp_product order by shopxpcjiao desc",conn,1,1
		else
		   set rs=server.CreateObject("adodb.recordset")
			rs.open "select * from shopxp_product where shopxp_new_pt=1 order by adddate desc",conn,1,1
		   end if
		    page=request.querystring("page")
      if page="" then page=1
      if not(isnumeric(page)) then page=1
      if page<1 then page=1
      page=int(page)
if rs.bof and rs.eof then
response.write"<tr><td align=center colspan=3 height=300><font color=#ff0000>产品数据正在收集当中......</font></td></tr>"
else
          rs.pagesize=16
          totalrec=rs.recordcount
          totalpage=rs.pagecount
          if page>totalpage then page=totalpage
          rs.absolutepage=page
          rs.cachesize=rs.pagesize
          %>
              <tr>
                <td  height="2"><div align="center">
                    <table width="100%"  border="0" cellspacing="0" cellpadding="0">
                      <tr>
                        <td width="22%" height="23"><img src="img_shopxp/xiao/CPXIZL.gif" width="151" height="21"></td>
                        <td width="78%"><b><%=anclassname%></b>所有商品共<b><%=totalrec%></b>件,这是第 <%=(page-1)*16+1%>--
                            <%if page+1<=totalpage then%>
                            <%=page*16%>
                            <%else%>
                            <%=totalrec%>
                            <%end if%>
              件</td>
                      </tr>
                      <tr>
                        <td height="1" colspan="2" background="img_shopxp/xiao/linedot.gif"></td>
                      </tr>
                    </table>
                </div></td>
              </tr>
              <tr>
                <td width="100%"><br>
                    <table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
                      <tr>
                        <%i=0
          do while not rs.eof and (i<rs.pagesize)
          i=i+1
 								%>
                        <td width="25%" height="160" bgcolor="#FFFFFF">
                          <table border="0" align="center" cellpadding="0" cellspacing="0">
                            <tr>
                              <td><table width="90" height="90" border="0" align="center" cellpadding="2" cellspacing="1" bgcolor="#e1e1e1">
                                <tbody>
                                  <tr>
                                    <td width="90" height="90" bgcolor="#ffffff" align="center"><a href="productshopxp.asp?id=<%=rs("shopxpptid")%>" target="_blank"><img src="<%=trim(rs("upfilepic"))%>" alt="<%=rs("shopxpptname")%>"  width="<% = xtk %>"  height="<% = xtg %>" border="0" /></a></td>
                                  </tr>
                                </tbody>
                              </table>
                              <table width="100%" border="0" cellpadding="0" cellspacing="0">
                                    <tr>
                                      <td height="25" align=center> <%=trim(rs("shopxpptname"))%></td>
                                    </tr>
                                    <tr>
                                      <td align=center><font color="#999999"><s>市场价:<%=trim(rs("shichangjia"))%> 元</s></font><br />会员价:<font color=#FF3300><%=trim(rs("shopxphyjia"))%> 元</font></td>
                                    </tr>
                                </table>
                                <br></td>
                            </tr>
                        </table></td>
                        <%
		if (i mod 4=0) and i>=4 then
%>
                      </tr>
                      <tr>
                        <%
	end if
rs.movenext
loop
rs.close
%>
                      </tr>
                  </table></td>
              </tr>
              <tr>
                <td width="100%" height="20">
                  <div align="center"></div></td>
              </tr>
              <tr>
                <td width=478 height="23">
                  <p align="right">第<%=page%>页/共<%=totalpage%>页&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                      <%if page-1>0 then%>
                      <a href="xpnewp.asp?action_key_order=<%=leixing%>&page=<%=page-1%>&order=<%=order%>">上一页</a>
                      <%else%>
        上一页
        <%end if%>
         
        <%if page+1<=totalpage then%>
        <a href="xpnewp.asp?action_key_order=<%=leixing%>&page=<%=page+1%>&order=<%=order%>">下一页</a>
        <%else%>
        下一页
        <%end if
						  end if%>
                </p></td>
              </tr>
            </table>         
          </td>
        <td width="2" background="img_shopxp/xiao/bgbg.gif"></td>
      </tr>
    </table></td>
    <td width="8%">&nbsp;</td>
  </tr>
</table>
<!--#include file="copyright_shopxp.asp" -->
</body>
</html>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -