{*
The configuration template
$Id: setup.tpl,v 1.7 2007/12/22 13:32:13 andig2 Exp $
*}
<!-- {$smarty.template} -->
<div id="actions">
<form action="users.php">
<input type="submit" class="button" value="{$lang.help_usermanagern}" />
</form>
<span id="indicator1"><img src="templates/elegant/images/spinner.gif" alt="{$lang.working}" /></span>
<div id="cache">
<form action="setup.php">
<input type="hidden" name="cachecleanup" value="1"/>
<input type="submit" class="button" value="{$lang.cachecleanup}" />
</form>
<form action="setup.php">
<input type="hidden" name="cacheempty" value="1"/>
<input type="submit" class="button" value="{$lang.cacheempty}" onclick="return(confirm('{$lang.really_del|escape:javascript|escape}?'))" />
</form>
<h3>{$lang.cachesize}: </h3><span id="cachetotal">{$total}</span>mb
<h3>{$lang.cacheexpired}: </h3><span id="cacheexpired">{$expired}</span>mb (<span id="cacheexpiredpercent">{math equation="round(a*100/b)" a=$expired b=$total}</span>%)
</div>
{literal}
<script language="JavaScript" type="text/javascript">
// <![CDATA[
$('cache').setStyle({display: 'none'});
new Ajax.Request('setup.php', {
parameters: {ajax_cache: 1},
onSuccess: function(transport, json) {
$('indicator1').setStyle({display: 'none'});
$('cache').setStyle({display: 'inline'});
$('cachetotal').update(json.cachetotal);
$('cacheexpired').update(json.cacheexpired);
$('cacheexpiredpercent').update(json.cacheexpiredpercent);
}
});
// ]]
</script>
{/literal}
</div>
<!-- /actions -->
<div id="content">
<form method="post" action="setup.php">
<input type="hidden" name="save" value="1"/>
<table>
{include file="options.tpl"}
</table>
<div id="editbuttons">
<input type="submit" class="button" value="{$lang.save}" id="savebutton" accesskey="s" />
</div>
</form>
</div>
<!-- /content -->