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="Monitoraggio Utenti" 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: { 
10
						0:{sorter: false},
11
			}}
12
			);
13
		}
14
	);
15
	</script>
16
 
17
    <div id="content-1colonna"> 
18
		<h3 align="center">Monitoraggio Utenti</h3>
19
		<hr>
20
	  	<@s.form action="listStats" method="post" cssClass="ricerca">
21
			<@s.select label="Anno" list="anni" name="anno" onchange="javascript:inviaForm('listStats','risultatoTotAccessiUtente.do');" cssClass="rigaPari"/>
22
			<@s.select label="Mese" list="mesi" name="mese" headerKey="99" headerValue="Tutti i mesi" onchange="javascript:inviaForm('listStats','risultatoTotAccessiUtente.do');" cssClass="rigaDispari"/>
23
			<@s.select label="Ente" list="enti" name="ente" headerKey="0" headerValue="Tutti gli enti"  listKey="idEnte" listValue="nomeComune" onchange="javascript:inviaForm('listStats','risultatoTotAccessiUtente.do');" cssClass="rigaPari"/>
24
			<@s.textfield label="Username utente SigmaTer " name="username" value=username cssClass="rigaDispari" />
25
 
26
		<tr><td>
27
			<div class="pulsante"><a  class="button icon search" href="javascript:%20inviaForm('listStats','risultatoTotAccessiUtente.do')">cerca</a></div>
28
		</td></tr>
29
	  	</@s.form>
30
		<hr>
31
		<#if statistiche??>
32
 
33
				<table class="ricerca" id="tabLista">
34
					<thead>
35
					<tr>
36
						<th> </th>
37
						<th>Utente SigmaTer</th>
38
						<th>Ente</th>
39
						<th>N. interrogazioni effettuate</th>
40
						<th>Mese</th>
41
					</tr>	
42
					</thead>
43
					<tbody>
44
						<#assign conta = 1 />
45
						<#assign stringaCSV = "Nome Ente;Nome Utente;N. Interrogazioni;Mese">
46
						<@s.iterator value="statistiche" status="usersStatus">
47
 
48
						<tr	class="<@s.if test="#usersStatus.odd == true ">rigaPari</@s.if><@s.else>rigaDispari</@s.else>">
49
							<td>${conta}</td>
50
							<td><@s.property value="nomeUtente" /></td>
51
							<td><@s.property value="nomeEnte" /></td>
52
							<td><@s.property value="numeroInterrogazioni" /></td>
53
							<td>${data?string("yyyy / MMMM")}</td>
54
						<#assign conta = conta +1 />
55
						</tr>
56
						<#assign stringaCSV = stringaCSV + ";;" +  nomeEnte + ";" + nomeUtente + ";" + numeroInterrogazioni + ";" + data?string("yyyy-MMMM")  >
57
						</@s.iterator>
58
					</tbody>
59
				</table>
60
		</#if>
61
		<form id='dettaglioStats'  action='dettaglioStats' method="post">
62
			<@s.hidden id="username" name="username" value=username />
63
			<@s.hidden id="hiddenCSV" name="hiddenCSV" value=stringaCSV />
64
		</form>
65
 
66
		<div class="pulsante"><a class="button icon arrowleft" href="javascript: inviaForm('listStats','welcomeMonitora.do')">Indietro</a></div>
67
		<div class="pulsante"><a class="button icon log" href="javascript:window.print()">Stampa</a></div>
68
		<div class="pulsante"><a class="button icon log" href="javascript: inviaForm('dettaglioStats','downloadCSV.do')">CSV</a></div>
69
</div>
70
<div id="content-right"> 
71
 
72
 
73
		<@s.actionmessage/> 
74
  		<@s.fielderror />
75
   		<@s.actionerror/> 
76
    	<@s.fielderror>
77
		<@s.param>id</@s.param>
78
		</@s.fielderror>
79
	</div> 
80
</@layout.myLayout>