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

📄 goods_info.asp

📁 一个较好的网上购物系统 是基于ASP的多用户网上商城
💻 ASP
字号:
<%@LANGUAGE="VBSCRIPT" CODEPAGE="936"%>
<!--#include file="conn.asp"-->
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>《<%=Conn.ExeCute("select goods_name from goods_info where goods_id="&Request("goods_id")&"")(0)%>》</title>
<LINK href="style.css" type=text/css rel=stylesheet>
</head>
<body>
<TABLE width="760" class=page border=0 align="center" cellPadding=0 cellSpacing=0>
  <TBODY>
    <TR> 
      <TD>
<!--#include file="top.asp"-->
<TABLE width=760 border=0 align=center cellpadding="4">
  <TBODY>
    <TR> 
      <TD align="center" vAlign=top>
        <%
set rs=server.createobject("adodb.recordset")
sql="select * from goods_info where goods_id="&request("goods_id")&""
rs.open sql,conn,1,3
if rs.eof or rs.bof then
%>
        <TABLE cellSpacing=0 cellPadding=0 width="450" border=0>
          <TBODY>
            <TR> 
              <TD bgColor=#E4F4E1 height=21> <TABLE width="100%" border=0>
                  <TBODY>
                    <TR> 
                      <TD align=middle width=25>
						<img border="0" src="images/news.gif" width="15" height="15"></TD>
                      <TD><%=Conn.ExeCute("select goods_name from goods_info where goods_id="&Request("goods_id")&"")(0)%></TD>
                      <TD align="right"> 该商品已被浏览 <font color="#FF0000"><%=rs("goods_hits")%></font> 次</TD>
                    </TR>
                  </TBODY>
                </TABLE></TD>
            </TR>
            <TR> 
              <TD align="center">找不到该商品!</TD>
            </TR>
          </TBODY>
        </TABLE>
        <%
else
conn.execute("update goods_info set goods_hits=goods_hits+1 where goods_id="&request("goods_id")&"")
%>
        <TABLE cellSpacing=0 cellPadding=0 width="450" border=0 class=page>
          <TBODY>
            <TR> 
              <TD bgColor=#E4F4E1 height=21> <TABLE width="100%" border=0>
                  <TBODY>
                    <TR> 
                      <TD align=middle width=25>
						<img border="0" src="images/news.gif" width="15" height="15"></TD>
                      <TD><%=Conn.ExeCute("select goods_name from goods_info where goods_id="&Request("goods_id")&"")(0)%></TD>
                      <TD align="right"> 该商品已被浏览 <font color="#FF0000"><%=rs("goods_hits")%></font> 次</TD>
                    </TR>
                  </TBODY>
                </TABLE></TD>
            </TR>
            <TR> 
              <TD align="center"> <table width="92%" border="0" cellpadding="4">
                  <tr> 
                    <td><a href=<%=rs("goods_pic")%> target=_blank><IMG src="<%=rs("goods_pic")%>" width="80" height="100" 
                  border=0 style="border: 1px solid #008000"></a></td>
                    <td><table width="100%" border="0">
                        <tr> 
                          <td><font color="#009933">价格:</font><%=rs("goods_price")%>元</td>
                          <td><font color="#009933">数量:</font><%=rs("goods_amount")%>个</td>
                          <td><font color="#009933">有效期:</font><%=rs("goods_long")%>天</td>
                        </tr>
                        <tr> 
                          <td colspan="3"><font color="#009933">上架时间:</font><%=rs("goods_date")%></td>
                        </tr>
                        <tr> 
                          <td colspan="3"><font color="#009933">店铺名称:</font><%=Conn.ExeCute("select shop_name from user_info where user_id="&rs("user_id")&"")(0)%></td>
                        </tr>
                        <tr> 
                          <td colspan="3"><font color="#009933">店铺掌柜:</font><%=Conn.ExeCute("select user_realname from user_info where user_id="&rs("user_id")&"")(0)%></td>
                        </tr>
                        <tr> 
                          <td colspan="3"><font color="#009933">店铺地址:</font><%=Conn.ExeCute("select shop_address from user_info where user_id="&rs("user_id")&"")(0)%></td>
                        </tr>
                        <tr> 
                          <td colspan="3"><font color="#009933">联系电话:</font><%=Conn.ExeCute("select shop_phone from user_info where user_id="&rs("user_id")&"")(0)%></td>
                        </tr>
<tr> 
                          <td colspan="3"><font color="#009933">联系OICQ:</font><a target=blank href=http://wpa.qq.com/msgrd?V=1&Uin=<%=Conn.ExeCute("select user_qq from user_info where user_id="&rs("user_id")&"")(0)%>&Site=网上商城&Menu=yes><%=Conn.ExeCute("select user_qq from user_info where user_id="&rs("user_id")&"")(0)%></a></td>
                        </tr>
                      </table></td>
                  </tr>
                  <tr> 
                    <td colspan="2"><img src="images/goods.gif" width="16" height="15"> 
                      <font color="#009933">商品描述:</font><%=left(rs("goods_content"),100)%></td>
                  </tr>
                  <tr> 
                    <td colspan="2"><img src="images/goods.gif" width="16" height="15"> 
                      <font color="#009933">商品描述:</font><%=left(rs("goods_content"),100)%></td>
                  </tr>
                  <tr align="right"> 
                    <td colspan="2">[<a href="shop_info.asp?user_id=<%=rs("user_id")%>"><font color="#FF0000">浏览该店铺的其它商品</font></a>]</td>
                  </tr>
                </table>
                <%end if%></TD>
            </TR>
          </TBODY>
        </TABLE>
        </TD>
    </TR>
  </TBODY>
</TABLE>
<!--#include file="bottom.asp"--> </TD>
    </TR>
  </TBODY>
</TABLE>
</body>
</html>

⌨️ 快捷键说明

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