Subversion Repositories Sigmater

Rev

Blame | Last modification | View Log | Download | RSS feed

<#import "/template/srm/defaultLayout.ftl" as layout>

<@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"]>

        <script type="text/javascript">
        $(document).ready(function()
                {
                        $("#tabLista").tablesorter(
                                        {headers: { 
                                                0:{sorter: false},
                        }}
                        );
                }
        );
        </script>

    <div id="content-1colonna"> 
                <h3 align="center">Monitoraggio Utenti</h3>
                <hr>
                <@s.form action="listStats" method="post" cssClass="ricerca">
                        <@s.select label="Anno" list="anni" name="anno" onchange="javascript:inviaForm('listStats','risultatoTotAccessiUtente.do');" cssClass="rigaPari"/>
                        <@s.select label="Mese" list="mesi" name="mese" headerKey="99" headerValue="Tutti i mesi" onchange="javascript:inviaForm('listStats','risultatoTotAccessiUtente.do');" cssClass="rigaDispari"/>
                        <@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"/>
                        <@s.textfield label="Username utente SigmaTer " name="username" value=username cssClass="rigaDispari" />

                <tr><td>
                        <div class="pulsante"><a  class="button icon search" href="javascript:%20inviaForm('listStats','risultatoTotAccessiUtente.do')">cerca</a></div>
                </td></tr>
                </@s.form>
                <hr>
                <#if statistiche??>
                                
                                <table class="ricerca" id="tabLista">
                                        <thead>
                                        <tr>
                                                <th> </th>
                                                <th>Utente SigmaTer</th>
                                                <th>Ente</th>
                                                <th>N. interrogazioni effettuate</th>
                                                <th>Mese</th>
                                        </tr>   
                                        </thead>
                                        <tbody>
                                                <#assign conta = 1 />
                                                <#assign stringaCSV = "Nome Ente;Nome Utente;N. Interrogazioni;Mese">
                                                <@s.iterator value="statistiche" status="usersStatus">
                                                
                                                <tr     class="<@s.if test="#usersStatus.odd == true ">rigaPari</@s.if><@s.else>rigaDispari</@s.else>">
                                                        <td>${conta}</td>
                                                        <td><@s.property value="nomeUtente" /></td>
                                                        <td><@s.property value="nomeEnte" /></td>
                                                        <td><@s.property value="numeroInterrogazioni" /></td>
                                                        <td>${data?string("yyyy / MMMM")}</td>
                                                <#assign conta = conta +1 />
                                                </tr>
                                                <#assign stringaCSV = stringaCSV + ";;" +  nomeEnte + ";" + nomeUtente + ";" + numeroInterrogazioni + ";" + data?string("yyyy-MMMM")  >
                                                </@s.iterator>
                                        </tbody>
                                </table>
                </#if>
                <form id='dettaglioStats'  action='dettaglioStats' method="post">
                        <@s.hidden id="username" name="username" value=username />
                        <@s.hidden id="hiddenCSV" name="hiddenCSV" value=stringaCSV />
                </form>
                
                <div class="pulsante"><a class="button icon arrowleft" href="javascript: inviaForm('listStats','welcomeMonitora.do')">Indietro</a></div>
                <div class="pulsante"><a class="button icon log" href="javascript:window.print()">Stampa</a></div>
                <div class="pulsante"><a class="button icon log" href="javascript: inviaForm('dettaglioStats','downloadCSV.do')">CSV</a></div>
</div>
<div id="content-right"> 
                

                <@s.actionmessage/> 
                <@s.fielderror />
                <@s.actionerror/> 
        <@s.fielderror>
                <@s.param>id</@s.param>
                </@s.fielderror>
        </div> 
</@layout.myLayout>