<h1>Backup/restore DB</h1>
<p>
{if:write_error}
<font color="FF0000"><B>Error. Can't write backup file.</B></font>
{end:}
{if:dump_file} 
New dump created at <B>{dump_file}</B>
{end:}
{if:restore_file} 
DB restored from dump at <B>{restore_file}</B>
{end:}
{if:delete_file} 
Dump from <B>{delete_file}</B> deleted.
{end:}
<p>
    <form action="{zoner}" method=POST>
    <flexy:component name="ff" class="fill_hidden">
    <input type=hidden name="action" value="dump">
    <input type=submit value=" Make dump ">
    </form>
<hr>

<b>Dumps list:</b><br><br>
{if:files}
    {foreach:files,f}
    <div style="border-bottom: 1px solid #CCCCCC; padding: 3px;">
        {f[time]} &nbsp;-&nbsp; 
        <a href="{zoner}?target=backup&action=delete&file={f[file]}">Delete</a>
        <a href="{zoner}?target=backup&action=restore&file={f[file]}">Restore</a>
    </div>
    {end:}
{else:}
    Empty...
{end:}