<%@ Language=VBScript %> <% Response.Buffer=True Response.ExpiresAbsolute = #1/1/1980# Response.Expires=0 raiz = "" dim numeropag numpage = 0 numpage = numpage + Request.QueryString("pagina") 'Pagina en la que se encuentra if numpage = "" then numpage = 1 end if if numpage < 1 then numpage = 1 end if %> IBG Industrial Bolsera Granadina, S.A. <% SQL = "SELECT * FROM noticias INNER JOIN tiponoticias ON noticias.codnoticia = tiponoticias.codnoticia" primero = true 'if busqueda <> "" then ' SQL = SQL & " Where (Upper(titulo) like '%"&UCase(busqueda)&"%' or Upper(contenido) like '%"&UCase(busqueda)&"%') " ' primero = false 'end if 'if tema <> "0" then ' if primero then ' SQL = SQL & " Where noticias.codnoticia = " & tema ' primero = false ' else ' SQL = SQL & " and noticias.codnoticia = " & tema ' end if 'end if if primero then SQL = SQL & " Where (fechacaducidad IS NULL OR fechacaducidad = '' OR fechacaducidad >= '" & fecha_hoy &"') and activo = 1" else SQL = SQL & " and fechacaducidad IS NULL OR fechacaducidad = '' OR fechacaducidad >= '" & fecha_hoy() &"' and activo = 1" end if SQL = SQL & " ORDER BY fechacreacion DESC" 'Response.Write(SQL) set MiRs = Server.CreateObject("ADODB.Recordset") MiRs.PageSize = 8 MiRs.Open SQL, Session("DBConn"), adOpenKeyset if not MiRs.EOF then dim totales totales = 0 totales = totales + MiRs.PageCount if numpage > totales then numpage= totales end if MiRs.AbsolutePage = numpage end if SQL1 = "SElect * From tiponoticias Where activa = 1" set tnoticia = Server.CreateObject("ADODB.Recordset") tnoticia.Open SQL1, Session("DBConn"), adOpenKeyset %>
Nuestra Empresa Servicios Nuestros Productos Atención al Cliente
<% i = 1 do while not MiRs.EOF and i<= MiRs.PageSize %> <% MiRs.MoveNext i = i + 1 loop %>
<% IF Not MiRs.EOF then%>  Página <%=numpage%> de <%Response.Write(totales)%>   <%End if%>

<%=convertirafecha(MiRs("fechacreacion"))%> - &pagina=<%=numpage%>"><%=MiRs("titulo")%>
<%=Left(MiRs("contenido"),200)%>... &pagina=<%=numpage%>">plus

   

Principal l Nouvelles l Contact l Société l Services l Produits l Attention au Client l Avis Légal l Polique de Caractére privé
Español l English l Français

©2005 Industrial Bolsera Granadina s.a. - Tel. +(34) 958 44 09 01