summaryrefslogtreecommitdiff
path: root/backend.php
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2006-08-20 14:43:58 +0100
committerAndrew Dolgov <[email protected]>2006-08-20 14:43:58 +0100
commite161a2cc343e7b9dc098036f296ad0f5842a8cb9 (patch)
tree902fcf33a0f4b017885fccaf7ea7d2703eaa98bf /backend.php
parent0e317f9d872f538fbf13f81e8a72272ab2c92e84 (diff)
sortable label editor
Diffstat (limited to 'backend.php')
-rw-r--r--backend.php12
1 files changed, 9 insertions, 3 deletions
diff --git a/backend.php b/backend.php
index d9a4fe72d..5a3725861 100644
--- a/backend.php
+++ b/backend.php
@@ -2414,6 +2414,12 @@
}
}
+ $sort = db_escape_string($_GET["sort"]);
+
+ if (!$sort || $sort == "undefined") {
+ $sort = "description";
+ }
+
print "<div class=\"prefGenericAddBox\">";
print"<input type=\"submit\" class=\"button\"
@@ -2427,7 +2433,7 @@
ttrss_labels
WHERE
owner_uid = ".$_SESSION["uid"]."
- ORDER by description");
+ ORDER BY $sort");
// print "<div id=\"infoBoxShadow\"><div id=\"infoBox\">PLACEHOLDER</div></div>";
@@ -2446,8 +2452,8 @@
print "<tr class=\"title\">
<td width=\"5%\">&nbsp;</td>
- <td width=\"30%\">Caption</td>
- <td width=\"50%\">SQL Expression
+ <td width=\"30%\"><a href=\"javascript:updateLabelList('description')\">Caption</a></td>
+ <td width=\"50%\"><a href=\"javascript:updateLabelList('sql_exp')\">SQL Expression</a>
<a class=\"helpLink\" href=\"javascript:displayHelpInfobox(1)\">(?)</a>
</td>
</tr>";