Code

Updated RPC handling of the stats plugin
[gosa.git] / gosa-core / plugins / generic / statistics / statistics.tpl
1 <h3>{t}Usage statistics{/t}</h3>
3 {if !$rpcConfigured}
5     {t}This feature is disabled. To enable it you can use the GOsa properties plugin, just activate the remote procedure call (RPC) configuration flags.{/t}
7 {else if !$validRpcHandle}
9     {t}Communication with the GOsa-backend failed. Please check the rpc configuration!{/t}
11 {else}
13     <button name='transmitStatistics'>{t}Send{/t}</button>
14     <button name='receiveStatistics'>{t}Receive{/t}</button>
16     <hr>
18     {if $receivedStats}
19         <h3>{t}Transmit daliy stats{/t}</h3>
20         <table summary="{t}Generated usage statistics{/t}">
21         {foreach from=$receivedStats key=key item=item}
22             <tr>
23                 <td>{$key}</td>
24                 <td>{$item}</td>
25             </tr>
26         {/foreach}
27         </table>
28     {/if}
30 {/if}