[slbackup-commit] CVS update: slbackup-php/templates restore.tpl
finnarne-guest at alioth.debian.org
finnarne-guest at alioth.debian.org
Tue Apr 17 00:13:24 UTC 2007
User: finnarne-guest
Date: 07/04/17 00:13:24
Modified: templates restore.tpl
Log:
Now the browsing works for folders, only file restoring left
Revision Changes Path
1.5 +13 -3 slbackup-php/templates/restore.tpl
Index: restore.tpl
===================================================================
RCS file: /cvsroot/slbackup/slbackup-php/templates/restore.tpl,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -r1.4 -r1.5
--- restore.tpl 16 Apr 2007 22:47:11 -0000 1.4
+++ restore.tpl 17 Apr 2007 00:13:24 -0000 1.5
@@ -23,7 +23,7 @@
<body>
{include file="menu.tpl"}
- <FORM method=post>
+ <FORM action="index.php" method=post>
<H2>{t}Client to restore{/t}</H2>
{html_options name=client values=$clients output=$clients
selected=$client}
@@ -34,8 +34,18 @@
<INPUT type=submit name=restorelocation value="{t}Browse{/t}">
<BR>
{foreach item=dir name=dir from=$loc}
- [{$dir.type}]
- <A HREF=index.php?restorelocation&type={$dir.type}&client={$client}&loc={$dir.path}>{$dir.name}</A>
+ {if $dir.type == "parent"}
+ <IMG SRC="/icons/back.gif" alt="[DIR]">
+ {elseif $dir.type == "dir"}
+ <IMG SRC="/icons/folder.gif" alt="[DIR]">
+ {else}
+ <IMG SRC="/icons/unknown.gif" alt="[ ]">
+ {/if}
+ {if $dir.type == "file"}
+ <A HREF=index.php?restorefile&client={$client}&file={$dir.sub}&location={$location}>{$dir.name}</A>
+ {else}
+ <A HREF=index.php?restorelocation&client={$client}&sub={$dir.sub}&location={$location}>{$dir.name}</A>
+ {/if}
<BR>
{/foreach}
</FORM>
More information about the slbackup-commit
mailing list