Changing design to mostly tableless code.
This commit is contained in:
450
admin.php
450
admin.php
@@ -14,269 +14,231 @@ $message1 = '';
|
||||
$message2 = '';
|
||||
?>
|
||||
|
||||
<table class="caption">
|
||||
<tr>
|
||||
<td><span class="caption"><img src="./images/logo.png" alt=""> Admin Page</span>
|
||||
</td>
|
||||
<h1 id="caption">Admin Page</h1>
|
||||
|
||||
<td class="captionright">
|
||||
<div><?php object_count (); ?></div>
|
||||
<div><?php print_footer (); ?></div>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
<!-- Wrapper starts here. -->
|
||||
<div style="min-width: <?php echo 230 + $settings['column_width_folder']; ?>px;">
|
||||
<!-- Menu starts here. -->
|
||||
<div id="menu">
|
||||
<h2 class="nav">Bookmarks</h2>
|
||||
<ul class="nav">
|
||||
<li><a href="./index.php">My Bookmarks</a></li>
|
||||
<li><a href="./shared.php">Shared Bookmarks</a></li>
|
||||
</ul>
|
||||
|
||||
<h2 class="nav">Tools</h2>
|
||||
<ul class="nav">
|
||||
<?php if (admin_only ()) { ?>
|
||||
<li><a href="./admin.php">Admin</a></li>
|
||||
<?php } ?>
|
||||
<li><a href="./import.php">Import</a></li>
|
||||
<li><a href="./export.php">Export</a></li>
|
||||
<li><a href="./sidebar.php">View as Sidebar</a></li>
|
||||
<li><a href="./settings.php">Settings</a></li>
|
||||
<li><a href="javascript:chpw()">Change Password</a></li>
|
||||
<li><a href="./index.php?logout=1">Logout</a></li>
|
||||
</ul>
|
||||
<!-- Menu ends here. -->
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
<table class="main">
|
||||
<tr>
|
||||
<td class="main1">
|
||||
<table class="menu">
|
||||
<tr>
|
||||
<th class="menuhead">Bookmarks</th>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="menu">
|
||||
<a href="./index.php">My Bookmarks</a><br>
|
||||
<a href="./shared.php">Shared Bookmarks</a><br>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<br>
|
||||
|
||||
<table class="menu">
|
||||
<tr>
|
||||
<th class="menuhead">Tools</th>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="menu">
|
||||
<?php if (admin_only ()) { ?>
|
||||
<a href="./admin.php">Admin</a><br>
|
||||
<?php } ?>
|
||||
<a href="./import.php">Import</a><br>
|
||||
<a href="./export.php">Export</a><br>
|
||||
<a href="./sidebar.php">View as Sidebar</a><br>
|
||||
<a href="./settings.php">Settings</a><br>
|
||||
<a href="javascript:chpw()">Change Password</a><br>
|
||||
<a href="./index.php?logout=1">Logout</a><br>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<td class="">
|
||||
<img src="./images/spacer.gif" alt="" class="main2">
|
||||
</td>
|
||||
<td class="main4">
|
||||
|
||||
<?php
|
||||
if (!admin_only ()) {
|
||||
message ("You are not an Admin.");
|
||||
}
|
||||
|
||||
if ($create == 'Create') {
|
||||
if ($new_username == '' || $new_password == '') {
|
||||
$message1 = 'Username and Password fields must not be empty.';
|
||||
<!-- Main content starts here. -->
|
||||
<div id="main">
|
||||
|
||||
<?php
|
||||
if (!admin_only ()) {
|
||||
message ("You are not an Admin.");
|
||||
}
|
||||
else if (check_username ($new_username)) {
|
||||
$message1 = 'User already exists.';
|
||||
}
|
||||
else {
|
||||
$query = sprintf ("INSERT INTO user (username, password, admin) VALUES ('%s', md5('%s'), '%d')",
|
||||
$mysql->escape ($new_username),
|
||||
$mysql->escape ($new_password),
|
||||
$mysql->escape ($new_admin));
|
||||
|
||||
if ($mysql->query ($query)) {
|
||||
$message1 = "User $new_username created.";
|
||||
|
||||
if ($create == 'Create') {
|
||||
if ($new_username == '' || $new_password == '') {
|
||||
$message1 = 'Username and Password fields must not be empty.';
|
||||
}
|
||||
else if (check_username ($new_username)) {
|
||||
$message1 = 'User already exists.';
|
||||
}
|
||||
else {
|
||||
message ($mysql->error);
|
||||
$query = sprintf ("INSERT INTO user (username, password, admin) VALUES ('%s', md5('%s'), '%d')",
|
||||
$mysql->escape ($new_username),
|
||||
$mysql->escape ($new_password),
|
||||
$mysql->escape ($new_admin));
|
||||
|
||||
if ($mysql->query ($query)) {
|
||||
$message1 = "User $new_username created.";
|
||||
}
|
||||
else {
|
||||
message ($mysql->error);
|
||||
}
|
||||
unset ($new_password, $_POST['new_password']);
|
||||
}
|
||||
unset ($new_password, $_POST['new_password']);
|
||||
}
|
||||
}
|
||||
?>
|
||||
?>
|
||||
|
||||
<div style="border: 1px solid #bbb; margin: 10px; padding: 10px;">
|
||||
<h2 class="caption">Create User</h2>
|
||||
|
||||
<form action="<?php echo $_SERVER['SCRIPT_NAME']; ?>" method="POST">
|
||||
<table>
|
||||
<tr>
|
||||
<td>Username:
|
||||
</td>
|
||||
<td>
|
||||
<input type="text" name="new_username">
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>Password:
|
||||
</td>
|
||||
<td>
|
||||
<input type="password" name="new_password">
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>Admin:
|
||||
</td>
|
||||
<td>
|
||||
<input type="checkbox" name="new_admin" value="1">
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>
|
||||
</td>
|
||||
<td>
|
||||
<input type="submit" name="create" value="Create"> <?php echo $message1; ?>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</form>
|
||||
|
||||
</div>
|
||||
|
||||
<fieldset>
|
||||
<legend>Create User</legend>
|
||||
<div style="border: 1px solid #bbb; margin: 10px; padding: 10px;">
|
||||
<h2 class="caption">Delete User</h2>
|
||||
|
||||
<form action="<?php echo $_SERVER['SCRIPT_NAME']; ?>" method="POST">
|
||||
<table>
|
||||
<tr>
|
||||
<td>Username:
|
||||
</td>
|
||||
<td>
|
||||
<input type="text" name="new_username">
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>Password:
|
||||
</td>
|
||||
<td>
|
||||
<input type="password" name="new_password">
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>Admin:
|
||||
</td>
|
||||
<td>
|
||||
<input type="checkbox" name="new_admin" value="1">
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>
|
||||
</td>
|
||||
<td>
|
||||
<input type="submit" name="create" value="Create"> <?php echo $message1; ?>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</form>
|
||||
|
||||
</fieldset>
|
||||
|
||||
|
||||
<fieldset>
|
||||
<legend>Delete User</legend>
|
||||
|
||||
<?php
|
||||
if ($delete == 'Delete') {
|
||||
if (check_username ($existing_user)) {
|
||||
if ($noconfirm) {
|
||||
$query = sprintf ("DELETE FROM user WHERE md5(username)=md5('%s')",
|
||||
$mysql->escape ($existing_user));
|
||||
<?php
|
||||
if ($delete == 'Delete') {
|
||||
if (check_username ($existing_user)) {
|
||||
if ($noconfirm) {
|
||||
$query = sprintf ("DELETE FROM user WHERE md5(username)=md5('%s')",
|
||||
$mysql->escape ($existing_user));
|
||||
if ($mysql->query ($query)) {
|
||||
$message2 = "User $existing_user deleted.<br>";
|
||||
}
|
||||
else {
|
||||
message ($mysql->error);
|
||||
}
|
||||
|
||||
$query = sprintf ("DELETE FROM bookmark WHERE md5(user)=md5('%s')",
|
||||
$mysql->escape ($existing_user));
|
||||
if (!$mysql->query ($query)) {
|
||||
message ($mysql->error);
|
||||
}
|
||||
|
||||
$query = sprintf ("DELETE FROM folder WHERE md5(user)=md5('%s')",
|
||||
$mysql->escape ($existing_user));
|
||||
if (!$mysql->query ($query)) {
|
||||
message ($mysql->error);
|
||||
}
|
||||
list_users ();
|
||||
}
|
||||
else {
|
||||
?>
|
||||
|
||||
<p>Are you sure you want to delete the user <?php echo $existing_user; ?> and all it's Bookmarks and Folders?</p>
|
||||
<form action="<?php echo $_SERVER['SCRIPT_NAME'] . "?noconfirm=1"; ?>" method="POST" name="userdelete">
|
||||
<input type="hidden" name="existing_user" value="<?php echo $existing_user; ?>">
|
||||
<input type="submit" name="delete" value="Delete">
|
||||
<input type="button" value=" Cancel " onClick="self.location.href='./admin.php'">
|
||||
</form>
|
||||
|
||||
<?php
|
||||
}
|
||||
}
|
||||
else {
|
||||
$message2 = 'User does not exist.';
|
||||
list_users ();
|
||||
}
|
||||
}
|
||||
else {
|
||||
list_users ();
|
||||
}
|
||||
|
||||
function list_users () {
|
||||
global $mysql, $message2;;
|
||||
?>
|
||||
|
||||
<form action="<?php echo $_SERVER['SCRIPT_NAME']; ?>" method="POST">
|
||||
<div style="height: 200px; width: 300px; overflow:auto;">
|
||||
<?php
|
||||
$query = "SELECT username, admin FROM user ORDER BY username";
|
||||
|
||||
if ($mysql->query ($query)) {
|
||||
$message2 = "User $existing_user deleted.<br>";
|
||||
while ($row = mysql_fetch_object ($mysql->result)) {
|
||||
echo '<input type="radio" name="existing_user" value="'.$row->username.'">';
|
||||
if ($row->admin) {
|
||||
echo " <b>" . $row->username . "</b><br>\n";
|
||||
}
|
||||
else {
|
||||
echo " " . $row->username . "<br>\n";
|
||||
}
|
||||
}
|
||||
}
|
||||
else {
|
||||
message ($mysql->error);
|
||||
}
|
||||
|
||||
$query = sprintf ("DELETE FROM bookmark WHERE md5(user)=md5('%s')",
|
||||
$mysql->escape ($existing_user));
|
||||
if (!$mysql->query ($query)) {
|
||||
message ($mysql->error);
|
||||
}
|
||||
|
||||
$query = sprintf ("DELETE FROM folder WHERE md5(user)=md5('%s')",
|
||||
$mysql->escape ($existing_user));
|
||||
if (!$mysql->query ($query)) {
|
||||
message ($mysql->error);
|
||||
}
|
||||
list_users ();
|
||||
}
|
||||
else {
|
||||
?>
|
||||
|
||||
<p>Are you sure you want to delete the user <?php echo $existing_user; ?> and all it's Bookmarks and Folders?</p>
|
||||
<form action="<?php echo $_SERVER['SCRIPT_NAME'] . "?noconfirm=1"; ?>" method="POST" name="userdelete">
|
||||
<input type="hidden" name="existing_user" value="<?php echo $existing_user; ?>">
|
||||
<input type="submit" name="delete" value="Delete">
|
||||
<input type="button" value=" Cancel " onClick="self.location.href='./admin.php'">
|
||||
</form>
|
||||
|
||||
<?php
|
||||
}
|
||||
}
|
||||
else {
|
||||
$message2 = 'User does not exist.';
|
||||
list_users ();
|
||||
}
|
||||
}
|
||||
else {
|
||||
list_users ();
|
||||
}
|
||||
|
||||
function list_users () {
|
||||
global $mysql, $message2;;
|
||||
?>
|
||||
|
||||
<form action="<?php echo $_SERVER['SCRIPT_NAME']; ?>" method="POST">
|
||||
<table>
|
||||
<tr>
|
||||
<td>
|
||||
<div style="height: 200px; width: 300px; overflow:auto;">
|
||||
<?php
|
||||
$query = "SELECT username, admin FROM user ORDER BY username";
|
||||
|
||||
if ($mysql->query ($query)) {
|
||||
while ($row = mysql_fetch_object ($mysql->result)) {
|
||||
echo '<input type="radio" name="existing_user" value="'.$row->username.'">';
|
||||
if ($row->admin) {
|
||||
echo " <b>" . $row->username . "</b><br>\n";
|
||||
}
|
||||
else {
|
||||
echo " " . $row->username . "<br>\n";
|
||||
}
|
||||
}
|
||||
}
|
||||
else {
|
||||
message ($mysql->error);
|
||||
}
|
||||
?>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<input type="submit" name="delete" value="Delete">
|
||||
<?php echo $message2; ?>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
</form>
|
||||
|
||||
<?php
|
||||
}
|
||||
|
||||
?>
|
||||
|
||||
</fieldset>
|
||||
|
||||
<fieldset>
|
||||
<legend>Version</legend>
|
||||
|
||||
<table>
|
||||
<tr>
|
||||
<td>This Version:</td>
|
||||
<td><?php @readfile (ABSOLUTE_PATH . "VERSION"); ?></td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td><a href="http://www.frech.ch/online-bookmarks/" target="_new">Newest Version available:</a></td>
|
||||
<td><a href="http://www.frech.ch/online-bookmarks/" target="_new"><?php echo check_version (); ?></a></td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
</div>
|
||||
<input type="submit" name="delete" value="Delete">
|
||||
<?php echo $message2; ?>
|
||||
|
||||
</form>
|
||||
|
||||
<?php
|
||||
function check_version () {
|
||||
$version = null;
|
||||
if ($fp = @fsockopen ("www.frech.ch", 80)) {
|
||||
$get = "GET /online-bookmarks/bookmarks/VERSION HTTP/1.0\r\n\r\n";
|
||||
$data = null;
|
||||
fwrite ($fp, $get);
|
||||
while (!feof ($fp)) {
|
||||
$data .= fgets ($fp, 128);
|
||||
}
|
||||
|
||||
?>
|
||||
|
||||
</div>
|
||||
|
||||
<div style="border: 1px solid #bbb; margin: 10px; padding: 10px;">
|
||||
<h2 class="caption">Version</h2>
|
||||
|
||||
<table>
|
||||
<tr>
|
||||
<td>This Version:</td>
|
||||
<td><?php @readfile (ABSOLUTE_PATH . "VERSION"); ?></td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td><a href="http://www.frech.ch/online-bookmarks/" target="_new">Newest Version available:</a></td>
|
||||
<td><a href="http://www.frech.ch/online-bookmarks/" target="_new"><?php echo check_version (); ?></a></td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<?php
|
||||
function check_version () {
|
||||
$version = null;
|
||||
if ($fp = @fsockopen ("www.frech.ch", 80)) {
|
||||
$get = "GET /online-bookmarks/bookmarks/VERSION HTTP/1.0\r\n\r\n";
|
||||
$data = null;
|
||||
fwrite ($fp, $get);
|
||||
while (!feof ($fp)) {
|
||||
$data .= fgets ($fp, 128);
|
||||
}
|
||||
fclose ($fp);
|
||||
$pos = strpos($data, "\r\n\r\n") + 4;
|
||||
$version = substr ($data, $pos, strlen ($data));
|
||||
}
|
||||
fclose ($fp);
|
||||
$pos = strpos($data, "\r\n\r\n") + 4;
|
||||
$version = substr ($data, $pos, strlen ($data));
|
||||
return $version;
|
||||
}
|
||||
return $version;
|
||||
}
|
||||
?>
|
||||
|
||||
</fieldset>
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
?>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<?php
|
||||
print_footer ();
|
||||
require_once (ABSOLUTE_PATH . 'footer.php');
|
||||
?>
|
||||
|
||||
@@ -30,7 +30,7 @@ else {
|
||||
$query_string = "?bmlist=" . implode ("_", $bmlist) . "&noconfirm=1";
|
||||
?>
|
||||
|
||||
<p class="title">Delete these Bookmarks?</p>
|
||||
<h2 class="title">Delete these Bookmarks?</h2>
|
||||
<div style="width:100%; height:330px; overflow:auto;">
|
||||
|
||||
<?php
|
||||
|
||||
@@ -24,7 +24,7 @@ if (count ($bmlist) > 1) {
|
||||
$query_string = "?bmlist=" . implode ("_", $bmlist);
|
||||
?>
|
||||
|
||||
<p class="title">Change public state:</p>
|
||||
<h2 class="title">Change public state:</h2>
|
||||
<div style="width:100%; height:330px; overflow:auto;">
|
||||
|
||||
<?php
|
||||
@@ -138,7 +138,7 @@ else if ($post_title == "" || $post_url == "" || $post_icon) {
|
||||
|
||||
?>
|
||||
|
||||
<p class="title">Edit Bookmark</p>
|
||||
<h2 class="title">Edit Bookmark</h2>
|
||||
<form action="<?php echo $_SERVER['SCRIPT_NAME'] . "?bmlist=" . $row->id; ?>" id="bmedit" method="POST">
|
||||
<p>Title<br>
|
||||
<input type=text name="title" size="50" value="<?php echo $row->title; ?>"> <?php echo $settings['show_bookmark_icon'] ? $icon : ""; ?></p>
|
||||
|
||||
@@ -7,7 +7,7 @@ $bmlist = set_post_num_list ('bmlist');
|
||||
if (count ($bmlist) == 0) {
|
||||
?>
|
||||
|
||||
<p class="title">Move bookmarks to:</p>
|
||||
<h2 class="title">Move bookmarks to:</h2>
|
||||
<form action="<?php echo $_SERVER['SCRIPT_NAME'] . "?folderid=" . $folderid; ?>" method="POST" name="bookmarksmove">
|
||||
|
||||
<div style="width:100%; height:330px; overflow:auto;">
|
||||
|
||||
@@ -42,7 +42,7 @@ if ($post_title == '' || $post_url == '') {
|
||||
|
||||
?>
|
||||
|
||||
<p class="title">New Bookmark</p>
|
||||
<h2 class="title">New Bookmark</h2>
|
||||
<form action="<?php echo $_SERVER['SCRIPT_NAME'] . "?folderid=" . $folderid; ?>" id="bmnew" method="POST">
|
||||
<p>Title<br>
|
||||
<input type=text name="title" size="50" value="<?php echo $title; ?>"></p>
|
||||
|
||||
107
bookmarks.php
107
bookmarks.php
@@ -21,11 +21,10 @@ function list_bookmarks ($bookmarks, $show_checkbox, $show_folder, $show_icon, $
|
||||
$tree = & new folder;
|
||||
}
|
||||
|
||||
echo '<form name="bookmarks">' . "\n";
|
||||
echo '<table cellspacing="0" style="width: 97%;">' . "\n";
|
||||
echo '<form name="bookmarks" action="">' . "\n";
|
||||
|
||||
foreach ($bookmarks as $value) {
|
||||
echo '<tr class="sh">' . "\n";
|
||||
echo '<div class="bookmark">' . "\n";
|
||||
|
||||
# the folders, only needed when searching for bookmarks
|
||||
if ($show_folder) {
|
||||
@@ -46,28 +45,62 @@ function list_bookmarks ($bookmarks, $show_checkbox, $show_folder, $show_icon, $
|
||||
echo "</td>\n";
|
||||
}
|
||||
|
||||
# the checkbox and favicon section
|
||||
echo "\t" . '<div class="bmleft">' . "\n";
|
||||
# the checkbox
|
||||
if ($show_checkbox){
|
||||
# the checkbox, needed in any case
|
||||
echo '<td class="ten">';
|
||||
echo '<input type="checkbox" name="' . $value['id'] . '">';
|
||||
echo "</td>\n";
|
||||
echo "\t\t" . '<input class="link" type="checkbox" name="' . $value['id'] . '">' . "\n";
|
||||
}
|
||||
|
||||
# the bookmark image if configured to be displayed
|
||||
# the favicon
|
||||
echo "\t\t";
|
||||
if ($show_icon){
|
||||
echo '<td class="ten">';
|
||||
if ($value['favicon'] && is_file ($value['favicon'])) {
|
||||
echo '<img src="' . $value['favicon'] . '" width="16" height="16">';
|
||||
}
|
||||
else {
|
||||
echo $bookmark_image;
|
||||
}
|
||||
echo "</td>\n";
|
||||
}
|
||||
echo "\n\t</div>\n";
|
||||
|
||||
# the share, date and edit/move/delete icon section
|
||||
echo "\t" . '<div class="bmright">' . "\n";
|
||||
if ($show_share) {
|
||||
$share = $value['public'] ? 'public' : 'private';
|
||||
echo "\t\t" . '<span class="' . $share . '">' . $share . "</span>\n";
|
||||
}
|
||||
|
||||
# the link if configured to be displayed
|
||||
echo '<td>';
|
||||
if ($show_date) {
|
||||
echo "\t\t" . '<span class="date">';
|
||||
echo date ($date_formats[$settings['date_format']], $value['timestamp']);
|
||||
echo "\t</span>\n";
|
||||
}
|
||||
|
||||
# the edit column
|
||||
if ($show_edit) {
|
||||
echo "\t\t" . '<a href="javascript:bookmarkedit(\'' . $value['id'] . '\')">';
|
||||
echo sprintf ($edit_image, "Edit");
|
||||
echo "</a>\n";
|
||||
}
|
||||
|
||||
# the move column
|
||||
if ($show_move) {
|
||||
echo "\t\t" . '<a href="javascript:bookmarkmove(\'' . $value['id'] . '\', \'' . 'expand=' . implode (",", $expand) . '&folderid=' . $folderid . '\')">';
|
||||
echo sprintf ($move_image, "Move");
|
||||
echo "</a>\n";
|
||||
}
|
||||
|
||||
# the delete column
|
||||
if ($show_delete) {
|
||||
echo "\t\t" . '<a href="javascript:bookmarkdelete(\'' . $value['id'] . '\')">';
|
||||
echo sprintf ($delete_image, "Delete");
|
||||
echo "</a>\n";
|
||||
}
|
||||
|
||||
echo "\t</div>\n";
|
||||
|
||||
# the link
|
||||
if ($settings['open_new_window']) {
|
||||
$target = ' target="_blank"';
|
||||
}
|
||||
@@ -81,58 +114,16 @@ function list_bookmarks ($bookmarks, $show_checkbox, $show_folder, $show_icon, $
|
||||
else {
|
||||
$link = $value['title'];
|
||||
}
|
||||
echo '<div>' . $link . "</div>\n";
|
||||
echo "\t" . '<div class="link">' . $link . "</div>\n";
|
||||
|
||||
# the description if configured to be displayed and if not empty
|
||||
# thanks to Tim Hogan <tlhogan22@yahoo.com>
|
||||
# also display the public status here
|
||||
# the description and if not empty
|
||||
if ($show_desc && $value['description'] != "") {
|
||||
echo '<div class="description">' . $value['description'] . "</div>\n";
|
||||
}
|
||||
echo "</td>\n";
|
||||
|
||||
if ($show_date) {
|
||||
echo '<td class="ten">';
|
||||
echo '<div class="date">'. date ($date_formats[$settings['date_format']], $value['timestamp']) .'</div>';
|
||||
echo "</td>\n";
|
||||
}
|
||||
|
||||
|
||||
if ($show_share) {
|
||||
echo '<td class="ten">';
|
||||
$share = $value['public'] ? 'public' : 'private';
|
||||
echo '<div class="'.$share.'">'.$share.'</div> ';
|
||||
echo "</td>\n";
|
||||
}
|
||||
|
||||
|
||||
# the edit column if configured to be displayed
|
||||
if ($show_edit) {
|
||||
echo '<td class="ten">';
|
||||
echo '<a href="javascript:bookmarkedit(\'' . $value['id'] . '\')">';
|
||||
echo sprintf ($edit_image, "Edit");
|
||||
echo "</a></td>\n";
|
||||
}
|
||||
|
||||
# the move column if configured to be displayed
|
||||
if ($show_move) {
|
||||
echo '<td class="ten">';
|
||||
echo '<a href="javascript:bookmarkmove(\'' . $value['id'] . '\', \'' . 'expand=' . implode (",", $expand) . '&folderid=' . $folderid . '\')">';
|
||||
echo sprintf ($move_image, "Move");
|
||||
echo "</a></td>\n";
|
||||
}
|
||||
|
||||
# the delete column if configured to be displayed
|
||||
if ($show_delete) {
|
||||
echo '<td class="ten">';
|
||||
echo '<a href="javascript:bookmarkdelete(\'' . $value['id'] . '\')">';
|
||||
echo sprintf ($delete_image, "Delete");
|
||||
echo "</a></td>\n";
|
||||
}
|
||||
|
||||
echo "</tr>\n";
|
||||
echo "</div>\n\n";
|
||||
}
|
||||
echo "</table></form>\n";
|
||||
echo "</form>\n";
|
||||
}
|
||||
|
||||
?>
|
||||
|
||||
@@ -37,7 +37,7 @@ if (isset ($_POST['settings_password']) && $_POST['settings_password'] == 1) {
|
||||
|
||||
?>
|
||||
|
||||
<p class="title">Change Password</p>
|
||||
<h2 class="title">Change Password</h2>
|
||||
|
||||
<form action="<?php echo $_SERVER['SCRIPT_NAME']; ?>" method="POST">
|
||||
<table>
|
||||
|
||||
90
export.php
90
export.php
@@ -26,63 +26,39 @@ if (!isset ($_POST['browser']) || $_POST['browser'] == "" ||
|
||||
}
|
||||
?>
|
||||
|
||||
<table class="caption">
|
||||
<tr>
|
||||
<td><span class="caption"><img src="./images/logo.png" alt=""> Export Bookmarks</span>
|
||||
</td>
|
||||
<h1 id="caption">Export Bookmarks</h1>
|
||||
|
||||
<td class="captionright">
|
||||
<div><?php object_count (); ?></div>
|
||||
<div><?php print_footer (); ?></div>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
<!-- Wrapper starts here. -->
|
||||
<div style="min-width: <?php echo 230 + $settings['column_width_folder']; ?>px;">
|
||||
<!-- Menu starts here. -->
|
||||
<div id="menu">
|
||||
<h2 class="nav">Bookmarks</h2>
|
||||
<ul class="nav">
|
||||
<li><a href="./index.php">My Bookmarks</a></li>
|
||||
<li><a href="./shared.php">Shared Bookmarks</a></li>
|
||||
</ul>
|
||||
|
||||
<h2 class="nav">Tools</h2>
|
||||
<ul class="nav">
|
||||
<?php if (admin_only ()) { ?>
|
||||
<li><a href="./admin.php">Admin</a></li>
|
||||
<?php } ?>
|
||||
<li><a href="./import.php">Import</a></li>
|
||||
<li><a href="./export.php">Export</a></li>
|
||||
<li><a href="./sidebar.php">View as Sidebar</a></li>
|
||||
<li><a href="./settings.php">Settings</a></li>
|
||||
<li><a href="javascript:chpw()">Change Password</a></li>
|
||||
<li><a href="./index.php?logout=1">Logout</a></li>
|
||||
</ul>
|
||||
<!-- Menu ends here. -->
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
<table class="main">
|
||||
<tr>
|
||||
<td class="main1">
|
||||
<table class="menu">
|
||||
<tr>
|
||||
<th class="menuhead">Bookmarks</th>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="menu">
|
||||
<a href="./index.php">My Bookmarks</a><br>
|
||||
<a href="./shared.php">Shared Bookmarks</a><br>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<br>
|
||||
|
||||
<table class="menu">
|
||||
<tr>
|
||||
<th class="menuhead">Tools</th>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="menu">
|
||||
<?php if (admin_only ()) { ?>
|
||||
<a href="./admin.php">Admin</a><br>
|
||||
<?php } ?>
|
||||
<a href="./import.php">Import</a><br>
|
||||
<a href="./export.php">Export</a><br>
|
||||
<a href="./sidebar.php">View as Sidebar</a><br>
|
||||
<a href="./settings.php">Settings</a><br>
|
||||
<a href="javascript:chpw()">Change Password</a><br>
|
||||
<a href="./index.php?logout=1">Logout</a><br>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<td class="">
|
||||
<img src="./images/spacer.gif" alt="" class="main2">
|
||||
</td>
|
||||
<td class="main4">
|
||||
<!-- Main content starts here. -->
|
||||
<div id="main">
|
||||
<div id="content">
|
||||
|
||||
<form enctype="multipart/form-data" action="<?php echo $_SERVER['SCRIPT_NAME'];?>" method="POST">
|
||||
<table valign="top">
|
||||
<table border="0">
|
||||
<tr>
|
||||
<td>
|
||||
Export Bookmarks to Browser:
|
||||
@@ -142,9 +118,11 @@ if (!isset ($_POST['browser']) || $_POST['browser'] == "" ||
|
||||
</table>
|
||||
</form>
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
<!-- Main content ends here. -->
|
||||
</div>
|
||||
<!-- Wrapper ends here. -->
|
||||
</div>
|
||||
|
||||
<?php
|
||||
require_once (ABSOLUTE_PATH . "footer.php");
|
||||
|
||||
@@ -93,7 +93,7 @@ else {
|
||||
$row = mysql_fetch_object ($mysql->result);
|
||||
?>
|
||||
|
||||
<p class="title">Delete this Folder?</p>
|
||||
<h2 class="title">Delete this Folder?</h2>
|
||||
<p><?php echo $row->public ? $folder_opened_public : $folder_opened; echo " " . $row->name; ?></p>
|
||||
|
||||
<form action="<?php echo $_SERVER['SCRIPT_NAME'] . "?folderid=" . $folderid . "&noconfirm=1";?>" method="POST" name="fdelete">
|
||||
|
||||
@@ -27,7 +27,7 @@ else if ($foldername == "") {
|
||||
}
|
||||
?>
|
||||
|
||||
<p class="title">Edit Folder</p>
|
||||
<h2 class="title">Edit Folder</h2>
|
||||
<form action="<?php echo $_SERVER['SCRIPT_NAME'] . "?folderid=" . $folderid; ?>" id="fedit" method="POST">
|
||||
<p><input type=text name="foldername" size="50" value="<?php echo $row->name; ?>"> <?php echo $row->public ? $folder_opened_public : $folder_opened; ?></p>
|
||||
<p><input type="checkbox" name="public" <?php if ($row->public) {echo "checked";} ?>> Public</p>
|
||||
|
||||
@@ -10,7 +10,7 @@ $parents = $tree->get_path_to_root ($folderid);
|
||||
if ($sourcefolder == "") {
|
||||
?>
|
||||
|
||||
<p class="title">Move Folder</p>
|
||||
<h2 class="title">Move Folder</h2>
|
||||
<form action="<?php echo $_SERVER['SCRIPT_NAME'] . "?folderid=" . $folderid . "&expand=" . implode (",", $expand);?>" method="POST" id="fmove">
|
||||
|
||||
<div style="width:100%; height:330px; overflow:auto;">
|
||||
|
||||
@@ -8,7 +8,7 @@ $public = set_post_bool_var ("public", false);
|
||||
if ($foldername == "") {
|
||||
?>
|
||||
|
||||
<p class="title">New Folder</p>
|
||||
<h2 class="title">New Folder</h2>
|
||||
<form action="<?php echo $_SERVER['SCRIPT_NAME'] . "?folderid=" . $folderid; ?>" id="fnew" method="POST">
|
||||
<p><input type=text name="foldername" size="50" value="<?php echo $foldername; ?>"></p>
|
||||
<p><input type="checkbox" name="public"> Public</p>
|
||||
|
||||
@@ -20,8 +20,8 @@ require_once (ABSOLUTE_PATH . "lib/lib.php");
|
||||
require_once (ABSOLUTE_PATH . "lib/login.php");
|
||||
|
||||
?>
|
||||
|
||||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
|
||||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
|
||||
"http://www.w3.org/TR/html4/loose.dtd">
|
||||
<html>
|
||||
<head>
|
||||
<title>Online-Bookmarks</title>
|
||||
@@ -30,9 +30,6 @@ require_once (ABSOLUTE_PATH . "lib/login.php");
|
||||
<link rel="stylesheet" type="text/css" href="./style.css">
|
||||
<link rel="shortcut icon" href="favicon.ico">
|
||||
<script type="text/javascript" src="./lib/lib.js"></script>
|
||||
<!--[if lt IE 7]>
|
||||
<script defer type="text/javascript" src="./lib/pngfix.js"></script>
|
||||
<![endif]-->
|
||||
</head>
|
||||
<body>
|
||||
|
||||
|
||||
94
import.php
94
import.php
@@ -3,60 +3,36 @@ require_once ("./header.php");
|
||||
logged_in_only ();
|
||||
?>
|
||||
|
||||
<table class="caption">
|
||||
<tr>
|
||||
<td><span class="caption"><img src="./images/logo.png" alt=""> Import Bookmarks</span>
|
||||
</td>
|
||||
<h1 id="caption">Import Bookmarks</h1>
|
||||
|
||||
<td class="captionright">
|
||||
<div><?php object_count (); ?></div>
|
||||
<div><?php print_footer (); ?></div>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
<!-- Wrapper starts here. -->
|
||||
<div style="min-width: <?php echo 230 + $settings['column_width_folder']; ?>px;">
|
||||
<!-- Menu starts here. -->
|
||||
<div id="menu">
|
||||
<h2 class="nav">Bookmarks</h2>
|
||||
<ul class="nav">
|
||||
<li><a href="./index.php">My Bookmarks</a></li>
|
||||
<li><a href="./shared.php">Shared Bookmarks</a></li>
|
||||
</ul>
|
||||
|
||||
<h2 class="nav">Tools</h2>
|
||||
<ul class="nav">
|
||||
<?php if (admin_only ()) { ?>
|
||||
<li><a href="./admin.php">Admin</a></li>
|
||||
<?php } ?>
|
||||
<li><a href="./import.php">Import</a></li>
|
||||
<li><a href="./export.php">Export</a></li>
|
||||
<li><a href="./sidebar.php">View as Sidebar</a></li>
|
||||
<li><a href="./settings.php">Settings</a></li>
|
||||
<li><a href="javascript:chpw()">Change Password</a></li>
|
||||
<li><a href="./index.php?logout=1">Logout</a></li>
|
||||
</ul>
|
||||
<!-- Menu ends here. -->
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
<table class="main">
|
||||
<tr>
|
||||
<td class="main1">
|
||||
<table class="menu">
|
||||
<tr>
|
||||
<th class="menuhead">Bookmarks</th>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="menu">
|
||||
<a href="./index.php">My Bookmarks</a><br>
|
||||
<a href="./shared.php">Shared Bookmarks</a><br>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<br>
|
||||
|
||||
<table class="menu">
|
||||
<tr>
|
||||
<th class="menuhead">Tools</th>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="menu">
|
||||
<?php if (admin_only ()) { ?>
|
||||
<a href="./admin.php">Admin</a><br>
|
||||
<?php } ?>
|
||||
<a href="./import.php">Import</a><br>
|
||||
<a href="./export.php">Export</a><br>
|
||||
<a href="./sidebar.php">View as Sidebar</a><br>
|
||||
<a href="./settings.php">Settings</a><br>
|
||||
<a href="javascript:chpw()">Change Password</a><br>
|
||||
<a href="./index.php?logout=1">Logout</a><br>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<td class="">
|
||||
<img src="./images/spacer.gif" alt="" class="main2">
|
||||
</td>
|
||||
<td class="main4">
|
||||
<!-- Main content starts here. -->
|
||||
<div id="main">
|
||||
<div id="content">
|
||||
|
||||
<?php
|
||||
|
||||
@@ -68,11 +44,10 @@ if (!isset ($_FILES['importfile']['tmp_name']) || $_FILES['importfile']['tmp_nam
|
||||
else{
|
||||
$default_browser = "netscape";
|
||||
}
|
||||
|
||||
?>
|
||||
|
||||
<form enctype="multipart/form-data" action="<?php echo $_SERVER['SCRIPT_NAME'];?>" method="post">
|
||||
<table valign="top" border="0">
|
||||
<table border="0">
|
||||
<tr>
|
||||
<td>
|
||||
from Browser:
|
||||
@@ -121,7 +96,7 @@ if (!isset ($_FILES['importfile']['tmp_name']) || $_FILES['importfile']['tmp_nam
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>
|
||||
<td valign="top">
|
||||
Destination Folder:
|
||||
</td>
|
||||
<td>
|
||||
@@ -174,9 +149,11 @@ else{
|
||||
|
||||
?>
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
<!-- Main content ends here. -->
|
||||
</div>
|
||||
<!-- Wrapper ends here. -->
|
||||
</div>
|
||||
|
||||
<?php
|
||||
|
||||
@@ -357,5 +334,6 @@ class import {
|
||||
}
|
||||
}
|
||||
|
||||
print_footer ();
|
||||
require_once (ABSOLUTE_PATH . "footer.php");
|
||||
?>
|
||||
|
||||
305
index.php
305
index.php
@@ -12,218 +12,107 @@ else {
|
||||
|
||||
?>
|
||||
|
||||
<table class="caption">
|
||||
<tr>
|
||||
<td><span class="caption"><img src="./images/logo.png" alt=""> <?php echo $username; ?>'s Online Bookmarks</span>
|
||||
</td>
|
||||
<h1 id="caption"><?php echo $username; ?>'s Online Bookmarks</h1>
|
||||
|
||||
<td class="captionright">
|
||||
<div><?php object_count (); ?></div>
|
||||
<div><?php print_footer (); ?></div>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<table class="main">
|
||||
<tr>
|
||||
<td class="main1">
|
||||
|
||||
<table class="menu">
|
||||
<tr>
|
||||
<th class="menuhead">Search</th>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td class="menu">
|
||||
<form action="<?php echo $_SERVER['SCRIPT_NAME']; ?>" method="GET">
|
||||
<input type="text" name="search" size="10" value="<?php echo $search; ?>">
|
||||
<input type="submit" value="Go" name="submit">
|
||||
</form>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<br>
|
||||
|
||||
<table class="menu">
|
||||
<tr>
|
||||
<th class="menuhead">Bookmarks</th>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="menu">
|
||||
<?php if ($search_mode) { ?>
|
||||
<a href="./index.php"><?php echo $settings['root_folder_name']; ?></a><br>
|
||||
<?php } ?>
|
||||
<a href="javascript:bookmarknew('<?php echo $folderid; ?>')">New Bookmark</a><br>
|
||||
<a href="javascript:bookmarkedit(checkselected())">Edit Bookmarks</a><br>
|
||||
<a href="javascript:bookmarkmove(checkselected())">Move Bookmarks</a><br>
|
||||
<a href="javascript:bookmarkdelete(checkselected())">Delete Bookmarks</a><br>
|
||||
<a href="javascript:selection('toggle')">Toggle Selection</a><br>
|
||||
<a href="./shared.php">Shared Bookmarks</a><br>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<br>
|
||||
|
||||
<table class="menu">
|
||||
<tr>
|
||||
<th class="menuhead">Folders</th>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="menu">
|
||||
<a href="javascript:foldernew('<?php echo $folderid; ?>')">New Folder</a><br>
|
||||
<a href="javascript:folderedit('<?php echo $folderid; ?>')">Edit Folder</a><br>
|
||||
<a href="javascript:foldermove('<?php echo $folderid; ?>')">Move Folder</a><br>
|
||||
<a href="javascript:folderdelete('<?php echo $folderid; ?>')">Delete Folder</a><br>
|
||||
<a href="./index.php?expand=&folderid=0">Collapse All</a><br>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<br>
|
||||
|
||||
<table class="menu">
|
||||
<tr>
|
||||
<th class="menuhead">Tools</th>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="menu">
|
||||
<?php if (admin_only ()) { ?>
|
||||
<a href="./admin.php">Admin</a><br>
|
||||
<?php } ?>
|
||||
<a href="./import.php">Import</a><br>
|
||||
<a href="./export.php">Export</a><br>
|
||||
<a href="./sidebar.php">View as Sidebar</a><br>
|
||||
<a href="./settings.php">Settings</a><br>
|
||||
<a href="javascript:chpw()">Change Password</a><br>
|
||||
<a href="./index.php?logout=1">Logout</a><br>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
</td>
|
||||
<td class="">
|
||||
<img src="./images/spacer.gif" alt="" class="main2">
|
||||
</td>
|
||||
|
||||
<?php if ($search_mode): ?>
|
||||
|
||||
<td class="main4">
|
||||
<div style="height: <?php echo $table_height; ?>; overflow:auto;">
|
||||
<div style="margin-left:3px;" class="sh"><a class="f" href="./index.php"><img src="./images/folder_open.gif"> Back to <?php echo $settings['root_folder_name']?></a></div>
|
||||
|
||||
<?php
|
||||
$query = sprintf ("SELECT bookmark.title,
|
||||
bookmark.url,
|
||||
bookmark.description,
|
||||
UNIX_TIMESTAMP(bookmark.date) AS timestamp,
|
||||
bookmark.childof,
|
||||
bookmark.id,
|
||||
bookmark.favicon,
|
||||
bookmark.public,
|
||||
folder.name,
|
||||
folder.id AS fid,
|
||||
folder.public AS fpublic
|
||||
|
||||
FROM bookmark LEFT JOIN folder ON bookmark.childof=folder.id
|
||||
WHERE bookmark.user='%s'
|
||||
AND bookmark.deleted!='1'
|
||||
AND (title LIKE ('%%%s%%')
|
||||
OR description LIKE ('%%%s%%')
|
||||
OR url LIKE ('%%%s%%'))
|
||||
ORDER BY title",
|
||||
$mysql->escape ($username),
|
||||
$mysql->escape ($search),
|
||||
$mysql->escape ($search),
|
||||
$mysql->escape ($search));
|
||||
|
||||
if ($mysql->query ($query)) {
|
||||
$bookmarks = array ();
|
||||
while ($row = mysql_fetch_assoc ($mysql->result)) {
|
||||
array_push ($bookmarks, $row);
|
||||
}
|
||||
if (count ($bookmarks) > 0) {
|
||||
require_once (ABSOLUTE_PATH . "bookmarks.php");
|
||||
list_bookmarks ($bookmarks,
|
||||
true,
|
||||
true,
|
||||
$settings['show_bookmark_icon'],
|
||||
true,
|
||||
$settings['show_bookmark_description'],
|
||||
$settings['show_column_date'],
|
||||
$settings['show_column_edit'],
|
||||
$settings['show_column_move'],
|
||||
$settings['show_column_delete'],
|
||||
$settings['show_public']);
|
||||
}
|
||||
else {
|
||||
echo '<div> No Bookmarks found matching ' . $search . '.</div>';
|
||||
}
|
||||
}
|
||||
else {
|
||||
message ($mysql->error);
|
||||
}
|
||||
|
||||
?>
|
||||
|
||||
</div>
|
||||
</td>
|
||||
|
||||
<?php else: ?>
|
||||
|
||||
<td class="main3" style="width: <?php echo $column_width_folder; ?>;">
|
||||
<div style="height: <?php echo $table_height; ?>; width: <?php echo $column_width_folder; ?>; overflow:auto;">
|
||||
<?php
|
||||
require_once (ABSOLUTE_PATH . "folders.php");
|
||||
$tree = & new folder;
|
||||
$tree->make_tree (0);
|
||||
$tree->print_tree ();
|
||||
?>
|
||||
</div>
|
||||
</td>
|
||||
<td class="main4">
|
||||
<div style="height: <?php echo $table_height; ?>; width: <?php echo $column_width_bookmark; ?>; overflow:auto;">
|
||||
|
||||
<?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",
|
||||
$mysql->escape ($username),
|
||||
$mysql->escape ($folderid));
|
||||
<!-- Wrapper starts here. -->
|
||||
<div style="min-width: <?php echo 230 + $settings['column_width_folder']; ?>px;">
|
||||
<!-- Menu starts here. -->
|
||||
<div id="menu">
|
||||
<h2 class="nav">Bookmarks</h2>
|
||||
<ul class="nav">
|
||||
<li><a href="javascript:bookmarknew('<?php echo $folderid; ?>')">New Bookmark</a></li>
|
||||
<li><a href="javascript:bookmarkedit(checkselected())">Edit Bookmarks</a></li>
|
||||
<li><a href="javascript:bookmarkmove(checkselected())">Move Bookmarks</a></li>
|
||||
<li><a href="javascript:bookmarkdelete(checkselected())">Delete Bookmarks</a></li>
|
||||
<li><a href="javascript:selection('toggle')">Toggle Selection</a></li>
|
||||
<li><a href="./shared.php">Shared Bookmarks</a></li>
|
||||
</ul>
|
||||
|
||||
if ($mysql->query ($query)) {
|
||||
$bookmarks = array ();
|
||||
while ($row = mysql_fetch_assoc ($mysql->result)) {
|
||||
array_push ($bookmarks, $row);
|
||||
}
|
||||
list_bookmarks ($bookmarks,
|
||||
true,
|
||||
false,
|
||||
$settings['show_bookmark_icon'],
|
||||
true,
|
||||
$settings['show_bookmark_description'],
|
||||
$settings['show_column_date'],
|
||||
$settings['show_column_edit'],
|
||||
$settings['show_column_move'],
|
||||
$settings['show_column_delete'],
|
||||
$settings['show_public']);
|
||||
}
|
||||
else {
|
||||
message ($mysql->error);
|
||||
}
|
||||
?>
|
||||
<h2 class="nav">Folders</h2>
|
||||
<ul class="nav">
|
||||
<li><a href="javascript:foldernew('<?php echo $folderid; ?>')">New Folder</a></li>
|
||||
<li><a href="javascript:folderedit('<?php echo $folderid; ?>')">Edit Folder</a></li>
|
||||
<li><a href="javascript:foldermove('<?php echo $folderid; ?>')">Move Folder</a></li>
|
||||
<li><a href="javascript:folderdelete('<?php echo $folderid; ?>')">Delete Folder</a></li>
|
||||
<li><a href="./index.php?expand=&folderid=0">Collapse All</a></li>
|
||||
</ul>
|
||||
|
||||
<h2 class="nav">Tools</h2>
|
||||
<ul class="nav">
|
||||
<?php if (admin_only ()) { ?>
|
||||
<li><a href="./admin.php">Admin</a></li>
|
||||
<?php } ?>
|
||||
<li><a href="./import.php">Import</a></li>
|
||||
<li><a href="./export.php">Export</a></li>
|
||||
<li><a href="./sidebar.php">View as Sidebar</a></li>
|
||||
<li><a href="./settings.php">Settings</a></li>
|
||||
<li><a href="javascript:chpw()">Change Password</a></li>
|
||||
<li><a href="./index.php?logout=1">Logout</a></li>
|
||||
</ul>
|
||||
<!-- Menu ends here. -->
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</td>
|
||||
<?php endif; ?>
|
||||
</tr>
|
||||
</table>
|
||||
<!-- Main content starts here. -->
|
||||
<div id="main">
|
||||
|
||||
<!-- Folders starts here. -->
|
||||
<div id="folders" style="width: <?php echo $column_width_folder; ?>; height: <?php echo $table_height; ?>;">
|
||||
|
||||
<?php
|
||||
require_once (ABSOLUTE_PATH . "folders.php");
|
||||
$tree = & new folder;
|
||||
$tree->make_tree (0);
|
||||
$tree->print_tree ();
|
||||
?>
|
||||
|
||||
<!-- Folders ends here. -->
|
||||
</div>
|
||||
|
||||
<!-- Bookmarks starts here. -->
|
||||
<div id="bookmarks" style="height: <?php echo $table_height; ?>;">
|
||||
|
||||
<?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",
|
||||
$mysql->escape ($username),
|
||||
$mysql->escape ($folderid));
|
||||
|
||||
if ($mysql->query ($query)) {
|
||||
$bookmarks = array ();
|
||||
while ($row = mysql_fetch_assoc ($mysql->result)) {
|
||||
array_push ($bookmarks, $row);
|
||||
}
|
||||
list_bookmarks ($bookmarks,
|
||||
true,
|
||||
false,
|
||||
$settings['show_bookmark_icon'],
|
||||
true,
|
||||
$settings['show_bookmark_description'],
|
||||
$settings['show_column_date'],
|
||||
$settings['show_column_edit'],
|
||||
$settings['show_column_move'],
|
||||
$settings['show_column_delete'],
|
||||
$settings['show_public']);
|
||||
}
|
||||
else {
|
||||
message ($mysql->error);
|
||||
}
|
||||
?>
|
||||
|
||||
<!-- Bookmarks ends here. -->
|
||||
</div>
|
||||
|
||||
<!-- Main content ends here. -->
|
||||
</div>
|
||||
<!-- Wrapper ends here. -->
|
||||
</div>
|
||||
|
||||
<?php
|
||||
print_footer ();
|
||||
require_once (ABSOLUTE_PATH . "footer.php");
|
||||
?>
|
||||
|
||||
@@ -415,9 +415,11 @@ function set_num_array ($array){
|
||||
}
|
||||
|
||||
function print_footer () {
|
||||
echo '<p id="footer">';
|
||||
echo '<a href="http://www.frech.ch/online-bookmarks/" target="_blank">Online-Bookmarks</a>' . "\n";
|
||||
@readfile (ABSOLUTE_PATH . "VERSION");
|
||||
echo ' by Stefan Frech';
|
||||
echo "</p>\n";
|
||||
}
|
||||
|
||||
function object_count () {
|
||||
|
||||
@@ -3,7 +3,7 @@ require_once ('./header.php');
|
||||
logged_in_only ();
|
||||
?>
|
||||
|
||||
<p class="title">Select Folder</p>
|
||||
<h2 class="title">Select Folder</h2>
|
||||
|
||||
<div style="width:100%; height:330px; overflow:auto;">
|
||||
|
||||
|
||||
112
settings.php
112
settings.php
@@ -108,60 +108,35 @@ function check_date_format () {
|
||||
|
||||
?>
|
||||
|
||||
<table class="caption">
|
||||
<tr>
|
||||
<td><span class="caption"><img src="./images/logo.png" alt=""> My Settings</span>
|
||||
</td>
|
||||
<h1 id="caption">My Settings</h1>
|
||||
|
||||
<td class="captionright">
|
||||
<div><?php object_count (); ?></div>
|
||||
<div><?php print_footer (); ?></div>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
<!-- Wrapper starts here. -->
|
||||
<div style="min-width: <?php echo 230 + $settings['column_width_folder']; ?>px;">
|
||||
<!-- Menu starts here. -->
|
||||
<div id="menu">
|
||||
<h2 class="nav">Bookmarks</h2>
|
||||
<ul class="nav">
|
||||
<li><a href="./index.php">My Bookmarks</a></li>
|
||||
<li><a href="./shared.php">Shared Bookmarks</a></li>
|
||||
</ul>
|
||||
|
||||
<h2 class="nav">Tools</h2>
|
||||
<ul class="nav">
|
||||
<?php if (admin_only ()) { ?>
|
||||
<li><a href="./admin.php">Admin</a></li>
|
||||
<?php } ?>
|
||||
<li><a href="./import.php">Import</a></li>
|
||||
<li><a href="./export.php">Export</a></li>
|
||||
<li><a href="./sidebar.php">View as Sidebar</a></li>
|
||||
<li><a href="./settings.php">Settings</a></li>
|
||||
<li><a href="javascript:chpw()">Change Password</a></li>
|
||||
<li><a href="./index.php?logout=1">Logout</a></li>
|
||||
</ul>
|
||||
<!-- Menu ends here. -->
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
<table class="main">
|
||||
<tr>
|
||||
<td class="main1">
|
||||
<table class="menu">
|
||||
<tr>
|
||||
<th class="menuhead">Bookmarks</th>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="menu">
|
||||
<a href="./index.php">My Bookmarks</a><br>
|
||||
<a href="./shared.php">Shared Bookmarks</a><br>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<br>
|
||||
|
||||
<table class="menu">
|
||||
<tr>
|
||||
<th class="menuhead">Tools</th>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="menu">
|
||||
<?php if (admin_only ()) { ?>
|
||||
<a href="./admin.php">Admin</a><br>
|
||||
<?php } ?>
|
||||
<a href="./import.php">Import</a><br>
|
||||
<a href="./export.php">Export</a><br>
|
||||
<a href="./sidebar.php">View as Sidebar</a><br>
|
||||
<a href="./settings.php">Settings</a><br>
|
||||
<a href="javascript:chpw()">Change Password</a><br>
|
||||
<a href="./index.php?logout=1">Logout</a><br>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<td class="">
|
||||
<img src="./images/spacer.gif" alt="" class="main2">
|
||||
</td>
|
||||
<td class="main4">
|
||||
<!-- Main content starts here. -->
|
||||
<div id="main">
|
||||
|
||||
<table>
|
||||
<tr>
|
||||
@@ -199,35 +174,35 @@ function check_date_format () {
|
||||
<tr>
|
||||
<td>Confirm deletions of bookmarks an folders</td>
|
||||
<td>
|
||||
<input type="checkbox" name="settings_confirm_delete" <?php if ($settings['confirm_delete'] == 1) {echo "checked";}?>></input>
|
||||
<input type="checkbox" name="settings_confirm_delete" <?php if ($settings['confirm_delete'] == 1) {echo "checked";}?>>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>Open a new window when clicking a bookmark</td>
|
||||
<td>
|
||||
<input type="checkbox" name="settings_open_new_window" <?php if ($settings['open_new_window'] == 1) {echo "checked";}?>></input>
|
||||
<input type="checkbox" name="settings_open_new_window" <?php if ($settings['open_new_window'] == 1) {echo "checked";}?>>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>Show the bookmarks description in the overview</td>
|
||||
<td>
|
||||
<input type="checkbox" name="settings_show_bookmark_description" <?php if ($settings['show_bookmark_description'] == 1) {echo "checked";}?>></input>
|
||||
<input type="checkbox" name="settings_show_bookmark_description" <?php if ($settings['show_bookmark_description'] == 1) {echo "checked";}?>>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>Enable favicon support: <?php echo $bookmark_image; ?></td>
|
||||
<td>
|
||||
<input type="checkbox" name="settings_show_bookmark_icon" <?php if ($settings['show_bookmark_icon'] == 1) {echo "checked";}?>></input>
|
||||
<input type="checkbox" name="settings_show_bookmark_icon" <?php if ($settings['show_bookmark_icon'] == 1) {echo "checked";}?>>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>Show the column with the change date: <?php echo date ($date_formats[$settings['date_format']]); ?></td>
|
||||
<td>
|
||||
<input type="checkbox" name="settings_show_column_date" <?php if ($settings['show_column_date'] == 1) {echo "checked";}?>></input>
|
||||
<input type="checkbox" name="settings_show_column_date" <?php if ($settings['show_column_date'] == 1) {echo "checked";}?>>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
@@ -249,56 +224,56 @@ function check_date_format () {
|
||||
<tr>
|
||||
<td>Show the private/public column: <span class="private">private</span></td>
|
||||
<td>
|
||||
<input type="checkbox" name="settings_show_public" <?php if ($settings['show_public'] == 1) {echo "checked";}?>></input>
|
||||
<input type="checkbox" name="settings_show_public" <?php if ($settings['show_public'] == 1) {echo "checked";}?>>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>Show the column to edit a bookmark: <?php echo $edit_image; ?></td>
|
||||
<td>
|
||||
<input type="checkbox" name="settings_show_column_edit" <?php if ($settings['show_column_edit'] == 1) {echo "checked";}?>></input>
|
||||
<input type="checkbox" name="settings_show_column_edit" <?php if ($settings['show_column_edit'] == 1) {echo "checked";}?>>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>Show the column to move a bookmark: <?php echo $move_image; ?></td>
|
||||
<td>
|
||||
<input type="checkbox" name="settings_show_column_move" <?php if ($settings['show_column_move'] == 1) {echo "checked";}?>></input>
|
||||
<input type="checkbox" name="settings_show_column_move" <?php if ($settings['show_column_move'] == 1) {echo "checked";}?>>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>Show the column to delete a bookmark: <?php echo $delete_image; ?></td>
|
||||
<td>
|
||||
<input type="checkbox" name="settings_show_column_delete" <?php if ($settings['show_column_delete'] == 1) {echo "checked";}?>></input>
|
||||
<input type="checkbox" name="settings_show_column_delete" <?php if ($settings['show_column_delete'] == 1) {echo "checked";}?>>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>Collapse tree when clicking on folder icon: <?php echo $minus . $folder_opened; ?></td>
|
||||
<td>
|
||||
<input type="checkbox" name="settings_fast_folder_minus" <?php if ($settings['fast_folder_minus'] == 1) {echo "checked";}?>></input>
|
||||
<input type="checkbox" name="settings_fast_folder_minus" <?php if ($settings['fast_folder_minus'] == 1) {echo "checked";}?>>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>Expand tree when clicking on folder icon: <?php echo $plus . $folder_opened; ?></td>
|
||||
<td>
|
||||
<input type="checkbox" name="settings_fast_folder_plus" <?php if ($settings['fast_folder_plus'] == 1) {echo "checked";}?>></input>
|
||||
<input type="checkbox" name="settings_fast_folder_plus" <?php if ($settings['fast_folder_plus'] == 1) {echo "checked";}?>>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>Select folder when clicking on plus/minus symbol</td>
|
||||
<td>
|
||||
<input type="checkbox" name="settings_fast_symbol" <?php if ($settings['fast_symbol'] == 1) {echo "checked";}?>></input>
|
||||
<input type="checkbox" name="settings_fast_symbol" <?php if ($settings['fast_symbol'] == 1) {echo "checked";}?>>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>Allways open just one tree</td>
|
||||
<td>
|
||||
<input type="checkbox" name="settings_simple_tree_mode" <?php if ($settings['simple_tree_mode'] == 1) {echo "checked";}?>></input>
|
||||
<input type="checkbox" name="settings_simple_tree_mode" <?php if ($settings['simple_tree_mode'] == 1) {echo "checked";}?>>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
@@ -386,9 +361,10 @@ function check_date_format () {
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
<!-- Main content ends here. -->
|
||||
</div>
|
||||
<!-- Wrapper ends here. -->
|
||||
</div>
|
||||
|
||||
<?php
|
||||
require_once (ABSOLUTE_PATH . "footer.php");
|
||||
|
||||
210
shared.php
210
shared.php
@@ -8,137 +8,109 @@ else {
|
||||
$user = set_get_string_var ('user');
|
||||
}
|
||||
$display_shared = false;
|
||||
|
||||
if (isset ($_GET['user']) && check_username ($user)) {
|
||||
$title = $user . "'s Online Bookmarks";
|
||||
}
|
||||
else {
|
||||
$title = "Shared Online-Bookmarks";
|
||||
}
|
||||
|
||||
?>
|
||||
|
||||
<table class="caption">
|
||||
<tr>
|
||||
<td><span class="caption"><img src="./images/logo.png" alt=""> Shared Bookmarks</span>
|
||||
</td>
|
||||
<h1 id="caption"><?php echo $title; ?></h1>
|
||||
|
||||
<td class="captionright">
|
||||
<div><?php object_count (); ?></div>
|
||||
<div><?php print_footer (); ?></div>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
|
||||
|
||||
<table class="main">
|
||||
<tr>
|
||||
<td class="main1">
|
||||
<table class="menu">
|
||||
<tr>
|
||||
<th class="menuhead">Bookmarks</th>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="menu">
|
||||
<a href="./index.php">My Bookmarks</a><br>
|
||||
<a href="./shared.php">Shared Bookmarks</a><br>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<br>
|
||||
|
||||
<table class="menu">
|
||||
<tr>
|
||||
<th class="menuhead">Tools</th>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="menu">
|
||||
<?php if (admin_only ()) { ?>
|
||||
<a href="./admin.php">Admin</a><br>
|
||||
<?php } ?>
|
||||
<a href="./import.php">Import</a><br>
|
||||
<a href="./export.php">Export</a><br>
|
||||
<a href="./sidebar.php">View as Sidebar</a><br>
|
||||
<a href="./settings.php">Settings</a><br>
|
||||
<a href="javascript:chpw()">Change Password</a><br>
|
||||
<?php
|
||||
if (isset ($_SESSION['logged_in']) && $_SESSION['logged_in']) {
|
||||
$link = '<a href="./index.php?logout=1">Logout</a>';
|
||||
}
|
||||
else {
|
||||
$link = '<a href="./index.php">Login</a>';
|
||||
}
|
||||
?>
|
||||
<!-- Wrapper starts here. -->
|
||||
<div style="min-width: <?php echo 230 + $settings['column_width_folder']; ?>px;">
|
||||
<!-- Menu starts here. -->
|
||||
<div id="menu">
|
||||
<h2 class="nav">Bookmarks</h2>
|
||||
<ul class="nav">
|
||||
<li><a href="./index.php">My Bookmarks</a></li>
|
||||
<li><a href="./shared.php">Shared Bookmarks</a></li>
|
||||
</ul>
|
||||
|
||||
<h2 class="nav">Tools</h2>
|
||||
<ul class="nav">
|
||||
<?php if (admin_only ()) { ?>
|
||||
<li><a href="./admin.php">Admin</a></li>
|
||||
<?php } ?>
|
||||
<li><a href="./import.php">Import</a></li>
|
||||
<li><a href="./export.php">Export</a></li>
|
||||
<li><a href="./sidebar.php">View as Sidebar</a></li>
|
||||
<li><a href="./settings.php">Settings</a></li>
|
||||
<li><a href="javascript:chpw()">Change Password</a></li>
|
||||
<li><a href="./index.php?logout=1">Logout</a></li>
|
||||
</ul>
|
||||
<!-- Menu ends here. -->
|
||||
</div>
|
||||
|
||||
<?php echo $link; ?><br>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
<!-- Main content starts here. -->
|
||||
<div id="main">
|
||||
|
||||
<td class="">
|
||||
<img src="./images/spacer.gif" alt="" class="main2">
|
||||
</td>
|
||||
<td class="main4">
|
||||
|
||||
<?php
|
||||
if (isset ($_GET['user']) && check_username ($user)) {
|
||||
?>
|
||||
|
||||
<table>
|
||||
<tr>
|
||||
<td>
|
||||
<div style="height: <?php echo $table_height; ?>; width: 400px; overflow:auto;">
|
||||
|
||||
<?php
|
||||
require_once (ABSOLUTE_PATH . "folders.php");
|
||||
$tree = & new folder ($user);
|
||||
$tree->make_tree (0);
|
||||
$tree->print_tree ();
|
||||
?>
|
||||
<!-- Folders starts here. -->
|
||||
<div id="folders" style="width: <?php echo $column_width_folder; ?>; height: <?php echo $table_height; ?>;">
|
||||
|
||||
</div>
|
||||
</td>
|
||||
<td style="width: 100%;">
|
||||
<div style="height: <?php echo $table_height; ?>; width: 100%; overflow:auto;">
|
||||
<?php
|
||||
require_once (ABSOLUTE_PATH . "folders.php");
|
||||
$tree = & new folder ($user);
|
||||
$tree->make_tree (0);
|
||||
$tree->print_tree ();
|
||||
?>
|
||||
|
||||
<?php
|
||||
require_once (ABSOLUTE_PATH . "bookmarks.php");
|
||||
$query = sprintf ("SELECT title, url, description, UNIX_TIMESTAMP(date) AS timestamp, id, favicon
|
||||
FROM bookmark
|
||||
WHERE user='%s'
|
||||
AND childof='%d'
|
||||
AND deleted!='1'
|
||||
AND public='1'
|
||||
ORDER BY title",
|
||||
$mysql->escape ($user),
|
||||
$mysql->escape ($folderid));
|
||||
<!-- Folders ends here. -->
|
||||
</div>
|
||||
|
||||
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);
|
||||
}
|
||||
?>
|
||||
<!-- Bookmarks starts here. -->
|
||||
<div id="bookmarks" style="height: <?php echo $table_height; ?>;">
|
||||
|
||||
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
<?php
|
||||
require_once (ABSOLUTE_PATH . "bookmarks.php");
|
||||
$query = sprintf ("SELECT title, url, description, UNIX_TIMESTAMP(date) AS timestamp, id, favicon
|
||||
FROM bookmark
|
||||
WHERE user='%s'
|
||||
AND childof='%d'
|
||||
AND deleted!='1'
|
||||
AND public='1'
|
||||
ORDER BY title",
|
||||
$mysql->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);
|
||||
}
|
||||
?>
|
||||
|
||||
<!-- Bookmarks ends here. -->
|
||||
</div>
|
||||
|
||||
<?php
|
||||
}
|
||||
else {
|
||||
echo '<div id="content">';
|
||||
$query = "SELECT user, SUM(bookmarks) AS bookmarks, SUM(folders) AS folders FROM (
|
||||
SELECT user, 1 AS bookmarks, 0 AS folders FROM bookmark WHERE public='1' AND deleted!='1'
|
||||
UNION ALL
|
||||
@@ -146,22 +118,28 @@ else {
|
||||
) AS tmp GROUP BY user";
|
||||
|
||||
if ($mysql->query ($query)) {
|
||||
echo '<div style="height: ' . $table_height . '; width: 100%; padding-left: 20px;">' . "\n";
|
||||
while ($row = mysql_fetch_object ($mysql->result)) {
|
||||
echo '<p><a href="' . $_SERVER['SCRIPT_NAME'] . '?user=' . $row->user . '&folderid=0"><b>' . $row->user . "</b><br>\n";
|
||||
echo "Shares $row->folders Folders and $row->bookmarks Bookmarks</a></p>\n";
|
||||
}
|
||||
echo "</div>";
|
||||
}
|
||||
else {
|
||||
message ($mysql->error);
|
||||
}
|
||||
echo "<div>";
|
||||
}
|
||||
?>
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
<!-- Main content ends here. -->
|
||||
</div>
|
||||
<!-- Wrapper ends here. -->
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<?php
|
||||
require_once (ABSOLUTE_PATH . "footer.php");
|
||||
|
||||
302
style.css
302
style.css
@@ -1,176 +1,188 @@
|
||||
body,input,textarea,option {
|
||||
font-family:verdana;
|
||||
color:#555555;
|
||||
font-size:10pt;
|
||||
/* General Settings */
|
||||
* {
|
||||
color: #444;
|
||||
font-family: Verdana, Georgia, Times, serif;
|
||||
font-size: 10pt;
|
||||
}
|
||||
table {
|
||||
border:0px solid black;
|
||||
vertical-align:top;
|
||||
}
|
||||
td {
|
||||
border:0px solid black;
|
||||
vertical-align:top;
|
||||
padding:3px;
|
||||
body {
|
||||
background-color: white;
|
||||
margin: 0;
|
||||
padding: 5px;
|
||||
}
|
||||
img {
|
||||
border: 0px solid #FFFFFF;
|
||||
vertical-align:middle;
|
||||
vertical-align: middle;
|
||||
margin: 0px;
|
||||
}
|
||||
fieldset {
|
||||
padding: 10px;
|
||||
margin: 10px;
|
||||
}
|
||||
a {
|
||||
color:#555555;
|
||||
text-decoration:none;
|
||||
}
|
||||
|
||||
/* The Links */
|
||||
a.f {
|
||||
color:#555555;
|
||||
text-decoration:none;
|
||||
}
|
||||
a:hover.f {
|
||||
color:#000000;
|
||||
text-decoration:none;
|
||||
a:link {
|
||||
text-decoration: none;
|
||||
}
|
||||
a:visited {
|
||||
text-decoration:none;
|
||||
}
|
||||
a:active {
|
||||
text-decoration:none;
|
||||
text-decoration: none;
|
||||
}
|
||||
a:hover {
|
||||
color:#AE1A1A;
|
||||
text-decoration:underline;
|
||||
text-decoration: underline;
|
||||
color: #AE1A1A;
|
||||
}
|
||||
|
||||
|
||||
input.invisible {
|
||||
visibility:hidden;
|
||||
background-color:#FFFFFF;
|
||||
border:1px solid #FFFFFF;
|
||||
font:1pt Verdana;
|
||||
color:#FFFFFF;
|
||||
a:active {
|
||||
text-decoration: none;
|
||||
}
|
||||
p.title {
|
||||
fieldset {
|
||||
margin: 10px;
|
||||
float: none;
|
||||
}
|
||||
/* Caption */
|
||||
h1#caption {
|
||||
font-size: 15pt;
|
||||
margin: 0 0 0.5em;
|
||||
padding: 10px;
|
||||
text-align: center;
|
||||
font-family: Georgia, Times, serif;
|
||||
background-color:#bbb;
|
||||
}
|
||||
h2.caption {
|
||||
font-weight:bold;
|
||||
margin: 5px;
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
This is for the caption table
|
||||
*/
|
||||
table.caption {
|
||||
border: 1px solid black;
|
||||
width: 100%;
|
||||
margin-top: 10px;
|
||||
background-image:url(./images/background.jpg);
|
||||
background-repeat:no-repeat;
|
||||
padding: 5px;
|
||||
background-color:#DADADA;
|
||||
}
|
||||
td.captionright {
|
||||
text-align: right;
|
||||
width: 400px;
|
||||
white-space:nowrap;
|
||||
}
|
||||
span.caption {
|
||||
white-space:nowrap;
|
||||
font-size:16pt;
|
||||
font-weight: bold;
|
||||
padding: 10px;
|
||||
vertical-align:middle;
|
||||
}
|
||||
|
||||
/*
|
||||
This is for the main table content
|
||||
*/
|
||||
table.main {
|
||||
width: 100%;
|
||||
margin-top: 10px;
|
||||
border-collapse: collapse;
|
||||
}
|
||||
td.main1{
|
||||
width: 150px;
|
||||
}
|
||||
td.main2,img.main2 {
|
||||
width: 10px;
|
||||
}
|
||||
td.main3{
|
||||
border: 1px solid black;
|
||||
}
|
||||
td.main4{
|
||||
border: 1px solid black;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
/*
|
||||
This is for the menu table
|
||||
*/
|
||||
table.menu {
|
||||
border: 1px solid black;
|
||||
background-color:#DADADA;
|
||||
width: 150px;
|
||||
border-collapse: collapse;
|
||||
/* Menu and navigation */
|
||||
div#menu {
|
||||
font-size: 9pt;
|
||||
float: left;
|
||||
width: 130px;
|
||||
margin: 0px;
|
||||
padding: 0;
|
||||
margin-bottom: 10px;
|
||||
}
|
||||
th.menuhead {
|
||||
background-color:#969696;
|
||||
border-bottom: 1px solid black;
|
||||
padding: 5px;
|
||||
text-align: left;
|
||||
margin: 0px;
|
||||
h2.nav {
|
||||
font-size: 10pt;
|
||||
margin: 0;
|
||||
padding: 3px;
|
||||
background-color:#bbb;
|
||||
}
|
||||
td.menu {
|
||||
padding: 5px;
|
||||
margin: 0px;
|
||||
ul.nav {
|
||||
border: 1px solid #bbb;
|
||||
margin: 0px 0px 10px 0px;
|
||||
padding: 0;
|
||||
}
|
||||
ul.nav li {
|
||||
list-style: none;
|
||||
margin: 0;
|
||||
padding: 1px;
|
||||
}
|
||||
ul.nav a {
|
||||
display: block;
|
||||
padding: 2px;
|
||||
font-size: 9pt;
|
||||
}
|
||||
ul.nav a:link {
|
||||
text-decoration: none;
|
||||
}
|
||||
ul.nav a:visited {
|
||||
text-decoration: none;
|
||||
}
|
||||
ul.nav a:hover {
|
||||
text-decoration: underline;
|
||||
color: #AE1A1A;
|
||||
background-color: #ddd;
|
||||
}
|
||||
ul.nav a:active {
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
This is for the folders
|
||||
*/
|
||||
/* Folders section */
|
||||
div#folders {
|
||||
float: left;
|
||||
padding-top: 10px;
|
||||
overflow: auto;
|
||||
}
|
||||
a.f:link {
|
||||
text-decoration: none;
|
||||
color: #555555;
|
||||
}
|
||||
a.f:visited {
|
||||
text-decoration: none;
|
||||
color: #555555;
|
||||
}
|
||||
a.f:hover {
|
||||
text-decoration: none;
|
||||
color: #555555;
|
||||
}
|
||||
a.f:active {
|
||||
text-decoration: none;
|
||||
color: #555555;
|
||||
}
|
||||
span.active {
|
||||
background-color:#C1D2EE;
|
||||
border:1px #316AC5 solid;
|
||||
color:#000000;
|
||||
padding:1px;
|
||||
color: #000000;
|
||||
background-color: #C1D2EE;
|
||||
border:1px #316AC5 solid;
|
||||
padding:1px;
|
||||
}
|
||||
|
||||
/*
|
||||
This is for the Bookmarks
|
||||
*/
|
||||
div.description {
|
||||
padding: 2px;
|
||||
/* Bookmarks section */
|
||||
div#bookmarks {
|
||||
overflow:auto;
|
||||
padding: 0px;
|
||||
display: block;
|
||||
border-left: 1px solid #bbb;
|
||||
}
|
||||
td.ten {
|
||||
width: 10px;
|
||||
div.bookmark {
|
||||
border-bottom: 1px solid #bbb;
|
||||
padding: 5px;
|
||||
}
|
||||
div.private {
|
||||
background-color: #E7FBE9;
|
||||
color: #177F23;
|
||||
div.bookmark:hover {
|
||||
background-color: #eee;
|
||||
}
|
||||
div.bmleft {
|
||||
margin-top: -2px;
|
||||
float: left;
|
||||
}
|
||||
div.bmright {
|
||||
float: right;
|
||||
margin-left: 10px;
|
||||
padding: 0px;
|
||||
margin: 0px;
|
||||
text-align: center;
|
||||
}
|
||||
div.public {
|
||||
background-color: #F9E7E9;
|
||||
color: #E42037;
|
||||
text-align: center;
|
||||
}
|
||||
div.private,div.public,div.description,div.date,div.footer {
|
||||
font-size: smaller;
|
||||
font-style: italic;
|
||||
}
|
||||
div.date {
|
||||
white-space:nowrap;
|
||||
div.link {
|
||||
margin-left: 50px;
|
||||
}
|
||||
span.private {
|
||||
background-color: #E7FBE9;
|
||||
color: #177F23;
|
||||
font-size: smaller;
|
||||
font-style: italic;
|
||||
background-color: #E7FBE9;
|
||||
color: #177F23;
|
||||
}
|
||||
.sh:hover {
|
||||
background-color: #E8E6E6;
|
||||
span.public {
|
||||
background-color: #F9E7E9;
|
||||
color: #E42037;
|
||||
}
|
||||
div.description {
|
||||
margin-top: 5px;
|
||||
}
|
||||
div.description, span.private, span.public, span.date {
|
||||
font-size: smaller;
|
||||
}
|
||||
input.link {
|
||||
margin: 0;
|
||||
}
|
||||
.invisible {
|
||||
visibility: hidden;
|
||||
}
|
||||
|
||||
/* Main Content */
|
||||
div#main {
|
||||
margin-left: 140px;
|
||||
border: 1px solid #bbb;
|
||||
}
|
||||
div#content {
|
||||
margin: 10px;
|
||||
}
|
||||
|
||||
/* Footer */
|
||||
p#footer {
|
||||
clear: both;
|
||||
font-size: 0.9em;
|
||||
margin-top: 10px;
|
||||
padding: 2px;
|
||||
text-align: center;
|
||||
border: 1px solid #bbb;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user