summaryrefslogtreecommitdiff
path: root/swat/scripting
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2005-07-19 09:34:11 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:29:42 -0500
commit342d11e3544ec4836cf718f23ea65bee3592fc08 (patch)
treee014a00594b7ca5dbf14e67684f210eb36068884 /swat/scripting
parent82f1a9474d85f75291d0af0e51d55fa904d42055 (diff)
downloadsamba-342d11e3544ec4836cf718f23ea65bee3592fc08.tar.gz
samba-342d11e3544ec4836cf718f23ea65bee3592fc08.tar.bz2
samba-342d11e3544ec4836cf718f23ea65bee3592fc08.zip
r8591: - added a simple 2 level menu structure to swat. Deryck, I know this
isn't very pretty, and please feel free to do this much more nicely :-) - added a top level menu listing our main servers - added placeholder pages for the main servers - added NBT server statistics (This used to be commit 1aa658b756903e7cb598302eddd18b7734937c83)
Diffstat (limited to 'swat/scripting')
-rw-r--r--swat/scripting/common.js3
-rw-r--r--swat/scripting/header_columns.esp5
2 files changed, 6 insertions, 2 deletions
diff --git a/swat/scripting/common.js b/swat/scripting/common.js
index c431c8c1b0..baebe8af82 100644
--- a/swat/scripting/common.js
+++ b/swat/scripting/common.js
@@ -50,9 +50,10 @@ if (headers['HOST'] == undefined) {
/*
show the page header. page types include "plain" and "column"
*/
-function page_header(pagetype, title) {
+function page_header(pagetype, title, menu) {
global.page.pagetype = pagetype;
global.page.title = title;
+ global.page.menu = menu;
include("/scripting/header_" + pagetype + ".esp");
}
diff --git a/swat/scripting/header_columns.esp b/swat/scripting/header_columns.esp
index 63b527d842..c7e58df90b 100644
--- a/swat/scripting/header_columns.esp
+++ b/swat/scripting/header_columns.esp
@@ -62,7 +62,10 @@ filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src='/images/logo.png'
<div id="nav">
<%
- include("/esptest/menu.js");
+ include("/menu.js");
+ if (global.page.menu) {
+ include(global.page.menu);
+ }
%>
</div>