Commit 910d6761d29032677b6a0d5f104e5e14e84987c7

Authored by michael
1 parent 75e96749

updated heading colouring


git-svn-id: https://kt-dms.svn.sourceforge.net/svnroot/kt-dms/trunk@1382 c91229c3-7414-0410-bfa2-8a42b809f60b
presentation/lookAndFeel/knowledgeTree/preferences/editUserPrefsUI.inc
... ... @@ -9,7 +9,8 @@
9 9 */
10 10 function renderHeading() {
11 11 global $default;
12   - $sColor = $default->siteMap->getSectionColour("Preferences", "td");
  12 + $sSectionName = $default->siteMap->getSectionName(substr($_SERVER["PHP_SELF"], strlen($default->rootUrl), strlen($_SERVER["PHP_SELF"])));
  13 + $sColor = $default->siteMap->getSectionColour($sSectionName, "th");
13 14 $sToRender .= "<tr align=\"left\"><th class=\"sectionHeading\" bgcolor=\"$sColor\">Preferences</th></tr>\n";
14 15 $sToRender .= "<tr/>\n";
15 16 $sToRender .= "<tr/>\n";
... ...
presentation/lookAndFeel/knowledgeTree/search/advancedSearchUI.inc
... ... @@ -11,7 +11,8 @@
11 11  
12 12 function renderHeading() {
13 13 global $default;
14   - $sColor = $default->siteMap->getSectionColour("Advanced Search", "td");
  14 + $sSectionName = $default->siteMap->getSectionName(substr($_SERVER["PHP_SELF"], strlen($default->rootUrl), strlen($_SERVER["PHP_SELF"])));
  15 + $sColor = $default->siteMap->getSectionColour($sSectionName, "th");
15 16 $sToRender .= "<tr align=\"left\"><th class=\"sectionHeading\" bgcolor=\"$sColor\">Advanced Search</th></tr>\n";
16 17 $sToRender .= "<tr/>\n";
17 18 $sToRender .= "<tr/>\n";
... ...
presentation/lookAndFeel/knowledgeTree/subscriptions/subscriptionUI.inc
... ... @@ -14,7 +14,8 @@
14 14  
15 15 function renderHeading() {
16 16 global $default;
17   - $sColor = $default->siteMap->getSectionColour("manageSubscriptions", "td");
  17 + $sSectionName = $default->siteMap->getSectionName(substr($_SERVER["PHP_SELF"], strlen($default->rootUrl), strlen($_SERVER["PHP_SELF"])));
  18 + $sColor = $default->siteMap->getSectionColour($sSectionName, "th");
18 19 $sToRender .= "<tr align=\"left\"><th class=\"sectionHeading\" bgcolor=\"$sColor\">Subscriptions</th></tr>\n";
19 20 $sToRender .= "<tr/>\n";
20 21 $sToRender .= "<tr/>\n";
... ...