« Dati sullo scrutinio « Indice
VOTANTI <%response.write(lcTitolo)%> - DETTAGLIO PER COMUNE
VOTANTI - DETTAGLIO PER COMUNE
<% Set Conn = Server.CreateObject("ADODB.Connection") Set RSElezioni = Server.CreateObject ("ADODB.RecordSet") Conn.Open "dsn=risult_refe2006" Set RSdataora = Server.CreateObject ("ADODB.RecordSet") RSdataora.ActiveConnection = Conn RSdataora.CursorType = adOpenStatic RSdataora.Source = "select * from dataoraagg" RSdataora.Open() data = RSdataora("dataagg") ora = RSdataora("oraagg") RSdataora.close() Set RSdataora = nothing %> (situazione alle ore <%=ora%> del <%=data%>)
Votanti ore 12 Votanti ore 19 Votanti ore 22 Votanti finali <% if Request.form("submit") <> "Invia" then Conn.Close Set Conn = nothing response.end end if lcSql = "select comuni.comune as comune,affluenze.elettori as elettori,"+_ "affluenze.votmref1,affluenze.votmref2,affluenze.votmref3,affluenze.votmref4,"+_ "affluenze.votfref1,affluenze.votfref2,affluenze.votfref3,affluenze.votfref4,"+_ "affluenze.votanti1ref1,affluenze.votanti1ref2,affluenze.votanti1ref3,affluenze.votanti1ref4,"+_ "affluenze.votanti2ref1,affluenze.votanti2ref2,affluenze.votanti2ref3,affluenze.votanti2ref4,"+_ "affluenze.votanti3ref1,affluenze.votanti3ref2,affluenze.votanti3ref3,affluenze.votanti3ref4,"+_ "affluenze.votanti4ref1,affluenze.votanti4ref2,affluenze.votanti4ref3,affluenze.votanti4ref4"+_ " from comuni inner join affluenze on comuni.codice = affluenze.ridcomune order by comune" Set RSelezioni = Server.CreateObject ("ADODB.RecordSet") RSelezioni.ActiveConnection = Conn RSelezioni.CursorType=adOpenStatic RSelezioni.Source = lcSql RSelezioni.Open() if RSelezioni.eof or RSelezioni.bof then response.write("NON CI SONO DATI DA VISUALIZZARE") RSelezioni.Close() Conn.Close Set Conn = nothing Set RSElezioni = nothing response.end end if RSelezioni.MoveFirst %>
Votanti