Commit 3ff338dfb190af4c03e440e8a9eb7804866c43ff

Authored by Michael Joseph
1 parent d524fe46

added colour-coded heading


git-svn-id: https://kt-dms.svn.sourceforge.net/svnroot/kt-dms/trunk@1358 c91229c3-7414-0410-bfa2-8a42b809f60b
presentation/lookAndFeel/knowledgeTree/administration/admin.php
1 <?php 1 <?php
2 require_once("../../../../config/dmsDefaults.php"); 2 require_once("../../../../config/dmsDefaults.php");
3 -  
4 -  
5 -if(checkSession()) {  
6 -  
7 3
  4 +function renderHeading() {
  5 + global $default;
  6 + $sColor = $default->siteMap->getSectionColour("Administration", "td");
  7 + $sToRender .= "<tr align=\"left\"><th class=\"sectionHeading\" bgcolor=\"$sColor\">Administration</th></tr>\n";
  8 + $sToRender .= "<tr/>\n";
  9 + $sToRender .= "<tr/>\n";
  10 + return $sToRender;
  11 +}
  12 +
  13 +if(checkSession()) {
8 require_once("$default->fileSystemRoot/presentation/webpageTemplate.inc"); 14 require_once("$default->fileSystemRoot/presentation/webpageTemplate.inc");
9 -  
10 -$Center = "  
11 - <br></br>  
12 - <b> Welcome to the Administration Section:</b>  
13 - <br></br>  
14 - <p>Please make a selection from the sidemenu.</ul></p>  
15 - ";  
16 - 15 +
  16 + $sCenter = "<table width=\"600\">\n";
  17 + $sCenter .= renderHeading();
  18 + $sCenter .= "<tr/><tr/><tr><td><b> Welcome to the Administration Section</b></td></tr>\n";
  19 + $sCenter .= "<br></br>\n";
  20 + $sCenter .= "<tr><td>Please make a selection from the sidemenu.</td></tr>\n";
  21 +
17 $oPatternCustom = & new PatternCustom(); 22 $oPatternCustom = & new PatternCustom();
18 - $oPatternCustom->setHtml($Center); 23 + $oPatternCustom->setHtml($sCenter);
19 $main->setCentralPayload($oPatternCustom); 24 $main->setCentralPayload($oPatternCustom);
20 $main->render(); 25 $main->render();
21 -  
22 } 26 }
23 -  
24 ?> 27 ?>
25 -