<% menutopo_selecionado = "" menulateral_selecionado = "index" titulo_pagina = "Piloso Safo" xArquivo = "index.asp" %> <% ' Rotina para formatar Numeros para o SQL Function fNum(Valor) fNum = Replace(Valor,".","") fNum = Replace(fNum,",",".") fNum = "0" & fNum If Not IsNumeric(fNum) Then fNum = 0 Else fNum = cLng(fNum) End If End Function ' Rotina para formatar String para o SQL Function fStr(String) dim cAtual For i = 1 to Len(String) cAtual = Mid(String,i,1) If cAtual = "'" Then fStr = fStr & "''" Else fStr = fStr & cAtual End If Next fStr = Trim(fStr) End Function ' Rotina para Formatar Numeros 9,99 Function FormataNumero (Valor) If isNumeric(Valor) Then v = FormatNumber (Valor, 0 ,,, -1) Else v = FormatNumber(0, 0 ,,, -1) End If If Mid(v,Len(v)-1,1) = "." Then y = "" For x = 1 to Len(v) If Mid(v,x,1) = "," Then y = y & "." ElseIf Mid(v,x,1) = "." then y = y & "," Else y = y & Mid(v,x,1) End If Next Else y = v End If FormataNumero = y End Function ' Rotina para Formatar Valores 9.999,99 Function FormataNumero (n) FormataNumero = Replace(FormatNumber(n,0,,,-1) & "",",",".") End Function ' Rotina para formatar Datas dd/mm/yyyy Function FormataData ( Data ) FormataData = Right("0" & DatePart("d", Data),2) & "/" & Right("0" & DatePart("m", Data),2) & "/" & DatePart("yyyy", Data) End Function ' Rotina para formatar Hora hh:mm Function FormataHora ( DataHora ) FormataHora = Right("0" & DatePart("H",DataHora),2) & ":" & Right("0" & DatePart("n",DataHora),2) End Function %> <% xDatabase = Server.MapPath("/database/pilotosafo.mdb") Set Dados = Server.CreateObject("ADODB.Connection") Dados.Open "Driver={Microsoft Access Driver (*.mdb)};DBQ=" & xDataBase %> <% Dim xNavega_Fotos(50) for a = 1 to 50 xNavega_Fotos(a) = 0 next Session("Navega_Fotos") = xNavega_Fotos xIdioma = Request("Idioma") sql = "SELECT * FROM Controles" Set rsControles = Dados.Execute(sql) if trim(xIdioma) = "" then xMenu01 = "O Curso" xMenu02 = "Treinamento de Acrobacia" xMenu03 = "O Local do Curso" xMenu04 = "A estrutura" xMenu05 = "A Equipe" xMenu06 = "As Manobras" xMenu07 = "O SIV" xMenu08 = "O Vôo Rebocado" xMenu08a = "Decolagem" xMenu08b = "Vôo" xMenu08c = "Pouso" xMenu09 = "Próximas turmas e Inscrições" xMenu10 = "Contato" xMenu11 = "Galeria" xMenu11a = "Fotos" xMenu11b = "Vídeos" xMenu12 = "Acrobacia" xMenu12a = "Ranking" xMenu12b = "Records" xMenu12c = "Conquistas" xMenu13 = "Cross Country" xMenu13a = "Ranking" xMenu13b = "Records" xMenu13c = "Conquistas" xMenu14 = "Locais de Vôo" xMenu14a = "Brasil" xMenu14b = "Exterior" xMenu15 = "Eventos" xMenu16 = "Curiosidades" xMenu17 = "Enquetes" xMenu18 = "Literatura" xMenu19 = "Meteorologia" xMenu20 = "Fórum" xMenu21 = "Artigos" xMenu22 = "Links" xMenu23 = "Emergências" xMaisInformacoes = "Mais informações" xMais = "Mais" xVoltar = "Voltar" xOUTROSAnterior = "Anterior" xOUTROSProxima = "Próxima" xOUTROSPosicao = "Posição" xOUTROSNome = "Nome" xOUTROSPontuacao = "Pontuação" xOUTROSFecharJanela = "Fechar Janela" xOUTROSVotar = "Votar" xOUTROSVerresultado = "Ver resultado" xOUTROSRESULTADOSFINAIS = "RESULTADOS FINAIS" xIdioma = "" elseif trim(xIdioma) = "e" then xMenu01 = "El Curso" xMenu02 = "Entrenamiento de Acrobacia" xMenu03 = "El local del Curso" xMenu04 = "La Estructura" xMenu05 = "El Equipo" xMenu06 = "Las Maniobras" xMenu07 = "El SIV" xMenu08 = "El Vuelo Remolcado" xMenu08a = "Despegue" xMenu08b = "Vuelo" xMenu08c = "Poso" xMenu09 = "Próximas Pandillas e Inscripciones" xMenu10 = "Contacto" xMenu11 = "Galería" xMenu11a = "Fotos" xMenu11b = "Videos" xMenu12 = "acrobcia" xMenu12a = "Ranking" xMenu12b = "Records" xMenu12c = "Conquistas" xMenu13 = "Cross Country" xMenu13a = "Ranking" xMenu13b = "Records" xMenu13c = "Conquistas" xMenu14 = "Locales de Vuelo" xMenu14a = "Brasil" xMenu14b = "Exterior" xMenu15 = "Eventos" xMenu16 = "Curiosidades" xMenu17 = "Enquetes" xMenu18 = "Literatura" xMenu19 = "Meteorologia" xMenu20 = "Foro" xMenu21 = "Artículos" xMenu22 = "Links" xMenu23 = "Emergencias" xMaisInformacoes = "más informaciones" xMais = "más" xVoltar = "Volver" xOUTROSAnterior = "Anterior" xOUTROSProxima = "Próxima" xOUTROSPosicao = "posición" xOUTROSNome = "nombre" xOUTROSPontuacao = "puntuación" xOUTROSFecharJanela = "cerrar ventana" xOUTROSVotar = "volver" xOUTROSVerresultado = "Ver resultado" xOUTROSRESULTADOSFINAIS = "resultados finales" xIdioma = "e" else xMenu01 = "The course" xMenu02 = "Acrobatics training" xMenu03 = "The course location" xMenu04 = "The structure" xMenu05 = "The team" xMenu06 = "The maneuvers" xMenu07 = "SIV" xMenu08 = "The towed flight" xMenu08a = "Take off" xMenu08b = "Flight" xMenu08c = "Landing" xMenu09 = "Next groups and registrations" xMenu10 = "Contact" xMenu11 = "Gallery" xMenu11a = "Photos" xMenu11b = "Videos" xMenu12 = "Acrobcia" xMenu12a = "Ranking" xMenu12b = "Records" xMenu12c = "Conquests" xMenu13 = "Cross Country" xMenu13a = "Ranking" xMenu13b = "Records" xMenu13c = "Conquests" xMenu14 = "Local of flight" xMenu14a = "Brazil" xMenu14b = "Exterior" xMenu15 = "Events" xMenu16 = "Curiosities" xMenu17 = "Enquetes" xMenu18 = "Literature" xMenu19 = "Meteorology" xMenu20 = "Forum" xMenu21 = "Goods" xMenu22 = "Links" xMenu23 = "Emergencies" xMaisInformacoes = "More information" xMais = "More" xVoltar = "Come Back" xOUTROSAnterior = "Previous" xOUTROSProxima = "Next" xOUTROSPosicao = "Position" xOUTROSNome = "Name" xOUTROSPontuacao = "Punctuation" xOUTROSFecharJanela = "Close window" xOUTROSVotar = "Votar" xOUTROSVerresultado = "Final results" xOUTROSRESULTADOSFINAIS = "resultados finales" xIdioma = "i" end if %> Piloto Safo<% If titulo_pagina <> "" Then Response.Write " - " & titulo_pagina %>
<% if xIdioma = "" then %> <% Elseif xIdioma = "i" then %> <% Else %> <% end if %>
<% if trim(xIdioma) = "" then %> <% elseif xIdioma = "i" then %> <% else %> <% end if %>
<% = xMenu01 %>
<% = xMenu02 %>
<% = xMenu03 %>
<% = xMenu04 %>
<% = xMenu05 %>
<% = xMenu06 %>
<% = xMenu07 %>
<% = xMenu08 %>
   <% = xMenu08a %>
   <% = xMenu08b %>
   <% = xMenu08c %>
