Commit 9629dda3296dd7c431cecfa37d9380c55dfab1db
1 parent
3f09a7d0
added spacing, updated phpdoc, using tableCssData for category and document type headings
git-svn-id: https://kt-dms.svn.sourceforge.net/svnroot/kt-dms/trunk@505 c91229c3-7414-0410-bfa2-8a42b809f60b
Showing
1 changed file
with
6 additions
and
8 deletions
presentation/lookAndFeel/knowledgeTree/documentmanagement/browseBL.php
| @@ -29,8 +29,6 @@ require_once("$default->owl_ui_directory/foldermanagement/folderUI.inc"); | @@ -29,8 +29,6 @@ require_once("$default->owl_ui_directory/foldermanagement/folderUI.inc"); | ||
| 29 | * fFolderID - the folder to browse [optional depending on fBrowseType] | 29 | * fFolderID - the folder to browse [optional depending on fBrowseType] |
| 30 | * fCategoryName - the category to browse [optional depending on fBrowseType] | 30 | * fCategoryName - the category to browse [optional depending on fBrowseType] |
| 31 | * fDocumentTypeID - the document type id to browse [optional depending on fBrowseType] | 31 | * fDocumentTypeID - the document type id to browse [optional depending on fBrowseType] |
| 32 | - * fSortBy - the document/folder criteria to sort the browse results by | ||
| 33 | - * fSortDirection - the direction that the sort should happen in (asc|desc) | ||
| 34 | */ | 32 | */ |
| 35 | 33 | ||
| 36 | // ------------------------------- | 34 | // ------------------------------- |
| @@ -40,7 +38,6 @@ require_once("$default->owl_ui_directory/foldermanagement/folderUI.inc"); | @@ -40,7 +38,6 @@ require_once("$default->owl_ui_directory/foldermanagement/folderUI.inc"); | ||
| 40 | // only if we have a valid session | 38 | // only if we have a valid session |
| 41 | if (checkSession()) { | 39 | if (checkSession()) { |
| 42 | require_once("../../../webpageTemplate.inc"); | 40 | require_once("../../../webpageTemplate.inc"); |
| 43 | - $oContent = new PatternCustom(); | ||
| 44 | 41 | ||
| 45 | // retrieve variables | 42 | // retrieve variables |
| 46 | if (!$fBrowseType) { | 43 | if (!$fBrowseType) { |
| @@ -51,7 +48,7 @@ if (checkSession()) { | @@ -51,7 +48,7 @@ if (checkSession()) { | ||
| 51 | 48 | ||
| 52 | // fire up the document browser | 49 | // fire up the document browser |
| 53 | $oDocBrowser = new DocumentBrowser(); | 50 | $oDocBrowser = new DocumentBrowser(); |
| 54 | - | 51 | + // instantiate my content pattern |
| 55 | $oContent = new PatternCustom(); | 52 | $oContent = new PatternCustom(); |
| 56 | 53 | ||
| 57 | $oContent->addHtml( | 54 | $oContent->addHtml( |
| @@ -59,8 +56,9 @@ if (checkSession()) { | @@ -59,8 +56,9 @@ if (checkSession()) { | ||
| 59 | // pending documents | 56 | // pending documents |
| 60 | startTableRowCell() . | 57 | startTableRowCell() . |
| 61 | startTable("0", "100%") . | 58 | startTable("0", "100%") . |
| 62 | - tableRow("left", "", tableData(browseTypeSelect($fBrowseType)))); | ||
| 63 | - | 59 | + tableRow("left", "", tableData(browseTypeSelect($fBrowseType))) . |
| 60 | + tableRow("", "", tabledata("")) . | ||
| 61 | + tableRow("", "", tabledata(""))); | ||
| 64 | // instantiate data arrays | 62 | // instantiate data arrays |
| 65 | $folders = NULL; | 63 | $folders = NULL; |
| 66 | $categories = NULL; | 64 | $categories = NULL; |
| @@ -109,7 +107,7 @@ if (checkSession()) { | @@ -109,7 +107,7 @@ if (checkSession()) { | ||
| 109 | 107 | ||
| 110 | // we have a list of categories | 108 | // we have a list of categories |
| 111 | // so loop through them and display | 109 | // so loop through them and display |
| 112 | - $oContent->addHtml(tableRow("", "", tableData("Categories"))); | 110 | + $oContent->addHtml(tableRow("", "", tableCssData("Categories", "browseTypeSelect"))); |
| 113 | 111 | ||
| 114 | // empty row for spacing | 112 | // empty row for spacing |
| 115 | $oContent->addHtml(tableRow("", "", tableData(" "))); | 113 | $oContent->addHtml(tableRow("", "", tableData(" "))); |
| @@ -142,7 +140,7 @@ if (checkSession()) { | @@ -142,7 +140,7 @@ if (checkSession()) { | ||
| 142 | 140 | ||
| 143 | // we have a list of document types | 141 | // we have a list of document types |
| 144 | // so loop through them and display | 142 | // so loop through them and display |
| 145 | - $oContent->addHtml(tableRow("", "", tableData("Document Types"))); | 143 | + $oContent->addHtml(tableRow("", "", tableCssData("Document Types", "browseTypeSelect"))); |
| 146 | 144 | ||
| 147 | // empty row for spacing | 145 | // empty row for spacing |
| 148 | $oContent->addHtml(tableRow("", "", tableData(" "))); | 146 | $oContent->addHtml(tableRow("", "", tableData(" "))); |