diff --git a/gosa-core/plugins/generic/statistics/statistics.tpl b/gosa-core/plugins/generic/statistics/statistics.tpl
index b848c3fe64989368bb69f173f0800f5161e9297c..50801a60ff3483f3d4c4a838b738e4483f72ae34 100644 (file)
+
<h3>{t}Usage statistics{/t}</h3>
{if !$rpcConfigured}
</table>
<hr>
- {if isset($graphIDs.1) && $graphIDs.1}
- <img src='plugins/statistics/getGraph.php?id={$graphIDs.1}'>
- {/if}
-
<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 isset($graphIDs.1) && $graphIDs.1}
+ <img src='plugins/statistics/getGraph.php?id={$graphIDs.1}'>
{/if}
</td>
<td>
- {if isset($graphIDs.2) && $graphIDs.2}
- {foreach from=$seriesListPerGraph.2 key=key item=item}
- <input type='checkbox' name='addSeries_2_{$key}' value='1'
- onClick="document.mainform.submit();"
- {if !($key|in_array:$skipSeries.2)} checked {/if}>{$item}<br>
- {/foreach}
+ {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}
+
+
{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}