<!--#include file="../p_inc/Include_func.asp"-->
<!--#include file="../p_inc/openconn.asp"-->
<%
qingtiandy=request.QueryString("58119.com"):IF qingtiandy<>"" Then response.Cookies("58119.com")=qingtiandy
G_moban_rq=request.Cookies("58119.com")
IF G_moban_rq<>"" Then G_moban=G_moban_rq
pg_index=request("sIndex")
IF pg_index="" Then
	oldurl=Add_Root_Dir(GetTemplateUrlIndex())
Else
	oldurl=Add_Root_Dir("/template/"&G_moban&"/"&G_moban_html&"/"&pg_index)
End IF

Allcontent=Qingtiandy_getfilecontent(server.MapPath(oldurl))
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")))
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}",Add_Root_Dir("/"))
Allcontent=MakeHTML_CMS(Allcontent)
response.Write Allcontent
%>