<!--#include file="inc/config_conn_root.asp"-->
<!--#include file="inc/class_template.asp"-->
<!--#include file="inc/class_functions.asp"-->
<!--#include file="inc/class_object.asp"-->

<%
Server.ScriptTimeout=5
dim site
dim template
dim functions
dim object

set functions=new sitefunctions
set template=new sitetemplate
set object= new siteobject
set site=Server.CreateObject("FB_EM_SQL_Site.SiteRoot")
site.GetSite(site)
site.GetTemplate(Template)
site.GetFunctions(functions)
site.GetObject(object)

'///////////////////////////////////////////////////////////
site.pageshow.key_open = "object_open_temp"
site.pageshow.key_num = "object_num_temp"
site.temp.customer.check.check() '用户检测
'/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
%>
<!--#include file="style.asp"-->
<%
'//////////url处理

site.Error.location="back"

If request.querystring("tr") = "" Then
	site.Error.info = "无效参数！"
	site.error.err()
End If

'site.temp.object_request = Split(site.temp.object_request, "|")

'response.end
site.object(0).prints="temp"

For i_tempshow = 0 To UBound(site.temp.object_request)
	'////////////////////////
	if i_tempshow>0 then site.object(0).prints=site.object(0).prints+"_"+site.temp.object_request(i_tempshow-1)

	If i_tempshow < UBound(site.temp.object_request) Then
		site.object(0).rs.open "select object_style_default,object_id,object_description from jins_object_list where object_print='"&site.object(0).prints&"' and object_name='"&site.temp.object_request(i_tempshow)&"' and "&site.pageshow.key_open&"=1 ",conn,1,1
		If site.object(0).rs.EOF Then
			site.Error.info = "此功能已被暂时关闭！"
			site.error.err()
			Exit For
		End If
		'object_customer_grade = site.object(0).rs("object_customer_grade")
		site.object(0).rs.Close
	End If

	If i_tempshow = UBound(site.temp.object_request) Then
		site.object(0).rs.open "select * from jins_object_list where object_print='"&site.object(0).prints&"' and object_name='"&site.temp.object_request(i_tempshow)&"' and "&site.pageshow.key_open&"=1 ",conn,1,1
		If site.object(0).rs.EOF Then
			site.Error.info = "此功能已被暂时关闭！"
			site.error.err()
			Exit For
		End If
		'object_customer_grade = site.object(0).rs("object_customer_grade")
	End If

	'////////////////////////
Next

site.object(0).object_init (site.object(0).rs)


site.object(0).rs.Close

'/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

site.clear
set object=nothing
set template=nothing
set functions=nothing
set site=nothing
t2 = Timer
%>
