From a113c178a5b5999ddb76c1cf9dab47629c57f05d Mon Sep 17 00:00:00 2001 From: michael Date: Sun, 3 Aug 2003 14:14:16 +0000 Subject: [PATCH] simple admin page --- presentation/lookAndFeel/knowledgeTree/administration/admin.php | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/presentation/lookAndFeel/knowledgeTree/administration/admin.php b/presentation/lookAndFeel/knowledgeTree/administration/admin.php index 2defec7..1b62f22 100644 --- a/presentation/lookAndFeel/knowledgeTree/administration/admin.php +++ b/presentation/lookAndFeel/knowledgeTree/administration/admin.php @@ -18,9 +18,12 @@ require_once("$default->fileSystemRoot/presentation/Html.inc"); * Display the heading for the admin section */ function renderAdminHeading($sHeading, $sSectionName = "") { - $sCenter .= renderHeading("Administration"); + global $default; + + $sAction = $default->siteMap->getActionFromPage(substr($_SERVER["PHP_SELF"], strlen($default->rootUrl), strlen($_SERVER["PHP_SELF"]))); + $sCenter .= renderHeading($default->siteMap->getPageLinkText($sAction)); + $sCenter .= "\n"; - $sCenter .= "\n"; $sCenter .= "\n"; $sCenter .= "
Welcome to the Administration Section
Please make a selection from the sidemenu.
\n"; return $sCenter; @@ -28,12 +31,12 @@ function renderAdminHeading($sHeading, $sSectionName = "") { if (checkSession()) { require_once("$default->fileSystemRoot/presentation/webpageTemplate.inc"); - + if (!isset($sectionName)) { $sectionName = "Administration"; - } + } $sCenter .= "\n"; - $sCenter .= renderAdminHeading("Administration"); + $sCenter .= renderAdminHeading("Administration", $sectionName); $sCenter .= "
\n"; $oPatternCustom = & new PatternCustom(); -- libgit2 0.21.4