<% = xMenu09 %>
<% = xMenu10 %>
<% = xMenu11 %>
   <% = xMenu11a %>
   <% = xMenu11b %>
<% = xMenu12 %>
   <% = xMenu12a %>
   <% = xMenu12b %>
   <% = xMenu12c %>
<% = xMenu13 %>
   <% = xMenu13a %>
   <% = xMenu13b %>
   <% = xMenu13c %>
<% = xMenu14 %>
   <% = xMenu14a %>
   <% = xMenu14b %>
<% = xMenu15 %>
<% = xMenu16 %>
<% = xMenu17 %>
<% = xMenu18 %>
<% = xMenu19 %>
<% = xMenu20 %>
<% = xMenu21 %>
<% = xMenu22 %>
<% = xMenu23 %>

<% sql = "SELECT top 10 www, Imagem1 FROM Meteorologia" Set rsMeteorologia = Dados.Execute(sql) If not rsMeteorologia.eof then vetFotos = rsMeteorologia.getrows xMax = Ubound(vetFotos,2) + 1 Mostra = 10 %> <% if xMax < Mostra then mostra = xMax end if Redim rndCodigos(Mostra) For x = 1 to Mostra rndCodigos(x) = 0 next tb = 1 do while tb < Mostra + 1 randomize(timer * timer) x = int(rnd * xMax) + 1 if x = 0 then x = 1 elseif x > xMax Then x = xMax end if for k = 1 to tb if x = rndCodigos(k) then exit for end if if rndCodigos(k) = 0 then rndCodigos(k) = x tb = tb + 1 exit for end if next loop %> <% for ind = 1 to Mostra www = vetFotos(0,rndCodigos(ind) -1) Imagem1 = vetFotos(1,rndCodigos(ind) -1) %>

<% next set vetFotos = Nothing %> Mais Meteorologia
<% end if rsMeteorologia.Close Set rsMeteorologia = Nothing %>
 
<% if trim(rsControles("FraseHome" & xIdioma)) <> "" then %>
<%= rsControles("FraseHome" & xIdioma) %>
<% xTextoHome = rsControles("TextoHome" & xIdioma) xTextoHome = Replace(xTextoHome & "",vbCRLF,"
" & vbCRLF) If trim(rsControles("Imagem3")) <> "" then %> " width="100" alt="" hspace="10" vspace="2" border="0" align="left"> <% end if %> <% = xTextoHome %>
&Idioma=<% = xIdioma %>" class=link><% = xMaisInformacoes %>

<% end if %>
<% sql = "SELECT * FROM O_Curso" Set rsO_Curso = Dados.Execute(sql) xDescricao1 = rsO_Curso("Descricao" & xIdioma & "1") xDescricao1 = Replace(xDescricao1 & "",vbCRLF,"
" & vbCRLF) if trim(xDescricao1) <> "" then %>
<% = xMenu01 %>
<% If trim(rsO_Curso("Imagem1")) <> "" then %> " width="100" alt="" hspace="10" vspace="2" border="0" align="left"> <% end if %> <% = rsO_Curso("Frase1" & xIdioma) %> - <% = left(xDescricao1,200) %>... <% = xMaisInformacoes %>

<% end if sql = "SELECT * FROM Treinamento_Acrobacia" Set rsTreinamento_Acrobacia = Dados.Execute(sql) xDescricao2 = rsTreinamento_Acrobacia("Descricao" & xIdioma & "1") xDescricao2 = Replace(xDescricao2 & "",vbCRLF,"
" & vbCRLF) if trim(xDescricao2) <> "" then %>
<% = xMenu02 %>
<% If trim(rsTreinamento_Acrobacia("Imagem1")) <> "" then %> " width="100" alt="" hspace="10" vspace="2" border="0" align="left"> <% end if %> <% = rsTreinamento_Acrobacia("Frase1" & xIdioma) %> - <% = left(xDescricao2,200) %>... <% = xMaisInformacoes %>

<% end if sql = "SELECT * FROM O_Local" Set rsO_Local = Dados.Execute(sql) xDescricao3 = rsO_Local("Descricao" & xIdioma & "1") xDescricao3 = Replace(xDescricao3 & "",vbCRLF,"
" & vbCRLF) if trim(xDescricao3) <> "" then %>
<% = xMenu03 %>
<% If trim(rsO_Local("Imagem1")) <> "" then %> " width="100" alt="" hspace="10" vspace="2" border="0" align="left"> <% end if %> <% = rsO_Local("Frase1" & xIdioma) %> - <% = left(xDescricao3,200) %>... <% = xMaisInformacoes %>

<% end if sql = "SELECT * FROM A_Estrutura" Set rsA_Estrutura = Dados.Execute(sql) xDescricao4 = rsA_Estrutura("Descricao" & xIdioma & "1") xDescricao4 = Replace(xDescricao4 & "",vbCRLF,"
" & vbCRLF) if trim(xDescricao4) <> "" then %>
<% = xMenu04 %>
<% If trim(rsA_Estrutura("Imagem1")) <> "" then %> " width="100" alt="" hspace="10" vspace="2" border="0" align="left"> <% end if %> <% = rsA_Estrutura("Frase1" & xIdioma) %> - <% = left(xDescricao4,200) %>... <% = xMaisInformacoes %>

<% end if sql = "SELECT * FROM A_Equipe" Set rsA_Equipe = Dados.Execute(sql) xDescricao5 = rsA_Equipe("Descricao" & xIdioma & "1") xDescricao5 = Replace(xDescricao5 & "",vbCRLF,"
" & vbCRLF) if trim(xDescricao5) <> "" then %>
<% = xMenu05 %>
<% If trim(rsA_Equipe("Imagem1")) <> "" then %> " width="100" alt="" hspace="10" vspace="2" border="0" align="left"> <% end if %> <% = rsA_Equipe("Frase1" & xIdioma) %> - <% = left(xDescricao5,200) %>... <% = xMaisInformacoes %>

<% end if sql = "SELECT * FROM O_Siv" Set rsO_Siv = Dados.Execute(sql) xDescricao6 = rsO_Siv("Descricao" & xIdioma & "1") xDescricao6 = Replace(xDescricao6 & "",vbCRLF,"
" & vbCRLF) if trim(xDescricao6) <> "" then %>
<% = xMenu07 %>
<% If trim(rsO_Siv("Imagem1")) <> "" then %> " width="100" alt="" hspace="10" vspace="2" border="0" align="left"> <% end if %> <% = rsO_Siv("Frase1" & xIdioma) %> - <% = left(xDescricao6,200) %>... <% = xMaisInformacoes %>

<% end if sql = "SELECT * FROM O_Voo_Rebocado where categoria = 1" Set rsO_Voo_Rebocado1 = Dados.Execute(sql) xDescricao7 = rsO_Voo_Rebocado1("Descricao" & xIdioma & "1") xDescricao7 = Replace(xDescricao7 & "",vbCRLF,"
" & vbCRLF) if trim(xDescricao7) <> "" then %>
<% = xMenu08 %> - <% = xMenu08a %>
<% If trim(rsO_Voo_Rebocado1("Imagem1")) <> "" then %> " width="100" alt="" hspace="10" vspace="2" border="0" align="left"> <% end if %> <% = rsO_Voo_Rebocado1("Frase1" & xIdioma) %> - <% = left(xDescricao7,200) %>... <% = xMaisInformacoes %>

<% end if sql = "SELECT * FROM O_Voo_Rebocado where categoria = 2" Set rsO_Voo_Rebocado2 = Dados.Execute(sql) xDescricao8 = rsO_Voo_Rebocado2("Descricao" & xIdioma & "1") xDescricao8 = Replace(xDescricao8 & "",vbCRLF,"
" & vbCRLF) if trim(xDescricao8) <> "" then %>
<% = xMenu08 %> - <% = xMenu08b %>
<% If trim(rsO_Voo_Rebocado2("Imagem1")) <> "" then %> " width="100" alt="" hspace="10" vspace="2" border="0" align="left"> <% end if %> <% = rsO_Voo_Rebocado2("Frase1" & xIdioma) %> - <% = left(xDescricao8,200) %>... <% = xMaisInformacoes %>

<% end if sql = "SELECT * FROM O_Voo_Rebocado where categoria = 3" Set rsO_Voo_Rebocado3 = Dados.Execute(sql) xDescricao9 = rsO_Voo_Rebocado3("Descricao" & xIdioma & "1") xDescricao9 = Replace(xDescricao9 & "",vbCRLF,"
" & vbCRLF) if trim(xDescricao9) <> "" then %>
<% = xMenu08 %> - <% = xMenu08c %>
<% If trim(rsO_Voo_Rebocado3("Imagem1")) <> "" then %> " width="100" alt="" hspace="10" vspace="2" border="0" align="left"> <% end if %> <% = rsO_Voo_Rebocado3("Frase1" & xIdioma) %> - <% = left(xDescricao9,200) %>... <% = xMaisInformacoes %>

<% end if sql = "SELECT Codigo, Imagem1 FROM Galerias_videos where Destaque = 'S'" Set rsVideos = Dados.Execute(sql) If not rsVideos.eof then vetFotos = rsVideos.getrows xMax = Ubound(vetFotos,2) + 1 Mostra = 1 %> <% if xMax < Mostra then mostra = xMax end if Redim rndCodigos(Mostra) For x = 1 to Mostra rndCodigos(x) = 0 next tb = 1 do while tb < Mostra + 1 randomize(timer * timer) x = int(rnd * xMax) + 1 if x = 0 then x = 1 elseif x > xMax Then x = xMax end if for k = 1 to tb if x = rndCodigos(k) then exit for end if if rndCodigos(k) = 0 then rndCodigos(k) = x tb = tb + 1 exit for end if next loop %> <% for ind = 1 to Mostra Imagem1 = vetFotos(1,rndCodigos(ind) -1) %>


  <% next set vetFotos = Nothing end if rsVideos.Close Set rsVideos = Nothing sql = "SELECT Codigo, Imagem1 FROM Galerias_fotos" Set rsFotos = Dados.Execute(sql) If not rsFotos.eof then vetFotos = rsFotos.getrows xMax = Ubound(vetFotos,2) + 1 Mostra = 6 %> <% if xMax < Mostra then mostra = xMax end if Redim rndCodigos(Mostra) For x = 1 to Mostra rndCodigos(x) = 0 next tb = 1 do while tb < Mostra + 1 randomize(timer * timer) x = int(rnd * xMax) + 1 if x = 0 then x = 1 elseif x > xMax Then x = xMax end if for k = 1 to tb if x = rndCodigos(k) then exit for end if if rndCodigos(k) = 0 then rndCodigos(k) = x tb = tb + 1 exit for end if next loop %> <% xIndice = 0 %> <% XPULA = 0 for ind = 1 to Mostra XPULA = XPULA + 1 IF XPULA = 4 THEN XPULA = 1 %> <% END IF codigo = vetFotos(0,rndCodigos(ind) -1) Imagem1 = vetFotos(1,rndCodigos(ind) -1) %> <% xIndice = xIndice + 1 xNavega_Fotos(xIndice) = Server.URLEncode(codigo) %> <% next Session("Navega_Fotos") = xNavega_Fotos set vetFotos = Nothing %>
<% = xMenu11 %> - <% = xMenu11a %>
<% = xMais %> <% = xMenu11a %>
<% end if %>

<% rsFotos.Close Set rsFotos = Nothing %>
<% sql = "SELECT Codigo, Nome_Manobra" & xIdioma & " FROM Manobras order by sequencia" Set rsManobras = Dados.Execute(sql) If not rsManobras.eof then vetFotos = rsManobras.getrows xMax = Ubound(vetFotos,2) + 1 Mostra = 5 %> <% if xMax < Mostra then mostra = xMax end if Redim rndCodigos(Mostra) For x = 1 to Mostra rndCodigos(x) = 0 next tb = 1 do while tb < Mostra + 1 randomize(timer * timer) x = int(rnd * xMax) + 1 if x = 0 then x = 1 elseif x > xMax Then x = xMax end if for k = 1 to tb if x = rndCodigos(k) then exit for end if if rndCodigos(k) = 0 then rndCodigos(k) = x tb = tb + 1 exit for end if next loop %>
<% = xMenu06 %>
<% for ind = 1 to Mostra codigo = vetFotos(0,rndCodigos(ind) -1) Titulo = vetFotos(1,rndCodigos(ind) -1) %> <% = Titulo %>
<% next set vetFotos = Nothing %> <% = xMais %> <% = xMenu06 %>

<% end if rsManobras.Close Set rsManobras = Nothing sql = "SELECT Codigo, Titulo" & xIdioma & " FROM Proximas_Turmas where Data >= Now order by data" Set rsProximas_Turmas = Dados.Execute(sql) If not rsProximas_Turmas.eof then vetFotos = rsProximas_Turmas.getrows xMax = Ubound(vetFotos,2) + 1 Mostra = 5 %> <% if xMax < Mostra then mostra = xMax end if Redim rndCodigos(Mostra) For x = 1 to Mostra rndCodigos(x) = 0 next tb = 1 do while tb < Mostra + 1 randomize(timer * timer) x = int(rnd * xMax) + 1 if x = 0 then x = 1 elseif x > xMax Then x = xMax end if for k = 1 to tb if x = rndCodigos(k) then exit for end if if rndCodigos(k) = 0 then rndCodigos(k) = x tb = tb + 1 exit for end if next loop %>
<% = xMenu09 %>
<% for ind = 1 to Mostra codigo = vetFotos(0,rndCodigos(ind) -1) Titulo = vetFotos(1,rndCodigos(ind) -1) %> <% = Titulo %>
<% next set vetFotos = Nothing %> <% = xMais %> <% = xMenu09 %>

<% end if rsProximas_Turmas.Close Set rsProximas_Turmas = Nothing %> <% sql = "SELECT top 1 * FROM Enquetes order by codigo desc" Set rsEnquete = Dados.Execute(sql) If Not rsEnquete.Eof Then xCodigo = rsEnquete("Codigo") %>
>
<% = xMenu17 %>
<%= rsEnquete("Pergunta" & xIdioma) %>
<% For i = 1 to 5 If rsEnquete("Resposta" & i & xIdioma) <> "" Then %>
<% End If Next %>
<% End If rsEnquete.Close Set rsEnquete = Nothing sql = "SELECT top 5 * FROM Eventos where data >= now order by data, codigo" Set rsEventos = Dados.Execute(sql) if not rsEventos.eof then %>
<% = xMenu15 %>
<% Do While Not rsEventos.Eof %> &Idioma=<% = xIdioma %>"><% = FormataData(rsEventos("Data")) %> - <% = rsEventos("Titulo" & xIdioma) %>
<% rsEventos.MoveNext Loop %> <% = xMais %> <% = xMenu15 %>

<% end if rseventos.Close Set rseventos = Nothing sql = "SELECT Codigo, Titulo" & xIdioma & " FROM Artigos" Set rsArtigos = Dados.Execute(sql) If not rsArtigos.eof then vetFotos = rsArtigos.getrows xMax = Ubound(vetFotos,2) + 1 Mostra = 5 %> <% if xMax < Mostra then mostra = xMax end if Redim rndCodigos(Mostra) For x = 1 to Mostra rndCodigos(x) = 0 next tb = 1 do while tb < Mostra + 1 randomize(timer * timer) x = int(rnd * xMax) + 1 if x = 0 then x = 1 elseif x > xMax Then x = xMax end if for k = 1 to tb if x = rndCodigos(k) then exit for end if if rndCodigos(k) = 0 then rndCodigos(k) = x tb = tb + 1 exit for end if next loop %>
<% = xMenu21 %>
<% for ind = 1 to Mostra codigo = vetFotos(0,rndCodigos(ind) -1) Titulo = vetFotos(1,rndCodigos(ind) -1) %> <% = Titulo %>
<% next set vetFotos = Nothing %> <% = xMais %> <% = xMenu21 %>

<% end if rsArtigos.Close Set rsArtigos = Nothing sql = "SELECT Codigo, Titulo" & xIdioma & " FROM Curiosidades" Set rsCuriosidades = Dados.Execute(sql) If not rsCuriosidades.eof then vetFotos = rsCuriosidades.getrows xMax = Ubound(vetFotos,2) + 1 Mostra = 5 %> <% if xMax < Mostra then mostra = xMax end if Redim rndCodigos(Mostra) For x = 1 to Mostra rndCodigos(x) = 0 next tb = 1 do while tb < Mostra + 1 randomize(timer * timer) x = int(rnd * xMax) + 1 if x = 0 then x = 1 elseif x > xMax Then x = xMax end if for k = 1 to tb if x = rndCodigos(k) then exit for end if if rndCodigos(k) = 0 then rndCodigos(k) = x tb = tb + 1 exit for end if next loop %>
<% = xMenu16 %>
<% for ind = 1 to Mostra codigo = vetFotos(0,rndCodigos(ind) -1) Titulo = vetFotos(1,rndCodigos(ind) -1) %> <% = Titulo %>
<% next set vetFotos = Nothing %> <% = xMais %> <% = xMenu16 %>

<% end if rsCuriosidades.Close Set rsCuriosidades = Nothing sql = "SELECT Titulo" & xIdioma & ", WWW FROM Links" Set rsLinks = Dados.Execute(sql) If not rsLinks.eof then vetFotos = rsLinks.getrows xMax = Ubound(vetFotos,2) + 1 Mostra = 5 %> <% if xMax < Mostra then mostra = xMax end if Redim rndCodigos(Mostra) For x = 1 to Mostra rndCodigos(x) = 0 next tb = 1 do while tb < Mostra + 1 randomize(timer * timer) x = int(rnd * xMax) + 1 if x = 0 then x = 1 elseif x > xMax Then x = xMax end if for k = 1 to tb if x = rndCodigos(k) then exit for end if if rndCodigos(k) = 0 then rndCodigos(k) = x tb = tb + 1 exit for end if next loop %>
<% = xMenu22 %>
<% for ind = 1 to Mostra Titulo = vetFotos(0,rndCodigos(ind) -1) www = vetFotos(1,rndCodigos(ind) -1) %> <% = Titulo %>
<% next set vetFotos = Nothing %> <% = xMais %> <% = xMenu22 %>

<% end if rsLinks.Close Set rsLinks = Nothing sql = "SELECT Codigo, Cidade, Pais FROM Locais" Set rsLocais = Dados.Execute(sql) If not rsLocais.eof then vetFotos = rsLocais.getrows xMax = Ubound(vetFotos,2) + 1 Mostra = 5 %> <% if xMax < Mostra then mostra = xMax end if Redim rndCodigos(Mostra) For x = 1 to Mostra rndCodigos(x) = 0 next tb = 1 do while tb < Mostra + 1 randomize(timer * timer) x = int(rnd * xMax) + 1 if x = 0 then x = 1 elseif x > xMax Then x = xMax end if for k = 1 to tb if x = rndCodigos(k) then exit for end if if rndCodigos(k) = 0 then rndCodigos(k) = x tb = tb + 1 exit for end if next loop %>
<% = xMenu14 %>
<% for ind = 1 to Mostra Codigo = vetFotos(0,rndCodigos(ind) -1) Local = vetFotos(1,rndCodigos(ind) -1) Pais = vetFotos(2,rndCodigos(ind) -1) %> <% if Pais = "Brasil" then %> <% Else %> <% end if %> <% = Local %>
<% next set vetFotos = Nothing %> <% = xMais %> <% = xMenu14 %>

<% end if rsLocais.Close Set rsLocais = Nothing sql = "SELECT Codigo, Cat, Nome" & xIdioma & " FROM Records" Set rsRecords = Dados.Execute(sql) If not rsRecords.eof then vetFotos = rsRecords.getrows xMax = Ubound(vetFotos,2) + 1 Mostra = 5 %> <% if xMax < Mostra then mostra = xMax end if Redim rndCodigos(Mostra) For x = 1 to Mostra rndCodigos(x) = 0 next tb = 1 do while tb < Mostra + 1 randomize(timer * timer) x = int(rnd * xMax) + 1 if x = 0 then x = 1 elseif x > xMax Then x = xMax end if for k = 1 to tb if x = rndCodigos(k) then exit for end if if rndCodigos(k) = 0 then rndCodigos(k) = x tb = tb + 1 exit for end if next loop %>
<% = xMenu13b %>
<% for ind = 1 to Mostra codigo = vetFotos(0,rndCodigos(ind) -1) cat = vetFotos(1,rndCodigos(ind) -1) Nome = vetFotos(2,rndCodigos(ind) -1) %> <% if cat = 1 then %> <% = Nome %>
<% else %> <% = Nome %>
<% end if %> <% next ind = ind - 1 cat = vetFotos(0,rndCodigos(ind) -1) set vetFotos = Nothing %> <% if cat = 1 then %> <% = xMais %> <% = xMenu13b %>
<% else %> <% = xMais %> <% = xMenu13b %>
<% end if %>

<% end if rsRecords.Close Set rsRecords = Nothing %> <% sql = "SELECT Codigo, Titulo" & xIdioma & ", Descricao" & xIdioma & ", Imagem1 FROM Literatura" Set rsLiteratura = Dados.Execute(sql) If not rsLiteratura.eof then vetFotos = rsLiteratura.getrows xMax = Ubound(vetFotos,2) + 1 Mostra = 2 %> <% if xMax < Mostra then mostra = xMax end if Redim rndCodigos(Mostra) For x = 1 to Mostra rndCodigos(x) = 0 next tb = 1 do while tb < Mostra + 1 randomize(timer * timer) x = int(rnd * xMax) + 1 if x = 0 then x = 1 elseif x > xMax Then x = xMax end if for k = 1 to tb if x = rndCodigos(k) then exit for end if if rndCodigos(k) = 0 then rndCodigos(k) = x tb = tb + 1 exit for end if next loop %>
<% = xMenu18 %>
<% for ind = 1 to Mostra codigo = vetFotos(0,rndCodigos(ind) -1) Titulo = vetFotos(1,rndCodigos(ind) -1) Descricao = vetFotos(2,rndCodigos(ind) -1) xDescricao = Descricao xDescricao = Replace(xDescricao & "",vbCRLF,"
" & vbCRLF) Imagem1 = vetFotos(3,rndCodigos(ind) -1) %>
<% = Titulo %> - <% = left(xDescricao,100) %> ...

<% next set vetFotos = Nothing %> <% = xMais %> <% = xMenu18 %>

<% end if rsLiteratura.Close Set rsLiteratura = Nothing %> <% sql = "SELECT Codigo, Cat, Categoria" & xIdioma & " FROM Ranking_Controle" Set rsRanking = Dados.Execute(sql) If not rsRanking.eof then vetFotos = rsRanking.getrows xMax = Ubound(vetFotos,2) + 1 Mostra = 5 %> <% if xMax < Mostra then mostra = xMax end if Redim rndCodigos(Mostra) For x = 1 to Mostra rndCodigos(x) = 0 next tb = 1 do while tb < Mostra + 1 randomize(timer * timer) x = int(rnd * xMax) + 1 if x = 0 then x = 1 elseif x > xMax Then x = xMax end if for k = 1 to tb if x = rndCodigos(k) then exit for end if if rndCodigos(k) = 0 then rndCodigos(k) = x tb = tb + 1 exit for end if next loop %>
<% = xMenu13a %>
<% for ind = 1 to Mostra codigo = vetFotos(0,rndCodigos(ind) -1) cat = vetFotos(1,rndCodigos(ind) -1) Categoria = vetFotos(2,rndCodigos(ind) -1) %> <% if cat = 1 then %> <% = Categoria %>
<% else %> <% = Categoria %>
<% end if %> <% next ind = ind - 1 cat = vetFotos(0,rndCodigos(ind) -1) set vetFotos = Nothing %> <% if cat = 1 then %> <% = xMais %> <% = xMenu13a %> <% else %> <% = xMais %> <% = xMenu13a %> <% end if %>

<% end if rsRanking.Close Set rsRanking = Nothing %> <% sql = "SELECT Codigo, Cat, Categoria" & xIdioma & " FROM Conquista_Controle where Cat = 1" Set rsConquista = Dados.Execute(sql) If not rsConquista.eof then vetFotos = rsConquista.getrows xMax = Ubound(vetFotos,2) + 1 Mostra = 5 %> <% if xMax < Mostra then mostra = xMax end if Redim rndCodigos(Mostra) For x = 1 to Mostra rndCodigos(x) = 0 next tb = 1 do while tb < Mostra + 1 randomize(timer * timer) x = int(rnd * xMax) + 1 if x = 0 then x = 1 elseif x > xMax Then x = xMax end if for k = 1 to tb if x = rndCodigos(k) then exit for end if if rndCodigos(k) = 0 then rndCodigos(k) = x tb = tb + 1 exit for end if next loop %>
<% = xMenu12c %> - <% = xMenu12 %>
<% for ind = 1 to Mostra codigo = vetFotos(0,rndCodigos(ind) -1) cat = vetFotos(1,rndCodigos(ind) -1) Categoria = vetFotos(2,rndCodigos(ind) -1) %> <% = Categoria %>
<% next ind = ind - 1 cat = vetFotos(0,rndCodigos(ind) -1) set vetFotos = Nothing %> <% = xMais %> <% = xMenu12c %> - <% = xMenu12 %>.

<% end if rsConquista.Close Set rsConquista = Nothing %> <% sql = "SELECT Codigo, Cat, Categoria" & xIdioma & " FROM Conquista_Controle where Cat = 2" Set rsConquista = Dados.Execute(sql) If not rsConquista.eof then vetFotos = rsConquista.getrows xMax = Ubound(vetFotos,2) + 1 Mostra = 5 %> <% if xMax < Mostra then mostra = xMax end if Redim rndCodigos(Mostra) For x = 1 to Mostra rndCodigos(x) = 0 next tb = 1 do while tb < Mostra + 1 randomize(timer * timer) x = int(rnd * xMax) + 1 if x = 0 then x = 1 elseif x > xMax Then x = xMax end if for k = 1 to tb if x = rndCodigos(k) then exit for end if if rndCodigos(k) = 0 then rndCodigos(k) = x tb = tb + 1 exit for end if next loop %>
<% = xMenu13c %> - <% = xMenu13 %>
<% for ind = 1 to Mostra codigo = vetFotos(0,rndCodigos(ind) -1) cat = vetFotos(1,rndCodigos(ind) -1) Categoria = vetFotos(2,rndCodigos(ind) -1) %> <% = Categoria %>
<% next ind = ind - 1 cat = vetFotos(0,rndCodigos(ind) -1) set vetFotos = Nothing %> <% = xMais %> <% = xMenu13c %> - <% = xMenu13 %>

<% end if rsConquista.Close Set rsConquista = Nothing sql = "SELECT Codigo, Nome_Emergencia" & xIdioma & " FROM Emergencias order by sequencia" Set rsEmergencias = Dados.Execute(sql) If not rsEmergencias.eof then vetFotos = rsEmergencias.getrows xMax = Ubound(vetFotos,2) + 1 Mostra = 5 %> <% if xMax < Mostra then mostra = xMax end if Redim rndCodigos(Mostra) For x = 1 to Mostra rndCodigos(x) = 0 next tb = 1 do while tb < Mostra + 1 randomize(timer * timer) x = int(rnd * xMax) + 1 if x = 0 then x = 1 elseif x > xMax Then x = xMax end if for k = 1 to tb if x = rndCodigos(k) then exit for end if if rndCodigos(k) = 0 then rndCodigos(k) = x tb = tb + 1 exit for end if next loop %>
<% = xMenu23 %>
<% for ind = 1 to Mostra codigo = vetFotos(0,rndCodigos(ind) -1) Titulo = vetFotos(1,rndCodigos(ind) -1) %> <% = Titulo %>
<% next set vetFotos = Nothing %> <% = xMais %> <% = xMenu23 %>

<% end if rsEmergencias.Close Set rsEmergencias = Nothing %>


<%= rsControles("Frase" & xIdioma) %>
<%= rsControles("Telefones") %>
"><%= rsControles("Email01") %>
<%= rsControles("Endereco" & xIdioma) %>
<% rsControles.Close Set rsControles = Nothing %> <% Dados.Close Set Dados = Nothing %>