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

@@ -3,7 +3,6 @@ require_once ("./header.php");
logged_in_only ();
$search = set_get_string_var ('search');
$order = set_get_order ();
if ($search != '') {
$search_mode = true;
}
@@ -11,6 +10,7 @@ else {
$search_mode = false;
}
$order = set_get_order ();
?>
@@ -100,7 +100,8 @@ else {
$settings['show_column_edit'],
$settings['show_column_move'],
$settings['show_column_delete'],
$settings['show_public']);
$settings['show_public'],
true);
}
else {
echo '<div id="content"> No Bookmarks found matching <b>' . $search . '</b>.</div>';
@@ -135,8 +136,6 @@ else {
<?php
display_bookmark_header ();
require_once (ABSOLUTE_PATH . "bookmarks.php");
$query = sprintf ("SELECT title, url, description, UNIX_TIMESTAMP(date) AS timestamp, id, favicon, public
FROM bookmark
@@ -162,7 +161,8 @@ else {
$settings['show_column_edit'],
$settings['show_column_move'],
$settings['show_column_delete'],
$settings['show_public']);
$settings['show_public'],
true);
}
else {
message ($mysql->error);