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