%
Set Conexao = Server.CreateObject("ADODB.Connection")
Conexao.Open Application("StringConexaoODBC")
%>
<%select case request.querystring("menu")
CASE "empresa"
%>
<%
Set informativo = Server.CreateObject("ADODB.Recordset")
informativo.Open "SELECT * FROM conteudo_site WHERE código = 1", conexao
if informativo.Eof then
RESPONSE.WRITE "
Aguarde...
"
ELSE
RESPONSE.WRITE "
"&informativo("titulo")&"
"
RESPONSE.WRITE informativo("texto")
End if
informativo.Close
Set informativo = Nothing
CASE "x"
%>
<%
Set informativo = Server.CreateObject("ADODB.Recordset")
informativo.Open "SELECT * FROM conteudo_site WHERE código = 2", conexao
if informativo.Eof then
RESPONSE.WRITE "
Aguarde...
"
ELSE
'RESPONSE.WRITE "
"&informativo("titulo")&"
"
RESPONSE.WRITE informativo("texto")
End if
informativo.Close
Set informativo = Nothing
CASE "catalogo"
%>
CATÁLOGO
<%
Set informativo = Server.CreateObject("ADODB.Recordset")
informativo.Open "SELECT * FROM conteudo_site WHERE tipo = 'noticia' ", conexao
if informativo.Eof then
RESPONSE.WRITE "
Aguarde...
"
end if
While Not informativo.EOF
%>
"><%=informativo("titulo")%>
<%
informativo.MoveNext
Wend
informativo.Close
Set informativo = Nothing
%>
<%
Set informativo = Server.CreateObject("ADODB.Recordset")
informativo.Open "SELECT * FROM conteudo_site WHERE tipo = 'noticia' ", conexao
if informativo.Eof then
RESPONSE.WRITE "
Aguarde...
"
end if
While Not informativo.EOF
RESPONSE.WRITE "
"
RESPONSE.WRITE informativo("texto") &"
"
informativo.MoveNext
Wend
informativo.Close
Set informativo = Nothing
case "contato"%>
Entre em contato
(16) 3019-2664
(16) 3628-1838
+55 16 98165-7172
vendas@farb.ind.br
contato@farb.ind.br
<%
end select%>