{*
* 2007-2013 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-2013 PrestaShop SA
*  @license    http://opensource.org/licenses/afl-3.0.php  Academic Free License (AFL 3.0)
*  International Registered Trademark & Property of PrestaShop SA
*}

<br/>
<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>

		<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 has been installed.'}
			{/if}
		</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" 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}
				</select>
			{else}
				{l s='No grid engine module has been installed.'}
			{/if}
		</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>

</div>