Fixed templates, refs #186
This commit is contained in:
@@ -56,6 +56,12 @@ elseif($page == 'backup')
|
|||||||
redirectTo($filename, Array('page' => $page, 's' => $s));
|
redirectTo($filename, Array('page' => $page, 's' => $s));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$backup_data = include_once dirname(__FILE__).'/lib/formfields/customer/extras/formfield.backup.php';
|
||||||
|
$backup_form = htmlform::genHTMLForm($backup_data);
|
||||||
|
|
||||||
|
$title = $backup_data['backup']['title'];
|
||||||
|
$image = $backup_data['backup']['image'];
|
||||||
|
|
||||||
eval("echo \"" . getTemplate("extras/backup") . "\";");
|
eval("echo \"" . getTemplate("extras/backup") . "\";");
|
||||||
}
|
}
|
||||||
elseif($page == 'htpasswds')
|
elseif($page == 'htpasswds')
|
||||||
|
|||||||
46
lib/formfields/customer/extras/formfield.backup.php
Normal file
46
lib/formfields/customer/extras/formfield.backup.php
Normal file
@@ -0,0 +1,46 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
/**
|
||||||
|
* This file is part of the Froxlor project.
|
||||||
|
* Copyright (c) 2010 the Froxlor Team (see authors).
|
||||||
|
*
|
||||||
|
* For the full copyright and license information, please view the COPYING
|
||||||
|
* file that was distributed with this source code. You can also view the
|
||||||
|
* COPYING file online at http://files.froxlor.org/misc/COPYING.txt
|
||||||
|
*
|
||||||
|
* @copyright (c) the authors
|
||||||
|
* @author Froxlor team <team@froxlor.org> (2010-)
|
||||||
|
* @license GPLv2 http://files.froxlor.org/misc/COPYING.txt
|
||||||
|
* @package Formfields
|
||||||
|
*/
|
||||||
|
|
||||||
|
return array(
|
||||||
|
'backup' => array(
|
||||||
|
'title' => $lng['backup'],
|
||||||
|
'image' => 'icons/backup.png',
|
||||||
|
'sections' => array(
|
||||||
|
'section_a' => array(
|
||||||
|
'title' => $lng['backup'],
|
||||||
|
'image' => 'icons/backup.png',
|
||||||
|
'fields' => array(
|
||||||
|
'info' => array(
|
||||||
|
'label' => $lng['extras']['backup_info'],
|
||||||
|
'type' => 'label',
|
||||||
|
'value' => ''
|
||||||
|
),
|
||||||
|
'path' => array(
|
||||||
|
'label' => $lng['extras']['backup_create'],
|
||||||
|
'desc' => ($settings['system']['backup_bigfile'] == 1 ? $lng['extras']['backup_info_big'] : $lng['extras']['backup_info_sep']),
|
||||||
|
'type' => 'yesno',
|
||||||
|
'yesno_var' => $backup_enabled
|
||||||
|
),
|
||||||
|
'count' => array(
|
||||||
|
'label' => $lng['extras']['backup_count_info'],
|
||||||
|
'type' => 'label',
|
||||||
|
'value' => ''
|
||||||
|
),
|
||||||
|
)
|
||||||
|
)
|
||||||
|
)
|
||||||
|
)
|
||||||
|
);
|
||||||
@@ -1,26 +1,32 @@
|
|||||||
$header
|
$header
|
||||||
<form method="post" action="$filename">
|
<article>
|
||||||
<input type="hidden" name="s" value="$s" />
|
<header>
|
||||||
<input type="hidden" name="page" value="$page" />
|
<h2>
|
||||||
<input type="hidden" name="action" value="$action" />
|
<img src="images/Froxlor/{$image}" alt="{$title}" />
|
||||||
<input type="hidden" name="id" value="$id" />
|
{$title}
|
||||||
|
</h2>
|
||||||
|
</header>
|
||||||
|
|
||||||
<table cellpadding="5" cellspacing="4" border="0" align="center" class="maintable_60">
|
<section class="fullform bradiusodd">
|
||||||
<tr>
|
|
||||||
<td class="maintitle" colspan="2"><b><img src="images/title.gif" alt="" /> {$lng['backup']}</b></td>
|
<form action="$filename" method="post" enctype="application/x-www-form-urlencoded">
|
||||||
</tr>
|
<fieldset>
|
||||||
<tr>
|
<legend>Froxlor - {$title}</legend>
|
||||||
<td class="main_field_name">{$lng['extras']['backup_info']}
|
|
||||||
<if $settings['system']['backup_bigfile'] == 1 >{$lng['extras']['backup_info_big']}</if>
|
<table class="formtable">
|
||||||
<if $settings['system']['backup_bigfile'] == 0 >{$lng['extras']['backup_info_sep']}</if>
|
{$backup_form}
|
||||||
<if $settings['system']['backup_count'] == 1 > {$lng['extras']['backup_count_info']} </if>:</td>
|
</table>
|
||||||
<td class="main_field_display" nowrap="nowrap">{$lng['extras']['backup_create']} $backup_enabled</td>
|
|
||||||
</tr>
|
<p style="display: none;">
|
||||||
<tr>
|
<input type="hidden" name="s" value="$s" />
|
||||||
<td class="main_field_confirm" colspan="2"><input type="hidden" name="send" value="send" /><input type="submit" class="bottom" value="{$lng['panel']['save']}" /></td>
|
<input type="hidden" name="page" value="$page" />
|
||||||
</tr>
|
<input type="hidden" name="action" value="$action" />
|
||||||
</table>
|
<input type="hidden" name="send" value="send" />
|
||||||
</form>
|
</p>
|
||||||
<br />
|
</fieldset>
|
||||||
<br />
|
</form>
|
||||||
|
|
||||||
|
</section>
|
||||||
|
|
||||||
|
</article>
|
||||||
$footer
|
$footer
|
||||||
@@ -1,26 +1,32 @@
|
|||||||
$header
|
$header
|
||||||
<form method="post" action="$filename">
|
<article>
|
||||||
<input type="hidden" name="s" value="$s" />
|
<header>
|
||||||
<input type="hidden" name="page" value="$page" />
|
<h2>
|
||||||
<input type="hidden" name="action" value="$action" />
|
<img src="images/Froxlor/{$image}" alt="{$title}" />
|
||||||
<input type="hidden" name="id" value="$id" />
|
{$title}
|
||||||
|
</h2>
|
||||||
|
</header>
|
||||||
|
|
||||||
<table cellpadding="5" cellspacing="4" border="0" align="center" class="maintable_60">
|
<section class="fullform bradiusodd">
|
||||||
<tr>
|
|
||||||
<td class="maintitle" colspan="2"><b><img src="images/title.gif" alt="" /> {$lng['backup']}</b></td>
|
<form action="$filename" method="post" enctype="application/x-www-form-urlencoded">
|
||||||
</tr>
|
<fieldset>
|
||||||
<tr>
|
<legend>Froxlor - {$title}</legend>
|
||||||
<td class="main_field_name">{$lng['extras']['backup_info']}
|
|
||||||
<if $settings['system']['backup_bigfile'] == 1 >{$lng['extras']['backup_info_big']}</if>
|
<table class="formtable">
|
||||||
<if $settings['system']['backup_bigfile'] == 0 >{$lng['extras']['backup_info_sep']}</if>
|
{$backup_form}
|
||||||
<if $settings['system']['backup_count'] == 1 > {$lng['extras']['backup_count_info']} </if>:</td>
|
</table>
|
||||||
<td class="main_field_display" nowrap="nowrap">{$lng['extras']['backup_create']} $backup_enabled</td>
|
|
||||||
</tr>
|
<p style="display: none;">
|
||||||
<tr>
|
<input type="hidden" name="s" value="$s" />
|
||||||
<td class="main_field_confirm" colspan="2"><input type="hidden" name="send" value="send" /><input type="submit" class="bottom" value="{$lng['panel']['save']}" /></td>
|
<input type="hidden" name="page" value="$page" />
|
||||||
</tr>
|
<input type="hidden" name="action" value="$action" />
|
||||||
</table>
|
<input type="hidden" name="send" value="send" />
|
||||||
</form>
|
</p>
|
||||||
<br />
|
</fieldset>
|
||||||
<br />
|
</form>
|
||||||
|
|
||||||
|
</section>
|
||||||
|
|
||||||
|
</article>
|
||||||
$footer
|
$footer
|
||||||
Reference in New Issue
Block a user