Code

Updated statistiks
[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 || $rpcHandle_Error}
9     {t}Communication with the GOsa-backend failed. Please check the rpc configuration!{/t}
11 {else}
13     {if $unsbmittedFiles != 0}
14         {$unsbmittedFilesMsg}
15         <button name='transmitStatistics'>{t}Send{/t}</button>
16         <hr>
17     {/if}
19     <table>
20         <tr>
21             <td>{t}Generate report for{/t}</td>
22             <td style='width:220px;'>
23                  <input type="text" id="graph1DatePicker1" name="graph1DatePicker1" class="date" value="{$graph1DatePicker1}">
24                  <script type="text/javascript">
25                   {literal}
26                    var datepicker  = new DatePicker(
27                          { relative : 'graph1DatePicker1',
28                            language : '{/literal}{$lang}{literal}',
29                            keepFieldEmpty : true,
30                            enableCloseEffect : false,
31                            enableShowEffect : false });
32                   {/literal}
33                  </script>
34             </td>
35             <td> - </td>
36             <td style='width:220px;'>
37                 <input type="text" id="graph1DatePicker2" name="graph1DatePicker2" class="date" value="{$graph1DatePicker2}">
38                 <script type="text/javascript">
39                  {literal}
40                   var datepicker  = new DatePicker(
41                         { relative : 'graph1DatePicker2',
42                           language : '{/literal}{$lang}{literal}',
43                           keepFieldEmpty : true,
44                           enableCloseEffect : false,
45                           enableShowEffect : false });
46                  {/literal}
47                 </script>
48             </td>
49             <td>
50                 <button name='receiveStatistics'>{t}Receive{/t}</button>
51             </td>
52         </tr>
53     </table>
54     <hr>
56     
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     <table>
73         <tr>
74             <td>
75                 {if isset($graphIDs.2) && $graphIDs.2}
76                     <img src='plugins/statistics/getGraph.php?id={$graphIDs.2}'>
77                     <input type='hidden' name='graphPosted_2' value='1'>
78                 {/if}
79             </td>
80         </tr>
81         <tr>
82             <td>
83                 {if isset($graphIDs.2) && $graphIDs.2}
84                     {foreach from=$seriesListPerGraph.2 key=key item=item}
85                         <span style='padding-right:20px'>
86                         <input type='checkbox' name='addSeries_2_{$key}' value='1'
87                             onClick="document.mainform.submit();" 
88                             {if !($key|in_array:$skipSeries.2)} checked {/if}>{$item}
89                         </span>
90                     {/foreach} 
91                 {/if}
92             </td>
93         </tr>
94     </table>
95     {if isset($graphIDs.3) && $graphIDs.3}
96         <img src='plugins/statistics/getGraph.php?id={$graphIDs.3}'>
97     {/if}
98     {if isset($graphIDs.4) && $graphIDs.4}
99         <img src='plugins/statistics/getGraph.php?id={$graphIDs.4}'>
100     {/if}
101     {if isset($graphIDs.5) && $graphIDs.5}
102         <img src='plugins/statistics/getGraph.php?id={$graphIDs.5}'>
103     {/if}
104     {if isset($graphIDs.6) && $graphIDs.6}
105         <img src='plugins/statistics/getGraph.php?id={$graphIDs.6}'>
106     {/if}
108 {/if}