<%
'商易仿淘宝4.0(多用户)
'ACCESS版演示网站：http://www.ftaobao.com(商易仿淘宝商城)
'SQL版演示网站：http://sql.ftaobao.com
'电话：0571-56907100
'QQ：1147100
%>

<!--#include file="FFunction.asp"-->
<!--#include file="FHeadTitle.asp"-->
<!--#include file="include/coding.asp "-->
<!--#include file="include/tishi.asp" -->
<!--#include file="include/page.asp" -->

<style type="text/css" media="screen">
	@import url("css/v1.2.php@t=2006512.css");
	@import url("css/component.php@t=2006512.css");
@import url("home/css/sys/detail.php@t=20060522.css");
</style>

<body class="<%= pagestyle%>">
<div class="HackBox">
  <!--#include file="FHeadAll.asp"-->
</div>
<%IsShowHotKey=false%>
<%
id=decode(shopnet("id"))
If id<>"" And isnumeric(id) then
'ON ERROR RESUME NEXT
Set rs= Server.CreateObject("ADODB.Recordset")
sql="select * from chanpin where id="&id&""
rs.open sql,conn,3,3
if rs.eof then
width="500"
my_bt="<font color=red>操 作 失 败 ！</font><br>·<b>对不起！参数错误！！！</b><br>·该商品不存在或已被删除，请确保您的连接来自本网站！"
my_nr="<meta http-equiv=refresh content=5;url=javascript:history.go(-1)><img src=../../pics/2k5/sys/component/icon_arrow_r.gif><a href=../index.asp>返回首页</a><br><img src=../../pics/2k5/sys/component/icon_arrow_r.gif><a href=# onclick='javascript:window.history.go(-1)'>返回上一页</a>"
xitongtishi()
Response.Write"</td></tr></table>"%>
<!--#include file="bottom.asp" -->
<%
'商易仿淘宝4.0.1演示地址
'http://www.ftaobao.com
response.end
else 
buyxianzhi=rs("buyxianzhi")
rs("rq")=rs("rq")+1
shopid=rs("userid")
huiyuan=rs("huiyuan")

sj3=rs("sj2")
rs.update
'浏览记录
Sub cookies_add( add, user_cpid  )
If Len(user_cpid) = 0 Then
user_cpid  = "" & add & ""
ElseIf InStr( user_cpid , add ) <= 0 Then
user_cpid  = add & "," & user_cpid
End If
End Sub
user_cpid = Request.Cookies("shop."&my_url)("cpid")
cpid = Split(decode(request("id")), ",")
For I=0 To UBound(cpid)
cookies_add cpid(I), user_cpid 
Next
Response.Cookies("shop."&my_url)("cpid") = user_cpid 
Response.Write "<TITLE>"&my_name&"----"&rs("mc")&"</TITLE>"
%>
<!--#include file="include/defray.asp" -->
<%
conn.execute("Delete * from js where datediff('d',sj,now())>7 or cpid in (select id from chanpin where cang<>0 or tui<>0)")
if rs("cang")=0 and rs("tui")=0 then
set rsjs = conn.execute("select id from js where cpid="&rs("id")&"")
if rsjs.eof then
conn.execute("Insert into js(cpid,mc,lbid)values("&rs("id")&",'"&rs("mc")&"','"&rs("lbid")&"')")
else
conn.execute("Update js set js = js+1 where cpid="&rs("id")&"")
end if
rsjs.close
set rsjs=nothing
end if
end if
'处理拍卖
if shopnet("pai")="yes" and Request.Cookies(Rikee)("huiyuan")<>"" and shopnet("jg")<>"" and isNumeric(shopnet("jg")) then
	jg=rs("jg2")+rs("jg3")
	if rs("p_zt")<>0 then
	width="500"
	my_bt="操 作 失 败 ！<b>对不起！</b></font><br>·该产品已结标或被取消，要查看竞标结果请到会员中心！"
	my_nr="<meta http-equiv=refresh content=5;url=?id="&encode(rs("id"))&"><img src=../../pics/2k5/sys/component/icon_arrow_r.gif><a href=../index.asp>返回首页</a><br><img src=../../pics/2k5/sys/component/icon_arrow_r.gif><a href=# onclick='javascript:window.history.go(-1)'>返回上一页</a>"
	xitongtishi()
	Response.Write"</td></tr></table>"%>
<!--#include file="bottom.asp" -->
	<%response.end
	end if

