%@LANGUAGE="VBSCRIPT"%>
<%
Dim mesi
Dim mesi_numRows
Set mesi = Server.CreateObject("ADODB.Recordset")
mesi.ActiveConnection = MM_conn_STRING
mesi.Source = "SELECT DISTINCT mese FROM news WHERE titoloING = 'NO' and anno = " & year(now) & " ORDER BY mese DESC"
mesi.CursorType = 0
mesi.CursorLocation = 2
mesi.LockType = 1
mesi.Open()
mesi_numRows = 0
%>
<%
Dim news
Dim news_numRows
Set news = Server.CreateObject("ADODB.Recordset")
news.ActiveConnection = MM_conn_STRING
news.Source = "SELECT * FROM news WHERE titoloING = 'NO' AND anno = " & year(now) & " ORDER BY data DESC"
news.CursorType = 0
news.CursorLocation = 2
news.LockType = 1
news.Open()
news_numRows = 0
%>
<%
Dim archivi
Dim archivi_numRows
Set archivi = Server.CreateObject("ADODB.Recordset")
archivi.ActiveConnection = MM_conn_STRING
archivi.Source = "SELECT anno FROM news WHERE titoloING = 'NO' AND anno < "& year(now) &" GROUP BY anno ORDER BY anno ASC"
archivi.CursorType = 0
archivi.CursorLocation = 2
archivi.LockType = 1
archivi.Open()
archivi_numRows = 0
%>
<%
Dim Repeat1__numRows
Dim Repeat1__index
Repeat1__numRows = -1
Repeat1__index = 0
mesi_numRows = mesi_numRows + Repeat1__numRows
%>
<%
Dim Repeat3__numRows
Dim Repeat3__index
Repeat3__numRows = -1
Repeat3__index = 0
news_numRows = news_numRows + Repeat3__numRows
%>
<%
Dim Repeat2__numRows
Dim Repeat2__index
Repeat2__numRows = -1
Repeat2__index = 0
mesi_numRows = mesi_numRows + Repeat2__numRows
%>
GUIDO HARARI
<% if not (mesi.EOF) then %>
ULTIME
NEWS
<%
While ((Repeat1__numRows <> 0) AND (NOT mesi.EOF))
%>
<%
Dim r1
Dim r1_numRows
Set r1 = Server.CreateObject("ADODB.Recordset")
r1.ActiveConnection = MM_conn_STRING
r1.Source = "SELECT * FROM news WHERE titoloING = 'NO' AND anno= "& year(now) &" AND mese=" & (mesi.Fields.Item("mese").Value) & " ORDER BY data DESC"
r1.CursorType = 0
r1.CursorLocation = 2
r1.LockType = 1
r1.Open()
r1_numRows = 0
%>
<%
While ((Repeat2__numRows <> 0) AND (NOT r1.EOF))
%>