Added natural dynamic sorting
New attributes for sortable tables: sort-column (0 ... x) for default sort col in template and sort-direction (asc, desc) for default sort order on load
This commit is contained in:
2
templates/Sparkle/admin/admins/admins.tpl
vendored
2
templates/Sparkle/admin/admins/admins.tpl
vendored
@@ -22,7 +22,7 @@ $header
|
||||
</div>
|
||||
</if>
|
||||
|
||||
<table class="bradius" id="sortable">
|
||||
<table class="bradius" id="sortable" sort-column="1">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>
|
||||
|
||||
@@ -22,7 +22,7 @@ $header
|
||||
{$searchcode}
|
||||
</div>
|
||||
|
||||
<table class="bradius" id="sortable">
|
||||
<table class="bradius" id="sortable" sort-column="1">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>
|
||||
|
||||
@@ -12,7 +12,7 @@
|
||||
</if>
|
||||
</td>
|
||||
<td>
|
||||
<a href="{$linker->getLink(array('section' => 'customers', 'page' => $page, 'action' => 'su', 'id' => $row['customerid']))}" rel="external">{$row['loginname']}</a>
|
||||
<a href="{$linker->getLink(array('section' => 'customers', 'page' => $page, 'action' => 'su', 'sort' => $row['loginname'], 'id' => $row['customerid']))}" rel="external">{$row['loginname']}</a>
|
||||
</td>
|
||||
<td>
|
||||
{$row['adminname']}
|
||||
|
||||
2
templates/Sparkle/admin/logger/logger.tpl
vendored
2
templates/Sparkle/admin/logger/logger.tpl
vendored
@@ -22,7 +22,7 @@ $header
|
||||
</div>
|
||||
</if>
|
||||
|
||||
<table class="bradius" id="sortable">
|
||||
<table class="bradius" id="sortable" sort-direction="desc">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>{$lng['logger']['date']}</th>
|
||||
|
||||
Reference in New Issue
Block a user