Converted customer -> ftp to new formbuilder

Signed-off-by: Florian Aders (EleRas) <eleras@froxlor.org>
This commit is contained in:
Florian Aders (EleRas)
2011-02-12 16:08:05 +01:00
parent 8cb615df5f
commit 26aed64bf8
7 changed files with 158 additions and 79 deletions

View File

@@ -1,44 +1,20 @@
$header
<article>
<header>
<h2>
<img src="images/Froxlor/icons/add_user.png" alt="{$lng['ftp']['account_add']}" />&nbsp;
{$lng['ftp']['account_add']}
</h2>
</header>
<section class="fullform bradiusodd">
<article>
<header>
<h2>
<img src="images/Froxlor/{$image}" alt="{$title}" />&nbsp;
{$title}
</h2>
</header>
<section class="fullform bradiusodd">
<form action="$filename" method="post" enctype="application/x-www-form-urlencoded">
<fieldset>
<legend>Froxlor&nbsp;-&nbsp;{$lng['ftp']['account_add']}</legend>
<legend>Froxlor&nbsp;-&nbsp;{$title}</legend>
<table class="formtable">
<if $settings['customer']['ftpatdomain'] == '1'>
<tr>
<td>{$lng['login']['username']}:</td>
<td><input type="text" name="ftp_username" size="30" /></td>
</tr>
<tr>
<td>{$lng['domains']['domainname']}:</td>
<td><select name="ftp_domain">$domains</select></td>
</tr>
</if>
<tr>
<td>{$lng['panel']['path']}:<if $settings['panel']['pathedit'] != 'Dropdown'><br /><font size="1">{$lng['panel']['pathDescription']}</font></if></td>
<td>{$pathSelect}</td>
</tr>
<tr>
<td>{$lng['login']['password']}:</td>
<td><input type="password" name="ftp_password" size="30" /></td>
</tr>
<tr>
<td>{$lng['customer']['sendinfomail']}:</td>
<td>{$sendinfomail}</td>
</tr>
<tr>
<td colspan="2"><input type="hidden" name="send" value="send" /><input type="submit" value="{$lng['ftp']['account_add']}" /></td>
</tr>
{$ftp_add_form}
</table>
<p style="display: none;">
@@ -49,6 +25,7 @@ $header
</p>
</fieldset>
</form>
</section>
</article>
</section>
</article>
$footer

View File

@@ -1,44 +1,20 @@
$header
<article>
<header>
<h2>
<img src="images/Froxlor/icons/user_edit.png" alt="{$lng['ftp']['account_edit']}" />&nbsp;
{$lng['ftp']['account_edit']}
</h2>
</header>
<section class="fullform bradiusodd">
<article>
<header>
<h2>
<img src="images/Froxlor/{$image}" alt="{$title}" />&nbsp;
{$title}
</h2>
</header>
<section class="fullform bradiusodd">
<form action="$filename" method="post" enctype="application/x-www-form-urlencoded">
<fieldset>
<legend>Froxlor&nbsp;-&nbsp;{$lng['ftp']['account_edit']}</legend>
<legend>Froxlor&nbsp;-&nbsp;{$title}</legend>
<table class="formtable">
<tr>
<td>{$lng['login']['username']}:</td>
<td>{$result['username']}</td>
</tr>
<if $settings['customer']['ftpatdomain'] == '1'>
<tr>
<td>{$lng['login']['username']}:</td>
<td><input type="text" name="ftp_username" size="30" /></td>
</tr>
<tr>
<td>{$lng['domains']['domainname']}:</td>
<td><select name="ftp_domain">$domains</select></td>
</tr>
</if>
<tr>
<td>{$lng['panel']['path']}:<if $settings['panel']['pathedit'] != 'Dropdown'><br /><small>{$lng['panel']['pathDescription']}</small></if></td>
<td>{$pathSelect}</td>
</tr>
<tr>
<td>{$lng['login']['password']}:<br /><small>{$lng['ftp']['editpassdescription']}</small></td>
<td><input type="password" name="ftp_password" /></td>
</tr>
<tr>
<td colspan="2"><input type="hidden" name="send" value="send" /><input type="submit" value="{$lng['panel']['save']}" /></td>
</tr>
{$ftp_edit_form}
</table>
<p style="display: none;">
@@ -49,6 +25,7 @@ $header
</p>
</fieldset>
</form>
</section>
</article>
</section>
</article>
$footer