Dynamic sorting for theme Sparkle

This commit is contained in:
BNoiZe
2013-10-05 18:15:31 +02:00
parent 939c1950ea
commit 08e9f3ebd0
27 changed files with 291 additions and 89 deletions

View File

@@ -22,18 +22,18 @@ $header
</div>
</if>
<table class="bradius">
<table class="bradius" id="sortable">
<thead>
<tr>
<th>
{$lng['customer']['name']}&nbsp;&nbsp;{$arrowcode['name']}
{$lng['customer']['name']}
</th>
<th>
{$lng['login']['username']}&nbsp;{$arrowcode['loginname']}
{$lng['login']['username']}
</th>
<th>{$lng['admin']['customers']}</th>
<th>&nbsp;</th>
<th>{$lng['panel']['options']}</th>
<th class="nosort">&nbsp;</th>
<th class="nosort">{$lng['panel']['options']}</th>
</tr>
</thead>
<if $pagingcode != ''>

View File

@@ -11,35 +11,40 @@ $header
<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="" />&nbsp;
<a href="{$linker->getLink(array('section' => 'customers', 'page' => $page, 'action' => 'add'))}">{$lng['admin']['customer_add']}</a>
</div>
</if>
<div class="overviewsearch">
{$searchcode}
</div>
<table class="bradius">
<table class="bradius" id="sortable">
<thead>
<tr>
<th>
{$lng['customer']['name']}&nbsp;&nbsp;{$arrowcode['c.name']}
{$lng['customer']['firstname']}&nbsp;&nbsp;{$arrowcode['c.firstname']}
{$lng['customer']['name']},
{$lng['customer']['firstname']}
</th>
<th>
{$lng['login']['username']}&nbsp;{$arrowcode['c.loginname']}
{$lng['login']['username']}
</th>
<th>
{$lng['admin']['admin']}&nbsp;{$arrowcode['a.loginname']}
{$lng['admin']['admin']}
</th>
<th>{$lng['admin']['lastlogin_succ']}</th>
<th></th>
<th>{$lng['panel']['options']}</th>
<th class="nosort"></th>
<th class="nosort">{$lng['panel']['options']}</th>
</tr>
</thead>
<tbody>
$customers
</tbody>
<if $pagingcode != ''>
<tfoot>
<tr>
@@ -47,9 +52,6 @@ $header
</tr>
</tfoot>
</if>
<tbody>
$customers
</tbody>
</table>
<p style="display:none;">

View File

@@ -22,15 +22,20 @@
</div>
</if>
<table class="bradius">
<table class="bradius" id="sortable">
<thead>
<tr>
<th>{$lng['domains']['domainname']}&nbsp;{$arrowcode['d.domain']}</th>
<th>{$lng['admin']['ipsandports']['ip']}&nbsp;:&nbsp;{$lng['admin']['ipsandports']['port']}</th>
<th>{$lng['admin']['customer']}&nbsp;&nbsp;{$arrowcode['c.loginname']}</th>
<th>{$lng['panel']['options']}</th>
<th>{$lng['domains']['domainname']}</th>
<th>{$lng['admin']['ipsandports']['ip']}</th>
<th>{$lng['admin']['customer']}</th>
<th class="nosort">{$lng['panel']['options']}</th>
</tr>
</thead>
<tbody>
{$domains}
</tbody>
<if $pagingcode != ''>
<tfoot>
<tr>
@@ -38,9 +43,6 @@
</tr>
</tfoot>
</if>
<tbody>
{$domains}
</tbody>
</table>
<p style="display:none;">

View File

@@ -22,17 +22,18 @@ $header
</div>
</if>
<table class="bradius">
<table class="bradius" id="sortable">
<thead>
<tr>
<th>{$lng['admin']['ipsandports']['ip']}&nbsp;{$arrowcode['ip']}&nbsp;:&nbsp;{$lng['admin']['ipsandports']['port']}&nbsp;{$arrowcode['port']}</th>
<th>{$lng['admin']['ipsandports']['ip']}</th>
<th>{$lng['admin']['ipsandports']['port']}</th>
<th>Listen</th>
<th>NameVirtualHost</th>
<th>vHost-Container</th>
<th>Specialsettings</th>
<th>ServerName</th>
<th>SSL</th>
<th>{$lng['panel']['options']}</th>
<th class="nosort">{$lng['panel']['options']}</th>
</tr>
</thead>
<if $pagingcode != ''>

