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

📄 item_o.asp

📁 用ASP写的二手市场程序
💻 ASP
字号:
<%
connstr = "DBQ="+server.mappath("data.mdb")+";DefaultDir=;DRIVER={Microsoft Access Driver (*.mdb)};"
   Set DataConn = Server.CreateObject("ADODB.Connection")
   dataconn.open connstr
   Set rs = dataconn.execute("update data set num = num+1 WHERE id=" +Cstr(request("id")))  
%>
<html>

<head>
<meta http-equiv="Content-Language" content="zh-cn">
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<meta name="GENERATOR" content="Microsoft FrontPage 4.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<LINK href="new.css" rel=stylesheet type=text/css>
<title>闽东二手交易中心</title>

</head>

<body>      
      <div align="center">
  <center>
  <table width="700" border="0" cellspacing="0" cellpadding="0">
    <tr>        
      <td>        
        <table width="100%" border="0"  cellspacing="0" cellpadding="0">        
          <tr>        
            <td width="17%" bgcolor="#f0f0f0" valign="top"> 
 <!--#include file="bar_left.asp"-->         
</td>       
            <td width="83%" bgcolor="#ffffff" valign="top">
<!--text begin--> 
<br>
   <%
   on error resume next
   connstr = "DBQ="+server.mappath("data.mdb")+";DefaultDir=;DRIVER={Microsoft Access Driver (*.mdb)};"
   Set DataConn = Server.CreateObject("ADODB.Connection")
   dataconn.open connstr
   Set rs = dataconn.execute("select * from data where ID= "+Cstr(request("ID"))+" order by id desc")

      response.write "<div align=center><TABLE width=450 cellPadding=0 cellSpacing=0 border=0 bordercolor=#ffffff valign=middle>"
      response.write "<tr><td>"
      response.write "<div align=center><TABLE width=100% border=0 cellPadding=0 cellSpacing=0 bordercolor=#ffffff valign=middle>"
      response.write "<tr><td>&nbsp;<font color=red>注意:</font>若想购买下列物品,请点击右边的图标获得进一步的信息.</td>"
      response.write "<td><p align=right><A href=deal.asp?ID="+cstr(rs("id"))+"><img src=deal.gif width=67 height=13 border=0></a>&nbsp;</P></td>"
      response.write "</tr></table></div>"
      response.write "</td></tr><tr><td>"
      response.write "<div align=center><TABLE width=100% border=1 bordercolor=#ffffff valign=middle>"
      response.write "<tr><TD bgcolor=#f0f0f0 width=72 align=center>&nbsp;买 或 卖&nbsp;</td><td bgcolor=#fcfafc>"+Rs("buyorsell")+"</td></tr><tr>"  
      response.write "<TD bgcolor=#f0f0f0 width=72 align=center>&nbsp;登记日期&nbsp;</td><td bgcolor=#fcfafc>20"+cstr(rs("date"))+"&nbsp;"+cstr(rs("time"))+"</td></tr><tr>"
      response.write "<TD bgcolor=#f0f0f0 width=72 align=center>&nbsp;物品名称&nbsp;</td><td bgcolor=#fcfafc>"+Rs("goods")+"</td></tr><tr>"  
      response.write "<TD bgcolor=#f0f0f0 width=72 align=center>&nbsp;货物单价&nbsp;</td><td bgcolor=#fcfafc>"
      if len(Rs("price"))>0 then
      response.write +Rs("price")+" 元.¥</td></tr><tr>"    
else
      response.write +"货主未提供货物的价格,你可以与他(她)进行面议.</td></tr><tr>"    
end if

      response.write "<TD bgcolor=#f0f0f0 width=72 align=center>&nbsp;货主姓名&nbsp;</td><td bgcolor=#fcfafc>"+Rs("name")+"</td></tr><tr>"
      response.write "<TD bgcolor=#f0f0f0 width=72 align=center>&nbsp;商品数量&nbsp;</td><td bgcolor=#fcfafc>"+Rs("amount")+" 个/件</td></tr><tr>"
      response.write "<TD bgcolor=#f0f0f0 width=72 align=center>&nbsp;购买日期&nbsp;</td><td bgcolor=#fcfafc>"+Rs("buydate")+"</td></tr><tr>"
      response.write "<TD bgcolor=#f0f0f0 width=72 align=center>&nbsp;新旧程度&nbsp;</td><td bgcolor=#fcfafc>"
      if len(Rs("degree"))>0 then
      response.write +Rs("degree")+" 成新</td></tr><tr>"    
else
      response.write +"? 成新</td></tr><tr>"
end if 
      response.write "<TD bgcolor=#f0f0f0 width=72 align=center>&nbsp;交易方式&nbsp;</td><td bgcolor=#fcfafc>"+Rs("trademode")+"</td></tr><tr>"  
      response.write "<td bgcolor=#f0f0f0 width=72 align=center>&nbsp;所在省份&nbsp;</td><td bgcolor=#fcfafc>"+Rs("province")+"</td></tr><tr>"
      response.write "<td bgcolor=#f0f0f0 width=72 align=center>&nbsp;所在城市&nbsp;</td><td bgcolor=#fcfafc>"+Rs("city")+"</td></tr><tr>"
      response.write "<TD bgcolor=#f0f0f0 width=72 align=center>&nbsp;货物描述&nbsp;</td><td bgcolor=#fcfafc>"+rs("content")+""
      response.write "</td></tr></table></div>"
      response.write "</td></tr></table></div>"
%>

<!--text end--> 
<!--#include file="adv.htm"-->  </td>  
          </tr>   
       </td>                                                       
    </tr>                                                       
  </table>         
         
        </table>                                                       
                                                 
</div>                                                       
                                            </body>                                                       
                                                       
</html>                                                       

⌨️ 快捷键说明

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