<!--#include file="../p_inc/Include_func.asp"-->
<!--#include file="../p_inc/openconn.asp"-->
<%
CountStartTime=Timer
G_moban_rq=request.Cookies("qingtiandy.cn")
IF G_moban_rq<>"" Then G_moban=G_moban_rq

IF G_jiami_F Then
	id2_=split(request("tag"),",")
	IF Ubound(id2_)>=2 Then 
		id=Decrypt(id2_(1))
		id=StayNub(id)
		IF err>0 Then Response.Redirect Add_Root_Dir("/"): Response.End()	
	Else
		id=StayNub(request("tag"))
	End IF
Else
	id=StayNub(request("tag"))
End IF
IF id="" Then
	id1=0
Else
	id1=id
End IF


		
Allcontent_top=Qingtiandy_getfilecontent(server.MapPath(Add_Root_Dir("/template/"&G_moban&"/"&G_moban_html&"/top.html")))

Allcontent_buttom=Qingtiandy_getfilecontent(server.MapPath(Add_Root_Dir("/template/"&G_moban&"/"&G_moban_html&"/button.html")))
oldurl=Add_Root_Dir("/template/"&G_moban&"/"&G_moban_html&"/ProductDetail.html")
Allcontent=Qingtiandy_getfilecontent(server.MapPath(oldurl))
Allcontent=replace(replace(replace(replace(replace(Allcontent,"{qt:template_top}",Allcontent_top),"{qt:template_button}",Allcontent_buttom),"../images/","../template/"&G_moban&"/images/"),"../css/","../template/"&G_moban&"/css/"),"../js/","../template/"&G_moban&"/js/")
Allcontent=replace(Allcontent,"{qt:indexurl}","../")
Allcontent=replace(Allcontent,"{qt:当前地址栏}","http://"&Request.ServerVariables("HTTP_HOST")&"/html/NewsDetail.asp?tag="&id1)

	detaili_name=id1
	
	'------------写入基本信息----------------------------------------------
	sql_u="select id,n_type1,n_title from qingtiandy_product where id="&detaili_name
	Set rs_d=server.CreateObject(G_RS)
	rs_d.open sql_u,conn,1,1
	
	IF  Not rs_d.Eof Then
		Allcontent_t=Allcontent
		Allcontent_t=replace(Allcontent_t,"{qt:productm_id}",rs_d("id"))
		Allcontent_t=replace(Allcontent_t,"{qt:productm_type1}",rs_d("n_type1"))
		Allcontent_t=MakeHTML_CMS(Allcontent_t)		
		response.Write Allcontent_t
	End IF

%>