[slbackup-commit] CVS update: slbackup-php/templates config.tpl
login.tpl
finnarne-guest at alioth.debian.org
finnarne-guest at alioth.debian.org
Fri Apr 13 06:07:39 UTC 2007
User: finnarne-guest
Date: 07/04/13 06:07:38
Added: templates config.tpl login.tpl
Log:
Rewritten to use smarty-templates
Revision Changes Path
1.1 slbackup-php/templates/config.tpl
Index: config.tpl
===================================================================
{*
slbackup-php, an administration tool for slbackup
Copyright (C) 2007 Finn-Arne Johansen <faj at bzz.no>, Bzzware AS, Norway
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License along
with this program; if not, write to the Free Software Foundation, Inc.,
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*}
<html>
<head>
<title>SLBackup Configuration</title>
</head>
<body>
<FORM method=post>
<INPUT type=hidden name=Passwd value="{$passwd}">
<H2>Server scheduler</H2>
Backup enabled
<INPUT type=checkbox name=active {$active}>
Run backup at
{html_options name=minutes options=$a_minutes selected=$minutes}
:
{html_options name=hours options=$a_hours selected=$hours}
<INPUT type=submit name=scheduler value="Update">
<INPUT type=reset name=reset value="Reset">
<H2>Server config</H2>
<TABLE>
<TR>
<TD>Address</TD>
<TD>
<INPUT type=text name=server_address
value="{$server_address}">
</TD>
<TD>Destdir</TD>
<TD>
<INPUT type=text name=server_destdir
value="{$server_destdir}">
</TD>
</TR>
<TR>
<TD>Servertype</TD>
<TD>
{html_options name=server_type options=$types selected=$server_type}
</TD>
<TD>User</TD>
<TD>
<INPUT type=text name=server_user
value="{$server_user}">
</TD>
</TR>
<TR>
<TD colspan=4 align=right>
<INPUT type=submit name=server
value="Update">
<INPUT type=reset name=reset
value="Reset">
</TD>
</TR>
</TABLE>
<H2>Client config</H2>
Client:
{html_options name=client options=$clients selected=$client}
<INPUT type=submit name=chooseclient value="Choose">
<INPUT type=submit name=addclient value="New">
<INPUT type=submit name=delclient value="Remove">
<TABLE>
<TR>
<TD>Address</TD>
<TD>
<INPUT type=text name=client_address
value="{$clientaddress}">
</TD>
<TD>Backup Age</TD>
<TD>
<INPUT type=text name=client_keep
value="{$clientkeep}">
</TD>
</TR>
<TR>
<TD>Clienttype</TD>
<TD>
{html_options name=client_type options=$types selected=$client_type}
</TD>
<TD>User</TD>
<TD>
<INPUT type=text name=client_user
value="{$clientuser}">
</TD>
</TR>
<TR>
<TD colspan=4 align=right>
<INPUT type=submit name=clientconfig
value="{$clientsubmit}">
<INPUT type=reset name=reset
value="reset">
</TD>
</TR>
<TR>
<TD>Locations:</TD>
<TD><INPUT type=text name=newloc></TD>
<TD><INPUT Type=submit name=addloc value="Add"></TD>
</TR>
<TR>
<TD/>
<TD>
<SELECT name=location size=5>
{foreach item=location from=$locations}
<option value={$location}>
{$location}
</option>
{/foreach}
</TD>
<TD valign=top><INPUT type=submit name=delloc value="Delete"></TD>
</TR>
</TABLE>
</FORM>
</HTML>
1.1 slbackup-php/templates/login.tpl
Index: login.tpl
===================================================================
{*
slbackup-php, an administration tool for slbackup
Copyright (C) 2007 Finn-Arne Johansen <faj at bzz.no>, Bzzware AS, Norway
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License along
with this program; if not, write to the Free Software Foundation, Inc.,
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*}
<html>
<head>
<title>SLBackup Configuration</title>
</head>
<body>
<FORM name=login method=POST>
To read the configuration, you must log in as {$backupuser}
on {$backuphost}.<BR>
Please enter the password for the {$backupuser} account on
{$backuphost}:<BR>
<INPUT type=password name=Passwd><BR>
<INPUT type=submit name=login value="Login">
<INPUT type=reset name=Reset value="Reset">
</FORM>
</html>
More information about the slbackup-commit
mailing list