if request.cookies(rikee)("huiyuan")=shopnet("huiyuanname") then
	width="500"
	my_bt="操 作 失 败 ！<b>对不起！</b></font><br>·您不能竞拍自己的商品！"
	my_nr="<meta http-equiv=refresh content=5;url=?id="&encode(rs("id"))&"><img src=../../pics/2k5/sys/component/icon_arrow_r.gif><a href=../index.asp>返回首页</a><br><img src=../../pics/2k5/sys/component/icon_arrow_r.gif><a href=# onclick='javascript:window.history.go(-1)'>返回上一页</a>"
	xitongtishi()
	Response.Write"</td></tr></table>"%>
<!--#include file="bottom.asp" -->
	<%response.end
	end if




	if ccur(shopnet("jg"))<=ccur(jg2) then
	width="500"
	my_bt="操 作 失 败 ！<b>对不起！参数错误！！！</b></font><br>·您输入的竞价价格"&shopnet("jg")&"元小于此次投标当前价格加竞价幅度"&jg&"元，竞标失败！"
	my_nr="<meta http-equiv=refresh content=5;url=?id="&encode(rs("id"))&"><img src=../../pics/2k5/sys/component/icon_arrow_r.gif><a href=../index.asp>返回首页</a><br><img src=../../pics/2k5/sys/component/icon_arrow_r.gif><a href=# onclick='javascript:window.history.go(-1)'>返回上一页</a>"
	xitongtishi()
	Response.Write"</td></tr></table>"%>
	<!--#include file="bottom.asp" -->
	<%response.end
