📄 productdetail.asp
字号:
<%
dim dbpath
dbpath="../"
%>
<!--#include file="../db_conn.asp"-->
<!--#include file="../comm/comm.asp"-->
<!--#include file="../comm/sub.asp"-->
<!--#include file="../comm/my_request.asp"-->
<!--begin TOP-->
<%
'说明 head(a,b,c)
'a为页标题
'b为页描述
'c为页关键字
id=cint(my_request("id",1))
sql="update yqj_product set hitnums=hitnums+1 where id="&id
conn.execute (sql)
sql="select id,bid,sid,p_name,p_spec,p_unit,p_nums,p_cmoney,p_mmoney,big_pic,small_pic,content,flag,hitnums,vip_mmoney from yqj_product where id="&id&" and issale=1"
set rs=conn.execute (sql)
idd=rs("id")
bid=rs("bid")
sid=rs("sid")
pp_name=rs("p_name")
p_spec=rs("p_spec")
p_unit=rs("p_unit")
p_nums=rs("p_nums")
p_cmoney=rs("p_cmoney")
p_mmoney=rs("p_mmoney")
big_pic=rs("big_pic")
small_pic=rs("small_pic")
content=rs("content")
flag=rs("flag")
hitnums=rs("hitnums")
vip_mmoney=rs("vip_mmoney")
rs.close
set rs=nothing
sqlb="select txt_big_class from big_class where id="&bid
sqls="select txt_small_class from small_class where id="&sid
set rs=conn.execute (sqlb)
txt_big_class=rs("txt_big_class")
rs.close
set rs=nothing
set rs=conn.execute (sqls)
txt_small_class=rs("txt_small_class")
rs.close
set rs=nothing
set rs1=conn.execute("select count(id) as num from product_leave where pid="&idd)
count=rs1("num")
rs1.close
Set rs1=nothing
call head(r(26)&"商品介绍-"&pp_name,r(27),r(28))
%>
<SCRIPT language=javascript src="../images/taobao.js" type=text/javascript></SCRIPT>
<SCRIPT language=JavaScript src="../URLEncode.js"></SCRIPT>
<!--end TOP-->
<div align="center">
<table border="0" width="760" cellpadding="0" style="border-collapse: collapse">
<tr>
<td width="182" valign="top"><!--#include file="../left.asp"--> </td>
<td width="15" valign="top"> </td>
<td width="563" valign="top">
<table border="0" width="563" id="table1" cellpadding="0" style="border-collapse: collapse">
<tr>
<td width="72" class="topmanu_bg" height="20">
<p align="center">商品介绍</td>
<td width="490" height="13">
<p align="left"> </td>
</tr>
<tr>
<td width="563" colspan="2" class="right_nav" height="3"></td>
</tr>
</table>
<table border="0" width="563" id="table2" cellpadding="0" style="border-collapse: collapse">
<tr>
<td width="286" valign="top">
</td>
<td width="287" valign="top">
</td>
</tr>
<tr>
<td width="286" valign="top">
<table border="0" width="100%" id="table4" cellpadding="0" style="border-collapse: collapse">
<tr>
<td>
<p align="center">
<img src="../upimg/<%=small_pic%>" border=0>
</td>
</tr>
<tr>
<td>
<p align="center">
<img border="0" src="../images/zoomin.gif" width="18" height="20" align="absmiddle">
<a target="_blank" href="../bigpic.asp?bigpic=<%=big_pic%>">放大图片</a></td>
</tr>
</table>
</td>
<td width="287" valign="top">
<table border="0" width="100%" id="table5" cellpadding="4" style="border-collapse: collapse" height="111">
<tr>
<td height="23">货号:<span class="redlight"><%=p_spec%></span> </td>
</tr>
<tr>
<td height="31"><b><span class="b"><%=pp_name%> </span></b></td>
</tr>
<tr>
<td>是否有货:
<%
if p_nums<=0 then
response.write "缺货"
elseif p_nums>0 then
response.write "有货"
else
response.write "有"
end if
%></td>
</tr>
<tr>
<td>商品趋势:
<%
if instr(1,flag,1) then
response.write "<font color=#FF0000>荐 </font>"
end if
if instr(1,flag,2) then
response.write "<font color=#FF0000>特 </font>"
end if
if instr(1,flag,3) then
response.write "<font color=#FF0000>新 </font>"
end if
if instr(1,flag,4) then
response.write "<font color=#FF0000>热</font>"
end if
%></td>
</tr>
<tr>
<td>市场价格:<s>¥<%=FormatNumber(p_cmoney,2,-1)%> 元/<%=p_unit%></s></td>
</tr>
<tr>
<td>网站价格:<b><font color="#FF0000"><span class="font_red b">¥<%=FormatNumber(p_mmoney,2,-1)%></span></font></b>元/<%=p_unit%></td>
</tr>
<tr>
<td>
VIP价格:<b><font color="#FF0000"><span class="font_red b">¥<%=vip_mmoney%></span></font></b>元/<%=p_unit%></td>
</tr>
<tr>
<td>
有关此商品的评论(<u><font color="#FF0000"><%=count%></font></u>)条</td>
</tr>
<tr>
<td>
<p align="center">
<a href=# onclick="javascript:window.open('../buy.asp?id=<%=idd%>','newwindow', 'height=500, width=600, toolbar=no, menubar=no,scrollbars=auto, resizable=yes, location=no, status=no')" title="加入购物车">
<img border="0" src="../images/buy.bmp" width="74" height="25" align="absmiddle"></a>
<a href=# onclick="javascript:window.open('../message.asp?id=<%=idd%>','replay', 'height=500, width=600, toolbar=no, menubar=no,scrollbars=auto, resizable=yes, location=no, status=no')" title="点击查看评论"><img border="0" src="../images/guest.bmp" width="76" height="25" align="absmiddle"></a>
浏览:<%=hitnums%>次</td>
</tr>
<tr>
<td>
<a href=# onclick="javascript:window.open('../alpay.asp?id=<%=idd%>','newwindows', 'height=500, width=600, toolbar=no, menubar=no,scrollbars=auto, resizable=yes, location=no, status=no')" title=使用支付宝购买此商品><img border="0" src="../images/alipay_bwsx.gif"></a></td>
</tr>
<tr>
<td>
<script language=javascript>
var taobaoid;
var taobaos;
taobaos="<%=r(10)%>";
taobaoid=URLEncode(taobaos)
document.writeln("<a target=_blank href=http://amos1.taobao.com/msg.ww?v=2&s=1&uid="+taobaoid+">")
document.writeln("<img border=0 alt=点击这里给我发消息 src=http://amos1.taobao.com/online.ww?v=2&s=1&uid="+taobaoid+">")
document.writeln("</a>")
</script> <a target=blank href="http://wpa.qq.com/msgrd?V=1&Uin=<%=r(8)%>&Site=客户服务&Menu=yes"><img border=0 SRC="http://wpa.qq.com/pa?p=1:<%=r(8)%>:16" alt=QQ交谈></a></td>
</tr>
</table>
</td>
</tr>
</table>
<table border="0" width="100%" id="table3" cellpadding="4" style="border:1px solid #D9D9D9; border-collapse: collapse; padding-left:4px; padding-right:4px; padding-top:1px; padding-bottom:1px" bordercolor="#D9D9D9">
<tr>
<td bgcolor="#EFEFEF" background="images/Detailpage_title_bg.gif" height="30">
<font color="#666666"><b>↓此商品更多信息</b></font></td>
</tr>
<tr>
<td style="word-break:break-all" width="563"><%=content%></td>
</tr>
<tr>
<td style="word-break:break-all" width="563"> </td>
</tr>
<tr>
<td style="word-break:break-all" width="563" bgcolor="#EFEFEF">
<font color="#666666"><b>相关产品</b></font></td>
</tr>
<tr>
<td width="563"><table border="0" width="215" id="table15" cellspacing="0" cellpadding="5">
<tr><%
set rsj=conn.execute ("select top 6 id,small_pic,p_name,p_mmoney from yqj_product where sid="&sid)
if rsj.eof then
response.write "nothing"
else
p=1
do while not rsj.eof and p<=6
pppid=rsj("id")
pic1=rsj("small_pic")
p_name=rsj("p_name")
p_mmoney=rsj("p_mmoney")
%>
<td align="center">
<a href=ProductDetail.asp?id=<%=pppid%>><img border="1" src="../upimg/<%=pic1%>" width="91" height="64"></a><br>
<a href=ProductDetail.asp?id=<%=pppid%>><%=p_name%></a><br>
<font color="#FF0000">
<%=p_mmoney%>元</font></td>
<%
rsj.movenext
p=p+1
loop
rsj.close
set rsj=nothing
end if
%>
</table></td>
</tr>
</table>
</td>
</tr>
</table>
</div>
<!--begin end-->
<%call boot()%><!--end end-->
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -