📄 paihang_info.asp
字号:
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>商品销售排行</title>
</head>
<body>
<%
set rs=server.CreateObject("adodb.recordset")
sql="select product_id, product_kindnum, product_salenum,product_price from GSCOTT.product_info_table where product_isdel='n' order by product_salenum desc,product_time"
rs.open sql,connstr,1,1
%>
<table width="180" border="0" align="center" cellpadding="0" cellspacing="0">
<tr align="center" bgcolor="E4E2FE">
<td height="20" colspan="3"><font size="-1" color="#0000FF">商品销售排行Top10</font></td>
</tr>
<tr align="center">
<td width="60%" height="20"><font size="-1">产品型号</font></td>
<td width="40%" height="20"><font size="-1">产品价格</font></td>
</tr>
<%
for i=1 to 10
%>
<tr align="center">
<td height="20"><font size="-1"><a href="shp_detail.asp?id=<%=rs("product_id")%>" target="_blank"><%=rs("product_kindnum") %></a></font></td>
<td><font size="-1"><%=rs("product_price") %></font></td>
</tr>
<%
rs.MoveNext
next
rs.Close
set rs=nothing
%>
</table>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -