From 639d8e15db8e2256b0c4bd7f518c76fe8674c6a7 Mon Sep 17 00:00:00 2001 From: mensonge Date: Fri, 11 Jan 2008 08:08:33 +0000 Subject: [PATCH] Optimisation of the interface: moved toolbar, search menu, sort menu and right profile menu git-svn-id: https://semanticscuttle.svn.sourceforge.net/svnroot/semanticscuttle/trunk@6 b3834d28-1941-0410-a4f8-b48e95affb8f --- scuttle.css | 22 +++++++++++++--------- search.inc.php | 2 +- templates/sidebar.block.profile.php | 9 ++++++++- templates/toolbar.inc.php | 5 ++++- 4 files changed, 26 insertions(+), 12 deletions(-) diff --git a/scuttle.css b/scuttle.css index c2baa8f..e229140 100644 --- a/scuttle.css +++ b/scuttle.css @@ -346,10 +346,14 @@ form { margin: 0; } form#search { - background: #FFF; - color: #555; - font-size: small; - margin-bottom: 1em; + margin-right: 0.75em; + color: #CCC; + font-size: small; + float: right; + margin: 0; + position: absolute; + right: 0; + top: 6.4em; } form label, form td, @@ -376,16 +380,16 @@ p { margin: 1em; } p#sort { - color: #CCC; + /*color: #CCC;*/ font-size: small; - float: right; - margin: 0; - position: absolute; + /*float: right;*/ + /*margin: 0;*/ + /*position: absolute;*/ right: 0; top: 7em; } html > body p#sort { - margin-right: 0.75em; + /*margin-right: 0.75em;*/ } p#sort a { background: #AAA; diff --git a/search.inc.php b/search.inc.php index 1c2cbc3..3900535 100644 --- a/search.inc.php +++ b/search.inc.php @@ -37,7 +37,7 @@ - + diff --git a/templates/sidebar.block.profile.php b/templates/sidebar.block.profile.php index 1b8e915..4fd61ff 100644 --- a/templates/sidebar.block.profile.php +++ b/templates/sidebar.block.profile.php @@ -1,11 +1,15 @@ 0) { $name = $userinfo['name']; } else { $name = $userinfo['username']; } -?> + +

+ +*/ +?> diff --git a/templates/toolbar.inc.php b/templates/toolbar.inc.php index 2eb56ac..916897c 100644 --- a/templates/toolbar.inc.php +++ b/templates/toolbar.inc.php @@ -2,14 +2,17 @@ $userservice =& ServiceFactory::getServiceInstance('UserService'); if ($userservice->isLoggedOn()) { $cUser = $userservice->getCurrentUser(); + $cUserId = $userservice->getCurrentUserId(); $cUsername = $cUser[$userservice->getFieldName('username')]; ?>