Commit 3c65b048d720dfad4cb333a71f2500ddc4d7736a
1 parent
cd360f17
refactored renderHeading function
git-svn-id: https://kt-dms.svn.sourceforge.net/svnroot/kt-dms/trunk@1942 c91229c3-7414-0410-bfa2-8a42b809f60b
Showing
38 changed files
with
92 additions
and
68 deletions
presentation/Html.inc
| @@ -11,6 +11,18 @@ | @@ -11,6 +11,18 @@ | ||
| 11 | * @package presentation | 11 | * @package presentation |
| 12 | */ | 12 | */ |
| 13 | 13 | ||
| 14 | +function renderHeading($sHeading) { | ||
| 15 | + global $default; | ||
| 16 | + $sSectionName = $default->siteMap->getSectionName(substr($_SERVER["PHP_SELF"], strlen($default->rootUrl), strlen($_SERVER["PHP_SELF"]))); | ||
| 17 | + $sColor = $default->siteMap->getSectionColour($sSectionName, "th"); | ||
| 18 | + $sToRender = "<table border=\"0\" width=\"100%\">\n"; | ||
| 19 | + $sToRender .= "<tr align=\"left\"><th class=\"sectionHeading\" bgcolor=\"$sColor\"><font color=\"ffffff\">$sHeading</font></th></tr>\n"; | ||
| 20 | + $sToRender .= "<tr/>\n"; | ||
| 21 | + $sToRender .= "<tr/>\n"; | ||
| 22 | + $sToRender .= "</table>\n"; | ||
| 23 | + return $sToRender; | ||
| 24 | +} | ||
| 25 | + | ||
| 14 | function startTable($border, $width) { | 26 | function startTable($border, $width) { |
| 15 | return "<table border=\"$border\" width=\"$width\">\n"; | 27 | return "<table border=\"$border\" width=\"$width\">\n"; |
| 16 | } | 28 | } |
presentation/lookAndFeel/knowledgeTree/discussions/addCommentUI.inc
| @@ -26,7 +26,7 @@ function getSubmitSuccessPage($iDocumentID){ | @@ -26,7 +26,7 @@ function getSubmitSuccessPage($iDocumentID){ | ||
| 26 | * | 26 | * |
| 27 | * @param $sHeading -> text heading for the page | 27 | * @param $sHeading -> text heading for the page |
| 28 | */ | 28 | */ |
| 29 | -function renderHeading($sHeading) { | 29 | +/*function renderHeading($sHeading) { |
| 30 | global $default; | 30 | global $default; |
| 31 | 31 | ||
| 32 | $sSectionName = $default->siteMap->getSectionName(substr($_SERVER["PHP_SELF"], strlen($default->rootUrl), strlen($_SERVER["PHP_SELF"]))); | 32 | $sSectionName = $default->siteMap->getSectionName(substr($_SERVER["PHP_SELF"], strlen($default->rootUrl), strlen($_SERVER["PHP_SELF"]))); |
| @@ -37,7 +37,7 @@ function renderHeading($sHeading) { | @@ -37,7 +37,7 @@ function renderHeading($sHeading) { | ||
| 37 | $sToRender .= "<tr/>\n"; | 37 | $sToRender .= "<tr/>\n"; |
| 38 | $sToRender .= "</table>\n"; | 38 | $sToRender .= "</table>\n"; |
| 39 | return $sToRender; | 39 | return $sToRender; |
| 40 | -} | 40 | +}*/ |
| 41 | 41 | ||
| 42 | /** | 42 | /** |
| 43 | * Renders the path for the document | 43 | * Renders the path for the document |
presentation/lookAndFeel/knowledgeTree/discussions/viewDiscussionUI.inc
| @@ -57,7 +57,7 @@ function getNewThreadOption($fDocumentID) { | @@ -57,7 +57,7 @@ function getNewThreadOption($fDocumentID) { | ||
| 57 | * | 57 | * |
| 58 | * @param $sHeading -> text heading for the page | 58 | * @param $sHeading -> text heading for the page |
| 59 | */ | 59 | */ |
| 60 | -function renderHeading($sHeading) { | 60 | +/*function renderHeading($sHeading) { |
| 61 | global $default; | 61 | global $default; |
| 62 | 62 | ||
| 63 | $sSectionName = $default->siteMap->getSectionName(substr($_SERVER["PHP_SELF"], strlen($default->rootUrl), strlen($_SERVER["PHP_SELF"]))); | 63 | $sSectionName = $default->siteMap->getSectionName(substr($_SERVER["PHP_SELF"], strlen($default->rootUrl), strlen($_SERVER["PHP_SELF"]))); |
| @@ -68,7 +68,7 @@ function renderHeading($sHeading) { | @@ -68,7 +68,7 @@ function renderHeading($sHeading) { | ||
| 68 | $sToRender .= "<tr/>\n"; | 68 | $sToRender .= "<tr/>\n"; |
| 69 | $sToRender .= "</table>\n"; | 69 | $sToRender .= "</table>\n"; |
| 70 | return $sToRender; | 70 | return $sToRender; |
| 71 | -} | 71 | +}*/ |
| 72 | 72 | ||
| 73 | /** | 73 | /** |
| 74 | * Renders the path for the document | 74 | * Renders the path for the document |
presentation/lookAndFeel/knowledgeTree/documentmanagement/addDocumentLinkBL.php
| @@ -19,6 +19,7 @@ if (checkSession()) { | @@ -19,6 +19,7 @@ if (checkSession()) { | ||
| 19 | require_once("$default->fileSystemRoot/lib/documentmanagement/DocumentLink.inc"); | 19 | require_once("$default->fileSystemRoot/lib/documentmanagement/DocumentLink.inc"); |
| 20 | require_once("$default->fileSystemRoot/lib/visualpatterns/PatternCustom.inc"); | 20 | require_once("$default->fileSystemRoot/lib/visualpatterns/PatternCustom.inc"); |
| 21 | require_once("$default->fileSystemRoot/lib/security/permission.inc"); | 21 | require_once("$default->fileSystemRoot/lib/security/permission.inc"); |
| 22 | + require_once("$default->fileSystemRoot/presentation/Html.inc"); | ||
| 22 | require_once("addDocumentLinkUI.inc"); | 23 | require_once("addDocumentLinkUI.inc"); |
| 23 | 24 | ||
| 24 | if (Permission::userHasDocumentWritePermission($fDocumentID)) { | 25 | if (Permission::userHasDocumentWritePermission($fDocumentID)) { |
presentation/lookAndFeel/knowledgeTree/documentmanagement/addDocumentLinkUI.inc
| @@ -8,7 +8,7 @@ | @@ -8,7 +8,7 @@ | ||
| 8 | */ | 8 | */ |
| 9 | 9 | ||
| 10 | 10 | ||
| 11 | -function renderHeading($sHeading) { | 11 | +/*function renderHeading($sHeading) { |
| 12 | global $default; | 12 | global $default; |
| 13 | $sSectionName = $default->siteMap->getSectionName(substr($_SERVER["PHP_SELF"], strlen($default->rootUrl), strlen($_SERVER["PHP_SELF"]))); | 13 | $sSectionName = $default->siteMap->getSectionName(substr($_SERVER["PHP_SELF"], strlen($default->rootUrl), strlen($_SERVER["PHP_SELF"]))); |
| 14 | $sColor = $default->siteMap->getSectionColour($sSectionName, "th"); | 14 | $sColor = $default->siteMap->getSectionColour($sSectionName, "th"); |
| @@ -18,7 +18,7 @@ function renderHeading($sHeading) { | @@ -18,7 +18,7 @@ function renderHeading($sHeading) { | ||
| 18 | $sToRender .= "<tr/>\n"; | 18 | $sToRender .= "<tr/>\n"; |
| 19 | $sToRender .= "</table>\n"; | 19 | $sToRender .= "</table>\n"; |
| 20 | return $sToRender; | 20 | return $sToRender; |
| 21 | -} | 21 | +}*/ |
| 22 | 22 | ||
| 23 | function getPage($iDocumentID) { | 23 | function getPage($iDocumentID) { |
| 24 | global $default; | 24 | global $default; |
presentation/lookAndFeel/knowledgeTree/documentmanagement/archiving/addArchiveSettingsBL.php
| @@ -11,6 +11,7 @@ require_once("$default->fileSystemRoot/lib/visualpatterns/PatternTableSqlQuery.i | @@ -11,6 +11,7 @@ require_once("$default->fileSystemRoot/lib/visualpatterns/PatternTableSqlQuery.i | ||
| 11 | require_once("$default->fileSystemRoot/lib/visualpatterns/PatternListBox.inc"); | 11 | require_once("$default->fileSystemRoot/lib/visualpatterns/PatternListBox.inc"); |
| 12 | require_once("$default->uiDirectory/documentmanagement/documentUI.inc"); | 12 | require_once("$default->uiDirectory/documentmanagement/documentUI.inc"); |
| 13 | require_once("$default->uiDirectory/documentmanagement/archiving/archiveSettingsUI.inc"); | 13 | require_once("$default->uiDirectory/documentmanagement/archiving/archiveSettingsUI.inc"); |
| 14 | +require_once("$default->fileSystemRoot/presentation/Html.inc"); | ||
| 14 | 15 | ||
| 15 | /** | 16 | /** |
| 16 | * $Id$ | 17 | * $Id$ |
presentation/lookAndFeel/knowledgeTree/documentmanagement/archiving/archiveSettingsUI.inc
| @@ -18,7 +18,7 @@ require_once("../../../../../config/dmsDefaults.php"); | @@ -18,7 +18,7 @@ require_once("../../../../../config/dmsDefaults.php"); | ||
| 18 | * Display the heading | 18 | * Display the heading |
| 19 | * FIXME: need to refactor this | 19 | * FIXME: need to refactor this |
| 20 | */ | 20 | */ |
| 21 | -function renderHeading($sHeading) { | 21 | +/*function renderHeading($sHeading) { |
| 22 | global $default; | 22 | global $default; |
| 23 | $sSectionName = $default->siteMap->getSectionName(substr($_SERVER["PHP_SELF"], strlen($default->rootUrl), strlen($_SERVER["PHP_SELF"]))); | 23 | $sSectionName = $default->siteMap->getSectionName(substr($_SERVER["PHP_SELF"], strlen($default->rootUrl), strlen($_SERVER["PHP_SELF"]))); |
| 24 | $sColor = $default->siteMap->getSectionColour($sSectionName, "th"); | 24 | $sColor = $default->siteMap->getSectionColour($sSectionName, "th"); |
| @@ -28,7 +28,7 @@ function renderHeading($sHeading) { | @@ -28,7 +28,7 @@ function renderHeading($sHeading) { | ||
| 28 | $sToRender .= "<tr/>\n"; | 28 | $sToRender .= "<tr/>\n"; |
| 29 | $sToRender .= "</table>\n"; | 29 | $sToRender .= "</table>\n"; |
| 30 | return $sToRender; | 30 | return $sToRender; |
| 31 | -} | 31 | +}*/ |
| 32 | 32 | ||
| 33 | /** | 33 | /** |
| 34 | * Displays an error message | 34 | * Displays an error message |
presentation/lookAndFeel/knowledgeTree/documentmanagement/browseBL.php
| @@ -6,6 +6,7 @@ require_once("$default->fileSystemRoot/lib/browse/Browser.inc"); | @@ -6,6 +6,7 @@ require_once("$default->fileSystemRoot/lib/browse/Browser.inc"); | ||
| 6 | require_once("$default->fileSystemRoot/lib/documentmanagement/DocumentType.inc"); | 6 | require_once("$default->fileSystemRoot/lib/documentmanagement/DocumentType.inc"); |
| 7 | require_once("$default->fileSystemRoot/lib/visualpatterns/PatternCustom.inc"); | 7 | require_once("$default->fileSystemRoot/lib/visualpatterns/PatternCustom.inc"); |
| 8 | require_once("$default->uiDirectory/documentmanagement/browseUI.inc"); | 8 | require_once("$default->uiDirectory/documentmanagement/browseUI.inc"); |
| 9 | +require_once("$default->fileSystemRoot/presentation/Html.inc"); | ||
| 9 | 10 | ||
| 10 | /** | 11 | /** |
| 11 | * $Id$ | 12 | * $Id$ |
presentation/lookAndFeel/knowledgeTree/documentmanagement/browseUI.inc
| @@ -17,7 +17,7 @@ require_once("$default->uiDirectory/foldermanagement/addFolderUI.inc"); | @@ -17,7 +17,7 @@ require_once("$default->uiDirectory/foldermanagement/addFolderUI.inc"); | ||
| 17 | * @package presentation.lookAndFeel.knowledgeTree.documentmanagement | 17 | * @package presentation.lookAndFeel.knowledgeTree.documentmanagement |
| 18 | */ | 18 | */ |
| 19 | 19 | ||
| 20 | -function renderHeading($sHeading) { | 20 | +/*function renderHeading($sHeading) { |
| 21 | global $default; | 21 | global $default; |
| 22 | $sSectionName = $default->siteMap->getSectionName(substr($_SERVER["PHP_SELF"], strlen($default->rootUrl), strlen($_SERVER["PHP_SELF"]))); | 22 | $sSectionName = $default->siteMap->getSectionName(substr($_SERVER["PHP_SELF"], strlen($default->rootUrl), strlen($_SERVER["PHP_SELF"]))); |
| 23 | $sColor = $default->siteMap->getSectionColour($sSectionName, "th"); | 23 | $sColor = $default->siteMap->getSectionColour($sSectionName, "th"); |
| @@ -25,7 +25,7 @@ function renderHeading($sHeading) { | @@ -25,7 +25,7 @@ function renderHeading($sHeading) { | ||
| 25 | $sToRender .= "<tr align=\"left\"><th class=\"sectionHeading\" bgcolor=\"$sColor\"><font color=\"ffffff\">$sHeading</font></th></tr>\n"; | 25 | $sToRender .= "<tr align=\"left\"><th class=\"sectionHeading\" bgcolor=\"$sColor\"><font color=\"ffffff\">$sHeading</font></th></tr>\n"; |
| 26 | $sToRender .= "</table>\n"; | 26 | $sToRender .= "</table>\n"; |
| 27 | return $sToRender; | 27 | return $sToRender; |
| 28 | -} | 28 | +}*/ |
| 29 | 29 | ||
| 30 | /** | 30 | /** |
| 31 | * Generates radio button selects for document browse by type | 31 | * Generates radio button selects for document browse by type |
presentation/lookAndFeel/knowledgeTree/documentmanagement/deleteDocumentUI.inc
| @@ -9,7 +9,7 @@ | @@ -9,7 +9,7 @@ | ||
| 9 | * | 9 | * |
| 10 | */ | 10 | */ |
| 11 | 11 | ||
| 12 | -function renderHeading($sHeading) { | 12 | +/*function renderHeading($sHeading) { |
| 13 | global $default; | 13 | global $default; |
| 14 | $sSectionName = $default->siteMap->getSectionName(substr($_SERVER["PHP_SELF"], strlen($default->rootUrl), strlen($_SERVER["PHP_SELF"]))); | 14 | $sSectionName = $default->siteMap->getSectionName(substr($_SERVER["PHP_SELF"], strlen($default->rootUrl), strlen($_SERVER["PHP_SELF"]))); |
| 15 | $sColor = $default->siteMap->getSectionColour($sSectionName, "th"); | 15 | $sColor = $default->siteMap->getSectionColour($sSectionName, "th"); |
| @@ -19,7 +19,7 @@ function renderHeading($sHeading) { | @@ -19,7 +19,7 @@ function renderHeading($sHeading) { | ||
| 19 | $sToRender .= "<tr/>\n"; | 19 | $sToRender .= "<tr/>\n"; |
| 20 | $sToRender .= "</table>\n"; | 20 | $sToRender .= "</table>\n"; |
| 21 | return $sToRender; | 21 | return $sToRender; |
| 22 | -} | 22 | +}*/ |
| 23 | 23 | ||
| 24 | function getDocumentPath($iFolderID, $sDocumentName) { | 24 | function getDocumentPath($iFolderID, $sDocumentName) { |
| 25 | global $default; | 25 | global $default; |
presentation/lookAndFeel/knowledgeTree/documentmanagement/emailUI.inc
| @@ -8,7 +8,7 @@ | @@ -8,7 +8,7 @@ | ||
| 8 | * | 8 | * |
| 9 | */ | 9 | */ |
| 10 | 10 | ||
| 11 | -function renderHeading($sHeading) { | 11 | +/*function renderHeading($sHeading) { |
| 12 | global $default; | 12 | global $default; |
| 13 | $sSectionName = $default->siteMap->getSectionName(substr($_SERVER["PHP_SELF"], strlen($default->rootUrl), strlen($_SERVER["PHP_SELF"]))); | 13 | $sSectionName = $default->siteMap->getSectionName(substr($_SERVER["PHP_SELF"], strlen($default->rootUrl), strlen($_SERVER["PHP_SELF"]))); |
| 14 | $sColor = $default->siteMap->getSectionColour($sSectionName, "th"); | 14 | $sColor = $default->siteMap->getSectionColour($sSectionName, "th"); |
| @@ -18,7 +18,7 @@ function renderHeading($sHeading) { | @@ -18,7 +18,7 @@ function renderHeading($sHeading) { | ||
| 18 | $sToRender .= "<tr/>\n"; | 18 | $sToRender .= "<tr/>\n"; |
| 19 | $sToRender .= "</table>\n"; | 19 | $sToRender .= "</table>\n"; |
| 20 | return $sToRender; | 20 | return $sToRender; |
| 21 | -} | 21 | +}*/ |
| 22 | 22 | ||
| 23 | function getDocumentPath($oDocument) { | 23 | function getDocumentPath($oDocument) { |
| 24 | global $default; | 24 | global $default; |
presentation/lookAndFeel/knowledgeTree/documentmanagement/moveDocumentUI.inc
| 1 | <?php | 1 | <?php |
| 2 | 2 | ||
| 3 | -function renderHeading($sHeading) { | 3 | +/*function renderHeading($sHeading) { |
| 4 | global $default; | 4 | global $default; |
| 5 | $sSectionName = $default->siteMap->getSectionName(substr($_SERVER["PHP_SELF"], strlen($default->rootUrl), strlen($_SERVER["PHP_SELF"]))); | 5 | $sSectionName = $default->siteMap->getSectionName(substr($_SERVER["PHP_SELF"], strlen($default->rootUrl), strlen($_SERVER["PHP_SELF"]))); |
| 6 | $sColor = $default->siteMap->getSectionColour($sSectionName, "th"); | 6 | $sColor = $default->siteMap->getSectionColour($sSectionName, "th"); |
| @@ -10,7 +10,7 @@ function renderHeading($sHeading) { | @@ -10,7 +10,7 @@ function renderHeading($sHeading) { | ||
| 10 | $sToRender .= "<tr/>\n"; | 10 | $sToRender .= "<tr/>\n"; |
| 11 | $sToRender .= "</table>\n"; | 11 | $sToRender .= "</table>\n"; |
| 12 | return $sToRender; | 12 | return $sToRender; |
| 13 | -} | 13 | +}*/ |
| 14 | 14 | ||
| 15 | function getPage($iFolderID, $iDocumentID) { | 15 | function getPage($iFolderID, $iDocumentID) { |
| 16 | global $default; | 16 | global $default; |
presentation/lookAndFeel/knowledgeTree/documentmanagement/removeDocumentLinkUI.inc
| @@ -6,7 +6,7 @@ | @@ -6,7 +6,7 @@ | ||
| 6 | * @date 22 May 2003 | 6 | * @date 22 May 2003 |
| 7 | */ | 7 | */ |
| 8 | 8 | ||
| 9 | -function renderHeading() { | 9 | +/*function renderHeading() { |
| 10 | global $default; | 10 | global $default; |
| 11 | $sSectionName = $default->siteMap->getSectionName(substr($_SERVER["PHP_SELF"], strlen($default->rootUrl), strlen($_SERVER["PHP_SELF"]))); | 11 | $sSectionName = $default->siteMap->getSectionName(substr($_SERVER["PHP_SELF"], strlen($default->rootUrl), strlen($_SERVER["PHP_SELF"]))); |
| 12 | $sColor = $default->siteMap->getSectionColour($sSectionName, "th"); | 12 | $sColor = $default->siteMap->getSectionColour($sSectionName, "th"); |
| @@ -16,7 +16,7 @@ function renderHeading() { | @@ -16,7 +16,7 @@ function renderHeading() { | ||
| 16 | $sToRender .= "<tr/>\n"; | 16 | $sToRender .= "<tr/>\n"; |
| 17 | $sToRender .= "</table>\n"; | 17 | $sToRender .= "</table>\n"; |
| 18 | return $sToRender; | 18 | return $sToRender; |
| 19 | -} | 19 | +}*/ |
| 20 | 20 | ||
| 21 | function getPage($sParentDocumentName, $sChildDocumentName, $iParentDocumentID) { | 21 | function getPage($sParentDocumentName, $sChildDocumentName, $iParentDocumentID) { |
| 22 | global $default; | 22 | global $default; |
presentation/lookAndFeel/knowledgeTree/documentmanagement/templateDocumentBrowseBL.php
| @@ -6,6 +6,7 @@ require_once("$default->fileSystemRoot/lib/browse/Browser.inc"); | @@ -6,6 +6,7 @@ require_once("$default->fileSystemRoot/lib/browse/Browser.inc"); | ||
| 6 | require_once("$default->fileSystemRoot/lib/documentmanagement/DocumentType.inc"); | 6 | require_once("$default->fileSystemRoot/lib/documentmanagement/DocumentType.inc"); |
| 7 | require_once("$default->fileSystemRoot/lib/visualpatterns/PatternCustom.inc"); | 7 | require_once("$default->fileSystemRoot/lib/visualpatterns/PatternCustom.inc"); |
| 8 | require_once("$default->uiDirectory/documentmanagement/templateDocumentBrowseUI.inc"); | 8 | require_once("$default->uiDirectory/documentmanagement/templateDocumentBrowseUI.inc"); |
| 9 | +require_once("$default->fileSystemRoot/presentation/Html.inc"); | ||
| 9 | 10 | ||
| 10 | /** | 11 | /** |
| 11 | * This page very closely follows browseBL.php. This page is ONLY used when a user | 12 | * This page very closely follows browseBL.php. This page is ONLY used when a user |
presentation/lookAndFeel/knowledgeTree/documentmanagement/templateDocumentBrowseUI.inc
| @@ -17,7 +17,7 @@ require_once("$default->uiDirectory/foldermanagement/addFolderUI.inc"); | @@ -17,7 +17,7 @@ require_once("$default->uiDirectory/foldermanagement/addFolderUI.inc"); | ||
| 17 | * @package presentation.lookAndFeel.knowledgeTree.documentmanagement | 17 | * @package presentation.lookAndFeel.knowledgeTree.documentmanagement |
| 18 | */ | 18 | */ |
| 19 | 19 | ||
| 20 | -function renderHeading($sHeading) { | 20 | +/*function renderHeading($sHeading) { |
| 21 | global $default; | 21 | global $default; |
| 22 | $sSectionName = $default->siteMap->getSectionName(substr($_SERVER["PHP_SELF"], strlen($default->rootUrl), strlen($_SERVER["PHP_SELF"]))); | 22 | $sSectionName = $default->siteMap->getSectionName(substr($_SERVER["PHP_SELF"], strlen($default->rootUrl), strlen($_SERVER["PHP_SELF"]))); |
| 23 | $sColor = $default->siteMap->getSectionColour($sSectionName, "th"); | 23 | $sColor = $default->siteMap->getSectionColour($sSectionName, "th"); |
| @@ -27,7 +27,7 @@ function renderHeading($sHeading) { | @@ -27,7 +27,7 @@ function renderHeading($sHeading) { | ||
| 27 | $sToRender .= "<tr/>\n"; | 27 | $sToRender .= "<tr/>\n"; |
| 28 | $sToRender .= "</table>\n"; | 28 | $sToRender .= "</table>\n"; |
| 29 | return $sToRender; | 29 | return $sToRender; |
| 30 | -} | 30 | +}*/ |
| 31 | 31 | ||
| 32 | /** | 32 | /** |
| 33 | * Generates radio button selects for document browse by type | 33 | * Generates radio button selects for document browse by type |
presentation/lookAndFeel/knowledgeTree/documentmanagement/viewHistoryBL.php
| @@ -29,7 +29,7 @@ require_once("$default->fileSystemRoot/lib/visualpatterns/PatternCustom.inc"); | @@ -29,7 +29,7 @@ require_once("$default->fileSystemRoot/lib/visualpatterns/PatternCustom.inc"); | ||
| 29 | 29 | ||
| 30 | require_once("$default->fileSystemRoot/presentation/lookAndFeel/knowledgeTree/documentmanagement/viewHistoryUI.inc"); | 30 | require_once("$default->fileSystemRoot/presentation/lookAndFeel/knowledgeTree/documentmanagement/viewHistoryUI.inc"); |
| 31 | require_once("$default->fileSystemRoot/presentation/lookAndFeel/knowledgeTree/foldermanagement/folderUI.inc"); | 31 | require_once("$default->fileSystemRoot/presentation/lookAndFeel/knowledgeTree/foldermanagement/folderUI.inc"); |
| 32 | -//require_once("$default->fileSystemRoot/presentation/Html.inc"); | 32 | +require_once("$default->fileSystemRoot/presentation/Html.inc"); |
| 33 | 33 | ||
| 34 | if (checkSession()) { | 34 | if (checkSession()) { |
| 35 | require_once("$default->fileSystemRoot/presentation/webpageTemplate.inc"); | 35 | require_once("$default->fileSystemRoot/presentation/webpageTemplate.inc"); |
presentation/lookAndFeel/knowledgeTree/documentmanagement/viewHistoryUI.inc
| @@ -9,7 +9,7 @@ | @@ -9,7 +9,7 @@ | ||
| 9 | * @package presentation.lookAndFeel.knowledgeTree.documentManager | 9 | * @package presentation.lookAndFeel.knowledgeTree.documentManager |
| 10 | */ | 10 | */ |
| 11 | 11 | ||
| 12 | -function renderHeading($sHeading) { | 12 | +/*function renderHeading($sHeading) { |
| 13 | global $default; | 13 | global $default; |
| 14 | $sSectionName = $default->siteMap->getSectionName(substr($_SERVER["PHP_SELF"], strlen($default->rootUrl), strlen($_SERVER["PHP_SELF"]))); | 14 | $sSectionName = $default->siteMap->getSectionName(substr($_SERVER["PHP_SELF"], strlen($default->rootUrl), strlen($_SERVER["PHP_SELF"]))); |
| 15 | $sColor = $default->siteMap->getSectionColour($sSectionName, "th"); | 15 | $sColor = $default->siteMap->getSectionColour($sSectionName, "th"); |
| @@ -19,7 +19,7 @@ function renderHeading($sHeading) { | @@ -19,7 +19,7 @@ function renderHeading($sHeading) { | ||
| 19 | $sToRender .= "<tr/>\n"; | 19 | $sToRender .= "<tr/>\n"; |
| 20 | $sToRender .= "</table>\n"; | 20 | $sToRender .= "</table>\n"; |
| 21 | return $sToRender; | 21 | return $sToRender; |
| 22 | -} | 22 | +}*/ |
| 23 | 23 | ||
| 24 | function getDocumentPath($iFolderID, $sDocumentName) { | 24 | function getDocumentPath($iFolderID, $sDocumentName) { |
| 25 | global $default; | 25 | global $default; |
presentation/lookAndFeel/knowledgeTree/documentmanagement/viewUI.inc
| @@ -13,7 +13,7 @@ | @@ -13,7 +13,7 @@ | ||
| 13 | * @package presentation.lookAndFeel.knowledgeTree.documentManager | 13 | * @package presentation.lookAndFeel.knowledgeTree.documentManager |
| 14 | */ | 14 | */ |
| 15 | 15 | ||
| 16 | -function renderHeading() { | 16 | +/*function renderHeading() { |
| 17 | global $default; | 17 | global $default; |
| 18 | $sSectionName = $default->siteMap->getSectionName(substr($_SERVER["PHP_SELF"], strlen($default->rootUrl), strlen($_SERVER["PHP_SELF"]))); | 18 | $sSectionName = $default->siteMap->getSectionName(substr($_SERVER["PHP_SELF"], strlen($default->rootUrl), strlen($_SERVER["PHP_SELF"]))); |
| 19 | $sColor = $default->siteMap->getSectionColour($sSectionName, "th"); | 19 | $sColor = $default->siteMap->getSectionColour($sSectionName, "th"); |
| @@ -23,7 +23,7 @@ function renderHeading() { | @@ -23,7 +23,7 @@ function renderHeading() { | ||
| 23 | $sToRender .= "<tr/>\n"; | 23 | $sToRender .= "<tr/>\n"; |
| 24 | $sToRender .= "</table>\n"; | 24 | $sToRender .= "</table>\n"; |
| 25 | return $sToRender; | 25 | return $sToRender; |
| 26 | -} | 26 | +}*/ |
| 27 | 27 | ||
| 28 | function renderDocumentPath($oDocument) { | 28 | function renderDocumentPath($oDocument) { |
| 29 | global $default; | 29 | global $default; |
| @@ -229,7 +229,7 @@ function displayActionButtons($oDocument, $bEdit) { | @@ -229,7 +229,7 @@ function displayActionButtons($oDocument, $bEdit) { | ||
| 229 | function getEditPage($oDocument) { | 229 | function getEditPage($oDocument) { |
| 230 | global $default; | 230 | global $default; |
| 231 | $iDocumentID = $oDocument->getID(); | 231 | $iDocumentID = $oDocument->getID(); |
| 232 | - $sToRender = renderHeading() . renderDocumentPath($oDocument) . "\n<br>\n"; | 232 | + $sToRender = renderHeading("Document Detail") . renderDocumentPath($oDocument) . "\n<br>\n"; |
| 233 | 233 | ||
| 234 | $sToRender .= "<table>\n"; | 234 | $sToRender .= "<table>\n"; |
| 235 | $sToRender .= "<tr>\n"; | 235 | $sToRender .= "<tr>\n"; |
| @@ -340,7 +340,7 @@ function getEditPage($oDocument) { | @@ -340,7 +340,7 @@ function getEditPage($oDocument) { | ||
| 340 | function getViewPage($oDocument) { | 340 | function getViewPage($oDocument) { |
| 341 | global $default; | 341 | global $default; |
| 342 | $iDocumentID = $oDocument->getID(); | 342 | $iDocumentID = $oDocument->getID(); |
| 343 | - $sToRender = renderHeading() . renderDocumentPath($oDocument) . "\n<br>\n"; | 343 | + $sToRender = renderHeading("Document Detail") . renderDocumentPath($oDocument) . "\n<br>\n"; |
| 344 | 344 | ||
| 345 | $sToRender .= "<table>\n"; | 345 | $sToRender .= "<table>\n"; |
| 346 | $sToRender .= "<tr>\n"; | 346 | $sToRender .= "<tr>\n"; |
| @@ -398,7 +398,7 @@ function getViewPage($oDocument) { | @@ -398,7 +398,7 @@ function getViewPage($oDocument) { | ||
| 398 | */ | 398 | */ |
| 399 | function getCheckOutEditPage($oDocument, $bCheckedOut = false) { | 399 | function getCheckOutEditPage($oDocument, $bCheckedOut = false) { |
| 400 | global $default; | 400 | global $default; |
| 401 | - $sToRender = renderHeading() . renderDocumentPath($oDocument) . "\n<br>\n"; | 401 | + $sToRender = renderHeading("Document Detail") . renderDocumentPath($oDocument) . "\n<br>\n"; |
| 402 | $sToRender .= "<table border = 0>\n"; | 402 | $sToRender .= "<table border = 0>\n"; |
| 403 | $sToRender .= "<tr>\n"; | 403 | $sToRender .= "<tr>\n"; |
| 404 | $sToRender .= "<td>\n"; | 404 | $sToRender .= "<td>\n"; |
| @@ -446,7 +446,7 @@ function getCheckOutEditPage($oDocument, $bCheckedOut = false) { | @@ -446,7 +446,7 @@ function getCheckOutEditPage($oDocument, $bCheckedOut = false) { | ||
| 446 | */ | 446 | */ |
| 447 | function getCheckInEditPage($oDocument) { | 447 | function getCheckInEditPage($oDocument) { |
| 448 | global $default; | 448 | global $default; |
| 449 | - $sToRender = renderHeading() . renderDocumentPath($oDocument) . "\n<br>\n"; | 449 | + $sToRender = renderHeading("Document Detail") . renderDocumentPath($oDocument) . "\n<br>\n"; |
| 450 | $sToRender .= "<table border = 0>\n"; | 450 | $sToRender .= "<table border = 0>\n"; |
| 451 | $sToRender .= "<tr>\n"; | 451 | $sToRender .= "<tr>\n"; |
| 452 | $sToRender .= "<td>\n"; | 452 | $sToRender .= "<td>\n"; |
| @@ -483,7 +483,7 @@ function getWebPublishPage($oDocument) { | @@ -483,7 +483,7 @@ function getWebPublishPage($oDocument) { | ||
| 483 | 483 | ||
| 484 | $oPatternListBox = & new PatternListBox($default->owl_web_sites_table, "web_site_name", "id", "fWebSiteID"); | 484 | $oPatternListBox = & new PatternListBox($default->owl_web_sites_table, "web_site_name", "id", "fWebSiteID"); |
| 485 | 485 | ||
| 486 | - $sToRender = renderHeading() . renderDocumentPath($oDocument) . "\n<br>\n"; | 486 | + $sToRender = renderHeading("Document Detail") . renderDocumentPath($oDocument) . "\n<br>\n"; |
| 487 | $sToRender .= "<table border = 0>\n"; | 487 | $sToRender .= "<table border = 0>\n"; |
| 488 | $sToRender .= "<tr>\n"; | 488 | $sToRender .= "<tr>\n"; |
| 489 | $sToRender .= "<td>\n"; | 489 | $sToRender .= "<td>\n"; |
presentation/lookAndFeel/knowledgeTree/documentmanagement/webDocumentBL.php
| @@ -8,6 +8,7 @@ require_once("$default->fileSystemRoot/lib/documentmanagement/DocumentCollaborat | @@ -8,6 +8,7 @@ require_once("$default->fileSystemRoot/lib/documentmanagement/DocumentCollaborat | ||
| 8 | require_once("$default->fileSystemRoot/lib/web/WebDocument.inc"); | 8 | require_once("$default->fileSystemRoot/lib/web/WebDocument.inc"); |
| 9 | require_once("$default->fileSystemRoot/lib/web/WebSite.inc"); | 9 | require_once("$default->fileSystemRoot/lib/web/WebSite.inc"); |
| 10 | require_once("$default->fileSystemRoot/lib/visualpatterns/PatternCustom.inc"); | 10 | require_once("$default->fileSystemRoot/lib/visualpatterns/PatternCustom.inc"); |
| 11 | +require_once("$default->fileSystemRoot/presentation/Html.inc"); | ||
| 11 | require_once("webDocumentUI.inc"); | 12 | require_once("webDocumentUI.inc"); |
| 12 | 13 | ||
| 13 | /** | 14 | /** |
presentation/lookAndFeel/knowledgeTree/documentmanagement/webDocumentUI.inc
| @@ -12,7 +12,7 @@ | @@ -12,7 +12,7 @@ | ||
| 12 | * @package presentation.lookAndFeel.knowledgeTree.documentmanagement | 12 | * @package presentation.lookAndFeel.knowledgeTree.documentmanagement |
| 13 | */ | 13 | */ |
| 14 | 14 | ||
| 15 | -function renderHeading() { | 15 | +/*function renderHeading() { |
| 16 | global $default; | 16 | global $default; |
| 17 | $sSectionName = $default->siteMap->getSectionName(substr($_SERVER["PHP_SELF"], strlen($default->rootUrl), strlen($_SERVER["PHP_SELF"]))); | 17 | $sSectionName = $default->siteMap->getSectionName(substr($_SERVER["PHP_SELF"], strlen($default->rootUrl), strlen($_SERVER["PHP_SELF"]))); |
| 18 | $sColor = $default->siteMap->getSectionColour($sSectionName, "th"); | 18 | $sColor = $default->siteMap->getSectionColour($sSectionName, "th"); |
| @@ -22,7 +22,7 @@ function renderHeading() { | @@ -22,7 +22,7 @@ function renderHeading() { | ||
| 22 | $sToRender .= "<tr/>\n"; | 22 | $sToRender .= "<tr/>\n"; |
| 23 | $sToRender .= "</table>\n"; | 23 | $sToRender .= "</table>\n"; |
| 24 | return $sToRender; | 24 | return $sToRender; |
| 25 | -} | 25 | +}*/ |
| 26 | 26 | ||
| 27 | /** | 27 | /** |
| 28 | * Prompts the user for a checkout comment | 28 | * Prompts the user for a checkout comment |
| @@ -35,7 +35,7 @@ function renderUploadPage($oWebDocument) { | @@ -35,7 +35,7 @@ function renderUploadPage($oWebDocument) { | ||
| 35 | $oWebSite = WebSite::get($oWebDocument->getWebSiteID()); | 35 | $oWebSite = WebSite::get($oWebDocument->getWebSiteID()); |
| 36 | $oUser = User::get($oDocument->getCreatorID()); | 36 | $oUser = User::get($oDocument->getCreatorID()); |
| 37 | 37 | ||
| 38 | - $sToRender = renderHeading(); | 38 | + $sToRender = renderHeading("Web document"); |
| 39 | $sToRender .= "<table>\n"; | 39 | $sToRender .= "<table>\n"; |
| 40 | $sToRender .= "<tr><td>'" . $oUser->getName() . "' has requested that the document </td></tr>"; | 40 | $sToRender .= "<tr><td>'" . $oUser->getName() . "' has requested that the document </td></tr>"; |
| 41 | $sToRender .= "<tr><td><strong>" . generateControllerLink("viewDocument", "fDocumentID=" . $oDocument->getID(), $oDocument->getDisplayPath()) . "</strong></td></tr>"; | 41 | $sToRender .= "<tr><td><strong>" . generateControllerLink("viewDocument", "fDocumentID=" . $oDocument->getID(), $oDocument->getDisplayPath()) . "</strong></td></tr>"; |
presentation/lookAndFeel/knowledgeTree/foldermanagement/addFolderCollaborationBL.php
| @@ -18,6 +18,7 @@ if (checkSession()) { | @@ -18,6 +18,7 @@ if (checkSession()) { | ||
| 18 | include_once("$default->fileSystemRoot/lib/foldermanagement/Folder.inc"); | 18 | include_once("$default->fileSystemRoot/lib/foldermanagement/Folder.inc"); |
| 19 | include_once("$default->fileSystemRoot/lib/security/permission.inc"); | 19 | include_once("$default->fileSystemRoot/lib/security/permission.inc"); |
| 20 | include_once("$default->fileSystemRoot/lib/users/User.inc"); | 20 | include_once("$default->fileSystemRoot/lib/users/User.inc"); |
| 21 | + require_once("$default->fileSystemRoot/presentation/Html.inc"); | ||
| 21 | if (Permission::userHasFolderWritePermission($fFolderID)) { | 22 | if (Permission::userHasFolderWritePermission($fFolderID)) { |
| 22 | //can only create new collaboration steps if the user has folder write permission | 23 | //can only create new collaboration steps if the user has folder write permission |
| 23 | if (isset($fForStore)) { | 24 | if (isset($fForStore)) { |
presentation/lookAndFeel/knowledgeTree/foldermanagement/addFolderCollaborationUI.inc
| @@ -9,7 +9,7 @@ | @@ -9,7 +9,7 @@ | ||
| 9 | * | 9 | * |
| 10 | */ | 10 | */ |
| 11 | 11 | ||
| 12 | -function renderHeading($sHeading) { | 12 | +/*function renderHeading($sHeading) { |
| 13 | global $default; | 13 | global $default; |
| 14 | $sSectionName = $default->siteMap->getSectionName(substr($_SERVER["PHP_SELF"], strlen($default->rootUrl), strlen($_SERVER["PHP_SELF"]))); | 14 | $sSectionName = $default->siteMap->getSectionName(substr($_SERVER["PHP_SELF"], strlen($default->rootUrl), strlen($_SERVER["PHP_SELF"]))); |
| 15 | $sColor = $default->siteMap->getSectionColour($sSectionName, "th"); | 15 | $sColor = $default->siteMap->getSectionColour($sSectionName, "th"); |
| @@ -19,7 +19,7 @@ function renderHeading($sHeading) { | @@ -19,7 +19,7 @@ function renderHeading($sHeading) { | ||
| 19 | $sToRender .= "<tr/>\n"; | 19 | $sToRender .= "<tr/>\n"; |
| 20 | $sToRender .= "</table>\n"; | 20 | $sToRender .= "</table>\n"; |
| 21 | return $sToRender; | 21 | return $sToRender; |
| 22 | -} | 22 | +}*/ |
| 23 | 23 | ||
| 24 | 24 | ||
| 25 | function getPage($iFolderID, $iGroupID, $iRoleID, $iSequenceNumber) { | 25 | function getPage($iFolderID, $iGroupID, $iRoleID, $iSequenceNumber) { |
presentation/lookAndFeel/knowledgeTree/foldermanagement/addFolderDocTypeUI.inc
| @@ -7,7 +7,7 @@ | @@ -7,7 +7,7 @@ | ||
| 7 | * @package presentation.lookAndFeel.knowledgeTree.foldermanagement | 7 | * @package presentation.lookAndFeel.knowledgeTree.foldermanagement |
| 8 | */ | 8 | */ |
| 9 | 9 | ||
| 10 | -function renderHeading($sHeading) { | 10 | +/*function renderHeading($sHeading) { |
| 11 | global $default; | 11 | global $default; |
| 12 | $sSectionName = $default->siteMap->getSectionName(substr($_SERVER["PHP_SELF"], strlen($default->rootUrl), strlen($_SERVER["PHP_SELF"]))); | 12 | $sSectionName = $default->siteMap->getSectionName(substr($_SERVER["PHP_SELF"], strlen($default->rootUrl), strlen($_SERVER["PHP_SELF"]))); |
| 13 | $sColor = $default->siteMap->getSectionColour($sSectionName, "th"); | 13 | $sColor = $default->siteMap->getSectionColour($sSectionName, "th"); |
| @@ -17,7 +17,7 @@ function renderHeading($sHeading) { | @@ -17,7 +17,7 @@ function renderHeading($sHeading) { | ||
| 17 | $sToRender .= "<tr/>\n"; | 17 | $sToRender .= "<tr/>\n"; |
| 18 | $sToRender .= "</table>\n"; | 18 | $sToRender .= "</table>\n"; |
| 19 | return $sToRender; | 19 | return $sToRender; |
| 20 | -} | 20 | +}*/ |
| 21 | 21 | ||
| 22 | function getPage($iFolderID, $iDocumentTypeID) { | 22 | function getPage($iFolderID, $iDocumentTypeID) { |
| 23 | global $default; | 23 | global $default; |
presentation/lookAndFeel/knowledgeTree/foldermanagement/collaborationUI.inc
| @@ -8,7 +8,7 @@ | @@ -8,7 +8,7 @@ | ||
| 8 | * | 8 | * |
| 9 | */ | 9 | */ |
| 10 | 10 | ||
| 11 | -function renderHeading($sHeading) { | 11 | +/*function renderHeading($sHeading) { |
| 12 | global $default; | 12 | global $default; |
| 13 | $sSectionName = $default->siteMap->getSectionName(substr($_SERVER["PHP_SELF"], strlen($default->rootUrl), strlen($_SERVER["PHP_SELF"]))); | 13 | $sSectionName = $default->siteMap->getSectionName(substr($_SERVER["PHP_SELF"], strlen($default->rootUrl), strlen($_SERVER["PHP_SELF"]))); |
| 14 | $sColor = $default->siteMap->getSectionColour($sSectionName, "th"); | 14 | $sColor = $default->siteMap->getSectionColour($sSectionName, "th"); |
| @@ -18,7 +18,8 @@ function renderHeading($sHeading) { | @@ -18,7 +18,8 @@ function renderHeading($sHeading) { | ||
| 18 | $sToRender .= "<tr/>\n"; | 18 | $sToRender .= "<tr/>\n"; |
| 19 | $sToRender .= "</table>\n"; | 19 | $sToRender .= "</table>\n"; |
| 20 | return $sToRender; | 20 | return $sToRender; |
| 21 | -} | 21 | +}*/ |
| 22 | + | ||
| 22 | function getFolderPath($iFolderID) { | 23 | function getFolderPath($iFolderID) { |
| 23 | global $default; | 24 | global $default; |
| 24 | $sSectionName = $default->siteMap->getSectionName(substr($_SERVER["PHP_SELF"], strlen($default->rootUrl), strlen($_SERVER["PHP_SELF"]))); | 25 | $sSectionName = $default->siteMap->getSectionName(substr($_SERVER["PHP_SELF"], strlen($default->rootUrl), strlen($_SERVER["PHP_SELF"]))); |
presentation/lookAndFeel/knowledgeTree/foldermanagement/deleteDependantDocumentUI.inc
| @@ -7,7 +7,7 @@ | @@ -7,7 +7,7 @@ | ||
| 7 | * @package presentation.lookAndFeel.knowledgeTree.foldermanagement | 7 | * @package presentation.lookAndFeel.knowledgeTree.foldermanagement |
| 8 | */ | 8 | */ |
| 9 | 9 | ||
| 10 | -function renderHeading($sHeading) { | 10 | +/*function renderHeading($sHeading) { |
| 11 | global $default; | 11 | global $default; |
| 12 | $sSectionName = $default->siteMap->getSectionName(substr($_SERVER["PHP_SELF"], strlen($default->rootUrl), strlen($_SERVER["PHP_SELF"]))); | 12 | $sSectionName = $default->siteMap->getSectionName(substr($_SERVER["PHP_SELF"], strlen($default->rootUrl), strlen($_SERVER["PHP_SELF"]))); |
| 13 | $sColor = $default->siteMap->getSectionColour($sSectionName, "th"); | 13 | $sColor = $default->siteMap->getSectionColour($sSectionName, "th"); |
| @@ -17,7 +17,7 @@ function renderHeading($sHeading) { | @@ -17,7 +17,7 @@ function renderHeading($sHeading) { | ||
| 17 | $sToRender .= "<tr/>\n"; | 17 | $sToRender .= "<tr/>\n"; |
| 18 | $sToRender .= "</table>\n"; | 18 | $sToRender .= "</table>\n"; |
| 19 | return $sToRender; | 19 | return $sToRender; |
| 20 | -} | 20 | +}*/ |
| 21 | 21 | ||
| 22 | function getPage($iFolderID, $iFolderCollaborationID, $sDocumentTitle, $sUserName, $sTemplateDocument) { | 22 | function getPage($iFolderID, $iFolderCollaborationID, $sDocumentTitle, $sUserName, $sTemplateDocument) { |
| 23 | global $default; | 23 | global $default; |
presentation/lookAndFeel/knowledgeTree/foldermanagement/deleteFolderCollaborationBL.php
| @@ -22,6 +22,7 @@ if (checkSession()) { | @@ -22,6 +22,7 @@ if (checkSession()) { | ||
| 22 | include_once("$default->fileSystemRoot/lib/foldermanagement/FolderCollaboration.inc"); | 22 | include_once("$default->fileSystemRoot/lib/foldermanagement/FolderCollaboration.inc"); |
| 23 | include_once("$default->fileSystemRoot/lib/groups/Group.inc"); | 23 | include_once("$default->fileSystemRoot/lib/groups/Group.inc"); |
| 24 | include_once("$default->fileSystemRoot/lib/roles/Role.inc"); | 24 | include_once("$default->fileSystemRoot/lib/roles/Role.inc"); |
| 25 | + require_once("$default->fileSystemRoot/presentation/Html.inc"); | ||
| 25 | if (Permission::userHasFolderWritePermission($fFolderID)) { | 26 | if (Permission::userHasFolderWritePermission($fFolderID)) { |
| 26 | //can only delete new collaboration steps if the user has folder write permission | 27 | //can only delete new collaboration steps if the user has folder write permission |
| 27 | if (isset($fForDelete)) { | 28 | if (isset($fForDelete)) { |
presentation/lookAndFeel/knowledgeTree/foldermanagement/deleteFolderCollaborationUI.inc
| @@ -9,7 +9,7 @@ | @@ -9,7 +9,7 @@ | ||
| 9 | * | 9 | * |
| 10 | */ | 10 | */ |
| 11 | 11 | ||
| 12 | -function renderHeading($sHeading) { | 12 | +/*function renderHeading($sHeading) { |
| 13 | global $default; | 13 | global $default; |
| 14 | $sSectionName = $default->siteMap->getSectionName(substr($_SERVER["PHP_SELF"], strlen($default->rootUrl), strlen($_SERVER["PHP_SELF"]))); | 14 | $sSectionName = $default->siteMap->getSectionName(substr($_SERVER["PHP_SELF"], strlen($default->rootUrl), strlen($_SERVER["PHP_SELF"]))); |
| 15 | $sColor = $default->siteMap->getSectionColour($sSectionName, "th"); | 15 | $sColor = $default->siteMap->getSectionColour($sSectionName, "th"); |
| @@ -19,7 +19,8 @@ function renderHeading($sHeading) { | @@ -19,7 +19,8 @@ function renderHeading($sHeading) { | ||
| 19 | $sToRender .= "<tr/>\n"; | 19 | $sToRender .= "<tr/>\n"; |
| 20 | $sToRender .= "</table>\n"; | 20 | $sToRender .= "</table>\n"; |
| 21 | return $sToRender; | 21 | return $sToRender; |
| 22 | -} | 22 | +}*/ |
| 23 | + | ||
| 23 | function getFolderPath($iFolderID) { | 24 | function getFolderPath($iFolderID) { |
| 24 | global $default; | 25 | global $default; |
| 25 | $sSectionName = $default->siteMap->getSectionName(substr($_SERVER["PHP_SELF"], strlen($default->rootUrl), strlen($_SERVER["PHP_SELF"]))); | 26 | $sSectionName = $default->siteMap->getSectionName(substr($_SERVER["PHP_SELF"], strlen($default->rootUrl), strlen($_SERVER["PHP_SELF"]))); |
presentation/lookAndFeel/knowledgeTree/foldermanagement/deleteFolderUI.inc
| @@ -10,7 +10,7 @@ | @@ -10,7 +10,7 @@ | ||
| 10 | * @package presentation.lookAndFeel.knowledgeTree.foldermanagement | 10 | * @package presentation.lookAndFeel.knowledgeTree.foldermanagement |
| 11 | */ | 11 | */ |
| 12 | 12 | ||
| 13 | - function renderHeading($sHeading) { | 13 | + /*function renderHeading($sHeading) { |
| 14 | global $default; | 14 | global $default; |
| 15 | $sSectionName = $default->siteMap->getSectionName(substr($_SERVER["PHP_SELF"], strlen($default->rootUrl), strlen($_SERVER["PHP_SELF"]))); | 15 | $sSectionName = $default->siteMap->getSectionName(substr($_SERVER["PHP_SELF"], strlen($default->rootUrl), strlen($_SERVER["PHP_SELF"]))); |
| 16 | $sColor = $default->siteMap->getSectionColour($sSectionName, "th"); | 16 | $sColor = $default->siteMap->getSectionColour($sSectionName, "th"); |
| @@ -20,7 +20,7 @@ | @@ -20,7 +20,7 @@ | ||
| 20 | $sToRender .= "<tr/>\n"; | 20 | $sToRender .= "<tr/>\n"; |
| 21 | $sToRender .= "</table>\n"; | 21 | $sToRender .= "</table>\n"; |
| 22 | return $sToRender; | 22 | return $sToRender; |
| 23 | -} | 23 | +}*/ |
| 24 | 24 | ||
| 25 | function getFolderPath($iFolderID) { | 25 | function getFolderPath($iFolderID) { |
| 26 | global $default; | 26 | global $default; |
presentation/lookAndFeel/knowledgeTree/foldermanagement/editUI.inc
| @@ -8,7 +8,7 @@ | @@ -8,7 +8,7 @@ | ||
| 8 | * | 8 | * |
| 9 | */ | 9 | */ |
| 10 | 10 | ||
| 11 | -function renderHeading() { | 11 | +/*function renderHeading() { |
| 12 | global $default; | 12 | global $default; |
| 13 | $sSectionName = $default->siteMap->getSectionName(substr($_SERVER["PHP_SELF"], strlen($default->rootUrl), strlen($_SERVER["PHP_SELF"]))); | 13 | $sSectionName = $default->siteMap->getSectionName(substr($_SERVER["PHP_SELF"], strlen($default->rootUrl), strlen($_SERVER["PHP_SELF"]))); |
| 14 | $sColor = $default->siteMap->getSectionColour($sSectionName, "th"); | 14 | $sColor = $default->siteMap->getSectionColour($sSectionName, "th"); |
| @@ -18,7 +18,7 @@ function renderHeading() { | @@ -18,7 +18,7 @@ function renderHeading() { | ||
| 18 | $sToRender .= "<tr/>\n"; | 18 | $sToRender .= "<tr/>\n"; |
| 19 | $sToRender .= "</table>\n"; | 19 | $sToRender .= "</table>\n"; |
| 20 | return $sToRender; | 20 | return $sToRender; |
| 21 | -} | 21 | +}*/ |
| 22 | 22 | ||
| 23 | function getFolderPath($iFolderID) { | 23 | function getFolderPath($iFolderID) { |
| 24 | global $default; | 24 | global $default; |
| @@ -149,7 +149,7 @@ function getFolderGroupAccess($iFolderID) { | @@ -149,7 +149,7 @@ function getFolderGroupAccess($iFolderID) { | ||
| 149 | function getPage($iFolderID, $bCollaboration = false) { | 149 | function getPage($iFolderID, $bCollaboration = false) { |
| 150 | global $default; | 150 | global $default; |
| 151 | 151 | ||
| 152 | - $sToRender = renderHeading(); | 152 | + $sToRender = renderHeading("Modify Folder"); |
| 153 | $sToRender .= getFolderPath($iFolderID); | 153 | $sToRender .= getFolderPath($iFolderID); |
| 154 | $sToRender .= "<table border=\"0\" width=\"100%\">\n"; | 154 | $sToRender .= "<table border=\"0\" width=\"100%\">\n"; |
| 155 | $sToRender .= "<tr>\n"; | 155 | $sToRender .= "<tr>\n"; |
presentation/lookAndFeel/knowledgeTree/foldermanagement/groupFolderLinkUI.inc
| @@ -9,7 +9,7 @@ | @@ -9,7 +9,7 @@ | ||
| 9 | */ | 9 | */ |
| 10 | 10 | ||
| 11 | 11 | ||
| 12 | -function renderHeading($sHeading) { | 12 | +/*function renderHeading($sHeading) { |
| 13 | global $default; | 13 | global $default; |
| 14 | $sSectionName = $default->siteMap->getSectionName(substr($_SERVER["PHP_SELF"], strlen($default->rootUrl), strlen($_SERVER["PHP_SELF"]))); | 14 | $sSectionName = $default->siteMap->getSectionName(substr($_SERVER["PHP_SELF"], strlen($default->rootUrl), strlen($_SERVER["PHP_SELF"]))); |
| 15 | $sColor = $default->siteMap->getSectionColour($sSectionName, "th"); | 15 | $sColor = $default->siteMap->getSectionColour($sSectionName, "th"); |
| @@ -19,7 +19,7 @@ function renderHeading($sHeading) { | @@ -19,7 +19,7 @@ function renderHeading($sHeading) { | ||
| 19 | $sToRender .= "<tr/>\n"; | 19 | $sToRender .= "<tr/>\n"; |
| 20 | $sToRender .= "</table>\n"; | 20 | $sToRender .= "</table>\n"; |
| 21 | return $sToRender; | 21 | return $sToRender; |
| 22 | -} | 22 | +}*/ |
| 23 | 23 | ||
| 24 | function getFolderPath($iFolderID) { | 24 | function getFolderPath($iFolderID) { |
| 25 | global $default; | 25 | global $default; |
presentation/lookAndFeel/knowledgeTree/foldermanagement/viewDependantDocumentsUI.inc
| 1 | <?php | 1 | <?php |
| 2 | 2 | ||
| 3 | 3 | ||
| 4 | -function renderHeading($sHeading) { | 4 | +/*function renderHeading($sHeading) { |
| 5 | global $default; | 5 | global $default; |
| 6 | $sSectionName = $default->siteMap->getSectionName(substr($_SERVER["PHP_SELF"], strlen($default->rootUrl), strlen($_SERVER["PHP_SELF"]))); | 6 | $sSectionName = $default->siteMap->getSectionName(substr($_SERVER["PHP_SELF"], strlen($default->rootUrl), strlen($_SERVER["PHP_SELF"]))); |
| 7 | $sColor = $default->siteMap->getSectionColour($sSectionName, "th"); | 7 | $sColor = $default->siteMap->getSectionColour($sSectionName, "th"); |
| @@ -11,7 +11,7 @@ function renderHeading($sHeading) { | @@ -11,7 +11,7 @@ function renderHeading($sHeading) { | ||
| 11 | $sToRender .= "<tr/>\n"; | 11 | $sToRender .= "<tr/>\n"; |
| 12 | $sToRender .= "</table>\n"; | 12 | $sToRender .= "</table>\n"; |
| 13 | return $sToRender; | 13 | return $sToRender; |
| 14 | -} | 14 | +}*/ |
| 15 | 15 | ||
| 16 | function getFolderPath($iFolderID) { | 16 | function getFolderPath($iFolderID) { |
| 17 | global $default; | 17 | global $default; |
presentation/lookAndFeel/knowledgeTree/preferences/editUserPrefsUI.inc
| @@ -7,7 +7,7 @@ | @@ -7,7 +7,7 @@ | ||
| 7 | * @package presentation.lookAndFeel.knowledgeTree. | 7 | * @package presentation.lookAndFeel.knowledgeTree. |
| 8 | * | 8 | * |
| 9 | */ | 9 | */ |
| 10 | -function renderHeading() { | 10 | +/*function renderHeading() { |
| 11 | global $default; | 11 | global $default; |
| 12 | $sSectionName = $default->siteMap->getSectionName(substr($_SERVER["PHP_SELF"], strlen($default->rootUrl), strlen($_SERVER["PHP_SELF"]))); | 12 | $sSectionName = $default->siteMap->getSectionName(substr($_SERVER["PHP_SELF"], strlen($default->rootUrl), strlen($_SERVER["PHP_SELF"]))); |
| 13 | $sColor = $default->siteMap->getSectionColour($sSectionName, "th"); | 13 | $sColor = $default->siteMap->getSectionColour($sSectionName, "th"); |
| @@ -15,7 +15,7 @@ function renderHeading() { | @@ -15,7 +15,7 @@ function renderHeading() { | ||
| 15 | $sToRender .= "<tr/>\n"; | 15 | $sToRender .= "<tr/>\n"; |
| 16 | $sToRender .= "<tr/>\n"; | 16 | $sToRender .= "<tr/>\n"; |
| 17 | return $sToRender; | 17 | return $sToRender; |
| 18 | -} | 18 | +}*/ |
| 19 | 19 | ||
| 20 | function getUserDetailsPage($iUserID) { | 20 | function getUserDetailsPage($iUserID) { |
| 21 | 21 | ||
| @@ -35,7 +35,7 @@ function getUserDetailsPage($iUserID) { | @@ -35,7 +35,7 @@ function getUserDetailsPage($iUserID) { | ||
| 35 | $oPattern->setColumnsRequired(array(1,0,0,0)); | 35 | $oPattern->setColumnsRequired(array(1,0,0,0)); |
| 36 | 36 | ||
| 37 | $sToRender .= "<table width=\"600\">\n"; | 37 | $sToRender .= "<table width=\"600\">\n"; |
| 38 | - $sToRender .= renderHeading(); | 38 | + $sToRender .= renderHeading("Preferenes"); |
| 39 | $sToRender .= "<tr></tr>\n"; | 39 | $sToRender .= "<tr></tr>\n"; |
| 40 | $sToRender .= "<tr/><tr/><tr><td><b>Edit User Properties:</b></td></tr>\n"; | 40 | $sToRender .= "<tr/><tr/><tr><td><b>Edit User Properties:</b></td></tr>\n"; |
| 41 | $sToRender .= "<tr>\n"; | 41 | $sToRender .= "<tr>\n"; |
| @@ -56,7 +56,7 @@ function getEditPageSuccess() { | @@ -56,7 +56,7 @@ function getEditPageSuccess() { | ||
| 56 | global $default; | 56 | global $default; |
| 57 | 57 | ||
| 58 | $sToRender .= "<table width=\"600\">\n"; | 58 | $sToRender .= "<table width=\"600\">\n"; |
| 59 | - $sToRender .= renderHeading(); | 59 | + $sToRender .= renderHeading("Preferences"); |
| 60 | $sToRender .= "<tr/><tr/><tr><td><b>Success!</b></td></tr>\n"; | 60 | $sToRender .= "<tr/><tr/><tr><td><b>Success!</b></td></tr>\n"; |
| 61 | $sToRender .= "<tr><td>The User was successfully modified</td></tr>\n"; | 61 | $sToRender .= "<tr><td>The User was successfully modified</td></tr>\n"; |
| 62 | $sToRender .= "<tr></tr>\n"; | 62 | $sToRender .= "<tr></tr>\n"; |
| @@ -74,7 +74,7 @@ function getEditPageFail() { | @@ -74,7 +74,7 @@ function getEditPageFail() { | ||
| 74 | global $default; | 74 | global $default; |
| 75 | 75 | ||
| 76 | $sToRender .= "<table>\n"; | 76 | $sToRender .= "<table>\n"; |
| 77 | - $sToRender .= renderHeading(); | 77 | + $sToRender .= renderHeading("Preferences"); |
| 78 | $sToRender .= "<tr/><tr/>\n"; | 78 | $sToRender .= "<tr/><tr/>\n"; |
| 79 | $sToRender .= "<tr><td>User modification Failed!</td></tr>\n"; | 79 | $sToRender .= "<tr><td>User modification Failed!</td></tr>\n"; |
| 80 | $sToRender .= "<tr></tr>\n"; | 80 | $sToRender .= "<tr></tr>\n"; |
presentation/lookAndFeel/knowledgeTree/search/advancedSearchBL.php
| @@ -17,6 +17,7 @@ if (checkSession()) { | @@ -17,6 +17,7 @@ if (checkSession()) { | ||
| 17 | require_once("$default->fileSystemRoot/lib/foldermanagement/Folder.inc"); | 17 | require_once("$default->fileSystemRoot/lib/foldermanagement/Folder.inc"); |
| 18 | require_once("$default->fileSystemRoot/lib/documentmanagement/Document.inc"); | 18 | require_once("$default->fileSystemRoot/lib/documentmanagement/Document.inc"); |
| 19 | require_once("$default->fileSystemRoot/lib/security/permission.inc"); | 19 | require_once("$default->fileSystemRoot/lib/security/permission.inc"); |
| 20 | + require_once("$default->fileSystemRoot/presentation/Html.inc"); | ||
| 20 | require_once("advancedSearchUI.inc"); | 21 | require_once("advancedSearchUI.inc"); |
| 21 | 22 | ||
| 22 | require_once("$default->fileSystemRoot/presentation/webpageTemplate.inc"); | 23 | require_once("$default->fileSystemRoot/presentation/webpageTemplate.inc"); |
presentation/lookAndFeel/knowledgeTree/search/advancedSearchUI.inc
| @@ -9,7 +9,7 @@ | @@ -9,7 +9,7 @@ | ||
| 9 | * | 9 | * |
| 10 | */ | 10 | */ |
| 11 | 11 | ||
| 12 | -function renderHeading() { | 12 | +/*function renderHeading() { |
| 13 | global $default; | 13 | global $default; |
| 14 | $sSectionName = $default->siteMap->getSectionName(substr($_SERVER["PHP_SELF"], strlen($default->rootUrl), strlen($_SERVER["PHP_SELF"]))); | 14 | $sSectionName = $default->siteMap->getSectionName(substr($_SERVER["PHP_SELF"], strlen($default->rootUrl), strlen($_SERVER["PHP_SELF"]))); |
| 15 | $sColor = $default->siteMap->getSectionColour($sSectionName, "th"); | 15 | $sColor = $default->siteMap->getSectionColour($sSectionName, "th"); |
| @@ -17,7 +17,7 @@ function renderHeading() { | @@ -17,7 +17,7 @@ function renderHeading() { | ||
| 17 | $sToRender .= "<tr/>\n"; | 17 | $sToRender .= "<tr/>\n"; |
| 18 | $sToRender .= "<tr/>\n"; | 18 | $sToRender .= "<tr/>\n"; |
| 19 | return $sToRender; | 19 | return $sToRender; |
| 20 | -} | 20 | +}*/ |
| 21 | 21 | ||
| 22 | function getMetaData($aMetaTagIDs) { | 22 | function getMetaData($aMetaTagIDs) { |
| 23 | global $default; | 23 | global $default; |
| @@ -51,7 +51,7 @@ function getMetaData($aMetaTagIDs) { | @@ -51,7 +51,7 @@ function getMetaData($aMetaTagIDs) { | ||
| 51 | function getSearchPage($sSearchString = "", $aMetaTagIDs = array()) { | 51 | function getSearchPage($sSearchString = "", $aMetaTagIDs = array()) { |
| 52 | global $default; | 52 | global $default; |
| 53 | $sToRender = "<table width=\"600\">\n"; | 53 | $sToRender = "<table width=\"600\">\n"; |
| 54 | - $sToRender .= renderHeading(); | 54 | + $sToRender .= renderHeading("Advanced Search"); |
| 55 | $sToRender .= "<tr>\n"; | 55 | $sToRender .= "<tr>\n"; |
| 56 | $sToRender .= "<td>Search text: <input type=\"text\" size=\"60\" name=\"fSearchString\" value=\"$sSearchString\" />\n"; | 56 | $sToRender .= "<td>Search text: <input type=\"text\" size=\"60\" name=\"fSearchString\" value=\"$sSearchString\" />\n"; |
| 57 | //$sToRender .= "<td><input type=\"button\" src=\"$default->graphicsUrl/search.gif\" value=\"search\" onClick=\"validateAdvancedSearchText()\"/></td>\n"; | 57 | //$sToRender .= "<td><input type=\"button\" src=\"$default->graphicsUrl/search.gif\" value=\"search\" onClick=\"validateAdvancedSearchText()\"/></td>\n"; |
| @@ -99,7 +99,7 @@ function getSearchResults($sMetaTagIDs, $sSQLSearchString, $iStartIndex) { | @@ -99,7 +99,7 @@ function getSearchResults($sMetaTagIDs, $sSQLSearchString, $iStartIndex) { | ||
| 99 | $oPatternBrowse->setStartIndex($iStartIndex); | 99 | $oPatternBrowse->setStartIndex($iStartIndex); |
| 100 | 100 | ||
| 101 | $sRefreshMessage = "<table><tr><td align=\"center\">If your browser displays a 'Warning: Page has Expired' message when you attempt to return to these search results, please click your browser's 'Refresh' button</td></tr></table>"; | 101 | $sRefreshMessage = "<table><tr><td align=\"center\">If your browser displays a 'Warning: Page has Expired' message when you attempt to return to these search results, please click your browser's 'Refresh' button</td></tr></table>"; |
| 102 | - return "<table width=\"600\">" . renderHeading() . "</table>" . $oPatternBrowse->render() . $sRefreshMessage . getSearchVariablesHtml($sSearchText, $sMetaTagIDs); | 102 | + return "<table width=\"600\">" . renderHeading("Advanced Search") . "</table>" . $oPatternBrowse->render() . $sRefreshMessage . getSearchVariablesHtml($sSearchText, $sMetaTagIDs); |
| 103 | } | 103 | } |
| 104 | 104 | ||
| 105 | function getSearchValidationJavaScript() { | 105 | function getSearchValidationJavaScript() { |
presentation/lookAndFeel/knowledgeTree/search/standardSearchBL.php
| @@ -18,7 +18,8 @@ if (checkSession()) { | @@ -18,7 +18,8 @@ if (checkSession()) { | ||
| 18 | require_once("$default->fileSystemRoot/lib/visualpatterns/PatternBrowsableSearchResults.inc"); | 18 | require_once("$default->fileSystemRoot/lib/visualpatterns/PatternBrowsableSearchResults.inc"); |
| 19 | require_once("$default->fileSystemRoot/lib/visualpatterns/PatternCustom.inc"); | 19 | require_once("$default->fileSystemRoot/lib/visualpatterns/PatternCustom.inc"); |
| 20 | require_once("$default->fileSystemRoot/lib/foldermanagement/Folder.inc"); | 20 | require_once("$default->fileSystemRoot/lib/foldermanagement/Folder.inc"); |
| 21 | - require_once("$default->fileSystemRoot/lib/documentmanagement/Document.inc"); | 21 | + require_once("$default->fileSystemRoot/lib/documentmanagement/Document.inc"); |
| 22 | + require_once("$default->fileSystemRoot/presentation/Html.inc"); | ||
| 22 | require_once("standardSearchUI.inc"); | 23 | require_once("standardSearchUI.inc"); |
| 23 | 24 | ||
| 24 | if (!isset($fStartIndex)) { | 25 | if (!isset($fStartIndex)) { |
presentation/lookAndFeel/knowledgeTree/search/standardSearchUI.inc
| @@ -8,7 +8,7 @@ | @@ -8,7 +8,7 @@ | ||
| 8 | * @package presentation.lookAndFeel.documentmanagement | 8 | * @package presentation.lookAndFeel.documentmanagement |
| 9 | */ | 9 | */ |
| 10 | 10 | ||
| 11 | -function renderHeading() { | 11 | +/*function renderHeading() { |
| 12 | global $default; | 12 | global $default; |
| 13 | $sSectionName = $default->siteMap->getSectionName(substr($_SERVER["PHP_SELF"], strlen($default->rootUrl), strlen($_SERVER["PHP_SELF"]))); | 13 | $sSectionName = $default->siteMap->getSectionName(substr($_SERVER["PHP_SELF"], strlen($default->rootUrl), strlen($_SERVER["PHP_SELF"]))); |
| 14 | $sColor = $default->siteMap->getSectionColour($sSectionName, "th"); | 14 | $sColor = $default->siteMap->getSectionColour($sSectionName, "th"); |
| @@ -16,11 +16,11 @@ function renderHeading() { | @@ -16,11 +16,11 @@ function renderHeading() { | ||
| 16 | $sToRender .= "<tr/>\n"; | 16 | $sToRender .= "<tr/>\n"; |
| 17 | $sToRender .= "<tr/>\n"; | 17 | $sToRender .= "<tr/>\n"; |
| 18 | return $sToRender; | 18 | return $sToRender; |
| 19 | -} | 19 | +}*/ |
| 20 | 20 | ||
| 21 | function getPage($sSearchText, $sBrowseType, $iFolderID, $iDocumentID, $sCategoryName, $iDocType, $sFolderIDs, $iStartIndex, $sSQLSearchString, $bSearchByDocument = false) { | 21 | function getPage($sSearchText, $sBrowseType, $iFolderID, $iDocumentID, $sCategoryName, $iDocType, $sFolderIDs, $iStartIndex, $sSQLSearchString, $bSearchByDocument = false) { |
| 22 | $sRefreshMessage = "<table><tr><td align=\"center\">If your browser displays a 'Warning: Page has Expired' message when you attempt to return to these search results, please click your browser's 'Refresh' button</td></tr></table>"; | 22 | $sRefreshMessage = "<table><tr><td align=\"center\">If your browser displays a 'Warning: Page has Expired' message when you attempt to return to these search results, please click your browser's 'Refresh' button</td></tr></table>"; |
| 23 | - return "<table width=\"600\">" . renderHeading() . "</table>" . getSearchResults($sFolderIDs, $sSQLSearchString, $iStartIndex, $bSearchByDocument) . $sRefreshMessage . getSearchVariablesHtml($sSearchText, $sBrowseType, $iFolderID, $iDocumentID, $sCategoryName, $iDocType); | 23 | + return "<table width=\"600\">" . renderHeading("Standard Search") . "</table>" . getSearchResults($sFolderIDs, $sSQLSearchString, $iStartIndex, $bSearchByDocument) . $sRefreshMessage . getSearchVariablesHtml($sSearchText, $sBrowseType, $iFolderID, $iDocumentID, $sCategoryName, $iDocType); |
| 24 | } | 24 | } |
| 25 | 25 | ||
| 26 | /*function getSearchResults($sIDs,$sSQLSearchString, $iStartIndex, $bSearchByDocument = false) { | 26 | /*function getSearchResults($sIDs,$sSQLSearchString, $iStartIndex, $bSearchByDocument = false) { |
presentation/lookAndFeel/knowledgeTree/subscriptions/addSubscriptionBL.php
| @@ -3,6 +3,7 @@ | @@ -3,6 +3,7 @@ | ||
| 3 | require_once("../../../../config/dmsDefaults.php"); | 3 | require_once("../../../../config/dmsDefaults.php"); |
| 4 | require_once("$default->fileSystemRoot/lib/subscriptions/Subscription.inc"); | 4 | require_once("$default->fileSystemRoot/lib/subscriptions/Subscription.inc"); |
| 5 | require_once("$default->fileSystemRoot/lib/subscriptions/SubscriptionManager.inc"); | 5 | require_once("$default->fileSystemRoot/lib/subscriptions/SubscriptionManager.inc"); |
| 6 | +require_once("$default->fileSystemRoot/presentation/Html.inc"); | ||
| 6 | 7 | ||
| 7 | /** | 8 | /** |
| 8 | * $Id$ | 9 | * $Id$ |
presentation/lookAndFeel/knowledgeTree/subscriptions/subscriptionUI.inc
| @@ -12,14 +12,14 @@ | @@ -12,14 +12,14 @@ | ||
| 12 | * @package presentation.lookAndFeel.knowledgeTree.subscriptions | 12 | * @package presentation.lookAndFeel.knowledgeTree.subscriptions |
| 13 | */ | 13 | */ |
| 14 | 14 | ||
| 15 | -function renderHeading() { | 15 | +/*function renderHeading() { |
| 16 | global $default; | 16 | global $default; |
| 17 | $sColor = $default->siteMap->getSectionColour("Subscriptions", "th"); | 17 | $sColor = $default->siteMap->getSectionColour("Subscriptions", "th"); |
| 18 | $sToRender .= "<tr align=\"left\"><th class=\"sectionHeading\" bgcolor=\"$sColor\"><font color=\"ffffff\">Subscriptions</font></th></tr>\n"; | 18 | $sToRender .= "<tr align=\"left\"><th class=\"sectionHeading\" bgcolor=\"$sColor\"><font color=\"ffffff\">Subscriptions</font></th></tr>\n"; |
| 19 | $sToRender .= "<tr/>\n"; | 19 | $sToRender .= "<tr/>\n"; |
| 20 | $sToRender .= "<tr/>\n"; | 20 | $sToRender .= "<tr/>\n"; |
| 21 | return $sToRender; | 21 | return $sToRender; |
| 22 | -} | 22 | +}*/ |
| 23 | 23 | ||
| 24 | /** | 24 | /** |
| 25 | * Displays all current subscriptions with remove checkbox | 25 | * Displays all current subscriptions with remove checkbox |
| @@ -33,7 +33,7 @@ function renderManagePage() { | @@ -33,7 +33,7 @@ function renderManagePage() { | ||
| 33 | $bNoSubscriptions = ( (count($aFolderSubscriptions) == 0) && (count($aDocumentSubscriptions) == 0) ) ? true : false; | 33 | $bNoSubscriptions = ( (count($aFolderSubscriptions) == 0) && (count($aDocumentSubscriptions) == 0) ) ? true : false; |
| 34 | 34 | ||
| 35 | $sToRender = "<table width=\"600\">\n"; | 35 | $sToRender = "<table width=\"600\">\n"; |
| 36 | - $sToRender .= renderHeading(); | 36 | + $sToRender .= renderHeading("Subscriptions"); |
| 37 | if ($bNoSubscriptions) { | 37 | if ($bNoSubscriptions) { |
| 38 | $sToRender .= "<tr><td>You are not subscribed to any documents or folders.</td></tr>\n"; | 38 | $sToRender .= "<tr><td>You are not subscribed to any documents or folders.</td></tr>\n"; |
| 39 | } else { | 39 | } else { |