Code

Added self-made legend
[gosa.git] / gosa-core / plugins / generic / statistics / statistics.tpl
index 06c9b92d740fc87fa8400220d49dfb8e85492468..b9cd6bfb85d08bfd5c0d1f4628cb03dddefdbe12 100644 (file)
@@ -4,7 +4,7 @@
 
     {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}
 
     </table>
     <hr>
 
-    {if $graphID_1}
-        <img src='plugins/statistics/getGraph.php?id={$graphID_1}'>
-    {/if}
-    {if $graphID_2}
-        <img src='plugins/statistics/getGraph.php?id={$graphID_2}'>
-    {/if}
-    {if $graphID_3}
-        <img src='plugins/statistics/getGraph.php?id={$graphID_3}'>
+    
+    <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>
+
+    <table>
+        <tr>
+            <td>
+                {if isset($graphIDs.2) && $graphIDs.2}
+                    <img src='plugins/statistics/getGraph.php?id={$graphIDs.2}'>
+                    <input type='hidden' name='graphPosted_2' value='1'>
+                {/if}
+            </td>
+            <td>
+                {if isset($graphLegends.2) && $graphIDs.2}
+                    {$graphLegends.2}
+                {/if}
+            </td>
+        </tr>
+    </table>
+    {if isset($graphIDs.3) && $graphIDs.3}
+        <img src='plugins/statistics/getGraph.php?id={$graphIDs.3}'>
     {/if}
-    {if $graphID_4}
-        <img src='plugins/statistics/getGraph.php?id={$graphID_4}'>
+    {if isset($graphIDs.4) && $graphIDs.4}
+        <img src='plugins/statistics/getGraph.php?id={$graphIDs.4}'>
     {/if}
-    {if $graphID_5}
-        <img src='plugins/statistics/getGraph.php?id={$graphID_5}'>
+    {if isset($graphIDs.5) && $graphIDs.5}
+        <img src='plugins/statistics/getGraph.php?id={$graphIDs.5}'>
     {/if}
-    {if $graphID_6}
-        <img src='plugins/statistics/getGraph.php?id={$graphID_6}'>
+    {if isset($graphIDs.6) && $graphIDs.6}
+        <img src='plugins/statistics/getGraph.php?id={$graphIDs.6}'>
     {/if}
 
 {/if}