-
-
-
-

-
-
-
-
-
escape ($username),
$mysql->escape ($folderid));
diff --git a/lib/lib.php b/lib/lib.php
index b01f89d..7a5b6f6 100644
--- a/lib/lib.php
+++ b/lib/lib.php
@@ -174,16 +174,22 @@ function set_get_noconfirm () {
function set_get_order () {
if (!isset ($_GET['order']) || $_GET['order'] == '') {
- $return = "title";
+ $return = array ("titleasc", "title ASC");
}
- else if ($_GET['order'] == 'date') {
- $return = 'date';
+ else if ($_GET['order'] == 'datedesc') {
+ $return = array ("datedesc", "date DESC");
}
- else if ($_GET['order'] == 'title') {
- $return = 'title';
+ else if ($_GET['order'] == 'dateasc') {
+ $return = array ("dateasc", "date ASC");
+ }
+ else if ($_GET['order'] == 'titledesc') {
+ $return = array ("titledesc", "title DESC");
+ }
+ else if ($_GET['order'] == 'titleasc') {
+ $return = array ("titleasc", "title ASC");
}
else {
- $return = 'title';
+ $return = array ("titleasc", "title ASC");
}
return $return;
}
@@ -456,4 +462,44 @@ function object_count () {
echo $return;
}
+function display_bookmark_header () {
+ global $expand, $folderid, $order, $settings;
+
+ if ($order[0] == 'titleasc') {
+ $sort_t = 'titledesc';
+ }
+ else {
+ $sort_t = 'titleasc';
+ }
+ if ($order[0] == 'dateasc') {
+ $sort_d = 'datedesc';
+ }
+ else {
+ $sort_d = 'dateasc';
+ }
+
+ ?>
+
+
\ No newline at end of file
diff --git a/shared.php b/shared.php
index c17fe9e..8c6d773 100644
--- a/shared.php
+++ b/shared.php
@@ -73,39 +73,41 @@ if (isset ($_GET['user']) && check_username ($user)) {
- escape ($user),
- $mysql->escape ($folderid));
-
- if ($mysql->query ($query)) {
- $bookmarks = array ();
- while ($row = mysql_fetch_assoc ($mysql->result)) {
- array_push ($bookmarks, $row);
- }
- list_bookmarks ($bookmarks,
- false,
- false,
- $settings['show_bookmark_icon'],
- true,
- $settings['show_bookmark_description'],
- $settings['show_column_date'],
- false,
- false,
- false,
- false);
- }
- else {
- message ($mysql->error);
- }
- ?>
+ escape ($user),
+ $mysql->escape ($folderid));
+
+ if ($mysql->query ($query)) {
+ $bookmarks = array ();
+ while ($row = mysql_fetch_assoc ($mysql->result)) {
+ array_push ($bookmarks, $row);
+ }
+ list_bookmarks ($bookmarks,
+ false,
+ false,
+ $settings['show_bookmark_icon'],
+ true,
+ $settings['show_bookmark_description'],
+ $settings['show_column_date'],
+ false,
+ false,
+ false,
+ false);
+ }
+ else {
+ message ($mysql->error);
+ }
+
+ ?>
diff --git a/style.css b/style.css
index c29b568..ba463d5 100644
--- a/style.css
+++ b/style.css
@@ -134,6 +134,7 @@ div.bookmark {
}
div.bookmarkcaption {
padding: 2px 2px 2px 4px;
+ background-color: #bbb;
}
div.bookmark:hover {
background-color: #eee;