Merge pull request #860 from ammaraskar/table_sorting

Implement table sorting in webadmin, addresses #40
This commit is contained in:
Alexey Sokolov
2015-05-10 17:02:32 +01:00
4 changed files with 100 additions and 4 deletions
@@ -1,3 +1,4 @@
<? AddRow JSLoop HREF=/modfiles/global/webadmin/webadmin.js ?>
<? AddRow CSSLoop HREF=/modfiles/global/webadmin/webadmin.css ?>
<? INC Header.tmpl ?>
@@ -126,10 +127,10 @@
<? IF Edit ?>
<div class="sectionbg">
<div class="sectionbody">
<table>
<table class="sortable">
<thead>
<tr>
<td>[<a href="<? VAR URIPrefix TOP ?><? VAR ModPath TOP ?>addnetwork?user=<? VAR Username ESC=URL ?>">Add</a>]</td>
<td class="ignore-sort">[<a href="<? VAR URIPrefix TOP ?><? VAR ModPath TOP ?>addnetwork?user=<? VAR Username ESC=URL ?>">Add</a>]</td>
<? IF NetworkLoop ?>
<td>Name</td>
<td>Clients</td>
@@ -353,5 +354,6 @@
<? ENDIF ?>
</div>
</form>
<script>make_sortable();</script>
<? INC Footer.tmpl ?>
+5 -2
View File
@@ -1,3 +1,5 @@
<? AddRow JSLoop HREF=/modfiles/global/webadmin/webadmin.js ?>
<? AddRow CSSLoop HREF=/modfiles/global/webadmin/webadmin.css ?>
<? INC Header.tmpl ?>
<?IF !UserLoop?>
@@ -6,10 +8,10 @@
</div>
<?ELSE?>
<div class="toptable">
<table>
<table class="sortable">
<thead>
<tr>
<td>[<a href="<? VAR URIPrefix TOP ?><? VAR ModPath TOP ?>adduser">Add</a>]</td>
<td class="ignore-sort">[<a href="<? VAR URIPrefix TOP ?><? VAR ModPath TOP ?>adduser">Add</a>]</td>
<td>Username</td>
<td>Networks</td>
<td>Clients</td>
@@ -34,6 +36,7 @@
</tbody>
</table>
</div>
<script>make_sortable();</script>
<?ENDIF?>
<? INC Footer.tmpl ?>