Commit d1c5664a58e876ff2d308cb8d162d71b238b3e81

Authored by Michael Joseph
1 parent 6865aded

updated for changes to ui functions


git-svn-id: https://kt-dms.svn.sourceforge.net/svnroot/kt-dms/trunk@535 c91229c3-7414-0410-bfa2-8a42b809f60b
presentation/lookAndFeel/knowledgeTree/documentmanagement/browseBL.php
1 1 <?php
2 2  
3   -// main library routines and defaults
4 3 require_once("../../../../config/dmsDefaults.php");
5   -require_once("$default->owl_ui_directory/documentmanagement/browseUI.inc");
6 4 require_once("$default->owl_fs_root/lib/documentmanagement/DocumentBrowser.inc");
7   -require_once("$default->owl_ui_directory/foldermanagement/folderUI.inc");
  5 +require_once("$default->owl_ui_directory/documentmanagement/browseUI.inc");
8 6  
9 7 /**
10 8 * $Id$
... ... @@ -108,7 +106,7 @@ if (checkSession()) {
108 106  
109 107 // we have a list of categories
110 108 // so loop through them and display
111   - $oContent->addHtml(tableRow("", "", tableCssData("Categories", "browseTypeSelect")));
  109 + $oContent->addHtml(tableRow("", "", tableData(displayCategoryLink("Categories"))));
112 110  
113 111 // empty row for spacing
114 112 $oContent->addHtml(tableRow("", "", tableData("&nbsp;")));
... ... @@ -126,7 +124,7 @@ if (checkSession()) {
126 124 $oContent->addHtml(tableRow("", "", tableData("&nbsp;")));
127 125  
128 126 // now loop through the documents in the category (TODO: if any)
129   - // and display them (TODO: with hyperlinked paths)
  127 + // and display them
130 128 for ($i=0; $i<count($results["documents"]); $i++) {
131 129 $sDocumentLink = displayDocumentLink($results["documents"][$i], true);
132 130 $oContent->addHtml(tableRow("", "", tableData($sDocumentLink)));
... ... @@ -141,7 +139,7 @@ if (checkSession()) {
141 139  
142 140 // we have a list of document types
143 141 // so loop through them and display
144   - $oContent->addHtml(tableRow("", "", tableCssData("Document Types", "browseTypeSelect")));
  142 + $oContent->addHtml(tableRow("", "", tableData(displayDocumentTypeLink(array("name"=>"Document Types")))));
145 143  
146 144 // empty row for spacing
147 145 $oContent->addHtml(tableRow("", "", tableData("&nbsp;")));
... ... @@ -159,7 +157,7 @@ if (checkSession()) {
159 157 $oContent->addHtml(tableRow("", "", tableData("&nbsp;")));
160 158  
161 159 // now loop through the documents in the category (TODO: if any)
162   - // and display them (TODO: with hyperlinked paths)
  160 + // and display them
163 161 for ($i=0; $i<count($results["documents"]); $i++) {
164 162 $sDocumentLink = displayDocumentLink($results["documents"][$i], true);
165 163 $oContent->addHtml(tableRow("", "", tableData($sDocumentLink)));
... ...