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

📄 pricedown.asp

📁 大家好
💻 ASP
字号:
<%@ language="vbscript" %>
<!--#include file="..\function.asp" -->
<!--#include file="..\adovbs.inc"-->
<%
DbPath = SERVER.MapPath("..\bookshop.mdb")
Set conn = Server.CreateObject("ADODB.Connection")
conn.open "driver={Microsoft Access Driver (*.mdb)};dbq=" & DbPath
set rs=server.createobject("adodb.recordset")
sqltext="select distinct dz from book where dz<100 "
rs.open sqltext,conn,adOpenkeyset,adlockoptimistic,adcmdtext

if rs.bof and rs.eof then
   response.write "正在建设中.... , 管理员可在后台加入数据。"
   response.end
end if
%>
<html>

<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>打折分类</title>
</head>
<body bgcolor="#ffffff">
<table border="0" width="40%"  align="center" bgcolor="#CCCCFF" cellspacing="0" >
  <tr bgcolor="#495E5F"> 
    <td width="40%" align="center" colspan="3"><font size="5" color="#FFFFFF">打折分类</font></td>
  </tr>
  <tr bgcolor="#D0E1D0"> 
    <td colspan="3">&nbsp;</td>  
  </tr>
<%   rs.movefirst
     Do Until rs.eof %> 
  <tr bgcolor="#D0E1D0"> 
    <td width="30%" align="right"><img src="../image/arrow.gif" WIDTH="13" HEIGHT="8"></td>
    <td width="40%" align="center" onMouseOut="MouseOut(this,'#D0E1D0');" onMouseOver="MouseOver(this, '#c4f0d6');"><a href="downbuy.asp?class=<%=rs(0)%>"><%=rs(0)%>折商品</a></td>
    <td width="30%">&nbsp;</td>   
   </tr> 
   
  <tr bgcolor="#D0E1D0"> 
    <td colspan="3">&nbsp;</td>   
   </tr> 
<%
      rs.movenext 
     Loop 
%> 
</table>
<%
rs.close
conn.close
set rs=nothing
set conn=nothing
%> 
</body>
</html>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -