Commit af0c1fb89466728e4d11065f765f218b4ce6b066

Authored by omar
1 parent 3e80dbe3

Admin Main page changes


git-svn-id: https://kt-dms.svn.sourceforge.net/svnroot/kt-dms/trunk@1947 c91229c3-7414-0410-bfa2-8a42b809f60b
presentation/lookAndFeel/knowledgeTree/administration/admin.php
@@ -16,13 +16,19 @@ require_once("adminUI.inc"); @@ -16,13 +16,19 @@ require_once("adminUI.inc");
16 16
17 if(checkSession()) { 17 if(checkSession()) {
18 require_once("$default->fileSystemRoot/presentation/webpageTemplate.inc"); 18 require_once("$default->fileSystemRoot/presentation/webpageTemplate.inc");
19 -  
20 - $sCenter = "<table width=\"600\">\n";  
21 - $sCenter .= renderHeading("Administration");  
22 - $sCenter .= "<tr/><tr/><tr><td><b> Welcome to the Administration Section</b></td></tr>\n";  
23 - $sCenter .= "<tr><td>Please make a selection from the sidemenu.</td></tr>\n";  
24 - $sCenter .= "</table>";  
25 - 19 +
  20 + if (isset($sectionName)) {
  21 + $sCenter .= "<table width=\"600\">\n";
  22 + if ($sectionName == "userAdministration") {
  23 +
  24 + $sCenter .= renderHeading("User Administration");
  25 + }else if ($sectionName == "Administration"){
  26 + $sCenter .= "<table width=\"600\">\n";
  27 + $sCenter .= renderHeading("Administration");
  28 + }
  29 + $sCenter .= "</table>\n";
  30 + }
  31 + //$sCenter .= "<textarea cols=50 rows=50> $sCenter </textarea>";
26 $oPatternCustom = & new PatternCustom(); 32 $oPatternCustom = & new PatternCustom();
27 $oPatternCustom->setHtml($sCenter); 33 $oPatternCustom->setHtml($sCenter);
28 $main->setCentralPayload($oPatternCustom); 34 $main->setCentralPayload($oPatternCustom);
presentation/lookAndFeel/knowledgeTree/administration/adminUI.inc
@@ -3,7 +3,7 @@ @@ -3,7 +3,7 @@
3 /** 3 /**
4 * Displays heading 4 * Displays heading
5 */ 5 */
6 -function renderHeading($sHeading, $sSectionName = "") { 6 +function getHeading($sHeading, $sSectionName = "") {
7 global $default; 7 global $default;
8 8
9 if ($sSectionName == "") { 9 if ($sSectionName == "") {
@@ -16,4 +16,17 @@ function renderHeading($sHeading, $sSectionName = &quot;&quot;) { @@ -16,4 +16,17 @@ function renderHeading($sHeading, $sSectionName = &quot;&quot;) {
16 $sToRender .= "<tr/>\n"; 16 $sToRender .= "<tr/>\n";
17 return $sToRender; 17 return $sToRender;
18 } 18 }
  19 +
  20 +function renderHeading($sHeading, $sSectionName = "") {
  21 + //global $default;
  22 +
  23 +
  24 + $sCenter .= getHeading($sHeading, $sSectionName);
  25 + if ($sHeading == "Administration"){
  26 + $sCenter .= "<tr/><tr/><tr><td><b> Welcome to the Administration Section</b></td></tr>\n";
  27 + $sCenter .= "<tr><td>Please make a selection from the sidemenu.</td></tr>\n";
  28 + }
  29 +
  30 + return $sCenter;
  31 +}
19 ?> 32 ?>