📄 views_tao.asp
字号:
<!--#include file="top.asp"-->
<div align="center">
<TABLE width=980 border=0 cellPadding=0 cellSpacing=0 bgcolor="#FFFFFF">
<%
hw_id=Request("hw_id")
tao_id=Request("tao_id")
If Not(isNumeric(hw_id)) or Not(isNumeric(tao_id)) Then
Response.Write "<p align=center>请勿进行非法操作!</p>"
Response.End
End If
sql="select * from hw where hw_id="&hw_id&""
rs.open sql,conn,1,3
if rs.eof then
%>
<tr><td height="200" colspan="3" align="center">没有找到你要查看的商品,您可以<a href="search.asp"><font color="#FF0000">点击这里进行详细搜索</font></a>!</td></tr>
<%
else
rs("hw_views")=rs("hw_views")+1
rs.update
sort_id=rs("sort_id")
nsort_id=rs("nsort_id")
pinpai_id=rs("pinpai_id")
Set rss= Server.CreateObject("ADODB.Recordset")
sql="select * from sort where sort_id="&sort_id&""
rss.open sql,conn,1,1
sort_name=rss("sort_name")
Set rs2= Server.CreateObject("ADODB.Recordset")
sql="select * from nsort where nsort_id="&nsort_id&""
rs2.open sql,conn,1,1
nsort_name=rs2("nsort_name")
rs2.close
if pinpai_id<>0 then
sql="select * from pinpai where pinpai_id="&pinpai_id&""
rs2.open sql,conn,1,1
pinpai_name=rs2("pinpai_name")
rs2.close
end if
if session("recent")="" then
session("recent")=hw_id
elseif session("recent")<>"" then
recentid=split(session("recent"),"/")
for i=0 to ubound(recentid)
if hw_id=recentid(i) then
jiaru=1
end if
next
if jiaru<>1 then
session("recent")=hw_id&"/"&session("recent")
end if
end if
%>
<tr><td height="40" width="16">
<img border="0" src="img/v1.gif" width="23" height="40"></td>
<td height="40" width="950" background="img/v3.gif"><a href="product/sort<%=sort_id%>-1.htm"><%=sort_name%></a> >>
<a href="product/nsort<%=nsort_id%>-1.htm"> <%=nsort_name%></a> >> <%=rs("hw_name")%></td>
<td height="40" background="img/v2.gif" width="14" align="right">
<img border="0" src="img/v2.gif" width="23" height="40"></td>
</tr>
</table>
<table width="980" cellspacing="0" cellpadding="0"><tr>
<td align="center" width="300" rowspan="2" height="220">
<table border="0" cellpadding="0" cellspacing="0" width="206" id="table2" background="img/VBG.gif" height="206">
<tr>
<td align="center">
<img style="CURSOR: hand" onclick="javascript:window.open(cur_pic_id,'','')" src="<%pic=split(rs("tao_pic"&tao_id),"*")%><%=pic(1)%>" onerror="this.src='img/noimage.jpg';cur_pic_id='img/noimage.jpg';" name="rImage" width="200" height="200" border="0"></td>
</tr>
</table></td>
<td align="center" width="450" valign="top">
<table cellspacing="0" cellpadding="5" width="450"><tr>
<td width="400" height="26" style="font-size: 12pt; color: #000080; font-weight: bold" colspan="2"><b>商品名称:<%=rs("hw_name")&rs("tao_name"&tao_id)%></b></td>
</tr>
<tr><td width="400" height="26" colspan="2">商品品牌:<%=pinpai_name%> 商品编号:<%=rs("hw_sn")%> 产品积分:<font color="#D03430"><%=rs("hw_jifen")%></font></td></tr>
<tr><td width="400" height="26" colspan="2">本站价格:<font color="#D03430">¥<%=rs("tao_price"&tao_id)%></font>元</td></tr>
<form action="basket.asp?hw_id=<%=rs("hw_id")%>" method=post>
<%if rs("kxaa")<>"" and rs("kxab")<>"" then%><tr>
<td width="400" height="26" colspan="2"><%=rs("kxaa")%>:<select size="1" name="kxa"><%kxa=split(rs("kxab"),"/")
for i=0 to ubound(kxa)%>
<option value="<%=trim(kxa(i))%>" selected><%=trim(kxa(i))%></option><%next%></select></td></tr><%end if%>
<%if rs("kxba")<>"" and rs("kxbb")<>"" then%><tr>
<td width="400" height="26" colspan="2"><%=rs("kxba")%>:<select size="1" name="kxb"><%kxb=split(rs("kxbb"),"/")
for i=0 to ubound(kxb)%>
<option value="<%=trim(kxb(i))%>" selected><%=trim(kxb(i))%></option><%next%></select></td></tr><%end if%>
<tr><td width="120" height="13">定购数量:<input type="text" name="count" size="1" value="1" class="input">
</td><td width="330" height="13"><input type=image src="img/order.gif" name="I1">
<a href="com.asp?action=add&hw_id=<%=rs("hw_id")%>"><img border="0" src="img/com.gif" width="79" height="23"></a></td></tr></form>
<%sql="select top 1 * from payonline"
rs2.open sql,conn,1,1
if rs2("alipay")=1 or rs2("paypal")=1 then
%><tr><td height="26" colspan="2">
<table border="0" cellpadding="0" cellspacing="0" id="table36">
<tr><%if rs2("alipay")=1 then%><td width="145">
<a target="_blank" title="欢迎使用支付宝安全支付平台,安全购物有保障。" href="https://www.alipay.com/payto:<%=rs2("pay_zhifubao")%>?partner=2088002046268961&subject=<%=rs("hw_name")&rs("tao_name"&tao_id)%>&body=<%=rs("hw_name")&rs("tao_name"&tao_id)%>&price=<%=rs("tao_price"&tao_id)%>&type=1&express_fee=<%=rs2("pay_fee")%>&readonly=<%=rs2("pay_change")%>">
<img border="0" src="img/pay/alipay_buy.gif"></a></td><%end if%>
<%if rs2("paypal")=1 then%>
<td width="145"><table border="0" cellpadding="0" cellspacing="0" width="100%"><form action="https://www.paypal.com/cgi-bin/webscr" method="post" target="_blank">
<tr>
<td><input type="hidden" name="cmd" value="_xclick">
<input type="hidden" name="business" value="<%=rs2("pay_paypal")%>">
<input type="hidden" name="item_name" value="<%=rs("hw_name")&rs("tao_name"&tao_id)%>">
<input type="hidden" name="amount" value="<%=rs("tao_price"&tao_id)+rs2("pay_fee")%>">
<input type="hidden" name="no_note" value="1">
<input type="hidden" name="currency_code" value="CNY">
<input type="hidden" name="bn" value="PP-BuyNowBF">
<input type="image" src="img/pay/paypal_buy.gif" border="0" name="submit" width="115" height="24" alt="请注意:使用Paypal支付的价格包含运费!"></td>
</tr></form>
</table>
</td><%end if%></tr></table>
</td></tr><%end if
rs2.close%></table>
</td>
<td valign="top" align="center" width="230" rowspan="2">
<table border="0" cellpadding="0" cellspacing="0" width="100%">
<tr><td style="line-height:20px" bgcolor="#FFFFFF" width="75" height="30" align="center">
<img border="0" src="img/telv.gif" width="70" height="42"></td>
<td style="line-height:20px" bgcolor="#FFFFFF" height="30" valign="bottom"><%=rs7("tel")%></td>
</tr>
<tr><td style="line-height:20px" bgcolor="#FFFFFF" width="75" height="30" align="center">
<img border="0" src="img/email.gif" width="70" height="42"></td>
<td style="line-height:20px" bgcolor="#FFFFFF" height="30" valign="bottom"><%=rs7("mail")%></td>
</tr>
<tr><td style="line-height:20px" bgcolor="#FFFFFF" width="75" height="30" align="center">
<img border="0" src="img/fax.gif" width="70" height="42"></td>
<td style="line-height:20px" bgcolor="#FFFFFF" height="30" valign="bottom"><%=rs7("fax")%></td>
</tr>
<tr><td style="line-height:20px" bgcolor="#FFFFFF" width="75" height="30" align="center">
<img border="0" src="img/qq.gif" width="70" height="42"></td>
<td style="line-height:20px" bgcolor="#FFFFFF" height="30" valign="bottom"><%=rs7("oicq")%></td>
</tr>
<tr><td style="line-height:20px" bgcolor="#FFFFFF" width="75" height="30" align="center">
<img border="0" src="img/msn.gif" width="70" height="42"></td>
<td style="line-height:20px" bgcolor="#FFFFFF" height="30" valign="bottom"><%=rs7("msn")%></td>
</tr></table>
</td></tr>
<tr>
<td width="375"><p><%
pic=split(rs("tao_pic"&tao_id),"*")
for i=1 to ubound(pic)
%>
<%if i=1 then%>
<img onload="document.rImage.src='<%=trim(pic(i))%>';cur_pic_id='<%=trim(pic(i))%>';" onmouseover="document.rImage.src='<%=trim(pic(i))%>';cur_pic_id='<%=trim(pic(i))%>';" src="<%=trim(pic(i))%>" onerror="this.src='img/noimage.jpg'" height="50" style="border: 1px solid #CCCCCC;" width="50">
<%else%>
<img onmouseover="document.rImage.src='<%=trim(pic(i))%>';cur_pic_id='<%=trim(pic(i))%>';" src="<%=trim(pic(i))%>" onerror="this.src='img/noimage.jpg'" height="50" style="border: 1px solid #CCCCCC;" width="50">
<%end if
next
%></p></td>
</tr>
<form action="basket.asp?hw_id=<%=rs("hw_id")%>" method=post>
</form></table>
<div align="center">
<table border="0" cellpadding="0" cellspacing="0" width="980" id="table1">
<tr>
<td width="740" align="center" height="100" valign="top">
<table border="0" cellpadding="0" cellspacing="0" width="700">
<%
if rs("tao_name1")<>"" and rs("tao_price1")<>"" then
%>
<tr><td height=36 style="font-size: 10pt; font-weight: bold; color:#FA860B" background="img/v7.gif" class="yin"><p style="margin-left: 35px">
超值套装:</td></tr>
<tr><td background="img/v8.gif" align="center">
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -