📄 goods_info.asp
字号:
<%@LANGUAGE="VBSCRIPT" CODEPAGE="936"%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>查看商品信息</title>
</head>
<body>
<!--#include file="top.asp"-->
<TABLE width=760 border=0 align=center cellpadding="4">
<TBODY>
<TR>
<TD align="center" vAlign=top>
<%
Dim Sql,Rs,goods_id
goods_id=SafeRequest(Request.QueryString("goods_id"))
set rs=server.createobject("adodb.recordset")
sql="select * from goods_info where goods_id="&request("goods_id")&""
rs.open sql,conn,1,3
%>
<%
conn.execute("update goods_info set goods_hits=goods_hits+1 where goods_id="&request("goods_id")&"")
%>
<div align="center">
<TABLE cellpadding="3" cellspacing="1" class="tableborder1" width="100%">
<TBODY>
<TR>
<TD class=th colspan="3"><img border="0" src="images/news.gif" width="15" height="15"> 商品名:<%=Conn.ExeCute("select goods_name from goods_info where goods_id="&Request("goods_id")&"")(0)%> <%
Select Case rs("font")
Case "1"
response.write "<img src=img/good.gif border=0 alt=推荐商品>"
End Select
%></TD>
</TR>
<TR>
<TD width="152" rowspan="6" class="tablebody1" align="center" ><a href=<%=rs("goods_pic")%> target=_blank>
<IMG src="<%=rs("goods_pic")%>" width="124" height="151"
border=0 style="border: 1px solid #000000; "></a></TD>
<TD width="581" class="tablebody1" colspan="2" ><font class="font">价格:</font><%=rs("goods_price")%>元</TD>
</TR>
<TR>
<TD width="581" class="tablebody1" colspan="2" ><font class="font">数量:</font><%=rs("goods_amount")%>个</TD>
</TR>
<TR>
<TD width="581" class="tablebody1" colspan="2" ><font class="font">上架时间:</font><%=rs("goods_date")%></TD>
</TR>
<TR>
<TD width="581" class="tablebody1" colspan="2" >
<div align="center">
<table border="0" width="100%" cellspacing="0" cellpadding="0" id="table1">
<tr>
<td colspan="3"><%if rs("AlipayStatus")=0 then
%><font color=""#008000"">不支持支付宝</font></td>
</tr>
<tr>
<td align="middle" width="9%">
<%
elseif rs("AlipayStatus")="1" then
%><img alt=支付宝付款 src=Images/AlipayStatus.gif border=0 width=16 height=16></td>
<td class="td" align="left" width="76%">此宝贝支持<a href="http://www.taobao.com/strade/strade.php"><font color="#FF0000">支付宝</font></a>,网上汇款免手续费。收货满意后卖家才能拿钱,货款都安全!
</td>
<td class="td" align="left" width="14%"><a href="https://www.alipay.com/payto:<%=Conn.ExeCute("select user_email from dduser where user_id="&rs("user_id")&"")(0)%>?subject=<%=rs("goods_name")%>&body=<%=rs("goods_content")%>&price=<%=rs("goods_price")%>&number=<%=rs("goods_amount")%>" target="_blank"><img border="0" src="images/zhifu.jpg" width="58" height="22"></a><%
end if
%> </td>
</tr>
</table>
</div>
</TD>
</TR>
<TR>
<TD width="581" class="tablebody1" colspan="2" ><font class="font">推荐程度:</font><%
Select Case rs("font")
Case "1"
response.write "<img src=img/good.gif border=0 alt=推荐商品>"
case "0"
response.write "不是推荐商品"
End Select
%></TD>
</TR>
<TR>
<TD width="581" class="tablebody1" colspan="2" >
<font class="font">商品描述:</font><%=rs("goods_content")%></TD>
</TR>
<TR>
<TD width="152" rowspan="6" class="tablebody1" align="center" >已被浏览 <%=rs("goods_hits")%> 次</TD>
<TD width="353" class="tablebody1" ><font class="font">店铺名称:</font><%=Conn.ExeCute("select shop_name from dduser where user_id="&rs("user_id")&"")(0)%></TD>
<TD width="222" class="tablebody1" rowspan="3" align="center" >[<a target="_blank" href="userinfo.asp?user_id=<%=rs("user_id")%>"><font color="#FF0000">查看该店铺掌柜信息资料</font></a>]</TD>
</TR>
<TR>
<TD width="353" class="tablebody1" ><font class="font">店铺掌柜:</font><%=Conn.ExeCute("select user_realname from dduser where user_id="&rs("user_id")&"")(0)%></TD>
</TR>
<TR>
<TD width="353" class="tablebody1" ><font class="font">店铺地址:</font><%=Conn.ExeCute("select shop_address from dduser where user_id="&rs("user_id")&"")(0)%></TD>
</TR>
<TR>
<TD width="353" class="tablebody1" ><font class="font">联系电话:</font><%=Conn.ExeCute("select shop_phone from dduser where user_id="&rs("user_id")&"")(0)%></TD>
<TD width="222" class="tablebody1" rowspan="2" align="center" >[<a target="_blank" href="shop_info.asp?user_id=<%=rs("user_id")%>"><font color="#FF0000">浏览该店铺的其它商品</font></a>]</TD>
</TR>
<TR>
<TD width="353" class="tablebody1" >
<font class="font">联系OICQ:</font><a target=blank href=http://wpa.qq.com/msgrd?V=1&Uin=<%=Conn.ExeCute("select user_qq from dduser where user_id="&rs("user_id")&"")(0)%>&Site=多多科技&Menu=yes><%=Conn.ExeCute("select user_qq from dduser where user_id="&rs("user_id")&"")(0)%></a></TD>
</TR>
</TBODY>
</TABLE>
</div>
</TD>
</TR>
</TBODY>
</TABLE>
<!--#include file="bottom.asp"-->
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -