<%
'**************************************
'* 最后更新 2012-07-23 by 56770.kingdge
'* Copyright www.56770.com
'**************************************
Dim id,pic_path,product_type,sql,strwebdescription,strwebkeywords,i,ProductUrl,name,number,picture
id = checknum(request.querystring("id"),0)
pic_path = trim(request.querystring("pic_path"))
product_type = trim(request.querystring("product_type"))
If product_type = "" Then product_type = "pro"
If id = 0 Then
        Write_Lebi_Eshop("<script language=""javascript"">alert('"&Lebi_word(3)&"');location.href='../../';</script>")
	    response.end
End If
If product_type = "unite" Then
		sql="select product_name"& LangTxt &",cpic,bianhao,p_filename from [Lebi_product_unite] where id=" & id
Else
		sql="select product_name"& LangTxt &",cpic,bianhao,p_filename from [Lebi_product] where id=" & id
End If
Set rs = conn.execute(sql)
if rs.eof then
        Write_Lebi_Eshop("<script language=""javascript"">alert('"&Lebi_word(3)&"');location.href='../../';</script>")
        response.end
Else
		name = rs(0)
		picture = rs(1)
		If Left(picture,"2") <> "@@" Then picture = "@@"& picture
		number = rs(2)
        strwebtitle=Replace(Lebi_pro(104),"[product_name]",name) &"-"
        strwebdescription = Replace(trim(Sys_description),chr(13),"")
        strwebkeywords = Replace(trim(Sys_keywords),chr(13),"")
		If product_type = "unite" Then
				Select Case show_html
					   Case "0"
							Select Case ISAPI_Rewrite
								   Case "0" ProductUrl = PagePath(8) &"?id="& id
								   Case "1" ProductUrl = LangPath &"unite_show-"& id &".html"
							End Select
					   Case "1" ProductUrl = LangPath & Folder(9) & rs(3) &".1."& Sys_Ext
				End Select
		Else
				Select Case show_html
					   Case "0"
							Select Case ISAPI_Rewrite
								   Case "0" ProductUrl = PagePath(10) &"?id="& id
								   Case "1" ProductUrl = LangPath &"product-"& id &".html"
							End Select
					   Case "1" ProductUrl = LangPath & Folder(0) & rs(3) &".1."& Sys_Ext
				End Select
		End If
End If 
rs.close : Set rs = Nothing 
%>