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
							4:{sorter: false},
12
				}}
13
			);
14
		}
15
	);
16
	</script>
17
 
18
    <div id="content-1colonna"> 
19
		<h3 align="center">Monitoraggio Utenti</h3>
20
		<hr>
21
	  	<@s.form action="listStats" method="post" cssClass="ricerca">
22
			<@s.textfield label="Utente " name="utenteDaCercare.username" value=utenteDaCercare.username cssClass="rigaDispari" />
23
		    <@s.hidden id="indiceData" name="indiceData"/>
24
		    <@s.select label="Ente" list="enti" name="ente" headerKey="0" headerValue="Tutti gli enti"  listKey="idEnte" listValue="nomeComune" onchange="javascript:inviaForm('listStats','listStats.do');" cssClass="rigaPari"/>
25
 
26
		    <@s.hidden id="username" name="username"/>
27
		    <@s.hidden id="idEnte" name="idEnte"/>
28
			<@s.select label="Periodo" list="listaScelte" name="giorni" listKey="nGiorni" listValue="descrizione" onchange="javascript:inviaForm('listStats','listStats.do');" cssClass="rigaDispari"/>
29
			<#if monitoraggio??>
30
				<@s.hidden id="strData" name="strData" value='${dataCorrente?string("yyyy-MM-dd")}'/>
31
			</#if>
32
		<tr><td>
33
			<div class="pulsante"><a  class="button icon search" href="javascript:%20inviaForm('listStats','/srmAdmin/listStats.do')">cerca</a></div>
34
		</td></tr>
35
	  	</@s.form>
36
		<hr>
37
		<#if monitoraggio??>
38
			 <#if (date?? )  >
39
				<#if (date?size = indiceData+1) >
40
					<#assign primoRecord = "disabled='disabled'">
41
				<#else>
42
					<#assign primoRecord = "">
43
				</#if>
44
				<#if (indiceData = 0) > 
45
					<#assign ultimoRecord = "disabled='disabled'">
46
				<#else>
47
					<#assign ultimoRecord = "">
48
				</#if>
49
			 </#if>
50
					<table class="calendario">
51
					<tr>
52
						<td class="foglietto">
53
							<p class="calendar">${dataCorrente?string("dd")} <em>${dataCorrente?string("MMMM")}</em></p>
54
						</td>
55
						<td colspan="4" > 
56
							<span class="pulsante">
57
							<ul class="button-group">
58
								<input type="button" class="button pill" value="&lt;" onClick="inviaForm2('listStats','listStats.do' ,'indiceData','${indiceData+1}')"  ${primoRecord} />
59
								<input type="button" class="button pill" value="&gt;" onClick="inviaForm2('listStats','listStats.do' ,'indiceData','${indiceData-1}')"  ${ultimoRecord} />
60
						  	</ul>
61
							</span>
62
						  </td>
63
					</tr>
64
					</table>
65
				<span class='paginazione' >
66
					<#if (date?? )  >
67
						N. giorni trovati: ${date?size}
68
					</#if>
69
				</span>
70
				<table class="ricerca" id="tabLista">
71
					<thead>
72
					<tr>
73
						<th> </th>
74
						<th>Ente</th>
75
						<th>Utente</th>
76
						<th>N. interrogazioni effettuate</th>
77
						<th> </th>
78
					</tr>	
79
					</thead>
80
					<tbody>
81
						<#assign conta = 1 />
82
						<@s.iterator value="monitoraggio" status="monStatus" >
83
						<tr	class="<@s.if test="#monStatus.odd == true ">rigaPari</@s.if><@s.else>rigaDispari</@s.else>">
84
							<td>${conta}</td>
85
							<td><@s.property value="nomeEnte" /></td>
86
							<td><@s.property value="nomeUtente" /></td>
87
							<td><@s.property value="numeroInterrogazioni" /></td>
88
							<td>
89
								<a class="button icon mini arrowright" href="javascript: inviaForm3('listStats','dettaglioStats.do','idEnte','${idEnte}','username','${nomeUtente}')">
90
								dettaglio</a>
91
							</td>
92
							<#assign conta = conta +1 />
93
						</tr>
94
						</@s.iterator>
95
					</tbody>
96
					<tfoot>	
97
					<tr>
98
						<td colspan=5> 
99
							<span class="pulsante">
100
							<ul class="button-group">
101
								<li><input type="button" class="button pill" value="Primo giorno" onClick="inviaForm2('listStats','listStats.do' ,'indiceData','${date?size-1}')"  ${primoRecord} /></li>		
102
								<li><input type="button" class="button pill " value="Giorno precedente" onClick="inviaForm2('listStats','listStats.do' ,'indiceData','${indiceData+1}')"  ${primoRecord} /></li>
103
								<li><input type="button" class="button pill " value="Giorno seguente" onClick="inviaForm2('listStats','listStats.do' ,'indiceData','${indiceData-1}')"  ${ultimoRecord} /></li>
104
								<li><input type="button" class="button pill " value="Ultimo giorno" onClick="inviaForm2('listStats','listStats.do' ,'indiceData','0')"  ${ultimoRecord} /></li>
105
							</ul>
106
							</span>
107
						  </td>
108
					</tr>
109
					</tfoot>	
110
				</table>
111
		</#if>
112
</div>
113
<div id="content-right"> 
114
 
115
 
116
		<@s.actionmessage/> 
117
  		<@s.fielderror />
118
   		<@s.actionerror/> 
119
    	<@s.fielderror>
120
		<@s.param>id</@s.param>
121
		</@s.fielderror>
122
	</div> 
123
</@layout.myLayout>