summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordeva <deva>2010-02-28 10:54:45 +0000
committerdeva <deva>2010-02-28 10:54:45 +0000
commit90ed713a8c23e77028a413e9c3a7e88b51575b7c (patch)
tree248e0d95d16c05f16e51981fd559c33cdff31882
parenta87d1861c843289cbc925fd26447a00621819ec8 (diff)
Changed how the admin modules is shown.
-rw-r--r--htdocs/admin.css15
-rw-r--r--htdocs/index.php16
-rw-r--r--utils/admin.php6
3 files changed, 26 insertions, 11 deletions
diff --git a/htdocs/admin.css b/htdocs/admin.css
index 40be6e5..8078d1e 100644
--- a/htdocs/admin.css
+++ b/htdocs/admin.css
@@ -1,6 +1,8 @@
/*** Admin ***/
.admin {
+ z-index: 666;
+
position: absolute;
top: 0%;
left: 0%;
@@ -23,6 +25,15 @@
border-radius: 6px;
}
+.admin .windowtitle {
+ text-shadow: #222 1px 1px 2px;
+
+ filter:alpha(opacity=70);
+ -moz-opacity:0.70;
+ -khtml-opacity: 0.70;
+ opacity: 0.70;
+}
+
.admin .header {
display: inline-block;
text-align: center;
@@ -37,7 +48,11 @@
}
.admin .logout {
+ padding-top: 3px;
+ padding-right: 6px;
float: right;
+ font-size: 0.9em;
+ font-style: italic;
}
.admin .close {
diff --git a/htdocs/index.php b/htdocs/index.php
index aea0dfe..1a9e5af 100644
--- a/htdocs/index.php
+++ b/htdocs/index.php
@@ -88,7 +88,11 @@ if($config->value('splash') == "true") {
// -->
</script>
</head>
-<body>
+<body><?php
+if($page == "admin") {
+ include($UTIL_DIR."/admin.php");
+}
+?>
<div style="display: none;">
<?php
$_ps = $config->value('preload');
@@ -117,13 +121,9 @@ if(sizeof($menu)) {
<div class="wrapper">
<div class="content">
<?php
-if($page == "admin") {
- include($UTIL_DIR."/admin.php");
-} else {
- if($page) $_p = $pages->getPage($page);
- else $_p = $pages->getPage($config->value('default'));
- if($_p) $_p->show();
-}
+if($page && $page != "admin") $_p = $pages->getPage($page);
+else $_p = $pages->getPage($config->value('default'));
+if($_p) $_p->show();
?>
</div>
<div class="column">
diff --git a/utils/admin.php b/utils/admin.php
index ab22a9a..f967c76 100644
--- a/utils/admin.php
+++ b/utils/admin.php
@@ -1,6 +1,6 @@
<?php /* -*- Mode: php; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ ?>
<div class="admin" id="admin">
- <span class="header">Admin</span>
+ <span class="windowtitle header">Admin</span>
<div class="button close"><a href="?page=">X</a></div>
<?php
global $loggedin;
@@ -198,8 +198,8 @@ function OnMouseUp(e)
var e = window.event;
// Store new coordinate
- createCookie('admin_x', _offsetX + e.clientX - _startX);
- createCookie('admin_y', _offsetY + e.clientY - _startY);
+ createCookie('admin_x', _offsetX + e.clientX - _startX, 1000);
+ createCookie('admin_y', _offsetY + e.clientY - _startY, 1000);
}
}
//-->