Blame | Last modification | View Log | Download | RSS feed
<#import "/template/srm/defaultLayout.ftl" as layout >
<@layout.myLayout title="Statistiche per anno" tipoMenu="menu4" scripts=["js/common.js","js/jquery-latest.js","js/jquery.tablesorter.min.js"] iCss=["css/srm.css","css/tablesorter.css"]>
<script type="text/javascript">
$(document).ready(function()
{
$("#tabLista").tablesorter(
{headers: { 0:{sorter: false},4:{sorter: false} }}
);
}
);
</script>
<div id="content-1colonna">
<h3 align="center">Statistiche per anno</h3>
<hr>
<@s.form action="yearStats" method="post" cssClass="ricerca">
<@s.select label="Anno" list="anni" name="anno" onchange="javascript:inviaForm('yearStats','yearStats.do');" cssClass="rigaPari"/>
<@s.select label="Mese" list="mesi" name="mese" headerKey="99" headerValue="Tutti i mesi" onchange="javascript:inviaForm('yearStats','yearStats.do');" cssClass="rigaDispari"/>
<@s.hidden id="tipoEnte" name="tipoEnte"/>
<@s.hidden id="unMese" name="unMese"/>
<tr><td>
<div class="pulsante"><a class="button icon search" href="javascript:%20inviaForm('yearStats','/srmAdmin/yearStats.do')">cerca</a></div>
</td></tr>
</@s.form>
<hr>
<#if statistiche??>
<#assign seqMesi = ["gennaio", "febbraio","marzo","aprile", "maggio",
"giugno", "luglio", "agosto", "settembre",
"ottobre", "novembre", "dicembre"]>
<table class="ricerca" id="tabLista">
<thead>
<tr>
<th> </th>
<th>Ente</th>
<th>Mese</th>
<th>N. interrogazioni effettuate</th>
<th> </th>
</tr>
</thead>
<tbody>
<#assign conta = 1 />
<#list statistiche as x>
<tr class="<#if x_index % 2 == 0 >rigaPari <#else>rigaDispari</#if>">
<td>${conta}</td>
<td>${x.nomeEnte} </td>
<td>${seqMesi[x.mese-1]}</td>
<td>${x.numeroInterrogazioni} </td>
<td>
<a class="button icon mini arrowright" href="javascript: inviaForm3('yearStats','dettaglioEntiStats.do','tipoEnte','${x.tipoEnte}','unMese','${x.mese}')">
dettaglio
</a>
</td>
</tr>
<#assign conta = conta +1 />
</#list>
</tbody>
</table>
</#if>
</div>
<div id="content-right">
<@s.actionmessage/>
<@s.fielderror />
<@s.actionerror/>
<@s.fielderror>
<@s.param>id</@s.param>
</@s.fielderror>
</div>
</@layout.myLayout>