📄 bookorder.asp
字号:
<!--#include file="conn.asp"-->
<!--#include file="webconfig.asp"-->
<html>
<head>
<title><%=webname%>--商品排行</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link href="images/css.css" rel="stylesheet" type="text/css">
</head>
<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" onMouseOver="window.status='【<%=webname%>】<%=weburl%> 如果您喜欢本站,别忘了把本站介绍给您的好友哦!:)';return true">
<!--#include file="webtop2.asp" -->
<table width="780" border="0" cellspacing="0" cellpadding="0" align="center">
<tr>
<td background="images/bj.gif">
<table width="748" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td height="27" background="images/bjtop.gif">
<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="748" border="0" align="center" cellpadding="1" cellspacing="1">
<tr background="images/bjtop.gif">
<td width="101" valign=bottom height="30"> </td>
<td width="18" height="30"><img src="images/index7.gif" width="14" height="10"></td>
<td width="323" height="30"><b>热点商品排行榜 </b></td>
<td width="12" height="30"><img src="images/index7.gif" width="14" height="10"></td>
<td width="306" height="30"><b>销售排行榜</b></td>
</tr>
<tr valign="top">
<td height="225" colspan="5" bgcolor="#FFFFFF">
<%dim anclassid,rs2,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,bookchuban,bookname,pingji,pingjizong,pingpai from shop_books order by liulancount desc",conn,1,1
rs2.open "select top 20 bookid,bookzz,bookchuban,bookname,pingji,pingjizong,pingpai from shop_books order by chengjiaocount desc",conn,1,1
else
rs.open "select top 20 bookid,bookzz,bookchuban,bookname,pingji,pingjizong,pingpai from shop_books where anclassid="&anclassid&" order by liulancount desc",conn,1,1
rs2.open "select top 20 bookid,bookzz,bookchuban,bookname,pingji,pingjizong,pingpai 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
dim i
i=0
%>
<table width="100%" border="0" cellpadding="1" cellspacing="2">
<tr>
<td width="16%" height="105" valign="top">
<%do while not rs.eof
i=i+1%>
<table width="80%" height="68" border="0" cellpadding="3" cellspacing="3">
<tr>
<td height="58">
<div align="center"><img src="images/paihang/top<%=i%>.gif"></div>
</td>
</tr>
</table>
<%
if i>=3 then exit do
rs.movenext
loop%>
</td>
<td width="44%" valign="top">
<%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="288" border="0" cellpadding="0" cellspacing="0">
<tr>
<td height="21" background="images/paihang/dh.gif" style="padding-left:20px">
<table width="103%" border="0" cellspacing="0" cellpadding="0" height="17">
<tr>
<td width="56%"><img src="images/index7.gif" width="14" height="10">评论 <img src="images/index7.gif" width="14" height="10"><a href="book.asp?id=<%=rs("bookid")%>">详细</a>
</td>
<td width="44%" style="padding-left:20px">
<%if rs("pingjizong")>0 and rs("pingji")>0 then
xx=rs("pingjizong")\rs("pingji")
else
xx=0
end if
response.write "<img src=images/pingji/"&xx&".gif alt=评论星级 align=top>"
%>
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td background="images/paihang/b.gif" style="padding-left:6px">
<%response.write "<a href=book.asp?id="&rs("bookid")&" target=_blank>"
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"))%> 品牌:<%=trim(rs("pingpai"))%></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="100%" border="0" cellspacing="2" cellpadding="2">
<tr>
<td valign="top">
<table width="288" border="0" cellpadding="0" cellspacing="0">
<tr>
<td height="21" background="images/paihang/dh.gif" style="padding-left:20px">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="57%"><img src="images/index7.gif" width="14" height="10">评论 <img src="images/index7.gif" width="14" height="10"><a href="book.asp?id=<%=rs("bookid")%>">详细</a>
</td>
<td width="43%" style="padding-left:20px">
<%if rs2("pingjizong")>0 and rs2("pingji")>0 then
xx=rs2("pingjizong")\rs2("pingji")
else
xx=0
end if
response.write "<img src=images/pingji/"&xx&".gif alt=评论星级 align=absbottom>"
%>
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td background="images/paihang/b.gif" style="padding-left:6px">
<%response.write "<a href=book.asp?id="&rs2("bookid")&" target=_blank>"
if len(trim(rs2("bookname")))>24 then
response.write left(trim(rs2("bookname")),24)&"..."
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -