Subversion Repositories Sigmater

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
6 Andrea 1
<#import "/template/srm/defaultLayout.ftl" as layout  >
2
 
3
<@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"]>
4
 
5
	<script type="text/javascript">
6
	$(document).ready(function()
7
		{
8
			$("#tabLista").tablesorter(
9
				{headers: { 0:{sorter: false},4:{sorter: false} }}
10
			);
11
		}
12
	);
13
	</script>
14
 
15
   <div id="content-1colonna"> 
16
		<h3 align="center">Statistiche per anno</h3>
17
		<hr>
18
	  	<@s.form action="yearStats" method="post" cssClass="ricerca">
19
			<@s.select label="Anno" list="anni" name="anno" onchange="javascript:inviaForm('yearStats','yearStats.do');" cssClass="rigaPari"/>
20
			<@s.select label="Mese" list="mesi" name="mese" headerKey="99" headerValue="Tutti i mesi" onchange="javascript:inviaForm('yearStats','yearStats.do');" cssClass="rigaDispari"/>
21
			<@s.hidden id="tipoEnte" name="tipoEnte"/>
22
			<@s.hidden id="unMese" name="unMese"/>
23
		<tr><td>
24
			<div class="pulsante"><a  class="button icon search" href="javascript:%20inviaForm('yearStats','/srmAdmin/yearStats.do')">cerca</a></div>
25
		</td></tr>
26
	  	</@s.form>
27
		<hr>
28
		<#if statistiche??>
29
			<#assign seqMesi = ["gennaio", "febbraio","marzo","aprile", "maggio",
30
						 "giugno", "luglio", "agosto", "settembre",
31
						 "ottobre", "novembre", "dicembre"]>
32
 
33
			<table class="ricerca" id="tabLista">
34
				<thead>
35
				<tr>
36
					<th> </th>
37
					<th>Ente</th>
38
					<th>Mese</th>
39
					<th>N. interrogazioni effettuate</th>
40
					<th> </th>
41
				</tr>	
42
				</thead>
43
				<tbody>
44
					<#assign conta = 1 />
45
					<#list statistiche as x>
46
					<tr	class="<#if x_index % 2 == 0 >rigaPari <#else>rigaDispari</#if>">
47
						<td>${conta}</td>
48
						<td>${x.nomeEnte}  </td>
49
						<td>${seqMesi[x.mese-1]}</td> 
50
						<td>${x.numeroInterrogazioni} </td>
51
						<td>
52
						<a class="button icon mini arrowright" href="javascript: inviaForm3('yearStats','dettaglioEntiStats.do','tipoEnte','${x.tipoEnte}','unMese','${x.mese}')">
53
						dettaglio
54
						</a>
55
						</td>
56
					</tr>
57
					<#assign conta = conta +1 />
58
					</#list> 
59
				</tbody>
60
			</table>
61
		</#if>
62
</div>
63
<div id="content-right"> 
64
		<@s.actionmessage/> 
65
  		<@s.fielderror />
66
   		<@s.actionerror/> 
67
    	<@s.fielderror>
68
		<@s.param>id</@s.param>
69
		</@s.fielderror>
70
	</div> 
71
</@layout.myLayout>