📄 bookorder.asp
字号:
<!--#include file="conn.asp"-->
<!--#include file="webconfig.asp"-->
<%dim nclassid
nclassid=request.querystring("nid")%>
<html>
<head>
<title><%=webname%></title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<STYLE type=text/css>
.pad {
PADDING-LEFT: 2px
}
</style>
<link href="images/css.css" rel="stylesheet" type="text/css">
</head>
<body bgcolor="#FFFFFF" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" >
<!--#include file="top8.asp" -->
<table width="750" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td width="162" valign="top" bgcolor="#efefef">
<table width="100%" border="0" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF">
<tr>
<td bgcolor="#efefef">
<!--#include file="userinfo.asp"-->
</td>
</tr>
</table>
<!--#include file="fenlei.asp"--> </td>
<td width="604" valign="top"> <table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
<tr> <td width="2" bgcolor="#FFFFFF"><img name="qw" src="" width="1" height="1" alt="" style="background-color: #FFFFFF"></td>
<td width="57%" align="right" background="images/menu_bar01.jpg">
<div align="left"><font color="#FFFFFF">::<strong><strong>销售排行榜</strong></strong>::</font></div></td>
<td width="43%" background="images/menu_bar01.jpg"> <div align="right">
<%set rs=server.CreateObject("adodb.recordset")
rs.open "select * from shop_anclass order by anclassidorder",conn,1,1
if rs.eof and rs.bof then
response.write "目前还没有分类"
else%>
<select name="anclassid" onchange="var jmpURL=this.options[this.selectedIndex].value ; if(jmpURL!='') {window.location=jmpURL;} else {this.selectedIndex=0 ;}" >
<option selected>--请选择商品分类--</option>
<option value=bookorder.asp?id=0>查询总体排行</option>
<%do while not rs.eof%>
<option value="bookorder.asp?id=<%=rs("anclassid")%>"><%=trim(rs("anclass"))%></option>
<%rs.movenext
loop
end if
rs.close
set rs=nothing
%>
</select>
</div></td>
</tr>
</table>
<table width="570" border="0" align="center" cellpadding="1" cellspacing="1" bgcolor="#f7fbff">
<tr>
<td width="18" height="19"> </td>
<td><strong><font color="#B21C2C">本周关注排行TOP20</font></strong></td>
<td width="12"> </td>
<td><strong><font color="#B21C2C">本周销售排行TOP20</font></strong></td>
</tr>
<tr valign="top">
<td height="225" colspan="4" bgcolor="#FFFFFF">
<%dim anclassid,xx
anclassid=request.QueryString("id")
set rs=server.CreateObject("adodb.recordset")
set rs2=server.CreateObject("adodb.recordset")
if anclassid=0 or anclassid="" then
rs.open "select top 20 bookid,bookzz,bookname from shop_books order by liulancount desc",conn,1,1
rs2.open "select top 20 bookid,bookzz,bookname from shop_books order by chengjiaocount desc",conn,1,1
else
rs.open "select top 20 bookid,bookzz,bookname from shop_books where anclassid="&anclassid&" order by liulancount desc",conn,1,1
rs2.open "select top 20 bookid,bookzz,bookname from shop_books where anclassid="&anclassid&" order by chengjiaocount desc",conn,1,1
end if
if rs.eof and rs.bof then
response.write "目前还没有任何商品"
response.End()
end if
i=0
%>
<table width="100%" border="0" cellpadding="1" cellspacing="2" bgcolor="#f7fbff">
<tr bgcolor="#f7fbff">
<td width="44%" height="105" valign="top" bgcolor="#f7fbff">
<%i=0
rs.movefirst
do while not rs.eof
i=i+1%>
<table width="100%" border="0" cellspacing="2" cellpadding="2">
<tr>
<td valign="top"> <table width="250" border="0" cellpadding="0" cellspacing="0">
<tr>
<td height="21" style="padding-left:20px"><table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="57%"> <a href=product.asp?id=<%=rs("bookid")%>><img src="images/paihang/xx.gif" width="30" height="15" align="absbottom" border=0></a></td>
</tr>
</table></td>
</tr>
<tr>
<td style="padding-left:6px">
<%response.write "<a href=product.asp?id="&rs("bookid")&" >"
if len(trim(rs("bookname")))>24 then
response.write left(trim(rs("bookname")),24)&"..."
else
response.write trim(rs("bookname"))
end if
response.write "</a>"
%>
<br>
品牌:<%=trim(rs("bookzz"))%> </td>
</tr>
<tr>
<td height="2" background="images/paihang/dd.gif"></td>
</tr>
</table></td>
</tr>
</table>
<%
if i=3 then exit do
rs.movenext
loop%>
</td>
<td width="40%" valign="top">
<%i=0
rs2.movefirst
do while not rs2.eof
i=i+1%>
<table width="250" border="0" cellspacing="2" cellpadding="2">
<tr>
<td valign="top"><table width="250" border="0" cellpadding="0" cellspacing="0">
<tr>
<td height="21" style="padding-left:20px"><table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="57%"> <a href=product.asp?id=<%=rs2("bookid")%>><img src="images/paihang/xx.gif" width="30" height="15" align="absbottom" border=0></a></td>
</tr>
</table></td>
</tr>
<tr>
<td style="padding-left:6px">
<%response.write "<a href=product.asp?id="&rs2("bookid")&" >"
if len(trim(rs2("bookname")))>24 then
response.write left(trim(rs2("bookname")),24)&"..."
else
response.write trim(rs2("bookname"))
end if
response.write "</a>"
%>
<br>
品牌:<%=trim(rs2("bookzz"))%> </td>
</tr>
<tr>
<td height="2" background="images/paihang/dd.gif"></td>
</tr>
</table></td>
</tr>
</table>
<%if i>=3 then exit do
rs2.movenext
loop%>
</td>
</tr>
</table>
<table width="100%" border="0" cellpadding="1" cellspacing="2" bgcolor="#f7fbff">
<tr bgcolor="#f7fbff">
<td width="44%" height="58" valign="top" bgcolor="#f7fbff">
<%i=4
if rs.recordcount>=4 then
rs.absoluteposition=4
do while not rs.eof
i=i+1%>
<table width="250" border="0" cellspacing="2" cellpadding="2">
<tr>
<td><TABLE WIDTH=250 BORDER=0 CELLPADDING=0 CELLSPACING=0>
<TR>
<TD height="21" style="padding-left:20px"><table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="59%" height="18">
<a href=product.asp?id=<%=rs("bookid")%>><img src="images/paihang/xx.gif" width="30" height="15" align="absbottom" border=0></a></td>
</tr>
</table></TD>
</TR>
<TR>
<TD style="padding-left:6px">
<%response.write "<a href=product.asp?id="&rs("bookid")&" >"
if len(trim(rs("bookname")))>24 then
response.write left(trim(rs("bookname")),24)&"..."
else
response.write trim(rs("bookname"))
end if
response.write "</a>"
%>
</TD>
</TR>
<TR>
<TD> <IMG SRC="images/paihang_04.gif" WIDTH=250 HEIGHT=3 ALT=""></TD>
</TR>
</TABLE></td>
</tr>
</table>
<%
if i>20 then exit do
rs.movenext
loop
end if%>
</td>
<td width="40%" valign="top">
<%i=4
if rs.recordcount>=4 then
rs2.absoluteposition=4
do while not rs2.eof
i=i+1%>
<table width="100%" border="0" cellspacing="2" cellpadding="2">
<tr>
<td><TABLE WIDTH=250 BORDER=0 CELLPADDING=0 CELLSPACING=0>
<TR>
<TD height="21" style="padding-left:20px"><table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="59%" height="18">
<a href=product.asp?id=<%=rs2("bookid")%>><img src="images/paihang/xx.gif" width="30" height="15" align="absbottom" border=0></a></td>
</tr>
</table></TD>
</TR>
<TR>
<TD style="padding-left:6px">
<%response.write "<a href=product.asp?id="&rs2("bookid")&" >"
if len(trim(rs2("bookname")))>24 then
response.write left(trim(rs2("bookname")),24)&"..."
else
response.write trim(rs2("bookname"))
end if
response.write "</a>"
%>
</TD>
</TR>
<TR>
<TD> <IMG SRC="images/paihang_04.gif" WIDTH=250 HEIGHT=3 ALT=""></TD>
</TR>
</TABLE></td>
</tr>
</table>
<%if i>20 then exit do
rs2.movenext
loop
end if
rs.close
rs2.close
set rs=nothing
set rs2=nothing
%>
</td>
</tr>
</table></td>
</tr>
</table></td>
</tr>
</table>
<!--#include file="service.asp"-->
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -