<% ln = "es" carpeta = "" if Is_Mobile() then movil = true servW = "Ancho80" else movil = false servW = "Ancho80" end if %> <% Call VisitaAdd() basedatos = BaseDatosString() 'ruta & "\db\SantJordi.mdb" Set conexion = Server.CreateObject("ADODB.Connection") conexion.Open "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" & basedatos & ";" Set CONFIG = CreateObject("ADODB.Recordset") sqltxt = "SELECT Config.*,(SELECT COUNT(Fecha) as fc FROM PUBLICIDAD) AS Cuenta From Config" CONFIG.Open sqltxt, conexion, 3,1 %>
<% ruta = RutaAbs("") & "modules/menu-web.asp?ln=" & ln & "&carpeta=" & carpeta & "&ip=" & IPGestion() 'response.write ruta response.write GetTextFromUrl(ruta) %> ">
<% Set ARTICULOS = CreateObject("ADODB.Recordset") sqltxt = "SELECT * FROM Web_Destacados order by orden" ARTICULOS.Open sqltxt, conexion, 3, 1 i = 1 disp = "inline" %> <% DO WHILE NOT ARTICULOS.EOF%> <% if ARTICULOS.Fields("tipo")="Imagen" then %>
">" class="imagen100" id="imagen_<%=i%>" border="0" >
"> "> "> ">
<%=ARTICULOS.Fields("titulo")%>
<% if movil = false then ancho_txt = ARTICULOS.Fields("texto_ancho") izq_txt = ARTICULOS.Fields("texto_pos") else ancho_txt = "90" izq_txt = "0" end if %> <% else %>
<%=ARTICULOS.Fields("titulo")%>
">
<% end if %> <% disp = "none" IF not ARTICULOS.EOF THEN i = i + 1 ARTICULOS.MOVENEXT END IF LOOP %>
<% ARTICULOS.MOVEfirst imagen = "images/slide_select.png" i = 1 %> <% do while NOT ARTICULOS.EOF %> <% IF not ARTICULOS.EOF THEN i = i + 1 ARTICULOS.MOVENEXT imagen = "images/slide_Noselect.png" END IF LOOP %>
<% Set NOTICIAS = CreateObject("ADODB.Recordset") sqltxt = "SELECT * FROM Noticias order by codnoticia desc" NOTICIAS.Open sqltxt, conexion, 3, 1 i = 1 %> <% DO WHILE NOT NOTICIAS.EOF AND Int(i)<=3 %>
   
<%=NOTICIAS.Fields("titulo")%>
<%=FechaNoticias(NOTICIAS.Fields("fecha"))%>
<%=NOTICIAS.Fields("texto_lista")%>
   
" class="Boton-gris">Leer ms...
<% i = i + 1 IF not NOTICIAS.EOF THEN NOTICIAS.MOVENEXT END IF LOOP NOTICIAS.CLOSE SET NOTICIAS = NOTHING %>
   
Patrocinadores
Premium & Principales
   
<% Set registros = CreateObject("ADODB.Recordset") sqltxt = "SELECT * FROM Patrocnadores Where Tipo='Premium' or Tipo='Principales' ORDER BY Tipo DESC " registros.Open sqltxt, conexion, 3,1 i=0 %> <% Do While Not registros.eof%> ">" class="home-pat-principal" align="absmiddle"> <% if not registros.eof then i = i + 1 registros.movenext end if Loop %>
   
  Redes Sociales  


Himno Sant Jordi

VERD I NEGRE S EL NOSTRE COR
Autor: Alfredo Mar, cantante del grupo ibicenco Pota Lait


Patrocinadores Oficiales - Colaboradores
   
<% Set registros = CreateObject("ADODB.Recordset") sqltxt = "SELECT * FROM Patrocnadores Where Tipo<>'Premium' and Tipo<>'Principales' ORDER BY Tipo DESC " registros.Open sqltxt, conexion, 3,1 i=0 %> <% Do While Not registros.eof%> ">" class="home-pat-secund " align="absmiddle"> <% if not registros.eof then i = i + 1 registros.movenext end if Loop REGISTROS.CLOSE SET REGISTROS = NOTHING %>
   
  Galera Imagenes  
<% Set FOTOS = CreateObject("ADODB.Recordset") sqltxt = "SELECT * FROM Galeria_formato WHERE Tipo='1' ORDER BY Fecha_final DESC" FOTOS.Open sqltxt, conexion, 3,1 i=1 %> <% Do While i<=15 and (not FOTOS.EOF) %> <% IF not FOTOS.EOF THEN i = i + 1 FOTOS.MoveNext END IF LOOP FOTOS.CLOSE SET FOTOS = NOTHING %>
   
<% ruta = RutaAbs("") & "modules/pie-web.asp?ln=" & ln & "&carpeta=" & carpeta response.write GetTextFromUrl(ruta) %>
<% CONFIG.CLOSE SET CONFIG = NOTHING conexion.close set conexion = nothing response.Flush() %>