<%temp_detail_goods_detail_show=site.object_p%>
<!-- object[<%=site.object_p%>]::temp_detail_goods_detail_show -->
<%
set site.object(temp_detail_goods_detail_show).rs_other(0)=server.CreateObject("adodb.recordset")
if request("id")<>"" then
site.object(temp_detail_goods_detail_show).rs_other(0).open "select * from jins_goods_list where  goods_open=1 and goods_id="&request("id")&"  " ,conn,1,1
else
site.object(temp_detail_goods_detail_show).rs_other(0).open "select * from jins_goods_list where  goods_open=1 and goods_id=0  " ,conn,1,1
end if
if site.object(temp_detail_goods_detail_show).rs_other(0).eof then
site.error.info="您选择的商品不存在或者已经被删除！！"
site.error.location=request.servervariables("http_referer")
site.error.err
end if
'//////////////////////////////浏览历史
history_end=0
if Session("FB_EM_1_ACC_customer_history")="" then 
	Session("FB_EM_1_ACC_customer_history")=request("id")&"|"&site.object(temp_detail_goods_detail_show).rs_other(0)("goods_name") 
else 
	history=split(Session("FB_EM_1_ACC_customer_history"),",")
	for i_h=0 to ubound(history)
		if split(history(i_h),"|")(0)-request("id")=0 then 
			history_end=1
			exit for
		end if
	next
	if history_end=0 then Session("FB_EM_1_ACC_customer_history")=Session("FB_EM_1_ACC_customer_history")&","&request("id")&"|"&site.object(temp_detail_goods_detail_show).rs_other(0)("goods_name")
end if
'//////////////////////////////
site.temp.url_request=replace(site.temp.url_request,"&id="&request("id"),"")
site.temp.url_request=replace(site.temp.url_request,"&kind="&request("kind"),"")

site.object(temp_detail_goods_detail_show).object_include(temp_detail_goods_detail_show)
conn.execute("update jins_goods_list set goods_clicknum=goods_clicknum+1 where goods_id="&request("id")&" ")
'-----------------------------------------------------------
'site.temp.object_guide=site.temp.object_guide+" >> "+site.object(temp_detail_goods_detail_show).rs_other(0)("goods_name")
response.write "<script>document.getElementById('temp_guide').innerHTML='"&site.temp.object_guide&"';</script>"

site.object(temp_detail_goods_detail_show).rs_other(0).close
set site.object(temp_detail_goods_detail_show).rs_other(0)=nothing
%>