1
0

Fixed div height in shared.php

This commit is contained in:
Stefan Frech
2008-07-12 16:02:28 +00:00
committed by Jonas Kattendick
parent 9be3efc2fb
commit 84495fdd54
2 changed files with 8 additions and 3 deletions

View File

@@ -117,7 +117,7 @@ if (isset ($_GET['user']) && check_username ($user)) {
<?php
}
else {
echo '<div id="content">' . "\n";
echo '<div id="content" style="height:' . $table_height . ';">' . "\n";
$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
@@ -126,7 +126,7 @@ else {
if ($mysql->query ($query)) {
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 class="shared"><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";
}
}

View File

@@ -176,6 +176,9 @@ div.description, span.private, span.public, span.date, a.footer {
.invisible {
visibility: hidden;
}
p.shared {
margin: 10px;
}
/* Main Content */
div#main {
@@ -184,7 +187,9 @@ div#main {
margin-bottom: 10px;
}
div#content {
margin: 10px;
overflow:auto;
padding: 0px;
display: block;
}
/* Footer */