From 5b8f25c80f4befce016fe564b3717735e0755026 Mon Sep 17 00:00:00 2001 From: Stefan Frech Date: Mon, 16 Jun 2008 09:36:47 +0000 Subject: [PATCH] Changed title 'Homepage' to 'URL' --- bookmark_new.php | 4 +-- index.php | 23 +++------------- lib/lib.php | 58 ++++++++++++++++++++++++++++++++++++----- shared.php | 68 +++++++++++++++++++++++++----------------------- style.css | 1 + 5 files changed, 93 insertions(+), 61 deletions(-) diff --git a/bookmark_new.php b/bookmark_new.php index e042326..8bfd648 100644 --- a/bookmark_new.php +++ b/bookmark_new.php @@ -46,7 +46,7 @@ if ($post_title == '' || $post_url == '') {

Title

-

Homepage
+

URL

Description

@@ -119,4 +119,4 @@ else { } } require_once (ABSOLUTE_PATH . "footer.php"); -?> \ No newline at end of file +?> diff --git a/index.php b/index.php index ea4623c..ec59f15 100644 --- a/index.php +++ b/index.php @@ -133,34 +133,17 @@ else {
- - 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;