<% '*************** VERIFICA SE É LOJA VIRTUAL **********' set conn = Server.Createobject("ADODB.Connection") conn.open request.cookies("site")("conexao"),"","" '*********** DEFINE O LAYOUT DO SITE ' set consulta = conn.execute("select * from layout where sitemodelo = " & request.cookies("site")("modelo") & "") IF NOT consulta.eof and not consulta.bof then topo = consulta("topo") layoutsite = consulta("layoutsite") end if '****************************************' if layoutsite = "Landing Page" then server.execute "/admin/landingpage/exibir/topo-lading-page.asp" server.execute "/admin/landingpage/exibir/centro-landing-page.asp" server.execute "/admin/landingpage/exibir/rodape-landing-page.asp" else if topo = "Barra" then topo = "topo-barra.asp" elseif topo = "Banner" then topo = "topo-banner.asp" elseif topo = "Design" then topo = "topo-design.asp" else topo = "topo-MegaMenu.asp" end if set consulta = conn.execute("select lojavirtual from _configuracoes where sitemodelo = " & request.cookies("site")("modelo") & "") arquivorodape = "rodape.asp" server.execute "/arquivos/" & topo server.execute "/arquivos/centro.asp" server.execute "/arquivos/" & arquivorodape end if %>