Commit a3cc3c0e8bf279a1642c35cb3e883a2e02969dc9

Authored by Michael Joseph
1 parent a68aba79

renderHeading refactoring


git-svn-id: https://kt-dms.svn.sourceforge.net/svnroot/kt-dms/trunk@1959 c91229c3-7414-0410-bfa2-8a42b809f60b
presentation/lookAndFeel/knowledgeTree/documentmanagement/archiving/archiveDocumentBL.php
... ... @@ -8,6 +8,7 @@ require_once("$default->fileSystemRoot/lib/visualpatterns/PatternMainPage.inc");
8 8 require_once("$default->fileSystemRoot/lib/visualpatterns/PatternCustom.inc");
9 9 require_once("$default->fileSystemRoot/lib/visualpatterns/PatternTableSqlQuery.inc");
10 10 require_once("$default->fileSystemRoot/lib/visualpatterns/PatternListBox.inc");
  11 +require_once("$default->fileSystemRoot/presentation/Html.inc");
11 12 require_once("$default->uiDirectory/documentmanagement/documentUI.inc");
12 13 require_once("$default->uiDirectory/foldermanagement/folderUI.inc");
13 14 require_once("$default->uiDirectory/documentmanagement/archiving/archiveSettingsUI.inc");
... ...
presentation/lookAndFeel/knowledgeTree/documentmanagement/archiving/archiveSettingsUI.inc
... ... @@ -259,14 +259,13 @@ function renderAddArchiveSettingsPage($iArchivingTypeID, $sErrorMessage = "") {
259 259 function renderArchiveConfirmationPage($iDocumentID, $sErrorMessage = "") {
260 260 global $default;
261 261  
262   - $sToRender .= renderHeading("Archive Document");
  262 + $sToRender = renderHeading("Archive Document");
263 263 if (strlen($sErrorMessage) > 0) {
264 264 $sToRender .= renderErrorMessage($sErrorMessage);
265   - }
266   -
  265 + }
267 266 $sToRender .= "<table>\n";
268 267 $sToRender .= "<tr>\n";
269   - $sToRender .= "<td>You have chosen to archive the document entitled </td></tr><tr><td>'" . Document::getDocumentName($iDocumentID) . "'.</td>\n";
  268 + $sToRender .= "<td>You have chosen to archive the document entitled '" . Document::getDocumentName($iDocumentID) . "'.</td>\n";
270 269 $sToRender .= "<tr>\n<tr>\n";
271 270 $sToRender .= "<td>Select 'Archive' to confirm, or 'Cancel' to cancel.</td>\n";
272 271 $sToRender .= "<tr>\n";
... ...