<!--#include file="../p_inc/Include_func.asp"-->
<!--#include file="../p_inc/openconn.asp"-->
<%
G_moban_rq=request.Cookies("qingtiandy.cn")
IF G_moban_rq<>"" Then G_moban=G_moban_rq
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")))		
pg_index=request("sIndex")
ty2=StayNub(Request("ty1")):IF ty2="" Then ty2="0"
IF pg_index="" Then
	oldurl_1=Get_Type2_moban_bangding(ty2)
	IF oldurl_1<>"" Then
		oldurl=Add_Root_Dir("/template/"&G_moban&"/"&G_moban_html&"/"&oldurl_1)
	Else
		oldurl=Add_Root_Dir("/template/"&G_moban&"/"&G_moban_html&"/biglist.html")
	End IF
Else
	oldurl=Add_Root_Dir("/template/"&G_moban&"/"&G_moban_html&"/"&pg_index)
End IF		

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:big_type1}",ty2)
Allcontent=replace(Allcontent,"{qt:indexurl}","../")
Allcontent_t=MakeHTML_CMS(Allcontent)
response.Write Allcontent_t
%>
