?? hotproduct.asp
字號:
<%@LANGUAGE="VBSCRIPT" %>
<!-- #include file="../common/conn.asp" -->
<!-- #include file="../common/status.html" -->
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>熱賣商品信息</title>
<style type="text/css">
<!--
.style2 {font-size: x-small}
-->
</style>
<style>
td {
font-size: 13px;
}
</style>
</head>
<body>
<div align="left"><!-- #include file="pagetop.asp" --></div>
<div align="center"><center>
<table width="95%" border="0" cellspacing="0" cellpadding="0">
<tr height="20">
<td colspan="2"></td>
</tr>
<tr>
<td width="180px" valign="top">
<table width="180" border="0" cellspacing="0" cellpadding="0">
<tr>
<td><!-- #include file="userinfo.asp" --></td>
</tr>
<tr>
<td><!-- #include file="companyinfo.asp" --></td>
</tr>
<tr>
<td><!-- #include file="search_easy.asp" --></td>
</tr>
</table>
</td>
<td valign="top">
<table width="95%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td>
<table width="95%" border="0" cellspacing="0" cellpadding="0">
<tr align="center">
<td width="15%" height="30">產品型號</td>
<td width="10%">產品品牌</td>
<td width="15%">CPU</td>
<td width="12%">內存</td>
<td width="10%">硬盤</td>
<td width="25%">顯示器</td>
<td width="13%">價格</td>
</tr>
<%
set rs=server.CreateObject("adodb.recordset")
sql="select product_id, product_num, product_brand, product_cpu, product_memory, product_harddisk, product_monitor, product_price from scott.product_info where product_isdel='n' order by product_salenum desc,product_time desc"
rs.open sql,connstr,1,1
if err.number<>0 then
response.write "<p>數據庫中暫時無數據</p>"
end if
if rs.eof And rs.bof then
%>
對不起,目前還沒有上架商品信息,請<a href="index.asp">返回主頁</a>。
<% else
for i=0 to 9
%>
<tr align="center">
<td height="30"><a href="shp_detail.asp?id=<%=rs("product_id")%>" target="_blank"><%=rs("product_num") %></a></td>
<td><%=rs("product_brand") %></td>
<td><%=rs("product_cpu") %></td>
<td><%=rs("product_memory") %></td>
<td><%=rs("product_harddisk") %></td>
<td><%=rs("product_monitor") %></td>
<td><%=rs("product_price") %></td>
</tr>
<%
rs.MoveNext
next
rs.Close
set rs=nothing
end if
%>
</table>
</td>
</tr>
<tr>
<td></td>
</tr>
</table>
</td>
</tr>
</table>
<!-- #include file="pagefooter.html" -->
</center>
</div>
</body>
</html>
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -