Code

Added memory usage chart
[gosa.git] / gosa-core / plugins / generic / statistics / statistics.tpl
2 <h3>{t}Usage statistics{/t}</h3>
4 {if !$rpcConfigured}
6     {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}
8 {else if !$validRpcHandle || $rpcHandle_Error}
10     {t}Communication with the GOsa-backend failed. Please check the rpc configuration!{/t}
12 {else}
14     {if $unsbmittedFiles != 0}
15         {$unsbmittedFilesMsg}
16         <button name='transmitStatistics'>{t}Send{/t}</button>
17         <hr>
18     {/if}
20     <table>
21         <tr>
22             <td>{t}Generate report for{/t}</td>
23             <td style='width:220px;'>
24                  <input type="text" id="graph1DatePicker1" name="graph1DatePicker1" class="date" value="{$graph1DatePicker1}">
25                  <script type="text/javascript">
26                   {literal}
27                    var datepicker  = new DatePicker(
28                          { relative : 'graph1DatePicker1',
29                            language : '{/literal}{$lang}{literal}',
30                            keepFieldEmpty : true,
31                            enableCloseEffect : false,
32                            enableShowEffect : false });
33                   {/literal}
34                  </script>
35             </td>
36             <td> - </td>
37             <td style='width:220px;'>
38                 <input type="text" id="graph1DatePicker2" name="graph1DatePicker2" class="date" value="{$graph1DatePicker2}">
39                 <script type="text/javascript">
40                  {literal}
41                   var datepicker  = new DatePicker(
42                         { relative : 'graph1DatePicker2',
43                           language : '{/literal}{$lang}{literal}',
44                           keepFieldEmpty : true,
45                           enableCloseEffect : false,
46                           enableShowEffect : false });
47                  {/literal}
48                 </script>
49             </td>
50             <td>
51                 <button name='receiveStatistics'>{t}Receive{/t}</button>
52             </td>
53         </tr>
54     </table>
55     <hr>
57     <table>
58         <tr>
59             <td>
60                 {if isset($graphIDs.1) && $graphIDs.1}
61                     <img src='plugins/statistics/getGraph.php?id={$graphIDs.1}'>
62                 {/if}
63             </td>
64             <td>
65                 {if isset($graphIDs.7) && $graphIDs.7}
66                     <img src='plugins/statistics/getGraph.php?id={$graphIDs.7}'>
67                 {/if}
68             </td>
69         </tr>
70     </table>
72     {if isset($curGraphID) && $curGraphID}
73     
74         <select name='selectedGraphType' onChange="document.mainform.submit();">
75             {html_options options=$availableGraphs selected=$selectedGraphType}
76         </select>
77     
78         <hr>
79         <table>
80             <tr>
81                 <td>
82                     <input type='hidden' name='currentGraphPosted' value='1'>
83                     <img src='plugins/statistics/getGraph.php?id={$curGraphID}'>
84                 </td>
85             </tr>
86             <tr>
87                 <td>
88                     {$curSeriesSelector}
89                 </td>
90             </tr>
91         </table>
92     {/if}
95     {if isset($graphIDs.3) && $graphIDs.3}
96         <img src='plugins/statistics/getGraph.php?id={$graphIDs.3}'>
97         <hr>
98     {/if}
99     {if isset($graphIDs.4) && $graphIDs.4}
100         <img src='plugins/statistics/getGraph.php?id={$graphIDs.4}'>
101         <hr>
102     {/if}
103     {if isset($graphIDs.5) && $graphIDs.5}
104         <img src='plugins/statistics/getGraph.php?id={$graphIDs.5}'>
105         <hr>
106     {/if}
107     {if isset($graphIDs.6) && $graphIDs.6}
108         <img src='plugins/statistics/getGraph.php?id={$graphIDs.6}'>
109         <hr>
110     {/if}
112 {/if}