Commit 5b54b358166722ebfe13721583a5e3ebffbe6c19

Authored by michael
1 parent 81dd51f5

moved into appropriate directory


git-svn-id: https://kt-dms.svn.sourceforge.net/svnroot/kt-dms/trunk@431 c91229c3-7414-0410-bfa2-8a42b809f60b
Showing 1 changed file with 0 additions and 107 deletions
presentation/browseBL.php deleted
1   -<?php
2   -
3   -// main library routines and defaults
4   -require_once("../config/dmsDefaults.php");
5   -require_once("$default->owl_fs_root/lib/visualpatterns/PatternMainPage.inc");
6   -require_once("$default->owl_fs_root/lib/visualpatterns/PatternImage.inc");
7   -require_once("$default->owl_fs_root/lib/visualpatterns/PatternTableLinks.inc");
8   -require_once("$default->owl_fs_root/lib/visualpatterns/PatternTableSqlQuery.inc");
9   -require_once("$default->owl_fs_root/lib/visualpatterns/PatternCustom.inc");
10   -
11   -/**
12   - * $Id$
13   - *
14   - * This page controls browsing for documents- this can be done either by
15   - * folder, category or document type.
16   - * The relevant permission checking is performed, calls to the business logic
17   - * layer to retrieve the details of the documents to view are made and the user
18   - * interface is contructed.
19   - *
20   - * Licensed under the GNU GPL. For full terms see the file COPYING.
21   - *
22   - * @version $Revision$
23   - * @author Michael Joseph <michael@jamwarehouse.com>, Jam Warehouse (Pty) Ltd, South Africa
24   - * @package presentation
25   - */
26   - /*
27   - * Querystring variables
28   - * ---------------------
29   - * fBrowseType - determines whether to browse by (folder, category, documentType) [mandatory]
30   - * fFolderID - the folder to browse [optional depending on fBrowseType]
31   - * fCategoryName - the category to browse [optional depending on fBrowseType]
32   - * fDocumentTypeID - the document type id to browse [optional depending on fBrowseType]
33   - */
34   -
35   -
36   -// -------------------------------
37   -// page start
38   -// -------------------------------
39   -
40   -// only if we have a valid session
41   -if (checkSession()) {
42   - // retrieve variables
43   - if (!$fBrowseType) {
44   - // required param not set- internal error or user querystring hacking
45   - // TODO: something intelligent
46   - $_SESSION["errorMessage"] = "Required parameter missing, cannot proceed";
47   - } else {
48   - // fire up the document browser
49   - $oDocBrowser = new DocumentBrowser();
50   -
51   - // TODO: instantiate the visual components
52   -
53   - // instantiate data arrays
54   - $folders = NULL;
55   - $categories = NULL;
56   - $documentTypes = NULL;
57   -
58   - switch ($fBrowseType) {
59   - case "folder" : // retrieve folderID if present
60   - if (!$fFolderID) {
61   - $folders = $oDocBrowser->browseByFolder();
62   - } else {
63   - $folders = $oDocBrowser->browseByFolder($fFolderID);
64   - }
65   - break;
66   - case "category" :
67   - if (!$fCategoryName) {
68   - $categories = $oDocBrowser->browseByCategory();
69   - } else {
70   - $documents = $oDocBrowser->browseByCategory($fCategoryName);
71   - }
72   - break;
73   - case "documentType" :
74   - if (!$fDocumentTypeID) {
75   - $documentTypes = $oDocBrowser->browseByDocumentType();
76   - } else {
77   - $documents = $oDocBrowser->browseByDocumentType($fDocumentTypeID);
78   - }
79   - break;
80   - }
81   - }
82   -
83   - /*
84   -
85   - - loop through things, displaying appropriately
86   - - documentmanagement/browseUI.inc
87   - - displayDocumentLink
88   - - displayFolderLink
89   - - display
90   - - displayFileActions($permissionArray)
91   -
92   - - docManagement
93   - - getFileFolderPerms
94   - - folder modification links (if perms)
95   -
96   - - link to files / folders
97   - - displayLinkWithPath; displayLink
98   - - expand table?
99   - */
100   -
101   -} else {
102   - // FIXME: redirect to no permission page
103   - print "you do not have access to view this page! please go away, and come back when you do.<br>";
104   - echo generateLink("logout") . "logout</a>";
105   - // controllerRedirect("permissionDenied", "accessDeniedMsg=$lang_noPermission");
106   -}
107   -?>