else
if conn.execute("select count(id) from paimai where pid="&id&" and huiyuan='"&Request.Cookies(Rikee)("huiyuan")&"' and datediff('n',sj,now())<1")(0)=0 then
rs("jg2")=shopnet("jg")
rs.update
conn.execute("Insert into paimai(pid,jg,userid,enddate,huiyuan)values("&rs("id")&","&shopnet("jg")&","&shopid&",'"&sj3&"','"&Request.Cookies(Rikee)("huiyuan")&"')")
Response.Write("<script>alert(""竞标已被系统成功记录"");location.href=""?id="&encode(rs("id"))&""";</script>")
Response.redirect "user/paimai.asp?id="&encode(rs("id"))&"&shopid="&shopid&""
response.end
else
my_bt="操 作 失 败 ！<b>对不起！</b></font><br>·为防止作弊每个会员对同一个产品的竞标时间间隔要在20分钟以上！"
my_nr="<meta http-equiv=refresh content=5;url=?id="&encode(rs("id"))&"><img src=../../pics/2k5/sys/component/icon_arrow_r.gif><a href=../index.asp>返回首页</a><br><img src=../../pics/2k5/sys/component/icon_arrow_r.gif><a href=# onclick='javascript:window.history.go(-1)'>返回上一页</a>"
xitongtishi()
Response.Write"<br><br><br><br><br><br><br>"
%>
<!--#include file="bottom.asp" -->
<%response.end
end if
end if
end if
'处理评论
if shopnet("abc")="ping" and Request.Cookies(Rikee)("huiyuan")<>"" and shopnet("ping")<>"" then
if  Request.ServerVariables("HTTP_X_FORWARDED_FOR") = ""  then
ip=Request.ServerVariables("REMOTE_ADDR")
else
ip= Request.ServerVariables("HTTP_X_FORWARDED_FOR")
end if
conn.execute("Insert into pinglun(cpid,lx,huiyuan,ping,ip,userid,zt)values("&id&",0,'"&Request.Cookies(Rikee)("huiyuan")&"','"&shopnet("ping")&"','"&ip&"',"&rs("userid")&","&clng(my_shenhe)&")")
if my_shenhe=0 then shenhe="<br>·请等待管理人员审核。" else shenhe=""
width="500"
my_bt="<b>您发布的产品评论已成功提交！！！</b></font>"&shenhe&"<br>"
my_nr="<meta http-equiv=refresh content=5;url=?id="&encode(id)&"><img src=../../pics/2k5/sys/component/icon_arrow_r.gif><a href=../index.asp>返回首页</a><br><img src=../../pics/2k5/sys/component/icon_arrow_r.gif><a href=# onclick='javascript:window.history.go(-1)'>返回上一页</a><img src=../../pics/2k5/sys/component/icon_arrow_r.gif>系统正在转向到评论产品页，如您的浏览器不支持跳转请 <a href=?id="&encode(id)&">直接点这里</a>"
xitongtishi()
Response.Write"</td></tr></table>"%>
<!--#include file="bottom.asp" -->
<%response.end
end if
set rsuser = conn.execute("select name,huiyuan,tel,oicq,sj,id from shop where id="&rs("userid")&"")
name=rsuser("name")
huiyuan1=rsuser("huiyuan")
userid=rsuser("id")
sj=rsuser("sj")
oicq=rsuser("oicq")
tel=rsuser("tel")
rsuser.close
set rsuser=nothing%><table width="98%" border="0" align="center" cellpadding="0" cellspacing="0">
<tr><td height="30" colspan="2">&nbsp; <b>登陆分类：</b> <a href="sort.asp">所有分类</a> &gt;&gt;
<%Response.Write("<a href=ProductList.asp?lbid="&rs("lbid")&">"&conn.execute("select lbname from lb where lbid="&rs("lbid")&"")(0)&"</a>")
Response.Write("  &gt;&gt; <a href=ProductList.asp?lbid="&rs("lbid")&"&xlbid="&rs("xlbid")&">"&conn.execute("select xlbname from xlb where lbid="&rs("lbid")&" and xlbid="&rs("xlbid")&"")(0)&"</a>")
If rs("slbid")<>0 then
xls=conn.execute("select slbname from slb where lbid="&rs("lbid")&" and xlbid="&rs("xlbid")&" and slbid="&rs("slbid")&"")(0)
End if
if xls<>"" then
Response.Write"  &gt;&gt; <a href=ProductList.asp?lbid="&rs("lbid")&"&xlbid="&rs("xlbid")&"&slbid="&rs("slbid")&">"
Response.Write xls
Response.Write "</a>"
end if%></td>
  </tr>
              <tr bgcolor="#FF7300">
                <td height="3" colspan="2"></td>
              </tr>
              <tr valign="middle">
                <td height="15" colspan="2"><img src="image/top_cp_bj.gif" width="100%" height="13"></td>
              </tr>
              <tr>
                <td width="80%" height="25" align="center" valign="top" class=txt_14><b><%=rs("mc")%></b></td>
                <td width="20%" align="right" valign="top" nowrap><A HREF="user/jubao.asp?id=<%=decode(shopnet("id"))%>">举报该商品</A>&nbsp;&nbsp;</td>
              </tr>
              <tr>
                <td height="10" colspan="2" valign="top"><img src="image/top_cp_bj2.gif" width="100%" height="3"></td>
              </tr>
</table>
      <table width="98%" align="center" cellpadding="3" cellspacing="0">
        <tr> 
            <td width="240" align="center" valign="top">
<%jg=round(rs("jg2")/rs("jg1")*100,0)
bytD=jg\10
bytZ=jg-bytD*10
if bytD=10 then bytD=0%>
<div style='BORDER-RIGHT: #dddddd 1px solid; PADDING-RIGHT: 4px; BORDER-TOP: #dddddd 1px solid; PADDING-LEFT: 4px; PADDING-BOTTOM: 4px; BORDER-LEFT: #dddddd 1px solid; WIDTH: 210px; PADDING-TOP: 4px; BORDER-BOTTOM: #dddddd 1px solid'>
<a href="user/images/rikeeupimages/<%=rs("dt")%>"  onFocus="this.blur()" target="_blank"><img src="user/images/Rikeeupimages/<%=rs("zt")%>" width="200" height="200" border="0"></a></div>
<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
<tr><td height="25" align="center" valign="top">
<%If rs("dt")<>"zt.gif" Then Response.Write "<a href=#dt  onFocus=this.blur()><img src=../image/dt.gif border=0></a>"%>
</td></tr></table>
</td>
            <td align="center" valign="top"> 
              <table width="95%" align="center" cellpadding="3" cellspacing="0">
        <tr> 
          <td height="10" valign="middle"></td>
        </tr>
        <tr> 
          <td height="25" valign="middle">剩余时间：
            <input name="Input" id="time" style="border:none" value="<%=DateDiff("s", now(), rs("sj2"))%>" readonly> 
            <script language=JavaScript>
var auctionDate = <%=DateDiff("s", now(), rs("sj2"))%>;
var startTime = (new Date()).getTime();
var Temp;
var timerID = null;
var timerRunning = false;
function showtime(){
now = new Date();
var ts=parseInt((startTime-now.getTime())/1000)+auctionDate;
var dateLeft = 0;
var hourLeft = 0;
var minuteLeft = 0;
var secondLeft = 0;
if(ts < 0){
ts = 0;
CurHour = 0;
CurMinute = 0;
CurSecond = 0;}
else {
dateLeft =parseInt(ts/86400);
ts = ts - dateLeft * 86400;
hourLeft = parseInt(ts/3600);
ts = ts - hourLeft * 3600;
minuteLeft = parseInt(ts/60);
secondLeft = ts - minuteLeft * 60;}
if(hourLeft < 10) hourLeft = '0' +hourLeft;
if(minuteLeft < 10) minuteLeft = '0' +minuteLeft;
if(secondLeft<10) secondLeft='0'+secondLeft;
if( dateLeft > 0 )
dateLeft = dateLeft + "天" ;
else
dateLeft = "";
if( hourLeft > 0 )
hourLeft = hourLeft + "小时" ;
else{
if( dateLeft != "" )
hourLeft = "00小时";
else
hourLeft = "";}
if( minuteLeft > 0 )
minuteLeft = minuteLeft + "分钟" ;
else{
if( dateLeft !="" || hourLeft != "")
minuteLeft = "00分钟";
else
minuteLeft = "";}
if( secondLeft > 0 )
secondLeft = secondLeft + "秒" ;
else{
if( dateLeft !="" || hourLeft != "" || minuteLeft != "")
secondLeft = "00秒";
else
secondLeft = "";}
//if (dateLeft == '') {
Temp=dateLeft+hourLeft+minuteLeft+secondLeft ;
//}else {
//Temp=dateLeft+hourLeft;}
if(dateLeft <=0 && hourLeft<=0 && minuteLeft<=0 && secondLeft <=0){
Temp = "结束";
stopclock();}
if (document.getElementById('time')) document.getElementById('time').value=Temp;
timerID = setTimeout("showtime()",1000);
timerRunning = true;}
var timerID = null;
var timerRunning = false;
function stopclock(){
if(timerRunning)
clearTimeout(timerID);
timerRunning = false;}
function macauclock(){
stopclock();
showtime();}
function onloadall(){
macauclock();
try{
initprovcity(); }
catch(e){
}}
try{
onload=onloadall();}
catch(e){}
</script></td>
        </tr>
        <tr> 
          <td height="25" valign="middle">产品人气：<%=rs("rq")%>次</td>
        </tr>
        <tr>
          <td height="25" valign="middle">商品数量：<%=rs("number")%></td>
        </tr>
        <tr>
          <td height="25" valign="middle">销售区域：<%=rs("quyu")%></td>
        </tr>
        <tr> 
          <td height="25" valign="middle">付款方式：<%=fahuofangshi%>&nbsp;&nbsp;商品所在地:<%=rs("suozaidi")%>&nbsp;&nbsp;&nbsp;&nbsp;  &nbsp; [<a href="shop/1/shopshfw.asp?shopid=<%=rs("userid")%>" target="_blank">售后服务条款</a>]</td>
        </tr>
        <%'判断类型
Select case rs("fs")
case 0%>
        <tr>
          <td height="25" valign="middle">配送费用：<%if mai="买家承担运费" then%>EMS：<%=amount%>元&nbsp; 平邮：<%=amount1%>元&nbsp; 快递：<%=amount2%><%else%><%=mai%><%end if%></td>
        </tr>
        <tr> 
          <td height="25" valign="middle">市场价：<font color="#00CCFF"><s>￥<%=rs("jg1")%>元</s></font>&nbsp;&nbsp;&nbsp;会员价：<font size="3" color="#FF6600"><B>￥<%=rs("jg2")%></B>元</font></td>
        </tr>
        <tr> 
          <td height="40" align="center" valign="bottom">
		  <%If Request.Cookies(Rikee)("huiyuan")<>"" Then%>
		  <a href="buy.asp?cpid=<%=encode(rs("id"))%>&userid=<%=encode(shopid)%>" onFocus="this.blur()"><img src="images/2k5/sys/item_detail/button_buynow_small.gif"  border="0"></a> 
          <a href="user/shoucang.asp?type=1&id=<%=encode(rs("id"))%>" onFocus="this.blur()"><img src="images/2k5/sys/item_detail/add_to_watched_item.gif" border="0"></a>
		  <a href="/tuijian.asp?id=<%=encode(rs("id"))%>" onFocus="this.blur()"><img src="csspic/recommend_to_friend.gif" border="0">
		 <%
		 else
		 Response.Write("&nbsp;&nbsp;&nbsp;系统提示：请先[<a href=../user/login.asp>登陆</a>]，不是会员？[<a href=../user/reg.asp>免费注册</a>]")
		 end if
		 %>	  
		  </td>
        </tr>
        <%case 1%>
        <tr> 
          <td height="25" valign="middle"><s>起拍：￥<%=rs("jg1")%>元</s></td>
        </tr>
        <tr> 
          <td height="25" valign="middle"><font color=red>当前：￥<%=rs("jg2")%>元</font></td>
        </tr>
        <tr> 
          <td height="25" valign="middle"><font color=#ff5500>加价：￥<%=rs("jg3")%>元</font></td>
        </tr>
        <tr>
          <form name="form9" method="post" action="?pai=yes&id=<%=encode(rs("id"))%>">
            <td height="40" valign="bottom">我要竞价：
			<input name="shangpinid" type="hidden" value="<%=id%>"> 
			<input name="shopid" type="hidden" value="<%=shopid%>">
<input name="huiyuanname" type="hidden" value="<%=huiyuan1%>">
              <input name="jg" type="text" class="wenbenkuang" id="jg" style="text-align: center;" value="<%=rs("jg3")+rs("jg2")%>" size="6" maxlength="5">元<br> 
              <%If Request.Cookies(Rikee)("huiyuan")<>"" and rs("p_zt")=0 Then%>
              <input name="imageField32" type="image" src="images/2k5/sys/item_detail/button_bid_small.gif" border="0" align="absmiddle" onClick="return checkform()" onFocus="this.blur()">
              <a href="user/shoucang.asp?type=1&id=<%=encode(rs("id"))%>" onFocus="this.blur()"><img src="images/2k5/sys/item_detail/add_to_watched_item.gif" border="0"></a>
			   <a href="/tuijian.asp?id=<%=encode(rs("id"))%>" onFocus="this.blur()"><img src="csspic/recommend_to_friend.gif" border="0"></a>
              <script language=javascript>function checkform(){
if((form9.jg.value=="")||isNaN(form9.jg.value))
{alert("对不起，请输入竞拍价格，只能为数值！");
return false;}
if ((form9.jg.value)<(form9.jg2.value))
{alert("您输入的竞价价格小于此次投标当前价格加竞价幅度！竞价不成功！");
return false;}}
              </script> 
              <%Elseif Request.Cookies(Rikee)("huiyuan")="" and rs("p_zt")=0 then
Response.Write("&nbsp;&nbsp;&nbsp;系统提示：请先[<a href=../user/login.asp>登陆</a>]，不是会员？[<a href=../user/reg.asp>免费注册</a>]")
elseif rs("p_zt")=1 then
Response.Write "<font color=red>已结束</font>"
elseif rs("p_zt")=2 then
Response.Write "<font color=red>已结束或取消</font>"
end if%> <input name="jg2" type="hidden" id="jg2" value="<%=rs("jg3")+rs("jg2")%>"></td>
          </form>
        </tr>
        <%case else%>
        <tr> 
          <td height="40" valign="middle">销售方式：<img src="image/yijia_icon.gif" width="55" height="17" align="absmiddle"></td>
        </tr>
        <tr>
          <td height="25" valign="middle">联系电话：<b><%= tel %></b></td>
        </tr>
        <%End select%>
      </table>
            </td>
            <td width="200" align="center" valign="top"><table width="172" align="center" cellpadding="0" cellspacing="0">
        <tr> 
          <td height="10" valign="middle"></td>
        </tr>
        <tr> 
          <td height="21" align="center" valign="middle" background="image/user_cp_1.gif"><b>掌柜信息</b></td>
        </tr>
        <tr> 
          <td height="22" valign="bottom" background="image/user_cp_2.gif">&nbsp;<a href="shop/1/myshop.asp?shopid=<%=rs("userid")%>" target="_blank"><font color=#ff6600><%=name%></font></a></td>
        </tr>
        <tr> <%set rs1 = conn.execute("select * from huiyuan where huiyuan='"&huiyuan1&"'")%>
          <td height="22" valign="bottom" background="image/user_cp_2.gif">&nbsp;信用点:<%=rs1("xinyong")%>	<br>
		<%
xinyong = rs1("xinyong")

        If xinyong<cint(xing1) Then
		xing="noxing.gif"
		End If     
		If xinyong>cint(xing1) Then
		xing="xing1.gif"
		alt=""&cint(xing1)&"-"&cint(xing11)&"为一星级"
		End if
		If xinyong>cint(xing2) Then
		xing="xing2.gif"
		alt=""&cint(xing2)&"-"&cint(xing21)&"为二星级"
		End If
		If xinyong>cint(xing3) Then
		xing="xing3.gif"
		alt=""&cint(xing3)&"-"&cint(xing31)&"为三星级"
		End if
		If xinyong>cint(xing4) Then
		xing="xing4.gif"
		alt=""&cint(xing4)&"-"&cint(xing41)&"为四星级"
		End If
		
		If xinyong>cint(xing5) Then
		xing="xing5.gif"
		alt=""&cint(xing5)&"-"&cint(xing51)&"为五星级"
		End If
		
		If xinyong>cint(xing6) Then
		xing="xing6.gif"
		alt=""&cint(xing6)&"-"&cint(xing61)&"为六星级"
		End If
		
		If xinyong>cint(xing7) Then
		xing="xing7.gif"
		alt=""&cint(xing7)&"-"&cint(xing71)&"为七星级"
		End If
        If  xinyong>cint(xing8) Then
		xing="xing8.gif"
		alt=""&cint(xing8)&"以上为八星级"
		End If
Response.Write "&nbsp;<a href=renzhengshow.asp?huiyuan="&huiyuan1&"&shopid="&shopid&" target=_blank><img src=image/"&xing&" border=0 alt="&alt&"></a><br>"
%>

&nbsp;认证：<%rz=rs1("rz")
renzheng()
rs1.close
set rs1=Nothing%></td>
        </tr>
        <tr> 
          <td height="22" valign="bottom" background="image/user_cp_2.gif">&nbsp;注册日期:<%=formatdatetime(sj,2)%></td>
        </tr>
		<%If huiyuan<>"" Then Response.Write("<tr><td height=22 valign=bottom background=image/user_cp_2.gif>&nbsp;<SCRIPT src='../zhanneixin/jst.asp?huiyuan="&huiyuan&"'></SCRIPT>")%>&nbsp;&nbsp;<%If oicq<>"" then%><a target=blank href=http://wpa.qq.com/msgrd?V=1&Uin=<%=oicq%>&Site=<%=huiyuan%>&Menu=yes><img border="0" SRC=http://wpa.qq.com/pa?p=1:<%=oicq%>:3 alt="<%=huiyuan%>"></a><%End if%></td></tr>
        <tr> 
          <td valign="bottom" background="image/user_cp_2.gif"><hr align="center" width="90%" size="1" color=#cccccc noshade></td>
        </tr>

        <tr> 
          <td height="22" valign="bottom" background="image/user_cp_2.gif">&nbsp;<a href="#pl" onFocus=this.blur()>向卖家提问</a></td>
        </tr>
        <tr> 
          <td height="22" valign="bottom" background="image/user_cp_2.gif">&nbsp;<a href="productlist.asp?lx=1&key=<%=name%>">查看卖家的其他物品</a></td>
        </tr>
        <tr> 
          <td height="22" valign="bottom" background="image/user_cp_2.gif">&nbsp;<a href="shop/1/myshop.asp?shopid=<%=rs("userid")%>" target="_blank">访问掌柜的店铺</a></td>
        </tr>
        <tr> 
          <td height="5" valign="bottom" background="image/user_cp_2.gif"></td>
        </tr>
        <tr> 
          <td valign="top" style="word-break:break-all;"><img src="image/user_cp_3.gif" width="172" height="6"></td>
        </tr>
      </table>            </td>
        </tr>
      </table><table width="98%" align="center" cellspacing="0">
<tr><td><div id="UserAgreement">免责声明：该产品信息的合法性和真实性由商家“ <a href="shop/1/myshop.asp?shopid=<%=rs("userid")%>" target="_blank"><%=name%></a> ”负责。<%=my_name%>不提供任何保证，并不承担任何法律责任。您的购买行为是直接与该产品销售商“ <a href="shop/1/myshop.asp?shopid=<%=rs("userid")%>" target="_blank"><%=name%></a> ”发生的，与<%=my_name%>无关。<%=my_name%>友情提醒：为保障您的利益，建议使用“ <a href=support.asp?key=支付宝>支付宝</a> ”交易，经过实名认证的卖家会有更高的诚信度。</div></td>
</tr></table>

<div id="ListSellerRecommended">
				<ul class="TabBarLevel1">
					<li><a href="#pl" onFocus=this.blur()>评论留言</a></li>
					<li><a href="#zg" onFocus=this.blur()>掌柜推荐的商品</a></li>
				</ul></div>
<div id="BidRecord">
<h2 class="Title">产品描述<span><a name=dt><a><img src="images/2k5/sys/item_detail/gotop.gif" alt="至顶端" width="16" height="16" /></a></span></h2>
<table width="98%" border="0" align="center" cellpadding="10" cellspacing="0">
<tr><td height="50" valign="top" style="word-break:break-all;">
<%Response.Write rs("jp")&"<br>"
if rs("dt")<>"zt.gif" then Response.Write "<table width=100% border=0 align=center cellpadding=0 cellspacing=0><tr><td align=center valign=top><img src=user/images/Rikeeupimages/"&rs("dt")&" onload=""javascript:if(this.width>750)this.width=750""></td></tr></table><br>"
txt = rs("js")
Response.Write  Replace(rs("js"), vbCrLf, "<br>")
id=rs("id")
cj=rs("cj")
fs=rs("fs")
%></td></tr>
</table><div id="MemoInfo">
<h2 class="Title"><a href="qtxx"><a>其他信息<span><img src="images/2k5/sys/item_detail/gotop.gif" alt="至顶端" width="16" height="16" /></a></span></h2>
<ul><li id="StartTime"><span>开始:</span><%=rs("sj")%></li>
<li id="EndTime"><span>结束:</span><%=rs("sj2")%></li>
<li id="ItemCode"><span>编号:</span><%=rs("bh")%></li>
<li id="IfHaveInvoice"><span>发票:</span><%=rs("fapiao")%></li>
<li id="IfMaintenance"><span>保修:</span><%=rs("baoxiu")%></li>
<li id="PaymentMethod"><span>买家限制:<%If buyxianzhi=0 then%>没有限制<%else%>只有信用点在<%=buyxianzhi%>以上才能购买<%End if%></span>
<li id="PaymentMethod"><span>支付方式:</span><br><%fukuan1()%>
</li></ul>
</div><%rs.close
set rs=nothing%>
<h2 class="Title"><a name="pl"><a>评论留言<span><img src="images/2k5/sys/item_detail/gotop.gif" alt="至顶端" width="16" height="16" /></a></span></h2> 
<% Response.Write("<table width=95%  border=0 align=center cellpadding=0 cellspacing=0>")
Set rs=Server.CreateObject("ADODB.Recordset")
sql="select huiyuan,ping,hf,sj from pinglun where lx=0 and zt<>0 and cpid="&id&" order by id desc"
rs.open sql,conn,3,1 
if rs.eof then
Response.Write("目前暂无评论留言。")
else
page1("5")
i=1
do while not rs.eof and i<=rs.pagesize
Response.Write("<tr><td height=50 class=table-xia>&nbsp;&nbsp;作者：<b>"&rs("huiyuan")&"</b>&nbsp;&nbsp;"&rs("sj")&"<br>&nbsp;&nbsp;内容： "&rs("ping")&"")
if rs("hf")<>"" then Response.Write("<br><font color=#ff6600>&nbsp;&nbsp;回复： "&rs("hf")&"</font>")
Response.Write("</td></tr>")
i=i+1
rs.MoveNext                                              
loop 
Response.Write("<tr><td height=25>&nbsp;&nbsp;")
page2("id="&request("id")&"&")
end if
rs.close
set rs=nothing
if Request.Cookies(Rikee)("huiyuan")<>"" then%><div align="left"><form name="pinglun" method="post" action="?id=<%=request("id")%>&abc=ping" onSubmit="javascript:return add(this)">
<script language="javascript">
function add(aa){		 
if(aa.ping.value==''){			
alert("对不起,评论留言内容不能为空!");
return false;}
if(aa.ping.value.length>500){			
alert("对不起,评论留言内容不能超过500字!");
return false;}}
</script>
<script language="javascript" type="text/javascript">
	//<![CDATA[
function emoticon(text) {
 txtarea = document.getElementById("MsgContent");
 text = ' ' + text + ' ';
 if (txtarea.createTextRange && txtarea.caretPos) {
  var caretPos = txtarea.caretPos;
  caretPos.text = caretPos.text.charAt(caretPos.text.length - 1) == ' ' ? text + ' ' : text;
  txtarea.focus();
 } else {
  txtarea.value  += text;
  txtarea.focus();
 }
}

function showcheckcode()
{
   var odiv = document.getElementById('divCheckCode');
   if(odiv.innerHTML==null || odiv.innerHTML==''){
      str="<input type=\"submit\" value=\"提交您的留言\" class=\"Submit\" />";
      odiv.innerHTML=str;
   }
}
//]]>
</script><div><B>向掌柜 [<%=huiyuan%>] 提问：</B> 	</div>
<textarea id="MsgContent" cols="80" rows="5" name="ping" onFocus="javascript:showcheckcode()"></textarea>
<div class="CheckCode" id="divCheckCode"></div> 
<%Else%>
 <div class="HackBox"></div></div>
</div></div>
<table width="45%" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td><p class="WarningMsg">向卖家提问，会员请 [<a href="user/login.asp">登陆</a>] ，不是会员？ [<a href="user/reg.asp">免费注册</a>]</p></td>
  </tr>
</table>

<%end if%>
<div id="UserAgreement">免责声明：<%=my_name%>所展示的商品供求信息由买卖双方自行提供，其真实性、准确性和合法性由信息发布人负责。<%=my_name%>不提供任何保证，并不承担任何法律责任。淘宝网友情提醒：为保障您的利益，请网上成交，贵重商品，请使用<a href="http://www.alipay.com/" target="_blank">支付宝</a>交易。</div>
<%if fs=1 then%>
<h2 class="Title">出价记录<span><a href="#"><img src="images/2k5/sys/item_detail/gotop.gif" alt="至顶端" width="16" height="16" /></a></span></h2>
<table width="70%" border="0" align="center" cellpadding="0" cellspacing="1" bgcolor="#efefef">
  <tr align="center" bgcolor="#f7f7f7">
    <td height="18">竞标会员</td>
    <td width="130" height="22">投标金额</td>
    <td width="150" height="22">投标时间</td>
    <td width="100">状态</td>
  </tr>
<%set paimai = conn.execute("select top 10 jg,huiyuan,sj from paimai where pid="&id&" order by id desc")
i=1
do while not paimai.eof%>

  <tr bgcolor="#FFFFFF">
    <td height="18">&nbsp;&nbsp;<%=paimai("huiyuan")%></td>
    <td width="130" height="18" align="center"><%=paimai("jg")%>元</td>
    <td width="130" height="18" align="center"><%=paimai("sj")%></td>
    <td width="100" align="center"><% If i=1 Then Response.Write "<b>领先</b><IMG SRC=images/newstyle/okhank.gif>" else Response.Write "<s>出局<s>"%></td>
  </tr>
<%i=i+1
paimai.movenext
loop
paimai.close
set paimai=nothing
'结标
Set paimai= Server.CreateObject("ADODB.Recordset")
sql="select * from chanpin where fs<>0 and p_zt=0 and datediff('n',sj2,now())>1"
paimai.open sql,conn,3,3
If not paimai.eof then
do while not paimai.eof
paimai("p_zt")=1
paimai("cang")=1
'确定拍卖结果
conn.execute("Update paimai set ok=1 where id=(select top 1 id from paimai where pid="&paimai("id")&" order by jg desc,id asc)")
paimai.movenext
loop
paimai.update
paimai.close
set paimai=Nothing
End if%>
</table>
<%end if%>
<div id="RecommendedItems">
<div id="RecommendedItemsContainer">
<h3><img src="images/2k5/sys/item_detail/rec_item_title_icon.gif" width="12" height="12" alt="" align="middle" />
<a name="zg"><a>掌柜推荐的商品<span><a href="shop/1/myshop.asp?shopid=<%=shopid%>">逛逛掌柜的店铺</a></span></h3>
<%

set rsRecommendedItemsContainer= conn.execute("select top 6 id,mc,fs,xt,jg1,jg2 from chanpin where userid="&shopid&" and user_tui<>0 and cang=0 order by id desc")
if not rsRecommendedItemsContainer.eof Then
	Response.Write "<ul>"
	do while not rsRecommendedItemsContainer.eof
	
If rsRecommendedItemsContainer("fs")=2 Then
jiage="议价"
Else 
jiage=rsRecommendedItemsContainer("jg2")
End if
	Response.Write "<li><a href=""merchandise.asp?shopid="&shopid&"&amp;id="&encode(rsRecommendedItemsContainer("id"))& """target=""_blank"">"
	Response.write"<img border=0 src=""user/images/Rikeeupimages/"&rsRecommendedItemsContainer("xt")&""" width=""75"" height=""75""></a>"
	Response.write"<em>"&jiage&"</em><span><a href=""merchandise.asp?shopid="&shopid&"&id="&encode(rsRecommendedItemsContainer("id"))
	Response.Write "target=""_blank"">"&left(rsRecommendedItemsContainer("mc"),15)&"</a></span></li>"
	rsRecommendedItemsContainer.movenext
	loop
	Response.Write "</ul>"
	rsRecommendedItemsContainer.close
	set rsRecommendedItemsContainer=nothing
else
	Response.Write "<ul>"
	Response.Write "<li>没有推荐商品!</li>"
	Response.Write "</ul>"
end if
%>
<div class="HackBox"></div>
</div>
</div>

</div>
<%'隐藏到期产品
conn.execute("Update chanpin set cang=1 where datediff('n',sj2,now())>1")
Else
Response.redirect "/note.asp?errid=0"
Response.End
End if%>
<!--#include file="bottom.asp" -->
