<%@ Language=VBScript %> <% Response.Charset = "utf-8" Session.Codepage = 1252 %> <% if Session("AbsPosUpdates") = "" or CDbl(Session("AbsPosUpdates")) < 1 then Session("AbsPosUpdates") = "1" end if if not IsNull(Request("abspos")) and Request("abspos") <> "" then Session("AbsPosUpdates") = Request("abspos") end if if not IsNull(Request("idl")) and Request("idl") <> "" then Session("idl") = Request("idl") end if if IsNull(Session("idl")) or Session("idl") = "" or CInt(Session("idl")) < 1 then Session("idl") = "1" end if continua = "Continua" if Session("idl") = "2" then continua = "More" end if %> ebilling
 ">

update

<% rcont = 0 Set cmdUpdates = Server.CreateObject("ADODB.Command") cmdUpdates.CommandType = 1 Set cmdUpdates.ActiveConnection = Session("CONNECTION") cmdUpdates.CommandText = "SELECT * FROM updates WHERE lingua_id = " & Session("idl") & " ORDER BY data DESC" Set rsUpdates = Server.CreateObject("ADODB.Recordset") rsUpdates.Open cmdUpdates, , 1, 3 if not(rsUpdates.BOF and rsUpdates.EOF) then rcont = rsUpdates.RecordCount select case Request("move") case "previous" if CDbl(Session("AbsPosUpdates")) > 4 then Session("AbsPosUpdates") = CStr(CDbl(Session("AbsPosUpdates"))-4) end if case "next" if CDbl(rcont-Session("AbsPosUpdates")) > 3 then Session("AbsPosUpdates") = CStr(CDbl(Session("AbsPosUpdates"))+4) end if case else if (Session("AbsPosUpdates") mod 4) > 0 then Session("AbsPosUpdates") = CStr(CDbl((4*(Session("AbsPosUpdates")\4))+1)) else Session("AbsPosUpdates") = CStr(CDbl((4*((Session("AbsPosUpdates")\4)-1))+1)) end if end select rsUpdates.Bookmark = CDbl(Session("AbsPosUpdates")) Session("AbsPosUpdates") = CStr(rsUpdates.Bookmark) ppo = 1 while Not rsUpdates.EOF and (CInt(ppo) <> CInt("5")) %>

<%=ShowDate(rsUpdates("data"))%>

<%=rsUpdates("titolo")%>

<%=rsUpdates("sottotitolo")%>

<%=rsUpdates("anteprima")%> &m=5"><%= continua%>

<% rsUpdates.MoveNext ppo = ppo + 1 wend end if rsUpdates.Close if (CInt(Session("AbsPosUpdates")) mod 4 > 0) then this_page = (CInt(Session("AbsPosUpdates"))\4)+1 else this_page = CInt(Session("AbsPosUpdates"))\4 end if if (rcont mod 4 > 0) then last_page = (rcont\4)+1 else last_page = rcont\4 end if %>

« <%=this_page%> / <%=last_page%> »