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

📄 goodsview.asp

📁 A Design and Implementation of The Online Shopping System Abstract: Along with the development
💻 ASP
字号:
<!--#include File="ConnDB.asp"-->


<html>
<head>
<title>查看商品信息</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link href=style.css rel=STYLESHEET type=text/css>
</head>
<Script language="javascript">
function newOrder(url) {
  var oth="toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,left=200,top=200";
  oth = oth+",width=500,height=150";
  var newOrder=window.open(url,"newOrder",oth);
  newOrder.focus();
  return false;
}

//放入购物车
function OpenBask(goodsid){
  var url;
  url = "shop/BasketIn.asp?id=" + goodsid;
  newOrder(url);
}
</Script>

<body>
<%
  set rs=server.createobject("adodb.recordset")  
  Dim id,iname
  id = Request.QueryString("id")
  sql = "Select * From Goods Where id="&Cint(id)
  Set rsGoods = conn.Execute(sql)
  If rsGoods.Eof Then
    Response.Write "没有此商品信息"
    Response.End
  Else
    iname = rsGoods("ImageFile")
    '更新阅读次数
    sql = "Update Goods Set ReadCount=ReadCount+1 Where id="&Cint(id)
    conn.Execute(sql)
%>
<form method="POST"  name="form1">
     <table border="1" width="100%" cellspacing="1" bordercolorlight="#C0C0C0" bordercolordark="#FFFFFF">
          <tr> 
            <td width="70%"><font color=blue>商品类别</font>
<%
  sql = "SELECT * FROM GoodsType WHERE id=" & rsGoods("typeid")
  rs.Open sql,conn,3,3
  If rs.EOF Then
%>  没有类别信息
<%
  Else
    Response.Write(rs("type"))
  End If
  rs.Close
%>
              </select>
            </td>
            <td width="30%" rowspan="5" align=center><% If IsNull(iname) Or iname = "" Then%>
            <img src="images\noImg.jpg" width="120" border=0>
   			<%Else%><img src="admin\images\<%=rsGoods("ImageFile")%>" width="90" border=0>
        	<%End If%></td>
				</tr>
          <tr> 
            <td><font color=blue>商品名称</font>
            <%=rsGoods("Name")%></td>
          </tr>
          <tr> 
            <td><font color=blue>商品编号</font>
            <%=rsGoods("Sn_Number")%></td>
          </tr>
          <tr> 
            <td><font color=blue>生产公司</font>
            <%=rsGoods("Producer")%></td>
          </tr>
          <tr> 
            <td><font color=blue>包装型号</font>
            <%=rsGoods("Package")%></td>
          </tr>
          <tr> 
            <td colspan="2"><font color=blue>销售价格</font>
            <%=rsGoods("SalePrice")%></td>
          </tr>
          <tr> 
            <td colspan="2"><font color=blue>商品简介</font></td>
          </tr>
          <tr> 
            <td colspan="2"><%=rsGoods("Content")%></td>
          </tr>
        </table>
        <p align="center"><center>
    <a href='javascript:OpenBask(<%=rsGoods("id")%>)'><img border="0" src="images/order.gif"></a><BR><BR>
        <a href="javascript:window.close();">[关闭]</a></center></p>
      </form>
<%End If%>      
</body>















⌨️ 快捷键说明

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