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 <?php 1 <?php
2 2
3 -// main library routines and defaults  
4 require_once("../../../../config/dmsDefaults.php"); 3 require_once("../../../../config/dmsDefaults.php");
5 -require_once("$default->owl_ui_directory/documentmanagement/browseUI.inc");  
6 require_once("$default->owl_fs_root/lib/documentmanagement/DocumentBrowser.inc"); 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 * $Id$ 8 * $Id$
@@ -108,7 +106,7 @@ if (checkSession()) { @@ -108,7 +106,7 @@ if (checkSession()) {
108 106
109 // we have a list of categories 107 // we have a list of categories
110 // so loop through them and display 108 // so loop through them and display
111 - $oContent->addHtml(tableRow("", "", tableCssData("Categories", "browseTypeSelect"))); 109 + $oContent->addHtml(tableRow("", "", tableData(displayCategoryLink("Categories"))));
112 110
113 // empty row for spacing 111 // empty row for spacing
114 $oContent->addHtml(tableRow("", "", tableData("&nbsp;"))); 112 $oContent->addHtml(tableRow("", "", tableData("&nbsp;")));
@@ -126,7 +124,7 @@ if (checkSession()) { @@ -126,7 +124,7 @@ if (checkSession()) {
126 $oContent->addHtml(tableRow("", "", tableData("&nbsp;"))); 124 $oContent->addHtml(tableRow("", "", tableData("&nbsp;")));
127 125
128 // now loop through the documents in the category (TODO: if any) 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 for ($i=0; $i<count($results["documents"]); $i++) { 128 for ($i=0; $i<count($results["documents"]); $i++) {
131 $sDocumentLink = displayDocumentLink($results["documents"][$i], true); 129 $sDocumentLink = displayDocumentLink($results["documents"][$i], true);
132 $oContent->addHtml(tableRow("", "", tableData($sDocumentLink))); 130 $oContent->addHtml(tableRow("", "", tableData($sDocumentLink)));
@@ -141,7 +139,7 @@ if (checkSession()) { @@ -141,7 +139,7 @@ if (checkSession()) {
141 139
142 // we have a list of document types 140 // we have a list of document types
143 // so loop through them and display 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 // empty row for spacing 144 // empty row for spacing
147 $oContent->addHtml(tableRow("", "", tableData("&nbsp;"))); 145 $oContent->addHtml(tableRow("", "", tableData("&nbsp;")));
@@ -159,7 +157,7 @@ if (checkSession()) { @@ -159,7 +157,7 @@ if (checkSession()) {
159 $oContent->addHtml(tableRow("", "", tableData("&nbsp;"))); 157 $oContent->addHtml(tableRow("", "", tableData("&nbsp;")));
160 158
161 // now loop through the documents in the category (TODO: if any) 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 for ($i=0; $i<count($results["documents"]); $i++) { 161 for ($i=0; $i<count($results["documents"]); $i++) {
164 $sDocumentLink = displayDocumentLink($results["documents"][$i], true); 162 $sDocumentLink = displayDocumentLink($results["documents"][$i], true);
165 $oContent->addHtml(tableRow("", "", tableData($sDocumentLink))); 163 $oContent->addHtml(tableRow("", "", tableData($sDocumentLink)));