Added header above bookmarks in order to sort by name or date.
This commit is contained in:
31
index.php
31
index.php
@@ -3,6 +3,7 @@ require_once ("./header.php");
|
||||
logged_in_only ();
|
||||
|
||||
$search = set_get_string_var ('search');
|
||||
$order = set_get_order ();
|
||||
if ($search != '') {
|
||||
$search_mode = true;
|
||||
}
|
||||
@@ -10,6 +11,7 @@ else {
|
||||
$search_mode = false;
|
||||
}
|
||||
|
||||
|
||||
?>
|
||||
|
||||
<h1 id="caption"><?php echo $username; ?>'s Online Bookmarks</h1>
|
||||
@@ -71,7 +73,7 @@ else {
|
||||
<div style="height: <?php echo $table_height; ?>; overflow:auto;">
|
||||
|
||||
<div class="bookmark">
|
||||
<a class="f" href="./index.php?expand=&folderid=0#0"><img src="./images/folder_open.gif" alt=""> My Bookmarks</a>
|
||||
<a class="f" href="./index.php"><img src="./images/folder_open.gif" alt=""> My Bookmarks</a>
|
||||
</div>
|
||||
|
||||
<?php
|
||||
@@ -115,7 +117,8 @@ else {
|
||||
<?php else: ?>
|
||||
|
||||
<!-- Folders starts here. -->
|
||||
<div id="folders" style="width: <?php echo $column_width_folder; ?>; height: <?php echo $table_height; ?>;">
|
||||
|
||||
<div class="folders" style="width: <?php echo $column_width_folder; ?>; height: <?php echo $table_height; ?>;">
|
||||
|
||||
<?php
|
||||
require_once (ABSOLUTE_PATH . "folders.php");
|
||||
@@ -128,16 +131,36 @@ else {
|
||||
</div>
|
||||
|
||||
<!-- Bookmarks starts here. -->
|
||||
<div id="bookmarks" style="height: <?php echo $table_height; ?>;">
|
||||
<div class="bookmarks" style="height: <?php echo $table_height; ?>;">
|
||||
|
||||
<div class="bookmarkcaption" style="background-color: #bbb;">
|
||||
<div class="bmleft">
|
||||
<input class="link" type="checkbox">
|
||||
<img src="./images/bookmark_image.gif" alt="" class="invisible">
|
||||
</div>
|
||||
<div class="bmright">
|
||||
<span class="date">
|
||||
<a href="./index.php?expand=<?php echo implode(",", $expand); ?>&folderid=<?php echo $folderid; ?>&order=date" class="f">Date <img src="./images/ascending.gif" alt="">
|
||||
</span>
|
||||
|
||||
<img src="./images/edit.gif" alt="" class="invisible">
|
||||
<img src="./images/move.gif" alt="" class="invisible">
|
||||
<img src="./images/delete.gif" alt="" class="invisible">
|
||||
</div>
|
||||
<div class="link">
|
||||
<a href="./index.php?expand=<?php echo implode(",", $expand); ?>&folderid=<?php echo $folderid; ?>" class="f">Name <img src="./images/ascending.gif" alt=""></a>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<?php
|
||||
|
||||
require_once (ABSOLUTE_PATH . "bookmarks.php");
|
||||
$query = sprintf ("SELECT title, url, description, UNIX_TIMESTAMP(date) AS timestamp, id, favicon, public
|
||||
FROM bookmark
|
||||
WHERE user='%s'
|
||||
AND childof='%d'
|
||||
AND deleted!='1'
|
||||
ORDER BY title",
|
||||
ORDER BY $order",
|
||||
$mysql->escape ($username),
|
||||
$mysql->escape ($folderid));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user