View File

@@ -1,5 +1,6 @@
<tr>
<td>{$row['ip']}:{$row['port']}</td>
<td>{$row['ip']}</td>
<td>{$row['port']}</td>
<td><if $row['listen_statement']=='1'>{$lng['panel']['yes']}<else>{$lng['panel']['no']}</if></td>
<td><if $row['namevirtualhost_statement']=='1'>{$lng['panel']['yes']}<else>{$lng['panel']['no']}</if></td>
<td><if $row['vhostcontainer']=='1'>{$lng['panel']['yes']}<else>{$lng['panel']['no']}</if></td>

View File

@@ -22,12 +22,12 @@ $header
</div>
</if>
<table class="bradius">
<table class="bradius" id="sortable">
<thead>
<tr>
<th>{$lng['logger']['date']}&nbsp;&nbsp;{$arrowcode['date']}</th>
<th>{$lng['logger']['type']}&nbsp;&nbsp;{$arrowcode['type']}</th>
<th>{$lng['logger']['user']}&nbsp;&nbsp;{$arrowcode['user']}</th>
<th>{$lng['logger']['date']}</th>
<th>{$lng['logger']['type']}</th>
<th>{$lng['logger']['user']}</th>
<th style="width: 60%;">{$lng['logger']['action']}</th>
</tr>
</thead>

View File

@@ -1,3 +1,3 @@
<tr>
<!--<tr>
<td colspan="4"><strong>{$row['action']}</strong></td>
</tr>
</tr>-->

View File

@@ -8,12 +8,12 @@ $header
</header>
<section>
<table class="bradius">
<table class="bradius" id="sortable">
<thead>
<tr>
<th>{$lng['login']['language']}</th>
<th>{$lng['admin']['templates']['action']}</th>
<th>{$lng['panel']['options']}</th>
<th class="nosort">{$lng['panel']['options']}</th>
</tr>
</thead>
<tbody>

View File

@@ -22,13 +22,13 @@ $header
</div>
</if>
<table class="bradius">
<table class="bradius" <if 0 < $categories_count>id="sortable"</if>>
<thead>
<tr>
<th>{$lng['ticket']['category']}&nbsp;{$arrowcode['name']}</th>
<th>{$lng['ticket']['logicalorder']}&nbsp;{$arrowcode['logicalorder']}</th>
<th>{$lng['ticket']['ticketcount']}&nbsp;<if $categories_count < 0 >{$arrowcode['ticketcount']}</if></th>
<th>{$lng['panel']['options']}</th>
<th>{$lng['ticket']['category']}</th>
<th>{$lng['ticket']['logicalorder']}</th>
<th>{$lng['ticket']['ticketcount']}</if></th>
<th class="nosort">{$lng['panel']['options']}</th>
</tr>
</thead>
<if $pagingcode != ''>

View File

@@ -22,16 +22,16 @@ $header
</div>
</if>
<table class="bradius">
<table class="bradius" <if 0 < $tickets_count>id="sortable"</if>>
<thead>
<tr>
<th>{$lng['ticket']['lastchange']}&nbsp;{$arrowcode['lastchange']}</th>
<th>{$lng['ticket']['ticket_answers']}&nbsp;{$arrowcode['ticket_answers']}</th>
<th>{$lng['ticket']['subject']}&nbsp;{$arrowcode['subject']}</th>
<th>{$lng['ticket']['status']}&nbsp;{$arrowcode['status']}</th>
<th>{$lng['ticket']['lastreplier']}&nbsp;{$arrowcode['lastreplier']}</th>
<th>{$lng['ticket']['priority']}&nbsp;{$arrowcode['priority']}</th>
<th>{$lng['panel']['options']}</th>
<th>{$lng['ticket']['lastchange']}</th>
<th>{$lng['ticket']['ticket_answers']}</th>
<th>{$lng['ticket']['subject']}</th>
<th>{$lng['ticket']['status']}</th>
<th>{$lng['ticket']['lastreplier']}</th>
<th>{$lng['ticket']['priority']}</th>
<th class="nosort">{$lng['panel']['options']}</th>
</tr>
</thead>
<if $pagingcode != ''>