<% Set BD = Server.CreateObject("ADODB.Connection") BD.Open "fneth.org.fneth" Set BaseDatos = Server.CreateObject("ADODB.Recordset") operacion = request("operacion") if operacion="" then operacion = "LISTADO" end if IdDonde = request("Iddonde") if IdDonde = "" then IdDonde = "1" end if DondeFinal = 5*cint(IdDonde) DondeInicial = DondeFinal-4 if operacion="ENVIAR" then Set Mail = Server.CreateObject("Persits.MailSender") Mail.Host = "smtp.fneth.org" Mail.Username = "bdx004c" Mail.Password = "Envio2011" Mail.AddAddress "fneth@fneth.org" Mail.From = "envio@fneth.org" Mail.FromName ="CORREO DESDE WEB FNETH" Mail.Subject = "Formulario_General" Mail.Body = "Contacto:"&request("contacto")&"
Mail:"&request("mail")&"
Telefono: "&request("telefono")&"
Comentarios: "&request("comentarios")&"" Mail.IsHTML = True 'On error Resume Next Mail.Send If Err<>0 then Response.write "Ha ocurrido un error: "&Err.Description End if end if %> FNETH - Federación Nacional de Enfermos y Trasplantados Hepáticos
  
síguenos en  fneth@fneth.org  
Inicio
» Historia
» Junta Directiva
» Objetivos
» Dónde estamos
» Piso de Acogida
» ACTIVIDADES
» NOTICIAS
» DOCUMENTOS
» ENLACES
<% sql="SELECT COUNT(*) FROM Noticias " BaseDatos.Open sql, BD Total = BaseDatos(0) BaseDatos.close Valor = Total/5 ValorInt = int(Valor) if Valor = ValorInt then else Valor = ValorInt + 1 end if if Total<=DondeFinal then DondeFinal = Total end if %>
Encontradas <%=Total %> noticias
<%Ant =IdDonde - 1%>
Está viendo la página <%=IdDonde%> de <%=Valor%>: noticia <%=DondeInicial%> a <%=DondeFinal%>  
<%if Ant<=Valor AND Ant<>"0" then %><< Página anterior<%end if%>     <% k=1 Do While k<=Valor %> <%=k%> <% k=k+1 Loop Sig = IdDonde + 1 %>     <%if sig<=Valor then %>Página siguiente >><%end if%>
<% sql="SELECT * FROM Noticias ORDER BY Id_Noticia DESC" BaseDatos.Open sql, BD contador = 1 Do While Not BaseDatos.Eof if contador >= cint(Dondeinicial) AND contador<=cint(DondeFinal) then IdNoticia = BaseDAtos("Id_Noticia") Fecha = BaseDatos("Fecha") Titulo = BaseDatos("Titulo") Subtitulo = BaseDatos("Subtitulo") imagen1 = BaseDatos("imagen1") imagen2 = BaseDatos("imagen2") imagen3 = BaseDatos("imagen3") imagen4 = BaseDatos("imagen4") imagen5 = BaseDatos("imagen5") documento1 = BaseDatos("documento1") documento2 = BaseDatos("documento2") documento3 = BaseDatos("documento3") documento4 = BaseDatos("documento4") documento5 = BaseDatos("documento5") video = BaseDatos("video") if imagen1="AND" OR imagen1="0" AND imagen1="0" AND imagen1="0" AND imagen1="0" then HayImagen="N" else HayImagen = "S" end if if documento1="0" AND documento1="0" AND documento1="0" AND documento1="0" AND documento1="0" then Haydocumento="N" else Haydocumento = "S" end if if video="0" then HayVideo = "N" else HayVideo = "S" end if %>
<%=Titulo%>
[<%=Fecha%>]
<%IF HayDocumento="S" then%><%end if%> <%IF HayImagen="S" then%> <%end if%> <%IF HayVideo="S" then%> <%end if%>
» Ver más información
<% end if BaseDatos.MoveNext contador = contador + 1 Loop BaseDatos.close %>
 NUESTROS COLABORADORES:
<%if operacion="LISTADO" then%> <%end if%> <%if operacion ="ENVIAR" then%> <%end if%>
Contacta con nosotros:
Persona de contacto:
E-mail:
Teléfono:
Comentarios / Preguntas
Enviar e-mail  
* Ver Política de Privacidad  


GRACIAS POR ENVIAR SU SOLICITUD

Página Principal

Historia
Junta Directiva
Objetivos
Dónde estamos
Piso de Acogida
Actividades
Noticias
Documentos
Enlaces de interés
Asociaciones Nacionales
Hazte donante
   * Ser Donante
   * Información
C/ Santiago de Compostela, nº 38-7ºB   *   28034  -  Madrid  Tels. 667 496 358  fneth@fneth.org Todos los derechos reservados ®