Commit 910d6761d29032677b6a0d5f104e5e14e84987c7
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
Showing
3 changed files
with
6 additions
and
3 deletions
presentation/lookAndFeel/knowledgeTree/preferences/editUserPrefsUI.inc
| @@ -9,7 +9,8 @@ | @@ -9,7 +9,8 @@ | ||
| 9 | */ | 9 | */ |
| 10 | function renderHeading() { | 10 | function renderHeading() { |
| 11 | global $default; | 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 | $sToRender .= "<tr align=\"left\"><th class=\"sectionHeading\" bgcolor=\"$sColor\">Preferences</th></tr>\n"; | 14 | $sToRender .= "<tr align=\"left\"><th class=\"sectionHeading\" bgcolor=\"$sColor\">Preferences</th></tr>\n"; |
| 14 | $sToRender .= "<tr/>\n"; | 15 | $sToRender .= "<tr/>\n"; |
| 15 | $sToRender .= "<tr/>\n"; | 16 | $sToRender .= "<tr/>\n"; |
presentation/lookAndFeel/knowledgeTree/search/advancedSearchUI.inc
| @@ -11,7 +11,8 @@ | @@ -11,7 +11,8 @@ | ||
| 11 | 11 | ||
| 12 | function renderHeading() { | 12 | function renderHeading() { |
| 13 | global $default; | 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 | $sToRender .= "<tr align=\"left\"><th class=\"sectionHeading\" bgcolor=\"$sColor\">Advanced Search</th></tr>\n"; | 16 | $sToRender .= "<tr align=\"left\"><th class=\"sectionHeading\" bgcolor=\"$sColor\">Advanced Search</th></tr>\n"; |
| 16 | $sToRender .= "<tr/>\n"; | 17 | $sToRender .= "<tr/>\n"; |
| 17 | $sToRender .= "<tr/>\n"; | 18 | $sToRender .= "<tr/>\n"; |
presentation/lookAndFeel/knowledgeTree/subscriptions/subscriptionUI.inc
| @@ -14,7 +14,8 @@ | @@ -14,7 +14,8 @@ | ||
| 14 | 14 | ||
| 15 | function renderHeading() { | 15 | function renderHeading() { |
| 16 | global $default; | 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 | $sToRender .= "<tr align=\"left\"><th class=\"sectionHeading\" bgcolor=\"$sColor\">Subscriptions</th></tr>\n"; | 19 | $sToRender .= "<tr align=\"left\"><th class=\"sectionHeading\" bgcolor=\"$sColor\">Subscriptions</th></tr>\n"; |
| 19 | $sToRender .= "<tr/>\n"; | 20 | $sToRender .= "<tr/>\n"; |
| 20 | $sToRender .= "<tr/>\n"; | 21 | $sToRender .= "<tr/>\n"; |