<!-- BEGIN {$smarty.template} -->

<h1>Database upgrade</h1>

{if strlen($errormsg)}
{$errormsg}
{/if}

<div>

<p>{t 1=$dbversion}The version of the installed database is %1{/t}</p>

{if count($dbupgrade.files)}

<p>{t 1=$dbupgrade.maxversion}The currently available database version is %1.{/t}
{t} The following files need to be applied to the database to bring structure and core data up to date:{/t}</p>

<ul>
{foreach item=f from=$dbupgrade.files}
<li>{$f.name|wash} ({$f.size|phpaga_byteformat})</li>
{/foreach}
</ul>

<form action="dbupgrade.php" method="post">
<input type="hidden" name="action" value="1">
<input type="submit" value="{t}Proceed with the upgrade{/t}">
</form>

{else}

{t}Structure and core data are up to date.{/t}

{/if}
</div>

<!-- END {$smarty.template} -->
