1
0

Changing design to mostly tableless code.

This commit is contained in:
Stefan Frech
2008-05-30 21:11:07 +00:00
committed by Jonas Kattendick
parent df60ffea39
commit 91468a4bed
21 changed files with 733 additions and 970 deletions

View File

@@ -1 +1 @@
0.8.10_beta 0.8.11_beta

108
admin.php
View File

@@ -14,60 +14,35 @@ $message1 = '';
$message2 = ''; $message2 = '';
?> ?>
<table class="caption"> <h1 id="caption">Admin Page</h1>
<tr>
<td><span class="caption"><img src="./images/logo.png" alt=""> Admin Page</span>
</td>
<td class="captionright"> <!-- Wrapper starts here. -->
<div><?php object_count (); ?></div> <div style="min-width: <?php echo 230 + $settings['column_width_folder']; ?>px;">
<div><?php print_footer (); ?></div> <!-- Menu starts here. -->
</td> <div id="menu">
</tr> <h2 class="nav">Bookmarks</h2>
</table> <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">
<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 ()) { ?> <?php if (admin_only ()) { ?>
<a href="./admin.php">Admin</a><br> <li><a href="./admin.php">Admin</a></li>
<?php } ?> <?php } ?>
<a href="./import.php">Import</a><br> <li><a href="./import.php">Import</a></li>
<a href="./export.php">Export</a><br> <li><a href="./export.php">Export</a></li>
<a href="./sidebar.php">View as Sidebar</a><br> <li><a href="./sidebar.php">View as Sidebar</a></li>
<a href="./settings.php">Settings</a><br> <li><a href="./settings.php">Settings</a></li>
<a href="javascript:chpw()">Change Password</a><br> <li><a href="javascript:chpw()">Change Password</a></li>
<a href="./index.php?logout=1">Logout</a><br> <li><a href="./index.php?logout=1">Logout</a></li>
</td> </ul>
</tr> <!-- Menu ends here. -->
</table> </div>
<td class=""> <!-- Main content starts here. -->
<img src="./images/spacer.gif" alt="" class="main2"> <div id="main">
</td>
<td class="main4">
<?php <?php
if (!admin_only ()) { if (!admin_only ()) {
@@ -98,8 +73,8 @@ if ($create == 'Create') {
} }
?> ?>
<fieldset> <div style="border: 1px solid #bbb; margin: 10px; padding: 10px;">
<legend>Create User</legend> <h2 class="caption">Create User</h2>
<form action="<?php echo $_SERVER['SCRIPT_NAME']; ?>" method="POST"> <form action="<?php echo $_SERVER['SCRIPT_NAME']; ?>" method="POST">
<table> <table>
@@ -137,11 +112,10 @@ if ($create == 'Create') {
</table> </table>
</form> </form>
</fieldset> </div>
<div style="border: 1px solid #bbb; margin: 10px; padding: 10px;">
<fieldset> <h2 class="caption">Delete User</h2>
<legend>Delete User</legend>
<?php <?php
if ($delete == 'Delete') { if ($delete == 'Delete') {
@@ -196,9 +170,6 @@ if ($create == 'Create') {
?> ?>
<form action="<?php echo $_SERVER['SCRIPT_NAME']; ?>" method="POST"> <form action="<?php echo $_SERVER['SCRIPT_NAME']; ?>" method="POST">
<table>
<tr>
<td>
<div style="height: 200px; width: 300px; overflow:auto;"> <div style="height: 200px; width: 300px; overflow:auto;">
<?php <?php
$query = "SELECT username, admin FROM user ORDER BY username"; $query = "SELECT username, admin FROM user ORDER BY username";
@@ -219,15 +190,8 @@ if ($create == 'Create') {
} }
?> ?>
</div> </div>
</td>
</tr>
<tr>
<td>
<input type="submit" name="delete" value="Delete"> <input type="submit" name="delete" value="Delete">
<?php echo $message2; ?> <?php echo $message2; ?>
</td>
</tr>
</table>
</form> </form>
@@ -236,10 +200,10 @@ if ($create == 'Create') {
?> ?>
</fieldset> </div>
<fieldset> <div style="border: 1px solid #bbb; margin: 10px; padding: 10px;">
<legend>Version</legend> <h2 class="caption">Version</h2>
<table> <table>
<tr> <tr>
@@ -271,12 +235,10 @@ if ($create == 'Create') {
} }
?> ?>
</fieldset> </div>
</div>
</td>
</tr>
</table>
<?php <?php
print_footer ();
require_once (ABSOLUTE_PATH . 'footer.php'); require_once (ABSOLUTE_PATH . 'footer.php');
?> ?>

View File

@@ -30,7 +30,7 @@ else {
$query_string = "?bmlist=" . implode ("_", $bmlist) . "&noconfirm=1"; $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;"> <div style="width:100%; height:330px; overflow:auto;">
<?php <?php

View File

@@ -24,7 +24,7 @@ if (count ($bmlist) > 1) {
$query_string = "?bmlist=" . implode ("_", $bmlist); $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;"> <div style="width:100%; height:330px; overflow:auto;">
<?php <?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"> <form action="<?php echo $_SERVER['SCRIPT_NAME'] . "?bmlist=" . $row->id; ?>" id="bmedit" method="POST">
<p>Title<br> <p>Title<br>
<input type=text name="title" size="50" value="<?php echo $row->title; ?>"> <?php echo $settings['show_bookmark_icon'] ? $icon : ""; ?></p> <input type=text name="title" size="50" value="<?php echo $row->title; ?>"> <?php echo $settings['show_bookmark_icon'] ? $icon : ""; ?></p>

View File

@@ -7,7 +7,7 @@ $bmlist = set_post_num_list ('bmlist');
if (count ($bmlist) == 0) { 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"> <form action="<?php echo $_SERVER['SCRIPT_NAME'] . "?folderid=" . $folderid; ?>" method="POST" name="bookmarksmove">
<div style="width:100%; height:330px; overflow:auto;"> <div style="width:100%; height:330px; overflow:auto;">

View File

@@ -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"> <form action="<?php echo $_SERVER['SCRIPT_NAME'] . "?folderid=" . $folderid; ?>" id="bmnew" method="POST">
<p>Title<br> <p>Title<br>
<input type=text name="title" size="50" value="<?php echo $title; ?>"></p> <input type=text name="title" size="50" value="<?php echo $title; ?>"></p>

View File

@@ -21,11 +21,10 @@ function list_bookmarks ($bookmarks, $show_checkbox, $show_folder, $show_icon, $
$tree = & new folder; $tree = & new folder;
} }
echo '<form name="bookmarks">' . "\n"; echo '<form name="bookmarks" action="">' . "\n";
echo '<table cellspacing="0" style="width: 97%;">' . "\n";
foreach ($bookmarks as $value) { foreach ($bookmarks as $value) {
echo '<tr class="sh">' . "\n"; echo '<div class="bookmark">' . "\n";
# the folders, only needed when searching for bookmarks # the folders, only needed when searching for bookmarks
if ($show_folder) { if ($show_folder) {
@@ -46,28 +45,62 @@ function list_bookmarks ($bookmarks, $show_checkbox, $show_folder, $show_icon, $
echo "</td>\n"; echo "</td>\n";
} }
# the checkbox and favicon section
echo "\t" . '<div class="bmleft">' . "\n";
# the checkbox
if ($show_checkbox){ if ($show_checkbox){
# the checkbox, needed in any case echo "\t\t" . '<input class="link" type="checkbox" name="' . $value['id'] . '">' . "\n";
echo '<td class="ten">';
echo '<input type="checkbox" name="' . $value['id'] . '">';
echo "</td>\n";
} }
# the bookmark image if configured to be displayed # the favicon
echo "\t\t";
if ($show_icon){ if ($show_icon){
echo '<td class="ten">';
if ($value['favicon'] && is_file ($value['favicon'])) { if ($value['favicon'] && is_file ($value['favicon'])) {
echo '<img src="' . $value['favicon'] . '" width="16" height="16">'; echo '<img src="' . $value['favicon'] . '" width="16" height="16">';
} }
else { else {
echo $bookmark_image; 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 if ($show_date) {
echo '<td>'; 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) . '&amp;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']) { if ($settings['open_new_window']) {
$target = ' target="_blank"'; $target = ' target="_blank"';
} }
@@ -81,58 +114,16 @@ function list_bookmarks ($bookmarks, $show_checkbox, $show_folder, $show_icon, $
else { else {
$link = $value['title']; $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 # the description and if not empty
# thanks to Tim Hogan <tlhogan22@yahoo.com>
# also display the public status here
if ($show_desc && $value['description'] != "") { if ($show_desc && $value['description'] != "") {
echo '<div class="description">' . $value['description'] . "</div>\n"; echo '<div class="description">' . $value['description'] . "</div>\n";
} }
echo "</td>\n";
if ($show_date) { echo "</div>\n\n";
echo '<td class="ten">';
echo '<div class="date">'. date ($date_formats[$settings['date_format']], $value['timestamp']) .'</div>';
echo "</td>\n";
} }
echo "</form>\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 "</table></form>\n";
} }
?> ?>

View File

@@ -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"> <form action="<?php echo $_SERVER['SCRIPT_NAME']; ?>" method="POST">
<table> <table>

View File

@@ -26,63 +26,39 @@ if (!isset ($_POST['browser']) || $_POST['browser'] == "" ||
} }
?> ?>
<table class="caption"> <h1 id="caption">Export Bookmarks</h1>
<tr>
<td><span class="caption"><img src="./images/logo.png" alt=""> Export Bookmarks</span>
</td>
<td class="captionright"> <!-- Wrapper starts here. -->
<div><?php object_count (); ?></div> <div style="min-width: <?php echo 230 + $settings['column_width_folder']; ?>px;">
<div><?php print_footer (); ?></div> <!-- Menu starts here. -->
</td> <div id="menu">
</tr> <h2 class="nav">Bookmarks</h2>
</table> <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">
<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 ()) { ?> <?php if (admin_only ()) { ?>
<a href="./admin.php">Admin</a><br> <li><a href="./admin.php">Admin</a></li>
<?php } ?> <?php } ?>
<a href="./import.php">Import</a><br> <li><a href="./import.php">Import</a></li>
<a href="./export.php">Export</a><br> <li><a href="./export.php">Export</a></li>
<a href="./sidebar.php">View as Sidebar</a><br> <li><a href="./sidebar.php">View as Sidebar</a></li>
<a href="./settings.php">Settings</a><br> <li><a href="./settings.php">Settings</a></li>
<a href="javascript:chpw()">Change Password</a><br> <li><a href="javascript:chpw()">Change Password</a></li>
<a href="./index.php?logout=1">Logout</a><br> <li><a href="./index.php?logout=1">Logout</a></li>
</td> </ul>
</tr> <!-- Menu ends here. -->
</table> </div>
<td class=""> <!-- Main content starts here. -->
<img src="./images/spacer.gif" alt="" class="main2"> <div id="main">
</td> <div id="content">
<td class="main4">
<form enctype="multipart/form-data" action="<?php echo $_SERVER['SCRIPT_NAME'];?>" method="POST"> <form enctype="multipart/form-data" action="<?php echo $_SERVER['SCRIPT_NAME'];?>" method="POST">
<table valign="top"> <table border="0">
<tr> <tr>
<td> <td>
Export Bookmarks to Browser: Export Bookmarks to Browser:
@@ -142,9 +118,11 @@ if (!isset ($_POST['browser']) || $_POST['browser'] == "" ||
</table> </table>
</form> </form>
</td> </div>
</tr> <!-- Main content ends here. -->
</table> </div>
<!-- Wrapper ends here. -->
</div>
<?php <?php
require_once (ABSOLUTE_PATH . "footer.php"); require_once (ABSOLUTE_PATH . "footer.php");

View File

@@ -93,7 +93,7 @@ else {
$row = mysql_fetch_object ($mysql->result); $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> <p><?php echo $row->public ? $folder_opened_public : $folder_opened; echo " " . $row->name; ?></p>
<form action="<?php echo $_SERVER['SCRIPT_NAME'] . "?folderid=" . $folderid . "&amp;noconfirm=1";?>" method="POST" name="fdelete"> <form action="<?php echo $_SERVER['SCRIPT_NAME'] . "?folderid=" . $folderid . "&amp;noconfirm=1";?>" method="POST" name="fdelete">

View File

@@ -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"> <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=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> <p><input type="checkbox" name="public" <?php if ($row->public) {echo "checked";} ?>> Public</p>

View File

@@ -10,7 +10,7 @@ $parents = $tree->get_path_to_root ($folderid);
if ($sourcefolder == "") { 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"> <form action="<?php echo $_SERVER['SCRIPT_NAME'] . "?folderid=" . $folderid . "&expand=" . implode (",", $expand);?>" method="POST" id="fmove">
<div style="width:100%; height:330px; overflow:auto;"> <div style="width:100%; height:330px; overflow:auto;">

View File

@@ -8,7 +8,7 @@ $public = set_post_bool_var ("public", false);
if ($foldername == "") { 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"> <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=text name="foldername" size="50" value="<?php echo $foldername; ?>"></p>
<p><input type="checkbox" name="public"> Public</p> <p><input type="checkbox" name="public"> Public</p>

View File

@@ -20,8 +20,8 @@ require_once (ABSOLUTE_PATH . "lib/lib.php");
require_once (ABSOLUTE_PATH . "lib/login.php"); require_once (ABSOLUTE_PATH . "lib/login.php");
?> ?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> "http://www.w3.org/TR/html4/loose.dtd">
<html> <html>
<head> <head>
<title>Online-Bookmarks</title> <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="stylesheet" type="text/css" href="./style.css">
<link rel="shortcut icon" href="favicon.ico"> <link rel="shortcut icon" href="favicon.ico">
<script type="text/javascript" src="./lib/lib.js"></script> <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> </head>
<body> <body>

View File

@@ -3,60 +3,36 @@ require_once ("./header.php");
logged_in_only (); logged_in_only ();
?> ?>
<table class="caption"> <h1 id="caption">Import Bookmarks</h1>
<tr>
<td><span class="caption"><img src="./images/logo.png" alt=""> Import Bookmarks</span>
</td>
<td class="captionright"> <!-- Wrapper starts here. -->
<div><?php object_count (); ?></div> <div style="min-width: <?php echo 230 + $settings['column_width_folder']; ?>px;">
<div><?php print_footer (); ?></div> <!-- Menu starts here. -->
</td> <div id="menu">
</tr> <h2 class="nav">Bookmarks</h2>
</table> <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">
<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 ()) { ?> <?php if (admin_only ()) { ?>
<a href="./admin.php">Admin</a><br> <li><a href="./admin.php">Admin</a></li>
<?php } ?> <?php } ?>
<a href="./import.php">Import</a><br> <li><a href="./import.php">Import</a></li>
<a href="./export.php">Export</a><br> <li><a href="./export.php">Export</a></li>
<a href="./sidebar.php">View as Sidebar</a><br> <li><a href="./sidebar.php">View as Sidebar</a></li>
<a href="./settings.php">Settings</a><br> <li><a href="./settings.php">Settings</a></li>
<a href="javascript:chpw()">Change Password</a><br> <li><a href="javascript:chpw()">Change Password</a></li>
<a href="./index.php?logout=1">Logout</a><br> <li><a href="./index.php?logout=1">Logout</a></li>
</td> </ul>
</tr> <!-- Menu ends here. -->
</table> </div>
<td class=""> <!-- Main content starts here. -->
<img src="./images/spacer.gif" alt="" class="main2"> <div id="main">
</td> <div id="content">
<td class="main4">
<?php <?php
@@ -68,11 +44,10 @@ if (!isset ($_FILES['importfile']['tmp_name']) || $_FILES['importfile']['tmp_nam
else{ else{
$default_browser = "netscape"; $default_browser = "netscape";
} }
?> ?>
<form enctype="multipart/form-data" action="<?php echo $_SERVER['SCRIPT_NAME'];?>" method="post"> <form enctype="multipart/form-data" action="<?php echo $_SERVER['SCRIPT_NAME'];?>" method="post">
<table valign="top" border="0"> <table border="0">
<tr> <tr>
<td> <td>
from Browser: from Browser:
@@ -121,7 +96,7 @@ if (!isset ($_FILES['importfile']['tmp_name']) || $_FILES['importfile']['tmp_nam
</tr> </tr>
<tr> <tr>
<td> <td valign="top">
Destination Folder: Destination Folder:
</td> </td>
<td> <td>
@@ -174,9 +149,11 @@ else{
?> ?>
</td> </div>
</tr> <!-- Main content ends here. -->
</table> </div>
<!-- Wrapper ends here. -->
</div>
<?php <?php
@@ -357,5 +334,6 @@ class import {
} }
} }
print_footer ();
require_once (ABSOLUTE_PATH . "footer.php"); require_once (ABSOLUTE_PATH . "footer.php");
?> ?>

211
index.php
View File

@@ -12,178 +12,64 @@ else {
?> ?>
<table class="caption"> <h1 id="caption"><?php echo $username; ?>&#039;s Online Bookmarks</h1>
<tr>
<td><span class="caption"><img src="./images/logo.png" alt=""> <?php echo $username; ?>&#039;s Online Bookmarks</span>
</td>
<td class="captionright"> <!-- Wrapper starts here. -->
<div><?php object_count (); ?></div> <div style="min-width: <?php echo 230 + $settings['column_width_folder']; ?>px;">
<div><?php print_footer (); ?></div> <!-- Menu starts here. -->
</td> <div id="menu">
</tr> <h2 class="nav">Bookmarks</h2>
</table> <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>
<table class="main"> <h2 class="nav">Folders</h2>
<tr> <ul class="nav">
<td class="main1"> <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=&amp;folderid=0">Collapse All</a></li>
</ul>
<table class="menu"> <h2 class="nav">Tools</h2>
<tr> <ul class="nav">
<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 ()) { ?> <?php if (admin_only ()) { ?>
<a href="./admin.php">Admin</a><br> <li><a href="./admin.php">Admin</a></li>
<?php } ?> <?php } ?>
<a href="./import.php">Import</a><br> <li><a href="./import.php">Import</a></li>
<a href="./export.php">Export</a><br> <li><a href="./export.php">Export</a></li>
<a href="./sidebar.php">View as Sidebar</a><br> <li><a href="./sidebar.php">View as Sidebar</a></li>
<a href="./settings.php">Settings</a><br> <li><a href="./settings.php">Settings</a></li>
<a href="javascript:chpw()">Change Password</a><br> <li><a href="javascript:chpw()">Change Password</a></li>
<a href="./index.php?logout=1">Logout</a><br> <li><a href="./index.php?logout=1">Logout</a></li>
</td> </ul>
</tr> <!-- Menu ends here. -->
</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> </div>
</td>
<?php else: ?> <!-- 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; ?>;">
<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 <?php
require_once (ABSOLUTE_PATH . "folders.php"); require_once (ABSOLUTE_PATH . "folders.php");
$tree = & new folder; $tree = & new folder;
$tree->make_tree (0); $tree->make_tree (0);
$tree->print_tree (); $tree->print_tree ();
?> ?>
<!-- Folders ends here. -->
</div> </div>
</td>
<td class="main4"> <!-- Bookmarks starts here. -->
<div style="height: <?php echo $table_height; ?>; width: <?php echo $column_width_bookmark; ?>; overflow:auto;"> <div id="bookmarks" style="height: <?php echo $table_height; ?>;">
<?php <?php
require_once (ABSOLUTE_PATH . "bookmarks.php"); require_once (ABSOLUTE_PATH . "bookmarks.php");
@@ -218,12 +104,15 @@ else {
} }
?> ?>
<!-- Bookmarks ends here. -->
</div>
<!-- Main content ends here. -->
</div>
<!-- Wrapper ends here. -->
</div> </div>
</td>
<?php endif; ?>
</tr>
</table>
<?php <?php
print_footer ();
require_once (ABSOLUTE_PATH . "footer.php"); require_once (ABSOLUTE_PATH . "footer.php");
?> ?>

View File

@@ -415,9 +415,11 @@ function set_num_array ($array){
} }
function print_footer () { function print_footer () {
echo '<p id="footer">';
echo '<a href="http://www.frech.ch/online-bookmarks/" target="_blank">Online-Bookmarks</a>' . "\n"; echo '<a href="http://www.frech.ch/online-bookmarks/" target="_blank">Online-Bookmarks</a>' . "\n";
@readfile (ABSOLUTE_PATH . "VERSION"); @readfile (ABSOLUTE_PATH . "VERSION");
echo ' by Stefan Frech'; echo ' by Stefan Frech';
echo "</p>\n";
} }
function object_count () { function object_count () {

View File

@@ -3,7 +3,7 @@ require_once ('./header.php');
logged_in_only (); logged_in_only ();
?> ?>
<p class="title">Select Folder</p> <h2 class="title">Select Folder</h2>
<div style="width:100%; height:330px; overflow:auto;"> <div style="width:100%; height:330px; overflow:auto;">

View File

@@ -108,60 +108,35 @@ function check_date_format () {
?> ?>
<table class="caption"> <h1 id="caption">My Settings</h1>
<tr>
<td><span class="caption"><img src="./images/logo.png" alt=""> My Settings</span>
</td>
<td class="captionright"> <!-- Wrapper starts here. -->
<div><?php object_count (); ?></div> <div style="min-width: <?php echo 230 + $settings['column_width_folder']; ?>px;">
<div><?php print_footer (); ?></div> <!-- Menu starts here. -->
</td> <div id="menu">
</tr> <h2 class="nav">Bookmarks</h2>
</table> <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">
<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 ()) { ?> <?php if (admin_only ()) { ?>
<a href="./admin.php">Admin</a><br> <li><a href="./admin.php">Admin</a></li>
<?php } ?> <?php } ?>
<a href="./import.php">Import</a><br> <li><a href="./import.php">Import</a></li>
<a href="./export.php">Export</a><br> <li><a href="./export.php">Export</a></li>
<a href="./sidebar.php">View as Sidebar</a><br> <li><a href="./sidebar.php">View as Sidebar</a></li>
<a href="./settings.php">Settings</a><br> <li><a href="./settings.php">Settings</a></li>
<a href="javascript:chpw()">Change Password</a><br> <li><a href="javascript:chpw()">Change Password</a></li>
<a href="./index.php?logout=1">Logout</a><br> <li><a href="./index.php?logout=1">Logout</a></li>
</td> </ul>
</tr> <!-- Menu ends here. -->
</table> </div>
<td class=""> <!-- Main content starts here. -->
<img src="./images/spacer.gif" alt="" class="main2"> <div id="main">
</td>
<td class="main4">
<table> <table>
<tr> <tr>
@@ -199,35 +174,35 @@ function check_date_format () {
<tr> <tr>
<td>Confirm deletions of bookmarks an folders</td> <td>Confirm deletions of bookmarks an folders</td>
<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> </td>
</tr> </tr>
<tr> <tr>
<td>Open a new window when clicking a bookmark</td> <td>Open a new window when clicking a bookmark</td>
<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> </td>
</tr> </tr>
<tr> <tr>
<td>Show the bookmarks description in the overview</td> <td>Show the bookmarks description in the overview</td>
<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> </td>
</tr> </tr>
<tr> <tr>
<td>Enable favicon support: <?php echo $bookmark_image; ?></td> <td>Enable favicon support: <?php echo $bookmark_image; ?></td>
<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> </td>
</tr> </tr>
<tr> <tr>
<td>Show the column with the change date: <?php echo date ($date_formats[$settings['date_format']]); ?></td> <td>Show the column with the change date: <?php echo date ($date_formats[$settings['date_format']]); ?></td>
<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> </td>
</tr> </tr>
@@ -249,56 +224,56 @@ function check_date_format () {
<tr> <tr>
<td>Show the private/public column: <span class="private">private</span></td> <td>Show the private/public column: <span class="private">private</span></td>
<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> </td>
</tr> </tr>
<tr> <tr>
<td>Show the column to edit a bookmark: <?php echo $edit_image; ?></td> <td>Show the column to edit a bookmark: <?php echo $edit_image; ?></td>
<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> </td>
</tr> </tr>
<tr> <tr>
<td>Show the column to move a bookmark: <?php echo $move_image; ?></td> <td>Show the column to move a bookmark: <?php echo $move_image; ?></td>
<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> </td>
</tr> </tr>
<tr> <tr>
<td>Show the column to delete a bookmark: <?php echo $delete_image; ?></td> <td>Show the column to delete a bookmark: <?php echo $delete_image; ?></td>
<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> </td>
</tr> </tr>
<tr> <tr>
<td>Collapse tree when clicking on folder icon: <?php echo $minus . $folder_opened; ?></td> <td>Collapse tree when clicking on folder icon: <?php echo $minus . $folder_opened; ?></td>
<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> </td>
</tr> </tr>
<tr> <tr>
<td>Expand tree when clicking on folder icon: <?php echo $plus . $folder_opened; ?></td> <td>Expand tree when clicking on folder icon: <?php echo $plus . $folder_opened; ?></td>
<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> </td>
</tr> </tr>
<tr> <tr>
<td>Select folder when clicking on plus/minus symbol</td> <td>Select folder when clicking on plus/minus symbol</td>
<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> </td>
</tr> </tr>
<tr> <tr>
<td>Allways open just one tree</td> <td>Allways open just one tree</td>
<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> </td>
</tr> </tr>
@@ -386,9 +361,10 @@ function check_date_format () {
</tr> </tr>
</table> </table>
</td> <!-- Main content ends here. -->
</tr> </div>
</table> <!-- Wrapper ends here. -->
</div>
<?php <?php
require_once (ABSOLUTE_PATH . "footer.php"); require_once (ABSOLUTE_PATH . "footer.php");

View File

@@ -8,81 +8,54 @@ else {
$user = set_get_string_var ('user'); $user = set_get_string_var ('user');
} }
$display_shared = false; $display_shared = false;
?>
<table class="caption"> if (isset ($_GET['user']) && check_username ($user)) {
<tr> $title = $user . "&#039;s Online Bookmarks";
<td><span class="caption"><img src="./images/logo.png" alt=""> Shared Bookmarks</span>
</td>
<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 { else {
$link = '<a href="./index.php">Login</a>'; $title = "Shared Online-Bookmarks";
} }
?> ?>
<h1 id="caption"><?php echo $title; ?></h1>
<?php echo $link; ?><br> <!-- Wrapper starts here. -->
</td> <div style="min-width: <?php echo 230 + $settings['column_width_folder']; ?>px;">
</tr> <!-- Menu starts here. -->
</table> <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>
<!-- Main content starts here. -->
<div id="main">
<td class="">
<img src="./images/spacer.gif" alt="" class="main2">
</td>
<td class="main4">
<?php <?php
if (isset ($_GET['user']) && check_username ($user)) { if (isset ($_GET['user']) && check_username ($user)) {
?> ?>
<table>
<tr> <!-- Folders starts here. -->
<td> <div id="folders" style="width: <?php echo $column_width_folder; ?>; height: <?php echo $table_height; ?>;">
<div style="height: <?php echo $table_height; ?>; width: 400px; overflow:auto;">
<?php <?php
require_once (ABSOLUTE_PATH . "folders.php"); require_once (ABSOLUTE_PATH . "folders.php");
@@ -91,10 +64,11 @@ if (isset ($_GET['user']) && check_username ($user)) {
$tree->print_tree (); $tree->print_tree ();
?> ?>
<!-- Folders ends here. -->
</div> </div>
</td>
<td style="width: 100%;"> <!-- Bookmarks starts here. -->
<div style="height: <?php echo $table_height; ?>; width: 100%; overflow:auto;"> <div id="bookmarks" style="height: <?php echo $table_height; ?>;">
<?php <?php
require_once (ABSOLUTE_PATH . "bookmarks.php"); require_once (ABSOLUTE_PATH . "bookmarks.php");
@@ -130,15 +104,13 @@ if (isset ($_GET['user']) && check_username ($user)) {
} }
?> ?>
<!-- Bookmarks ends here. -->
</div> </div>
</td>
</tr>
</table>
<?php <?php
} }
else { else {
echo '<div id="content">';
$query = "SELECT user, SUM(bookmarks) AS bookmarks, SUM(folders) AS folders FROM ( $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' SELECT user, 1 AS bookmarks, 0 AS folders FROM bookmark WHERE public='1' AND deleted!='1'
UNION ALL UNION ALL
@@ -146,22 +118,28 @@ else {
) AS tmp GROUP BY user"; ) AS tmp GROUP BY user";
if ($mysql->query ($query)) { if ($mysql->query ($query)) {
echo '<div style="height: ' . $table_height . '; width: 100%; padding-left: 20px;">' . "\n";
while ($row = mysql_fetch_object ($mysql->result)) { 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 '<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 "Shares $row->folders Folders and $row->bookmarks Bookmarks</a></p>\n";
} }
echo "</div>";
} }
else { else {
message ($mysql->error); message ($mysql->error);
} }
echo "<div>";
} }
?> ?>
</td> <!-- Main content ends here. -->
</tr> </div>
</table> <!-- Wrapper ends here. -->
</div>
<?php <?php
require_once (ABSOLUTE_PATH . "footer.php"); require_once (ABSOLUTE_PATH . "footer.php");

280
style.css
View File

@@ -1,176 +1,188 @@
body,input,textarea,option { /* General Settings */
font-family:verdana; * {
color:#555555; color: #444;
font-family: Verdana, Georgia, Times, serif;
font-size: 10pt; font-size: 10pt;
} }
table { body {
border:0px solid black; background-color: white;
vertical-align:top; margin: 0;
} padding: 5px;
td {
border:0px solid black;
vertical-align:top;
padding:3px;
} }
img { img {
border: 0px solid #FFFFFF; border: 0px solid #FFFFFF;
vertical-align: middle; vertical-align: middle;
margin: 0px; margin: 0px;
} }
fieldset { a:link {
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; text-decoration: none;
} }
a:visited { a:visited {
text-decoration: none; text-decoration: none;
} }
a:hover {
text-decoration: underline;
color: #AE1A1A;
}
a:active { a:active {
text-decoration: none; text-decoration: none;
} }
a:hover { fieldset {
color:#AE1A1A; margin: 10px;
text-decoration:underline; float: none;
} }
/* Caption */
h1#caption {
input.invisible { font-size: 15pt;
visibility:hidden; margin: 0 0 0.5em;
background-color:#FFFFFF;
border:1px solid #FFFFFF;
font:1pt Verdana;
color:#FFFFFF;
}
p.title {
font-weight:bold;
}
/*
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; padding: 10px;
vertical-align:middle; text-align: center;
font-family: Georgia, Times, serif;
background-color:#bbb;
}
h2.caption {
font-weight:bold;
margin: 5px;
} }
/* /* Menu and navigation */
This is for the main table content div#menu {
*/ font-size: 9pt;
table.main { float: left;
width: 100%; width: 130px;
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;
margin: 0px; margin: 0px;
padding: 0;
margin-bottom: 10px;
} }
th.menuhead { h2.nav {
background-color:#969696; font-size: 10pt;
border-bottom: 1px solid black; margin: 0;
padding: 5px; padding: 3px;
text-align: left; background-color:#bbb;
margin: 0px;
} }
td.menu { ul.nav {
padding: 5px; border: 1px solid #bbb;
margin: 0px; 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;
} }
/* Folders section */
/* div#folders {
This is for the 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 { span.active {
color: #000000;
background-color: #C1D2EE; background-color: #C1D2EE;
border:1px #316AC5 solid; border:1px #316AC5 solid;
color:#000000;
padding:1px; padding:1px;
} }
/* /* Bookmarks section */
This is for the Bookmarks div#bookmarks {
*/ overflow:auto;
div.description { padding: 0px;
padding: 2px; display: block;
border-left: 1px solid #bbb;
} }
td.ten { div.bookmark {
width: 10px; border-bottom: 1px solid #bbb;
padding: 5px;
} }
div.private { div.bookmark:hover {
background-color: #E7FBE9; background-color: #eee;
color: #177F23; }
div.bmleft {
margin-top: -2px;
float: left;
}
div.bmright {
float: right;
margin-left: 10px;
padding: 0px;
margin: 0px;
text-align: center; text-align: center;
} }
div.public { div.link {
background-color: #F9E7E9; margin-left: 50px;
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;
} }
span.private { span.private {
background-color: #E7FBE9; background-color: #E7FBE9;
color: #177F23; color: #177F23;
}
span.public {
background-color: #F9E7E9;
color: #E42037;
}
div.description {
margin-top: 5px;
}
div.description, span.private, span.public, span.date {
font-size: smaller; font-size: smaller;
font-style: italic;
} }
.sh:hover { input.link {
background-color: #E8E6E6; 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;
} }