Commit 376eadbfdaad446aa14e6902d7f767b51c6c2b6b
1 parent
7685ab5c
initial revision
git-svn-id: https://kt-dms.svn.sourceforge.net/svnroot/kt-dms/trunk@1508 c91229c3-7414-0410-bfa2-8a42b809f60b
Showing
1 changed file
with
18 additions
and
0 deletions
presentation/lookAndFeel/knowledgeTree/administration/adminUI.inc
0 → 100644
| 1 | +<?php | ||
| 2 | + | ||
| 3 | +/** | ||
| 4 | + * Displays heading | ||
| 5 | + */ | ||
| 6 | +function renderHeading($sHeading, $sSectionName = "") { | ||
| 7 | + global $default; | ||
| 8 | + | ||
| 9 | + if ($sSectionName == "") { | ||
| 10 | + $sSectionName = $default->siteMap->getSectionName(substr($_SERVER["PHP_SELF"], strlen($default->rootUrl), strlen($_SERVER["PHP_SELF"]))); | ||
| 11 | + } | ||
| 12 | + $sColor = $default->siteMap->getSectionColour($sSectionName, "th"); | ||
| 13 | + $sToRender .= "<tr align=\"left\"><th class=\"sectionHeading\" bgcolor=\"$sColor\"><font color=\"ffffff\">$sHeading</font></th></tr>\n"; | ||
| 14 | + $sToRender .= "<tr/>\n"; | ||
| 15 | + $sToRender .= "<tr/>\n"; | ||
| 16 | + return $sToRender; | ||
| 17 | +} | ||
| 18 | +?> |