aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/adm/style/overall_header.html
diff options
context:
space:
mode:
authorDominik Dröscher <dhn2@users.sourceforge.net>2007-03-10 16:26:53 +0000
committerDominik Dröscher <dhn2@users.sourceforge.net>2007-03-10 16:26:53 +0000
commit3351f0022eb42096fd766e82e9e91d34aaae8fa8 (patch)
treea9f0fec22d72d85e2016d2f67dde289281f63708 /phpBB/adm/style/overall_header.html
parent8c43f10b3da9d51165d5129e2ae7a605bf6b7647 (diff)
downloadforums-3351f0022eb42096fd766e82e9e91d34aaae8fa8.tar
forums-3351f0022eb42096fd766e82e9e91d34aaae8fa8.tar.gz
forums-3351f0022eb42096fd766e82e9e91d34aaae8fa8.tar.bz2
forums-3351f0022eb42096fd766e82e9e91d34aaae8fa8.tar.xz
forums-3351f0022eb42096fd766e82e9e91d34aaae8fa8.zip
Before I forget ... grr
git-svn-id: file:///svn/phpbb/trunk@7166 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/adm/style/overall_header.html')
-rw-r--r--phpBB/adm/style/overall_header.html39
1 files changed, 38 insertions, 1 deletions
diff --git a/phpBB/adm/style/overall_header.html b/phpBB/adm/style/overall_header.html
index a80fa4c78d..f160adb4cf 100644
--- a/phpBB/adm/style/overall_header.html
+++ b/phpBB/adm/style/overall_header.html
@@ -18,6 +18,9 @@ var on_page = '{ON_PAGE}';
var per_page = '{PER_PAGE}';
var base_url = '{BASE_URL}';
+var menu_state = 'shown';
+
+
/**
* Jump to page
*/
@@ -109,11 +112,43 @@ function swatch(field)
return false;
}
+/**
+* Hiding/Showing the side menu
+*/
+function switch_menu()
+{
+ var menu = document.getElementById('menu');
+ var main = document.getElementById('main');
+ var toggle = document.getElementById('toggle');
+ var handle = document.getElementById('toggle_handle');
+
+ switch(menu_state)
+ {
+ //hide
+ case 'shown':
+ main.style.width = 'auto';
+ menu.style.display = 'none';
+ menu_state = 'hidden';
+ toggle.style.left = '0';
+ toggle.style.width = '20px';
+ break;
+ //show
+ case 'hidden':
+ main.style.width = '76%';
+ menu.style.display = 'block';
+ menu_state = 'shown';
+ toggle.style.left = '15%';
+ toggle.style.width = '5%'
+ break;
+ }
+}
+
//-->
</script>
</head>
<body class="{S_CONTENT_DIRECTION}">
+
<div id="wrap">
<div id="page-header">
<h1>{L_ADMIN_PANEL}</h1>
@@ -134,8 +169,10 @@ function swatch(field)
<div class="panel">
<span class="corners-top"><span></span></span>
<div id="content">
+ <div id="toggle">
+ <a id="toggle_handle" accesskey="m" title="Hide / Show side menu - Accesskey: m" onclick="switch_menu(); return false;" href="#"></a></div>
<div id="menu">
- <p>{L_LOGGED_IN_AS}<br /><strong>{USERNAME}</strong> [&nbsp;<a href="{U_LOGOUT}">{L_LOGOUT}</a>&nbsp;]</p>
+ <p>{L_LOGGED_IN_AS}<br /><strong>{USERNAME}</strong> [&nbsp;<a href="{U_LOGOUT}">{L_LOGOUT}</a>&nbsp;]</p>
<ul>
<!-- BEGIN l_block1 -->
<!-- IF l_block1.S_SELECTED -->