// Remove AdminStatsConf controller (conf is already in AdminStatsTab)

This commit is contained in:
rMalie
2011-12-08 09:25:10 +00:00
parent e81813bda9
commit 165573abc9
5 changed files with 40 additions and 180 deletions
+23 -12
View File
@@ -25,26 +25,28 @@
*}
<br/>
<div class="blocEngine"><form action="{$current}&token={$token}" method="post" id="settings_form" name="settings_form">
<div class="blocEngine">
<form action="{$current}&token={$token}" method="post" id="settings_form" name="settings_form">
<h3 class="icon-{l s='Settings'}">{l s='Settings'}</h3>
<h3 class="icon-{l s='Settings'}">{l s='Settings'}</h3>
<div class="rowForm"><label>{l s='Graph engine'} </label>
{if count($array_graph_engines)}
<select name="PS_STATS_RENDER">';
<div class="rowForm">
<label for="engine_stats_render">{l s='Graph engine'} </label>
{if count($array_graph_engines)}
<select name="PS_STATS_RENDER" id="engine_stats_render">';
{foreach $array_graph_engines as $k => $value}
<option value="{$k}" {if $k == $graph_engine}selected="selected"{/if}>{$value[0]}</option>
{/foreach}
</select>
{else}
{l s='No graph engine module installed'}
{/if}
</div>
<div class="rowForm"><label>{l s='Grid engine'} </label>
</div>
<div class="rowForm">
<label for="engine_grid_render">{l s='Grid engine'} </label>
{if count($array_grid_engines)}
<select name="PS_STATS_GRID_RENDER">
<select name="PS_STATS_GRID_RENDER" id="engine_grid_render">
{foreach $array_grid_engines as $k => $value}
<option value="{$k}" {if $k == $grid_engine}selected="selected"{/if}>{$value[0]}</option>
{/foreach}
@@ -52,7 +54,16 @@
{else}
{l s='No grid engine module installed'}
{/if}
</div>
</div>
<div class="rowForm">
<label for="engine_auto_clean">{l s='Auto-clean period'}</label>
<select name="PS_STATS_OLD_CONNECT_AUTO_CLEAN" id="engine_auto_clean">
{foreach $array_auto_clean as $k => $value}
<option value="{$k}" {if $k == $auto_clean}selected="selected"{/if}>{$value}</option>
{/foreach}
</select>
</div>
<p><input type="submit" value="{l s=' Save '}" name="submitSettings" id="submitSettings" class="button" /></p>
</form>
</div>
@@ -1,56 +0,0 @@
{*
* 2007-2011 PrestaShop
*
* NOTICE OF LICENSE
*
* This source file is subject to the Academic Free License (AFL 3.0)
* that is bundled with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://opensource.org/licenses/afl-3.0.php
* If you did not receive a copy of the license and are unable to
* obtain it through the world-wide-web, please send an email
* to license@prestashop.com so we can send you a copy immediately.
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
* versions in the future. If you wish to customize PrestaShop for your
* needs please refer to http://www.prestashop.com for more information.
*
* @author PrestaShop SA <contact@prestashop.com>
* @copyright 2007-2011 PrestaShop SA
* @version Release: $Revision: 9540 $
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
* International Registered Trademark & Property of PrestaShop SA
*}
{extends file="helper/options/options.tpl"}
{block name="start_field_block"}
<div class="margin-form">
{if $field['type'] == 'selectEngine'}
<script type="text/javascript">var engineDescriptions = {$list_engine_description_stats_js};</script>
<select name="{$key}" {if isset($field['js']) === true} onchange="{$field['js']}"{/if} id="{$key}">
{foreach $field.list as $k => $option}
<option value="{if isset($option['cast'])}{$option[$field.identifier]}{else}{$option[$field['identifier']]}{/if}"
{if $field.value == $option[$field['identifier']]} selected="selected"{/if}>
{$option.name}
</option>
{/foreach}
</select>
<div id="render_engine_description">{$list_engine_description_stats[$field.value]}</div>
{elseif $field['type'] == 'selectGrid'}
<script type="text/javascript">var gridDescriptions = {$list_engine_description_grid_js};</script>
<select name="{$key}" {if isset($field['js']) === true} onchange="{$field['js']}"{/if} id="{$key}">
{foreach $field.list as $k => $option}
<option value="{if isset($option['cast'])}{$option[$field.identifier]}{else}{$option[$field['identifier']]}{/if}"
{if $field.value == $option[$field['identifier']]} selected="selected"{/if}>
{$option.name}
</option>
{/foreach}
</select>
<div id="render_grid_description">{$list_engine_description_grid[$field.value]}</div>
{/if}
{/block}
{block name="end_field_block"}</div>{/block}