summaryrefslogtreecommitdiff
path: root/backend.php
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2006-08-20 14:54:54 +0100
committerAndrew Dolgov <[email protected]>2006-08-20 14:54:54 +0100
commit79ec0f2f4c48e131972349d5289ee9da526cb2fa (patch)
treeaed7a9ed17379e084b761cc908bdf0194c416f7b /backend.php
parente161a2cc343e7b9dc098036f296ad0f5842a8cb9 (diff)
sortable user editor
Diffstat (limited to 'backend.php')
-rw-r--r--backend.php14
1 files changed, 10 insertions, 4 deletions
diff --git a/backend.php b/backend.php
index 5a3725861..fc36d2e03 100644
--- a/backend.php
+++ b/backend.php
@@ -3384,6 +3384,12 @@
}
}
+ $sort = db_escape_string($_GET["sort"]);
+
+ if (!$sort || $sort == "undefined") {
+ $sort = "login";
+ }
+
print "<div class=\"prefGenericAddBox\">
<input id=\"uadd_box\"
onkeyup=\"toggleSubmitNotEmpty(this, 'user_add_btn')\"
@@ -3398,7 +3404,7 @@
SUBSTRING(last_login,1,16) as last_login
FROM
ttrss_users
- ORDER by login");
+ ORDER BY $sort");
// print "<div id=\"infoBoxShadow\"><div id=\"infoBox\">PLACEHOLDER</div></div>";
@@ -3413,9 +3419,9 @@
print "<tr class=\"title\">
<td align='center' width=\"5%\">&nbsp;</td>
- <td width='40%'>Login</td>
- <td width='40%'>Access Level</td>
- <td width='30%'>Last login</td></tr>";
+ <td width='40%'><a href=\"javascript:updateUsersList('login')\">Login</a></td>
+ <td width='40%'><a href=\"javascript:updateUsersList('access_level')\">Access Level</a></td>
+ <td width='30%'><a href=\"javascript:updateUsersList('last_login')\">Last login</a></td></tr>";
$lnum = 0;