Code

Added memory usage chart
[gosa.git] / gosa-core / plugins / generic / statistics / statistics.tpl
index 47fd7a832526a40d85d090484247e917707ef532..50801a60ff3483f3d4c4a838b738e4483f72ae34 100644 (file)
@@ -1,23 +1,26 @@
+
 <h3>{t}Usage statistics{/t}</h3>
 
 {if !$rpcConfigured}
 
     {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}
 
-{else if !$validRpcHandle}
+{else if !$validRpcHandle || $rpcHandle_Error}
 
     {t}Communication with the GOsa-backend failed. Please check the rpc configuration!{/t}
 
 {else}
 
-    <button name='transmitStatistics'>{t}Send{/t}</button>
-    <button name='receiveStatistics'>{t}Receive{/t}</button>
+    {if $unsbmittedFiles != 0}
+        {$unsbmittedFilesMsg}
+        <button name='transmitStatistics'>{t}Send{/t}</button>
+        <hr>
+    {/if}
 
-    <hr>
-    <table width="100%">
+    <table>
         <tr>
-            <td>{t}Start{/t}</td>
-            <td>
+            <td>{t}Generate report for{/t}</td>
+            <td style='width:220px;'>
                  <input type="text" id="graph1DatePicker1" name="graph1DatePicker1" class="date" value="{$graph1DatePicker1}">
                  <script type="text/javascript">
                   {literal}
                   {/literal}
                  </script>
             </td>
-        </tr>
-        <tr>
-            <td>{t}Stop{/t}</td>
-            <td>
+            <td> - </td>
+            <td style='width:220px;'>
                 <input type="text" id="graph1DatePicker2" name="graph1DatePicker2" class="date" value="{$graph1DatePicker2}">
                 <script type="text/javascript">
                  {literal}
                  {/literal}
                 </script>
             </td>
+            <td>
+                <button name='receiveStatistics'>{t}Receive{/t}</button>
+            </td>
         </tr>
     </table>
+    <hr>
+
+    <table>
+        <tr>
+            <td>
+                {if isset($graphIDs.1) && $graphIDs.1}
+                    <img src='plugins/statistics/getGraph.php?id={$graphIDs.1}'>
+                {/if}
+            </td>
+            <td>
+                {if isset($graphIDs.7) && $graphIDs.7}
+                    <img src='plugins/statistics/getGraph.php?id={$graphIDs.7}'>
+                {/if}
+            </td>
+        </tr>
+    </table>
+
+    {if isset($curGraphID) && $curGraphID}
+    
+        <select name='selectedGraphType' onChange="document.mainform.submit();">
+            {html_options options=$availableGraphs selected=$selectedGraphType}
+        </select>
+    
+        <hr>
+        <table>
+            <tr>
+                <td>
+                    <input type='hidden' name='currentGraphPosted' value='1'>
+                    <img src='plugins/statistics/getGraph.php?id={$curGraphID}'>
+                </td>
+            </tr>
+            <tr>
+                <td>
+                    {$curSeriesSelector}
+                </td>
+            </tr>
+        </table>
+    {/if}
+
 
-    <img src='plugins/statistics/getGraph.php?id={$graphID_1}'>
-    <img src='plugins/statistics/getGraph.php?id={$graphID_2}'>
+    {if isset($graphIDs.3) && $graphIDs.3}
+        <img src='plugins/statistics/getGraph.php?id={$graphIDs.3}'>
+        <hr>
+    {/if}
+    {if isset($graphIDs.4) && $graphIDs.4}
+        <img src='plugins/statistics/getGraph.php?id={$graphIDs.4}'>
+        <hr>
+    {/if}
+    {if isset($graphIDs.5) && $graphIDs.5}
+        <img src='plugins/statistics/getGraph.php?id={$graphIDs.5}'>
+        <hr>
+    {/if}
+    {if isset($graphIDs.6) && $graphIDs.6}
+        <img src='plugins/statistics/getGraph.php?id={$graphIDs.6}'>
+        <hr>
+    {/if}
 
 {/if}