Added the possibility to sort bookmarks either by name or by date.
This commit is contained in:
10
index.php
10
index.php
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user