1
0

Added the possibility to sort bookmarks either by name or by date.

This commit is contained in:
Stefan Frech
2008-06-28 09:32:21 +00:00
committed by Jonas Kattendick
parent 5b8f25c80f
commit 7724caf7ff
6 changed files with 73 additions and 48 deletions

View File

@@ -74,6 +74,7 @@ if (isset ($_GET['user']) && check_username ($user)) {
<div class="bookmarks" style="height: <?php echo $table_height; ?>;">
<?php
$order = set_get_order ();
require_once (ABSOLUTE_PATH . "bookmarks.php");
$query = sprintf ("SELECT title, url, description, UNIX_TIMESTAMP(date) AS timestamp, id, favicon
@@ -82,7 +83,7 @@ if (isset ($_GET['user']) && check_username ($user)) {
AND childof='%d'
AND deleted!='1'
AND public='1'
ORDER BY title",
ORDER BY $order[1]",
$mysql->escape ($user),
$mysql->escape ($folderid));
@@ -101,7 +102,8 @@ if (isset ($_GET['user']) && check_username ($user)) {
false,
false,
false,
false);
false,
true);
}
else {
message ($mysql->error);