welcome on board new 'Sparkle' theme and also welcome on board BNoiZe as theme maintainer (creater of Sparkle theme)
Signed-off-by: Michael Kaufmann (d00p) <d00p@froxlor.org>
This commit is contained in:
72
templates/Sparkle/admin/customers/customers.tpl
vendored
Normal file
72
templates/Sparkle/admin/customers/customers.tpl
vendored
Normal file
@@ -0,0 +1,72 @@
|
||||
$header
|
||||
<article>
|
||||
<header>
|
||||
<h2>
|
||||
<img src="templates/{$theme}/assets/img/icons/group_edit_big.png" alt="" />
|
||||
{$lng['admin']['customers']} ({$customercount})
|
||||
</h2>
|
||||
</header>
|
||||
|
||||
<section>
|
||||
|
||||
<form action="{$linker->getLink(array('section' => 'customers'))}" method="post" enctype="application/x-www-form-urlencoded">
|
||||
|
||||
<div class="overviewsearch">
|
||||
{$searchcode}
|
||||
</div>
|
||||
|
||||
<if ($userinfo['customers_used'] < $userinfo['customers'] || $userinfo['customers'] == '-1') && 15 < $userinfo['customers_used'] >
|
||||
<div class="overviewadd">
|
||||
<img src="templates/{$theme}/assets/img/icons/user_add.png" alt="" />
|
||||
<a href="{$linker->getLink(array('section' => 'customers', 'page' => $page, 'action' => 'add'))}">{$lng['admin']['customer_add']}</a>
|
||||
</div>
|
||||
</if>
|
||||
|
||||
<table class="bradiusodd">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>
|
||||
{$lng['customer']['name']} {$arrowcode['c.name']}
|
||||
{$lng['customer']['firstname']} {$arrowcode['c.firstname']}
|
||||
</th>
|
||||
<th>
|
||||
{$lng['login']['username']} {$arrowcode['c.loginname']}
|
||||
</th>
|
||||
<th>
|
||||
{$lng['admin']['admin']} {$arrowcode['a.loginname']}
|
||||
</th>
|
||||
<th>{$lng['admin']['lastlogin_succ']}</th>
|
||||
<th></th>
|
||||
<th>{$lng['panel']['options']}</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<if $pagingcode != ''>
|
||||
<tfoot>
|
||||
<tr>
|
||||
<td colspan="6">{$pagingcode}</td>
|
||||
</tr>
|
||||
</tfoot>
|
||||
</if>
|
||||
<tbody>
|
||||
$customers
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
<p style="display:none;">
|
||||
<input type="hidden" name="s" value="$s" />
|
||||
<input type="hidden" name="page" value="$page" />
|
||||
</p>
|
||||
|
||||
</form>
|
||||
|
||||
<if $userinfo['customers_used'] < $userinfo['customers'] || $userinfo['customers'] == '-1'>
|
||||
<div class="overviewadd">
|
||||
<img src="templates/{$theme}/assets/img/icons/user_add.png" alt="" />
|
||||
<a href="{$linker->getLink(array('section' => 'customers', 'page' => $page, 'action' => 'add'))}">{$lng['admin']['customer_add']}</a>
|
||||
</div>
|
||||
</if>
|
||||
|
||||
</section>
|
||||
|
||||
</article>
|
||||
$footer
|
||||
41
templates/Sparkle/admin/customers/customers_add.tpl
vendored
Normal file
41
templates/Sparkle/admin/customers/customers_add.tpl
vendored
Normal file
@@ -0,0 +1,41 @@
|
||||
$header
|
||||
<article>
|
||||
<header>
|
||||
<h2>
|
||||
<img src="templates/{$theme}/assets/img/icons/user_add_big.png" alt="{$title}" />
|
||||
{$title}
|
||||
</h2>
|
||||
</header>
|
||||
|
||||
<section class="fullform bradiusodd">
|
||||
|
||||
<form action="{$linker->getLink(array('section' => 'customers'))}" method="post" enctype="application/x-www-form-urlencoded">
|
||||
<fieldset>
|
||||
<legend>Froxlor - {$title}</legend>
|
||||
|
||||
<table class="formtable">
|
||||
{$customer_add_form}
|
||||
</table>
|
||||
|
||||
<p style="display: none;">
|
||||
<input type="hidden" name="s" value="$s" />
|
||||
<input type="hidden" name="page" value="$page" />
|
||||
<input type="hidden" name="action" value="$action" />
|
||||
<input type="hidden" name="send" value="send" />
|
||||
</p>
|
||||
</fieldset>
|
||||
</form>
|
||||
|
||||
</section>
|
||||
|
||||
</article>
|
||||
<br />
|
||||
<article>
|
||||
<section class="fullform bradiusodd">
|
||||
<p style="margin:10px;">
|
||||
<span style="color:#ff0000;">*</span>: {$lng['admin']['valuemandatory']}<br />
|
||||
<span style="color:#ff0000;">**</span>: {$lng['admin']['valuemandatorycompany']}
|
||||
</p>
|
||||
</section>
|
||||
</article>
|
||||
$footer
|
||||
68
templates/Sparkle/admin/customers/customers_customer.tpl
vendored
Normal file
68
templates/Sparkle/admin/customers/customers_customer.tpl
vendored
Normal file
@@ -0,0 +1,68 @@
|
||||
<tr>
|
||||
<td>
|
||||
<if $row['company'] != ''>
|
||||
{$row['company']}<br />
|
||||
<small>{$row['name']} {$row['firstname']}</small>
|
||||
<else>
|
||||
{$row['name']} {$row['firstname']}
|
||||
</if>
|
||||
</td>
|
||||
<td>
|
||||
<a href="{$linker->getLink(array('section' => 'customers', 'page' => $page, 'action' => 'su', 'id' => $row['customerid']))}" rel="external">{$row['loginname']}</a>
|
||||
</td>
|
||||
<td>
|
||||
{$row['adminname']}
|
||||
</td>
|
||||
<td>
|
||||
{$last_login}
|
||||
</td>
|
||||
<td style="min-width:270px;">
|
||||
<div>
|
||||
<span class="overviewcustomerextras">
|
||||
<span>Webspace:</span>
|
||||
<if $row['diskspace'] != 'UL'>
|
||||
<if (($row['diskspace']/100)*(int)$settings['system']['report_webmax']) < $row['diskspace_used']>
|
||||
<div class="progress progress-danger progress-striped">
|
||||
<div class="bar" style="width: {$disk_percent}%"></div>
|
||||
</div>
|
||||
<else>
|
||||
<div class="progress progress-striped">
|
||||
<div class="bar" style="width: {$disk_percent}%"></div>
|
||||
</div>
|
||||
</if>
|
||||
<else>
|
||||
<div class="progress progress-striped">
|
||||
<div class="bar" style="width: 0%"></div>
|
||||
</div>
|
||||
</if>
|
||||
</span>
|
||||
<span class="overviewcustomerextras">
|
||||
<span>Traffic:</span>
|
||||
<if $row['traffic'] != 'UL'>
|
||||
<if (($row['traffic']/100)*(int)$settings['system']['report_trafficmax']) < $row['traffic_used']>
|
||||
<div class="progress progress-danger progress-striped">
|
||||
<div class="bar" style="width: {$traffic_percent}%"></div>
|
||||
</div>
|
||||
<else>
|
||||
<div class="progress progress-striped">
|
||||
<div class="bar" style="width: {$traffic_percent}%"></div>
|
||||
</div>
|
||||
</if>
|
||||
<else>
|
||||
<div class="progress progress-striped">
|
||||
<div class="bar" style="width: 0%"></div>
|
||||
</div>
|
||||
</if>
|
||||
</span>
|
||||
</div>
|
||||
</td>
|
||||
<td>
|
||||
<a href="{$linker->getLink(array('section' => 'customers', 'page' => $page, 'action' => 'edit', 'id' => $row['customerid']))}" style="text-decoration:none;">
|
||||
<img src="templates/{$theme}/assets/img/icons/edit.png" alt="{$lng['panel']['edit']}" />
|
||||
</a>
|
||||
<a href="{$linker->getLink(array('section' => 'customers', 'page' => $page, 'action' => 'delete', 'id' => $row['customerid']))}" style="text-decoration:none;">
|
||||
<img src="templates/{$theme}/assets/img/icons/delete.png" alt="{$lng['panel']['delete']}" />
|
||||
</a>
|
||||
</td>
|
||||
|
||||
</tr>
|
||||
42
templates/Sparkle/admin/customers/customers_edit.tpl
vendored
Normal file
42
templates/Sparkle/admin/customers/customers_edit.tpl
vendored
Normal file
@@ -0,0 +1,42 @@
|
||||
$header
|
||||
<article>
|
||||
<header>
|
||||
<h2>
|
||||
<img src="templates/{$theme}/assets/img/icons/user_edit_big.png" alt="{$title}" />
|
||||
{$title}
|
||||
</h2>
|
||||
</header>
|
||||
|
||||
<section class="fullform bradiusodd">
|
||||
|
||||
<form action="{$linker->getLink(array('section' => 'customers'))}" method="post" enctype="application/x-www-form-urlencoded">
|
||||
<fieldset>
|
||||
<legend>Froxlor - {$title}</legend>
|
||||
|
||||
<table class="formtable">
|
||||
{$customer_edit_form}
|
||||
</table>
|
||||
|
||||
<p style="display: none;">
|
||||
<input type="hidden" name="s" value="$s" />
|
||||
<input type="hidden" name="page" value="$page" />
|
||||
<input type="hidden" name="action" value="$action" />
|
||||
<input type="hidden" name="id" value="$id" />
|
||||
<input type="hidden" name="send" value="send" />
|
||||
</p>
|
||||
</fieldset>
|
||||
</form>
|
||||
|
||||
</section>
|
||||
|
||||
</article>
|
||||
<br />
|
||||
<article>
|
||||
<section class="fullform bradiusodd">
|
||||
<p style="margin-left:15px;">
|
||||
<span style="color:#ff0000;">*</span>: {$lng['admin']['valuemandatory']}<br />
|
||||
<span style="color:#ff0000;">**</span>: {$lng['admin']['valuemandatorycompany']}
|
||||
</p>
|
||||
</section>
|
||||
</article>
|
||||
$footer
|
||||
Reference in New Issue
Block a user