📄 list.asp
字号:
<script language=javascript src=include/pic2.js></script>
<!--#include file="include/dbopenbd.asp" -->
<%
'获取上页传递的信息,aspsql对信息进行安全处理,防止用sql注入法控制数据库
id=aspsql(request("prodid"))
'参数正确性判断
if id="" then response.redirect "main.asp"
Set rsprod=conn.execute ("select * from s_produc where Online='1' and ProdId='"&id&"'")
if (rsprod.bof and rsprod.eof) then
response.redirect "main.asp"
else
MemoSpec=rsprod("MemoSpec")
Prodname=rsprod("Prodname")
LarCod=rsprod("LarCode")
Midcod=rsprod("MidCode")
prodid=rsprod("prodid")
'增加一次访问
conn.execute "UPDATE s_produc SET ClickTimes =ClickTimes+1 WHERE ProdId ='"&id&"'"
end if
%>
<html><head>
<title><%=prodname%> - <%=LarCod%> - <%=MidCod%> - <%=sitename%></title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<meta name="description" content="<%=sitename%>,<%=prodname%>,<%=LarCod%>,<%=MidCod%>">
<meta name="keywords" content="<%=sitename%>,<%=prodname%>,<%=LarCod%>,<%=MidCod%>">
<link rel="stylesheet" href="include/css.css" type="text/css">
<style type=text/css>
.pic1{MARGIN-TOP: -139px;MARGIN-left:0px}
.pic2{padding-top:6px}
</style>
</head>
<center>
<!--#include file="a_top.asp"-->
<TABLE width=760 border=0 cellpadding=0 cellspacing=0 align=center bgcolor=#ffffff class="grayline">
<TR><td bgcolor="FFFBF7" align="center" valign="top" width="185">
<!--#include file="a_login.asp"-->
<!--#include file="a_tree.asp"-->
</TD>
<td bgcolor="#CCCCCC" width="1"></td>
<td valign="top" align="center" bgcolor="#F7FAFD">
<TABLE border=0 width="570" cellspacing="2" cellpadding="2" align=center style="table-layout:fixed;word-break:break-all">
<tr><td height=30>目前位置:<a href=main.asp>首页</a> >
<%
if LarCod<>"" then response.write "<a href='class.asp?LarCode="&server.URLEncode(LarCod)&"'>"&LarCod&"</a> >"
response.write " 浏览<font color=red> "&id&"</font> 号商品详细资料"
%>
</td></tr>
<tr><td width="570" align="center" height="1" background="images/small/bgline.gif"></td></tr>
<tr><td width="570">
<table border=0 width=100%>
<tr><td valign=top width=150>
<table width=150 border=0 cellspacing=0 cellpadding=1 valign=middle align=center>
<tr><td class="pic2" align=center valign=bottom><img src=images/small/pic_bg_big<%=pic_xiaogao%>.gif>
<p class="pic1">
<% if rsprod("more_pic")=1 then response.write "<a href=more_pic.asp?ProdId="&rsprod("ProdId")&" target='_blank'>"%>
<img border=0 onload='DrawImage(this)' src='<%=rsprod("ImgPrev")%>' alt='<table border=0 width=300><tr><td width=70><b><%=rsprod("ProdNametext")%></b>:</td><td><%=rsprod("ProdName")%></td></tr><tr><td width=70><b>商品类别</b>:</td><td><%=rsprod("larcode")%></td></tr><td width=70><b><%=rsprod("ProdIdtext")%></b>:</td><td><%=rsprod("ProdId")%></td></tr><tr><td><b>浏览次数</b>:</td><td><%=rsprod("ClickTimes")%></td></tr></table>'></a></td></tr></table>
</td>
<td valign=top width=368>
<table border=0 width=100%>
<TR><TD height=20>【<%=rsprod("ProdNametext")%>】</td><td colspan=4> <%=lleft(rsprod("ProdName"),40)%></TD></TR>
<TR><TD height=20>【<%=rsprod("prodidtext")%>】</td><td colspan=4> <%=rsprod("prodid")%></TD></TR>
<%
if rsprod("Modeltext")<>"" and rsprod("Model")<>"" then response.write "<TR><TD height=20>【"&rsprod("modeltext")&"】</td><td colspan=4> "&rsprod("model")&"</TD></TR>"
if rsprod("Prodtext1")<>"" and rsprod("Prod1")<>"" then response.write "<TR><TD height=20>【"&rsprod("Prodtext1")&"】</td><td colspan=4> "&rsprod("Prod1")&"</TD></TR>"
if rsprod("prodtext2")<>"" and rsprod("prod2")<>"" then response.write "<TR><TD height=20>【"&rsprod("prodtext2")&"】</td><td colspan=4> "&rsprod("prod2")&"</TD></TR>"
%>
<tr><td valign=middle width=80>【商品价格】</td>
<td valign=bottom align=center width=90><%=FormatNum(rsprod("PriceList"),2)%><br><img border=0 src=images/small/price2.gif><br><%=rsprod("PriceListtext")%></td>
<td valign=bottom align=center width=90>
<%
if request.cookies("buyok")("userid")="" then
response.write "<b><font color=red>"&huiyuanjia&"</b></font><br>"
else
response.write "<b><font color=red>"&FormatNum(rsprod("PriceOrigin"),2)&"</font></b><br>"
end if
%>
<img border=0 src=images/small/price3.gif><br>
<%=rsprod("PriceOrigintext")%></font>
</td><td> </td></tr>
<%
if rsprod("quantity")="0" then
response.write "<TR><TD height=20>【商品说明】</td><td colspan=4> <b><font color=red>"&quehuo&"</font></b></TD></TR>"
elseif rsprod("PriceList")="0" then
response.write "<TR><TD height=20>【商品说明】</td><td colspan=4> <b><font color=red>"&wujiage&"</font></b></TD></TR>"
end if
%>
</table></td></tr></table>
</td></tr>
<tr><td align=center>
<% if rsprod("ImgPrev")="1" then
response.write "<a href="&rsprod("ImgPrev")&" target=_blank><img border=0 src=images/small/big.gif alt=浏览更多图片></a>"
else
response.write "<img border=0 src=images/small/big.gif alt=此商品没有大图></a>"
end if
if rsprod("quantity")<>"0" and rsprod("PriceList")<>0 then%>
<span style='cursor:hand' onClick="window.open('order/shop.asp?ProdId=<%=rsprod("ProdId")%>','add','scrollbars=yes,resizable=no,width=650,height=450')"><img border=0 src=images/small/buynow.gif alt=千寻万觅,要的就是她></span>
<%else%>
<img border=0 src=images/small/buynow.gif alt=暂时不能购买此商品>
<%end if%>
<span style='cursor:hand' onClick="window.open('order/fav.asp?ProdId=<%=rsprod("ProdId")%>','add','scrollbars=yes,resizable=no,width=650,height=450')">
<img border=0 src=images/small/favnow.gif alt=好东东,收藏起来先></span>
</td></tr>
<tr><td><img border=0 src=images/small/intro.gif></td></tr>
<tr><td style="PADDING-LEFT:1em;PADDING-right:1em"><%=MemoSpec%></td></tr>
<%
rsprod.close
set rsprod=nothing
%>
<tr><td height=20> </td></tr>
<tr><td><img border=0 src=images/small/xiangguan.gif></td></tr>
<tr><td>
<!--#include file="xiangguan.asp"-->
</td></tr>
<tr><td><img border=0 src=images/small/pinglun.gif></td></tr>
<tr><td align=center>
<!--#include file="p_pinglun.asp"-->
</td></tr>
<tr><td align=center>
<table cellSpacing="0" cellPadding="0" width="96%" align="center" border="0" height=50 valign=middle>
<tr>
<td align="right">
<img src="images/small/print.gif" align="absMiddle">
<a href="javascript:window.print();">打印此页</a>
<img src="images/small/addfav.gif" align="absMiddle">
<a href="javascript:window.external.AddFavorite('<%=siteurl%>', '<%=sitename%>')">加入收藏</a>
<img src="images/small/gotop.gif" align="absMiddle"><a href="#">返回顶部</a>
</td>
</tr>
</table>
</td></tr>
</table>
</TD>
</TR>
</TABLE>
<!--#include file="a_bottom.asp"-->
</center>
</body>
</html>
<%
conn.close
set conn=nothing
%>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -