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

📄 xpcatalog_xpdesc.asp

📁 IMPORTANT YOU SHOUD LOAD IT DOWN FOR USING
💻 ASP
字号:
<!--#include file="conn_xp/xp.asp"-->
<!--#include file="conn_xp/shopxp.asp"-->
<!--#include file="xptop.asp"-->
<html><head>
<%
	
	dim shopxpbe_id, anclassname, shopxpse_id, nclassname
   	dim totalPut   
   	dim CurrentPage, TotalPages
   
        if request("shopxpbe_id")<>"" then
		shopxpbe_id=request("shopxpbe_id")
   	else
		shopxpbe_id=0
   	end if
	if request("shopxpbe_id")="" then 
	shopxpbe_id=1
	end if
   	if not isempty(request("page")) then
      		currentPage=cint(request("page"))
   	else
      		currentPage=1
   	end if
 
  set rs=server.createobject("adodb.recordset")
					rs.open "select * from shopxp_btype where shopxpbe_id="&shopxpbe_id,conn,1,1
					anclassname=rs("shopxpbe_name")
	rs.close
%>
<title><%=anclassname%>|<%=webname%></title>
<meta name="description" content="<%=anclassname%>,<%=webname%>">
<meta name="keywords" content="<%=anclassname%>,<%=webname%>">
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link href="img_shopxp/css.css" rel="stylesheet" type="text/css">
<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
<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 width="3" background="img_shopxp/xiao/bg_body.gif"></td>
        <td width="713" valign="top">
          <table width="100%" border="0" cellspacing="0" cellpadding="0">
            <tr>
              <td><table width="10" height="5" border="0" cellpadding="0" cellspacing="0">
                  <tr>
                    <td width="10"></td>
                  </tr>
                </table>
              </td>
            </tr>
          </table>
          <table width="100%" height="5" border="0" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF">

              <%set rs=server.createobject("adodb.recordset")
shopxpbe_id=trim(request("shopxpbe_id"))
      if shopxpbe_id=empty then
          response.redirect "index.asp"
      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 shopxpse_id<>0 then
	sql="select * from shopxp_product where shopxpse_id="+cstr(shopxpse_id)+" and shopxpbe_id="+cstr(shopxpbe_id)+"  order by shopxpptid desc" 
elseif shopxpbe_id<>0 then
	sql="select * from shopxp_product where shopxpbe_id="+cstr(shopxpbe_id)+" order by shopxpptid desc" 
else
	sql="select * from shopxp_product order by shopxpptid desc"
end if

if order="time" then
    sql="select * from shopxp_product where shopxpbe_id="+cstr(shopxpbe_id)+" order by shopxpptid desc"
	elseif order="price1" then
    sql="select * from shopxp_product where shopxpbe_id="+cstr(shopxpbe_id)+" order by shopxphyjia desc , shopxpptid desc"
	elseif order="price2" then
	sql="select * from shopxp_product where shopxpbe_id="+cstr(shopxpbe_id)+" order by shopxphyjia asc , shopxpptid desc"
	end if
	
	  
      rs.open sql,conn,3,3
      if rs.eof then
          response.write "<tr><td align=center colspan=3 height=180><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">
				  <br><TABLE width=96% height="40" border=0 align="center" cellPadding=0 cellSpacing=0>
                    <TBODY>
                      <TR>
                        <TD vAlign=top width=4 height=4><IMG height=4 
            src="img_shopxp/xiao/new_line_004.gif" width=4></TD>
                        <TD background=img_shopxp/xiao/new_line_008.gif height=4></TD>
                        <TD vAlign=top width=4 height=4><IMG height=4 
            src="img_shopxp/xiao/new_line_005.gif" width=4></TD>
                      </TR>
                      <TR>
                        <TD width="1" background=img_shopxp/xiao/new_line_009.gif></TD>
                        <TD>
                          <%
					  set rs2=server.CreateObject("adodb.recordset")
			rs2.open "select shopxpse_name,shopxpse_id from shopxp_stype where shopxpbe_id="&rs("shopxpbe_id")&" order by shopxpse_idorder",conn,1,1
			do while not rs2.eof
			response.write "| <A href=xpCatalog_xpsmall_Desc.asp?action_key_order=small&shopxpbe_id="&rs("shopxpbe_id")&"&shopxpse_id="&rs2("shopxpse_id")&"><font color=#FF3300>"&trim(rs2("shopxpse_name"))&"</font></A> |&nbsp;" 
             rs2.movenext
			 loop
			 rs2.close
			 set rs2=nothing%>
                        </TD>
                        <TD width="1" background=img_shopxp/xiao/new_line_010.gif></TD>
                      </TR>
                      <TR>
                        <TD vAlign=top width=4 height=4><IMG height=4 
            src="img_shopxp/xiao/new_line_006.gif" width=4></TD>
                        <TD background=img_shopxp/xiao/new_line_011.gif></TD>
                        <TD vAlign=top width=4 height=4><IMG height=4 
            src="img_shopxp/xiao/new_line_007.gif" width=4></TD>
                      </TR>
                    </TBODY>
                  </TABLE>
				  <table width="100%"  border="0" cellspacing="0" cellpadding="0">
                  <tr>
                    <td width="22%" height="32" valign="bottom"><img src="img_shopxp/xiao/CPXIZL.gif" width="151" height="21"></td>
                    <td width="78%" valign="bottom"><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="134" align="left" 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=#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="xpCatalog_xpDesc.asp?shopxpbe_id=<%=shopxpbe_id%>&page=<%=page-1%>&order=<%=order%>">上一页</a>
                      <%else%>
        上一页
        <%end if%>
         
        <%if page+1<=totalpage then%>
         <a href="xpCatalog_xpDesc.asp?shopxpbe_id=<%=shopxpbe_id%>&page=<%=page+1%>&order=<%=order%>">下一页</a>
        <%else%>
        下一页
        <%end if  end if%>
                </p></td>
              </tr>
      </table></td>
        <td width="1" 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 + -