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

📄 xpcatalog_xpsmall_desc.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("shopxpse_id")<>"" then
		shopxpse_id=request("shopxpse_id")
   	else
		shopxpse_id=0
   	end if
      
   	if not isempty(request("page")) then
      		currentPage=cint(request("page"))
   	else
      		currentPage=1
   	end if

		'rs.close

        
 
  	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
					  	rs.open "select * from shopxp_stype where shopxpse_id="&shopxpse_id,conn,1,1
						nclassname=rs("shopxpse_name")
						rs.close%>
<title><%=nclassname%>|<%=webname%></title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<meta name="description" content="<%=nclassname%>,<%=webname%>">
<meta name="keywords" content="<%=nclassname%>,<%=webname%>">
<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="1" 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">

                    <tr>
                      <td align="center">
                      </td>
                    </tr>
                    <%set rs=server.createobject("adodb.recordset")
shopxpbe_id=trim(request("shopxpbe_id"))
      if shopxpbe_id=empty then
          response.redirect "index.asp"
      end if
	  
	    sql="select * from shopxp_stype where shopxpse_id="&cstr(shopxpse_id)
   rs.open sql,conn,1,1
	if not rs.eof then
		Nclassname=rs("shopxpse_name")
 	end if
	rs.close
       
      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 shopxpse_id="+cstr(shopxpse_id)+" and shopxpbe_id="+cstr(shopxpbe_id)+"  order by shopxpptid desc" 
	elseif order="price1" then
    sql="select * from shopxp_product where shopxpse_id="+cstr(shopxpse_id)+" and shopxpbe_id="+cstr(shopxpbe_id)+"  order by huiuanjia desc , shopxpptid desc"
	elseif order="price2" then
	sql="select * from shopxp_product where shopxpse_id="+cstr(shopxpse_id)+" and 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"><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><div align="center">
                          <%
					  set rs2=server.CreateObject("adodb.recordset")
			rs2.open "select * from shopxp_ztype where shopxpse_id="&rs("shopxpse_id")&" order by xpx",conn,1,1
			do while not rs2.eof
			response.write "| <A href=shopxpz_xpsmall_Desc.asp?action_key_order=small&shopxpbe_id="&rs("shopxpbe_id")&"&shopxpse_id="&rs2("shopxpse_id")&"&xclassid="&rs2("id")&"><font color=#FF3300>"&trim(rs2("xclass"))&"</font></A> |&nbsp;" 
             rs2.movenext
			 loop
			 rs2.close
			 set rs2=nothing%>
                        </div></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%" height="35"  border="0" cellpadding="0" cellspacing="0">
                        <tr>
                          <td width="22%" height="23"><img src="img_shopxp/xiao/CPXIZL.gif" width="151" height="21"></td>
                          <td width="78%"><b><%=nclassname%></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></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">
                              <div align="center">
                                <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>
                              </div></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"><strong style="font-weight: 400">第<%=page%>页/共<%=totalpage%>页&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                      <%if page-1>0 then%>
                      <a href="xpCatalog_xpsmall_Desc.asp?shopxpbe_id=<%=shopxpbe_id%>&page=<%=page-1%>&shopxpse_id=<%=shopxpse_id%>">上一页</a>
                      <%else%>
        上一页
        <%end if%>
         
        <%if page+1<=totalpage then%>
         <a href="xpCatalog_xpsmall_Desc.asp?shopxpbe_id=<%=shopxpbe_id%>&page=<%=page+1%>&shopxpse_id=<%=shopxpse_id%>">下一页</a>
        <%else%>
        下一页
        <%end if
						  end if%>
                      </strong></font></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 + -