Commit f96793baefaf11620e01888f8b7088b06faaa970

Authored by Michael Joseph
1 parent f04935b9

added copyright and gpl notice

removed owl prefix from table aliases


git-svn-id: https://kt-dms.svn.sourceforge.net/svnroot/kt-dms/trunk@2588 c91229c3-7414-0410-bfa2-8a42b809f60b
Showing 40 changed files with 944 additions and 362 deletions
presentation/lookAndFeel/knowledgeTree/foldermanagement/addFolderBL.php
1 <?php 1 <?php
2 /** 2 /**
3 -* Business logic page that provides business logic for adding a folder (uses  
4 -* addFolderUI.inc for HTML)  
5 -*  
6 -* The following form variables are expected:  
7 -* o $fFolderID - id of the folder the user is currently in  
8 -*  
9 -* @author Rob Cherry, Jam Warehouse (Pty) Ltd, South Africa  
10 -* @date 27 January 2003  
11 -* @package presentation.lookAndFeel.knowledgeTree.foldermanagement  
12 -*/ 3 + * $Id$
  4 + *
  5 + * Business logic page that provides business logic for adding a folder (uses
  6 + * addFolderUI.inc for HTML)
  7 + *
  8 + * The following form variables are expected:
  9 + * o $fFolderID - id of the folder the user is currently in
  10 + *
  11 + * Copyright (c) 2003 Jam Warehouse http://www.jamwarehouse.com
  12 + *
  13 + * This program is free software; you can redistribute it and/or modify
  14 + * it under the terms of the GNU General Public License as published by
  15 + * the Free Software Foundation; either version 2 of the License, or
  16 + * (at your option) any later version.
  17 + *
  18 + * This program is distributed in the hope that it will be useful,
  19 + * but WITHOUT ANY WARRANTY; without even the implied warranty of
  20 + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  21 + * GNU General Public License for more details.
  22 + *
  23 + * You should have received a copy of the GNU General Public License
  24 + * along with this program; if not, write to the Free Software
  25 + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
  26 + *
  27 + * @version $Revision$
  28 + * @author Rob Cherry, Jam Warehouse (Pty) Ltd, South Africa
  29 + * @package foldermanagement
  30 + */
13 31
14 require_once("../../../../config/dmsDefaults.php"); 32 require_once("../../../../config/dmsDefaults.php");
15 if (checkSession()) { 33 if (checkSession()) {
presentation/lookAndFeel/knowledgeTree/foldermanagement/addFolderCollaborationBL.php
1 <?php 1 <?php
2 /** 2 /**
3 -* Business logic for adding a new step in the folder collaboration process  
4 -* Will used addFolderCollaborationUI.inc for presentation information  
5 -*  
6 -* Expected form variables:  
7 -* o $fFolderID - primary key of folder user is currently editing  
8 -* @author Rob Cherry, Jam Warehouse (Pty) Ltd, South Africa  
9 -* @date 6 February 2003  
10 -* @package presentation.lookAndFeel.knowledgeTree.foldermanagement  
11 -*  
12 -*/ 3 + * $Id$
  4 + *
  5 + * Business logic for adding a new step in the folder collaboration process
  6 + * Will used addFolderCollaborationUI.inc for presentation information
  7 + *
  8 + * Expected form variables:
  9 + * o $fFolderID - primary key of folder user is currently editing
  10 + *
  11 + * Copyright (c) 2003 Jam Warehouse http://www.jamwarehouse.com
  12 + *
  13 + * This program is free software; you can redistribute it and/or modify
  14 + * it under the terms of the GNU General Public License as published by
  15 + * the Free Software Foundation; either version 2 of the License, or
  16 + * (at your option) any later version.
  17 + *
  18 + * This program is distributed in the hope that it will be useful,
  19 + * but WITHOUT ANY WARRANTY; without even the implied warranty of
  20 + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  21 + * GNU General Public License for more details.
  22 + *
  23 + * You should have received a copy of the GNU General Public License
  24 + * along with this program; if not, write to the Free Software
  25 + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
  26 + *
  27 + * @version $Revision$
  28 + * @author Rob Cherry, Jam Warehouse (Pty) Ltd, South Africa
  29 + * @package foldermanagement
  30 + */
  31 +
13 require_once("../../../../config/dmsDefaults.php"); 32 require_once("../../../../config/dmsDefaults.php");
14 33
15 if (checkSession()) { 34 if (checkSession()) {
16 if (isset($fFolderID)) { 35 if (isset($fFolderID)) {
17 //if a folder has been selected 36 //if a folder has been selected
18 include_once("$default->fileSystemRoot/lib/foldermanagement/Folder.inc"); 37 include_once("$default->fileSystemRoot/lib/foldermanagement/Folder.inc");
19 - include_once("$default->fileSystemRoot/lib/security/permission.inc"); 38 + include_once("$default->fileSystemRoot/lib/security/Permission.inc");
20 include_once("$default->fileSystemRoot/lib/users/User.inc"); 39 include_once("$default->fileSystemRoot/lib/users/User.inc");
21 require_once("$default->fileSystemRoot/presentation/Html.inc"); 40 require_once("$default->fileSystemRoot/presentation/Html.inc");
22 if (Permission::userHasFolderWritePermission($fFolderID)) { 41 if (Permission::userHasFolderWritePermission($fFolderID)) {
presentation/lookAndFeel/knowledgeTree/foldermanagement/addFolderCollaborationUI.inc
1 <?php 1 <?php
2 /** 2 /**
3 -* Presentation information for adding a new step to the folder collaboration flow  
4 -* Used by addFolderCollaborationBL.php  
5 -*  
6 -* @author Rob Cherry, Jam Warehouse (Pty) Ltd, South Africa  
7 -* @date 5 February 2003  
8 -* @package presentation.lookAndFeel.knowledgeTree.  
9 -*  
10 -*/  
11 -  
12 -/*function renderHeading($sHeading) {  
13 - global $default;  
14 - $sSectionName = $default->siteMap->getSectionName(substr($_SERVER["PHP_SELF"], strlen($default->rootUrl), strlen($_SERVER["PHP_SELF"])));  
15 - $sColor = $default->siteMap->getSectionColour($sSectionName, "th");  
16 - $sToRender = "<table border=\"0\" width=\"600\">\n";  
17 - $sToRender .= "<tr align=\"left\"><th class=\"sectionHeading\" bgcolor=\"$sColor\">$sHeading</th></tr>\n";  
18 - $sToRender .= "<tr/>\n";  
19 - $sToRender .= "<tr/>\n";  
20 - $sToRender .= "</table>\n";  
21 - return $sToRender;  
22 -}*/  
23 - 3 + * $Id$
  4 + *
  5 + * Presentation information for adding a new step to the folder collaboration flow
  6 + * Used by addFolderCollaborationBL.ph
  7 + *
  8 + * Copyright (c) 2003 Jam Warehouse http://www.jamwarehouse.com
  9 + *
  10 + * This program is free software; you can redistribute it and/or modify
  11 + * it under the terms of the GNU General Public License as published by
  12 + * the Free Software Foundation; either version 2 of the License, or
  13 + * (at your option) any later version.
  14 + *
  15 + * This program is distributed in the hope that it will be useful,
  16 + * but WITHOUT ANY WARRANTY; without even the implied warranty of
  17 + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  18 + * GNU General Public License for more details.
  19 + *
  20 + * You should have received a copy of the GNU General Public License
  21 + * along with this program; if not, write to the Free Software
  22 + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
  23 + *
  24 + * @version $Revision$
  25 + * @author Rob Cherry, Jam Warehouse (Pty) Ltd, South Africa
  26 + * @package foldermanagement
  27 + */
24 28
25 function getPage($iFolderID, $iGroupID, $iRoleID, $iSequenceNumber) { 29 function getPage($iFolderID, $iGroupID, $iRoleID, $iSequenceNumber) {
26 global $default; 30 global $default;
@@ -65,7 +69,7 @@ function getFolderPath($iFolderID) { @@ -65,7 +69,7 @@ function getFolderPath($iFolderID) {
65 69
66 function getGroupDropDown($iGroupID, $iFolderID) { 70 function getGroupDropDown($iGroupID, $iFolderID) {
67 global $default; 71 global $default;
68 - $oPatternListBox = & new PatternListBox("$default->owl_groups_table", "name", "id", "fGroupID"); 72 + $oPatternListBox = & new PatternListBox("$default->groups_table", "name", "id", "fGroupID");
69 $oPatternListBox->setPostBackOnChange(true); 73 $oPatternListBox->setPostBackOnChange(true);
70 $oPatternListBox->setOnChangeAction("setActionAndSubmit('" . $_SERVER["PHP_SELF"] . "?fFolderID=$iFolderID');"); 74 $oPatternListBox->setOnChangeAction("setActionAndSubmit('" . $_SERVER["PHP_SELF"] . "?fFolderID=$iFolderID');");
71 if (isset($iGroupID)) { 75 if (isset($iGroupID)) {
@@ -77,10 +81,10 @@ function getGroupDropDown($iGroupID, $iFolderID) { @@ -77,10 +81,10 @@ function getGroupDropDown($iGroupID, $iFolderID) {
77 //the groups in their unit 81 //the groups in their unit
78 /*$oPatternListBox; 82 /*$oPatternListBox;
79 if (Permission::userIsSystemAdministrator()) { 83 if (Permission::userIsSystemAdministrator()) {
80 - $oPatternListBox = & new PatternListBox("$default->owl_groups_table", "name", "id", "fGroupID"); 84 + $oPatternListBox = & new PatternListBox("$default->groups_table", "name", "id", "fGroupID");
81 } else { 85 } else {
82 - $oPatternListBox = & new PatternListBox("$default->owl_groups_table", "name", "id", "fGroupID", "GUL.unit_id=" . User::getUnitID($_SESSION["userID"]));  
83 - $oPatternListBox->setFromClause("INNER JOIN $default->owl_groups_units_table AS GUL ON ST.id = GUL.group_id"); 86 + $oPatternListBox = & new PatternListBox("$default->groups_table", "name", "id", "fGroupID", "GUL.unit_id=" . User::getUnitID($_SESSION["userID"]));
  87 + $oPatternListBox->setFromClause("INNER JOIN $default->groups_units_table AS GUL ON ST.id = GUL.group_id");
84 } 88 }
85 $oPatternListBox->setEmptyErrorMessage("There are no groups"); 89 $oPatternListBox->setEmptyErrorMessage("There are no groups");
86 $oPatternListBox->setIncludeDefaultValue(false); 90 $oPatternListBox->setIncludeDefaultValue(false);
@@ -98,8 +102,8 @@ function getUserDropDown($iGroupID) { @@ -98,8 +102,8 @@ function getUserDropDown($iGroupID) {
98 $iGroupID = -1; 102 $iGroupID = -1;
99 } 103 }
100 104
101 - $oPatternListBox = & new PatternListBox("$default->owl_users_table", "name", "id", "fUserID", "UGL.group_id = $iGroupID");  
102 - $oPatternListBox->setFromClause("INNER JOIN $default->owl_users_groups_table AS UGL ON ST.id = UGL.user_id"); 105 + $oPatternListBox = & new PatternListBox("$default->users_table", "name", "id", "fUserID", "UGL.group_id = $iGroupID");
  106 + $oPatternListBox->setFromClause("INNER JOIN $default->users_groups_table AS UGL ON ST.id = UGL.user_id");
103 107
104 if ($iGroupID == -1) { 108 if ($iGroupID == -1) {
105 $oPatternListBox->setEmptyErrorMessage("Select a group"); 109 $oPatternListBox->setEmptyErrorMessage("Select a group");
@@ -110,7 +114,7 @@ function getUserDropDown($iGroupID) { @@ -110,7 +114,7 @@ function getUserDropDown($iGroupID) {
110 114
111 function getRoleDropDown($iRoleID) { 115 function getRoleDropDown($iRoleID) {
112 global $default; 116 global $default;
113 - $oPatternListBox = & new PatternListBox("$default->owl_roles_table", "name", "id", "fRoleID"); 117 + $oPatternListBox = & new PatternListBox("$default->roles_table", "name", "id", "fRoleID");
114 $oPatternListBox->setEmptyErrorMessage("There are no roles"); 118 $oPatternListBox->setEmptyErrorMessage("There are no roles");
115 $oPatternListBox->setIncludeDefaultValue(false); 119 $oPatternListBox->setIncludeDefaultValue(false);
116 if (isset($iRoleID)) { 120 if (isset($iRoleID)) {
presentation/lookAndFeel/knowledgeTree/foldermanagement/addFolderDocTypeBL.php
1 <?php 1 <?php
2 /** 2 /**
3 -* Business logic for assigning a new document type to a folder  
4 -*  
5 -* @author Rob Cherry, Jam Warehouse South Africa (Pty) Ltd  
6 -* @date 27 February 2003  
7 -* @package presentation.lookAndFeel.knowledgeTree.foldermanagement  
8 -*/ 3 + * $Id$
  4 + *
  5 + * Business logic for assigning a new document type to a folder.
  6 + *
  7 + * Copyright (c) 2003 Jam Warehouse http://www.jamwarehouse.com
  8 + *
  9 + * This program is free software; you can redistribute it and/or modify
  10 + * it under the terms of the GNU General Public License as published by
  11 + * the Free Software Foundation; either version 2 of the License, or
  12 + * (at your option) any later version.
  13 + *
  14 + * This program is distributed in the hope that it will be useful,
  15 + * but WITHOUT ANY WARRANTY; without even the implied warranty of
  16 + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  17 + * GNU General Public License for more details.
  18 + *
  19 + * You should have received a copy of the GNU General Public License
  20 + * along with this program; if not, write to the Free Software
  21 + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
  22 + *
  23 + * @version $Revision$
  24 + * @author Rob Cherry, Jam Warehouse (Pty) Ltd, South Africa
  25 + * @package foldermanagement
  26 + */
9 27
10 require_once("../../../../config/dmsDefaults.php"); 28 require_once("../../../../config/dmsDefaults.php");
11 if (checkSession()) { 29 if (checkSession()) {
presentation/lookAndFeel/knowledgeTree/foldermanagement/addFolderDocTypeUI.inc
@@ -2,12 +2,27 @@ @@ -2,12 +2,27 @@
2 /** 2 /**
3 * $Id$ 3 * $Id$
4 * 4 *
5 - * Presentation information used by addFolderDocTypeBL.php 5 + * Presentation information used by addFolderDocTypeBL.php.
6 * 6 *
7 - * Licensed under the GNU GPL. For full terms see the file DOCS/COPYING. 7 + * Copyright (c) 2003 Jam Warehouse http://www.jamwarehouse.com
  8 + *
  9 + * This program is free software; you can redistribute it and/or modify
  10 + * it under the terms of the GNU General Public License as published by
  11 + * the Free Software Foundation; either version 2 of the License, or
  12 + * (at your option) any later version.
  13 + *
  14 + * This program is distributed in the hope that it will be useful,
  15 + * but WITHOUT ANY WARRANTY; without even the implied warranty of
  16 + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  17 + * GNU General Public License for more details.
8 * 18 *
  19 + * You should have received a copy of the GNU General Public License
  20 + * along with this program; if not, write to the Free Software
  21 + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
  22 + *
  23 + * @version $Revision$
9 * @author Rob Cherry, Jam Warehouse (Pty) Ltd, South Africa 24 * @author Rob Cherry, Jam Warehouse (Pty) Ltd, South Africa
10 - * @package presentation.lookAndFeel.knowledgeTree.foldermanagement 25 + * @package foldermanagement
11 */ 26 */
12 27
13 function getPage($iFolderID, $iDocumentTypeID) { 28 function getPage($iFolderID, $iDocumentTypeID) {
@@ -40,8 +55,8 @@ function getDocumentTypeDropDown($iDocumentTypeID, $iFolderID) { @@ -40,8 +55,8 @@ function getDocumentTypeDropDown($iDocumentTypeID, $iFolderID) {
40 // cunningly joined query courtesy of R. Cherry Esq. 55 // cunningly joined query courtesy of R. Cherry Esq.
41 $oPatternListBox = & new PatternListBox(null, null, null, null); 56 $oPatternListBox = & new PatternListBox(null, null, null, null);
42 $oPatternListBox->setQuery("SELECT DTL.name AS display, DTL.id AS value " . 57 $oPatternListBox->setQuery("SELECT DTL.name AS display, DTL.id AS value " .
43 - "FROM $default->owl_document_types_table AS DTL " .  
44 - "LEFT OUTER JOIN $default->owl_folder_doctypes_table AS FDL ON FDL.document_type_id = DTL.id AND FDL.folder_id = $iFolderID " . 58 + "FROM $default->document_types_table AS DTL " .
  59 + "LEFT OUTER JOIN $default->folder_doctypes_table AS FDL ON FDL.document_type_id = DTL.id AND FDL.folder_id = $iFolderID " .
45 "WHERE folder_id IS NULL"); 60 "WHERE folder_id IS NULL");
46 $oPatternListBox->setSelectName("fDocumentTypeID"); 61 $oPatternListBox->setSelectName("fDocumentTypeID");
47 $oPatternListBox->setIncludeDefaultValue(false); 62 $oPatternListBox->setIncludeDefaultValue(false);
presentation/lookAndFeel/knowledgeTree/foldermanagement/addFolderUI.inc
1 <?php 1 <?php
2 /** 2 /**
3 -* Presentation page that provides HTML for adding a new folder (used by  
4 -* addFolderBL.php)  
5 -*  
6 -* @author Rob Cherry, Jam Warehouse (Pty) Ltd, South Africa  
7 -* @date 27 January 2003  
8 -* @package presentation.lookAndFeel.knowledgeTree.foldermanagement  
9 -*  
10 -*/ 3 + * $Id$
  4 + *
  5 + * Presentation page that provides HTML for adding a new folder (used by addFolderBL.php)
  6 + *
  7 + * Copyright (c) 2003 Jam Warehouse http://www.jamwarehouse.com
  8 + *
  9 + * This program is free software; you can redistribute it and/or modify
  10 + * it under the terms of the GNU General Public License as published by
  11 + * the Free Software Foundation; either version 2 of the License, or
  12 + * (at your option) any later version.
  13 + *
  14 + * This program is distributed in the hope that it will be useful,
  15 + * but WITHOUT ANY WARRANTY; without even the implied warranty of
  16 + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  17 + * GNU General Public License for more details.
  18 + *
  19 + * You should have received a copy of the GNU General Public License
  20 + * along with this program; if not, write to the Free Software
  21 + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
  22 + *
  23 + * @version $Revision$
  24 + * @author Rob Cherry, Jam Warehouse (Pty) Ltd, South Africa
  25 + * @package foldermanagement
  26 + */
11 27
12 function renderBrowseAddPage($iFolderID) { 28 function renderBrowseAddPage($iFolderID) {
13 global $default; 29 global $default;
@@ -61,7 +77,7 @@ function getRightSide($iFolderID) { @@ -61,7 +77,7 @@ function getRightSide($iFolderID) {
61 77
62 function getDocumentTypeDropDown() { 78 function getDocumentTypeDropDown() {
63 global $default; 79 global $default;
64 - $oPatternListBox = & new PatternListBox("$default->owl_document_types_table", "name", "id", "fDocumentTypeID"); 80 + $oPatternListBox = & new PatternListBox("$default->document_types_table", "name", "id", "fDocumentTypeID");
65 $oPatternListBox->setIncludeDefaultValue(false); 81 $oPatternListBox->setIncludeDefaultValue(false);
66 return $oPatternListBox->render(); 82 return $oPatternListBox->render();
67 } 83 }
presentation/lookAndFeel/knowledgeTree/foldermanagement/addGroupFolderLinkBL.php
1 <?php 1 <?php
2 /** 2 /**
3 * $Id$ 3 * $Id$
4 - *  
5 * Business logic for adding folder access 4 * Business logic for adding folder access
6 * addFolderAccessUI.inc for presentation information 5 * addFolderAccessUI.inc for presentation information
7 * 6 *
8 - * Licensed under the GNU GPL. For full terms see the file COPYING.  
9 - *  
10 * Expected form variables: 7 * Expected form variables:
11 * o $fFolderID - primary key of folder user is currently editing 8 * o $fFolderID - primary key of folder user is currently editing
  9 + *
  10 + * Copyright (c) 2003 Jam Warehouse http://www.jamwarehouse.com
  11 + *
  12 + * This program is free software; you can redistribute it and/or modify
  13 + * it under the terms of the GNU General Public License as published by
  14 + * the Free Software Foundation; either version 2 of the License, or
  15 + * (at your option) any later version.
12 * 16 *
13 - * @version $Revision$ 17 + * This program is distributed in the hope that it will be useful,
  18 + * but WITHOUT ANY WARRANTY; without even the implied warranty of
  19 + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  20 + * GNU General Public License for more details.
  21 + *
  22 + * You should have received a copy of the GNU General Public License
  23 + * along with this program; if not, write to the Free Software
  24 + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
  25 + *
  26 + * @version $Revision$
14 * @author Michael Joseph <michael@jamwarehouse.com>, Jam Warehouse (Pty) Ltd, South Africa 27 * @author Michael Joseph <michael@jamwarehouse.com>, Jam Warehouse (Pty) Ltd, South Africa
15 - * @package presentation.lookAndFeel.knowledgeTree.foldermanagement 28 + * @package foldermanagement
16 */ 29 */
  30 +
17 require_once("../../../../config/dmsDefaults.php"); 31 require_once("../../../../config/dmsDefaults.php");
18 include_once("$default->fileSystemRoot/lib/foldermanagement/Folder.inc"); 32 include_once("$default->fileSystemRoot/lib/foldermanagement/Folder.inc");
19 -include_once("$default->fileSystemRoot/lib/security/permission.inc"); 33 +include_once("$default->fileSystemRoot/lib/security/Permission.inc");
20 include_once("$default->fileSystemRoot/lib/users/User.inc"); 34 include_once("$default->fileSystemRoot/lib/users/User.inc");
21 include_once("$default->fileSystemRoot/lib/groups/GroupFolderLink.inc"); 35 include_once("$default->fileSystemRoot/lib/groups/GroupFolderLink.inc");
22 include_once("$default->fileSystemRoot/presentation/Html.inc"); 36 include_once("$default->fileSystemRoot/presentation/Html.inc");
presentation/lookAndFeel/knowledgeTree/foldermanagement/collaborationBL.php
1 <?php 1 <?php
2 /** 2 /**
3 -* Document collaboration business logic - contains business logic to set up  
4 -* document approval process  
5 -*  
6 -* Expected form variables:  
7 -* o fFolderCollaborationID -  
8 -* o fForAdd -  
9 -*  
10 -* @author Rob Cherry, Jam Warehouse (Pty) Ltd, South Africa  
11 -* @date 28 January 2003  
12 -* @package presentation.lookAndFeel.knowledgeTree.foldermanagement  
13 -*  
14 -*/ 3 + * $Id$
  4 + *
  5 + * Document collaboration business logic - contains business logic to set up
  6 + * document approval process
  7 + *
  8 + * Expected form variables:
  9 + * o fFolderCollaborationID -
  10 + * o fForAdd -
  11 + *
  12 + * Copyright (c) 2003 Jam Warehouse http://www.jamwarehouse.com
  13 + *
  14 + * This program is free software; you can redistribute it and/or modify
  15 + * it under the terms of the GNU General Public License as published by
  16 + * the Free Software Foundation; either version 2 of the License, or
  17 + * (at your option) any later version.
  18 + *
  19 + * This program is distributed in the hope that it will be useful,
  20 + * but WITHOUT ANY WARRANTY; without even the implied warranty of
  21 + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  22 + * GNU General Public License for more details.
  23 + *
  24 + * You should have received a copy of the GNU General Public License
  25 + * along with this program; if not, write to the Free Software
  26 + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
  27 + *
  28 + * @version $Revision$
  29 + * @author Rob Cherry, Jam Warehouse (Pty) Ltd, South Africa
  30 + * @package foldermanagement
  31 + */
15 32
16 require_once("../../../../config/dmsDefaults.php"); 33 require_once("../../../../config/dmsDefaults.php");
17 34
@@ -21,7 +38,7 @@ if (checkSession()) { @@ -21,7 +38,7 @@ if (checkSession()) {
21 require_once("$default->fileSystemRoot/lib/foldermanagement/FolderCollaboration.inc"); 38 require_once("$default->fileSystemRoot/lib/foldermanagement/FolderCollaboration.inc");
22 require_once("$default->fileSystemRoot/lib/foldermanagement/Folder.inc"); 39 require_once("$default->fileSystemRoot/lib/foldermanagement/Folder.inc");
23 require_once("collaborationUI.inc"); 40 require_once("collaborationUI.inc");
24 - require_once("$default->fileSystemRoot/lib/security/permission.inc"); 41 + require_once("$default->fileSystemRoot/lib/security/Permission.inc");
25 require_once("$default->fileSystemRoot/lib/visualpatterns/PatternCustom.inc"); 42 require_once("$default->fileSystemRoot/lib/visualpatterns/PatternCustom.inc");
26 require_once("$default->fileSystemRoot/presentation/lookAndFeel/knowledgeTree/foldermanagement/folderUI.inc"); 43 require_once("$default->fileSystemRoot/presentation/lookAndFeel/knowledgeTree/foldermanagement/folderUI.inc");
27 require_once("$default->fileSystemRoot/presentation/Html.inc"); 44 require_once("$default->fileSystemRoot/presentation/Html.inc");
presentation/lookAndFeel/knowledgeTree/foldermanagement/collaborationUI.inc
1 <?php 1 <?php
2 /** 2 /**
3 -* Presentation data for collaborationBL.php  
4 -*  
5 -* @author Rob Cherry, Jam Warehouse (Pty) Ltd, South Africa  
6 -* @date 28 January 2003  
7 -* @package presentation.lookAndFeel.knowledgeTree.documentmanagement  
8 -*  
9 -*/ 3 + * $Id$
  4 + *
  5 + * Presentation data for collaborationBL.php.
  6 + *
  7 + * Copyright (c) 2003 Jam Warehouse http://www.jamwarehouse.com
  8 + *
  9 + * This program is free software; you can redistribute it and/or modify
  10 + * it under the terms of the GNU General Public License as published by
  11 + * the Free Software Foundation; either version 2 of the License, or
  12 + * (at your option) any later version.
  13 + *
  14 + * This program is distributed in the hope that it will be useful,
  15 + * but WITHOUT ANY WARRANTY; without even the implied warranty of
  16 + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  17 + * GNU General Public License for more details.
  18 + *
  19 + * You should have received a copy of the GNU General Public License
  20 + * along with this program; if not, write to the Free Software
  21 + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
  22 + *
  23 + * @version $Revision$
  24 + * @author Rob Cherry, Jam Warehouse (Pty) Ltd, South Africa
  25 + * @package foldermanagement
  26 + */
10 27
11 function getFolderPath($iFolderID) { 28 function getFolderPath($iFolderID) {
12 global $default; 29 global $default;
@@ -18,7 +35,7 @@ function getFolderPath($iFolderID) { @@ -18,7 +35,7 @@ function getFolderPath($iFolderID) {
18 35
19 function getGroupDropDown($iFolderCollaborationID, $iFolderID, $iGroupID) { 36 function getGroupDropDown($iFolderCollaborationID, $iFolderID, $iGroupID) {
20 global $default; 37 global $default;
21 - $oPatternListBox = & new PatternListBox($default->owl_groups_table, "Name", "ID", "fGroupID"); 38 + $oPatternListBox = & new PatternListBox($default->groups_table, "Name", "ID", "fGroupID");
22 $oPatternListBox->setPostBackOnChange(true); 39 $oPatternListBox->setPostBackOnChange(true);
23 $oPatternListBox->setOnChangeAction("setActionAndSubmit('" . $_SERVER["userID"] . "?fFolderID=$iFolderID&fFolderCollaborationID=$iFolderCollaborationID');"); 40 $oPatternListBox->setOnChangeAction("setActionAndSubmit('" . $_SERVER["userID"] . "?fFolderID=$iFolderID&fFolderCollaborationID=$iFolderCollaborationID');");
24 if (isset($iGroupID)) { 41 if (isset($iGroupID)) {
@@ -33,8 +50,8 @@ function getUserDropDown($iGroupID, $iUserID) { @@ -33,8 +50,8 @@ function getUserDropDown($iGroupID, $iUserID) {
33 if (!(isset($iGroupID))) { 50 if (!(isset($iGroupID))) {
34 $iGroupID = -1; 51 $iGroupID = -1;
35 } 52 }
36 - $oPatternListBox = & new PatternListBox($default->owl_users_table, "Name", "ID", "fUserID", "UGL.group_id = $iGroupID");  
37 - $oPatternListBox->setFromClause("INNER JOIN $default->owl_users_groups_table AS UGL ON UGL.user_id = ST.id"); 53 + $oPatternListBox = & new PatternListBox($default->users_table, "Name", "ID", "fUserID", "UGL.group_id = $iGroupID");
  54 + $oPatternListBox->setFromClause("INNER JOIN $default->users_groups_table AS UGL ON UGL.user_id = ST.id");
38 if (isset($iUserID)) { 55 if (isset($iUserID)) {
39 $oPatternListBox->setSelectedValue($iUserID); 56 $oPatternListBox->setSelectedValue($iUserID);
40 } 57 }
@@ -76,7 +93,7 @@ function getEditPage($iFolderCollaborationID, $iFolderID, $iGroupID, $iUserID, $ @@ -76,7 +93,7 @@ function getEditPage($iFolderCollaborationID, $iFolderID, $iGroupID, $iUserID, $
76 93
77 function getRoleDropDown($iRoleID) { 94 function getRoleDropDown($iRoleID) {
78 global $default; 95 global $default;
79 - $oPatternListBox = & new PatternListBox("$default->owl_roles_table", "name", "id", "fRoleID"); 96 + $oPatternListBox = & new PatternListBox("$default->roles_table", "name", "id", "fRoleID");
80 $oPatternListBox->setEmptyErrorMessage("There are no users in this group"); 97 $oPatternListBox->setEmptyErrorMessage("There are no users in this group");
81 if (isset($iRoleID)) { 98 if (isset($iRoleID)) {
82 $oPatternListBox->setSelectedValue($iRoleID); 99 $oPatternListBox->setSelectedValue($iRoleID);
presentation/lookAndFeel/knowledgeTree/foldermanagement/deleteDependantDocumentBL.php
1 <?php 1 <?php
2 -  
3 /** 2 /**
4 -* Business logic for deleting a dependant document  
5 -*  
6 -* Expected variables:  
7 -* $fFolderCollaborationID: primary key of folder collaboration to check  
8 -* $fFolderID: folder we are currently editing  
9 -* $fDependantDocumentTemplateID: primary key of dependant document to be deleted  
10 -*  
11 -* @author Rob Cherry, Jam Warehouse (Pty) Ltd, South Africa  
12 -* @date 14 May 2003  
13 -* @package presentation.lookAndFeel.knowledgeTree.foldermanagement  
14 -*/ 3 + * $Id$
  4 + *
  5 + * Business logic for deleting a dependant document
  6 + *
  7 + * Expected variables:
  8 + * $fFolderCollaborationID: primary key of folder collaboration to check
  9 + * $fFolderID: folder we are currently editing
  10 + * $fDependantDocumentTemplateID: primary key of dependant document to be deleted
  11 + *
  12 + * Copyright (c) 2003 Jam Warehouse http://www.jamwarehouse.com
  13 + *
  14 + * This program is free software; you can redistribute it and/or modify
  15 + * it under the terms of the GNU General Public License as published by
  16 + * the Free Software Foundation; either version 2 of the License, or
  17 + * (at your option) any later version.
  18 + *
  19 + * This program is distributed in the hope that it will be useful,
  20 + * but WITHOUT ANY WARRANTY; without even the implied warranty of
  21 + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  22 + * GNU General Public License for more details.
  23 + *
  24 + * You should have received a copy of the GNU General Public License
  25 + * along with this program; if not, write to the Free Software
  26 + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
  27 + *
  28 + * @version $Revision$
  29 + * @author Rob Cherry, Jam Warehouse (Pty) Ltd, South Africa
  30 + * @package foldermanagement
  31 + */
15 32
16 require_once("../../../../config/dmsDefaults.php"); 33 require_once("../../../../config/dmsDefaults.php");
17 34
presentation/lookAndFeel/knowledgeTree/foldermanagement/deleteDependantDocumentUI.inc
1 <?php 1 <?php
2 -  
3 -/** Presentation logic for deleting a dependant document  
4 -*  
5 -* @author Rob Cherry  
6 -* @date 22 May 2002  
7 -* @package presentation.lookAndFeel.knowledgeTree.foldermanagement  
8 -*/  
9 -  
10 -/*function renderHeading($sHeading) {  
11 - global $default;  
12 - $sSectionName = $default->siteMap->getSectionName(substr($_SERVER["PHP_SELF"], strlen($default->rootUrl), strlen($_SERVER["PHP_SELF"])));  
13 - $sColor = $default->siteMap->getSectionColour($sSectionName, "th");  
14 - $sToRender = "<table border=\"0\" width=\"600\">\n";  
15 - $sToRender .= "<tr align=\"left\"><th class=\"sectionHeading\" bgcolor=\"$sColor\">$sHeading</th></tr>\n";  
16 - $sToRender .= "<tr/>\n";  
17 - $sToRender .= "<tr/>\n";  
18 - $sToRender .= "</table>\n";  
19 - return $sToRender;  
20 -}*/ 2 +/**
  3 + * $Id$
  4 + *
  5 + * Presentation logic for deleting a dependant document.
  6 + *
  7 + * Copyright (c) 2003 Jam Warehouse http://www.jamwarehouse.com
  8 + *
  9 + * This program is free software; you can redistribute it and/or modify
  10 + * it under the terms of the GNU General Public License as published by
  11 + * the Free Software Foundation; either version 2 of the License, or
  12 + * (at your option) any later version.
  13 + *
  14 + * This program is distributed in the hope that it will be useful,
  15 + * but WITHOUT ANY WARRANTY; without even the implied warranty of
  16 + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  17 + * GNU General Public License for more details.
  18 + *
  19 + * You should have received a copy of the GNU General Public License
  20 + * along with this program; if not, write to the Free Software
  21 + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
  22 + *
  23 + * @version $Revision$
  24 + * @author Rob Cherry, Jam Warehouse (Pty) Ltd, South Africa
  25 + * @package foldermanagement
  26 + */
21 27
22 function getPage($iFolderID, $iFolderCollaborationID, $sDocumentTitle, $sUserName, $sTemplateDocument) { 28 function getPage($iFolderID, $iFolderCollaborationID, $sDocumentTitle, $sUserName, $sTemplateDocument) {
23 global $default; 29 global $default;
presentation/lookAndFeel/knowledgeTree/foldermanagement/deleteFolderBL.php
1 <?php 1 <?php
2 /** 2 /**
  3 + * $Id$
  4 + *
3 * Business logic concerned with the deletion of a folder. 5 * Business logic concerned with the deletion of a folder.
4 * Will use deleteFolderUI.inc for presentation functionality. 6 * Will use deleteFolderUI.inc for presentation functionality.
5 * 7 *
6 - * Licensed under the GNU GPL. For full terms see the file COPYING. 8 + * Copyright (c) 2003 Jam Warehouse http://www.jamwarehouse.com
  9 + *
  10 + * This program is free software; you can redistribute it and/or modify
  11 + * it under the terms of the GNU General Public License as published by
  12 + * the Free Software Foundation; either version 2 of the License, or
  13 + * (at your option) any later version.
  14 + *
  15 + * This program is distributed in the hope that it will be useful,
  16 + * but WITHOUT ANY WARRANTY; without even the implied warranty of
  17 + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  18 + * GNU General Public License for more details.
  19 + *
  20 + * You should have received a copy of the GNU General Public License
  21 + * along with this program; if not, write to the Free Software
  22 + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
7 * 23 *
8 * @version $Revision$ 24 * @version $Revision$
9 * @author Michael Joseph <michael@jamwarehouse.com>, Jam Warehouse (Pty) Ltd, South Africa 25 * @author Michael Joseph <michael@jamwarehouse.com>, Jam Warehouse (Pty) Ltd, South Africa
10 - * @package presentation.lookAndFeel.knowledgeTree.foldermanagement 26 + * @package foldermanagement
11 */ 27 */
12 28
13 require_once("../../../../config/dmsDefaults.php"); 29 require_once("../../../../config/dmsDefaults.php");
presentation/lookAndFeel/knowledgeTree/foldermanagement/deleteFolderCollaborationBL.php
1 <?php 1 <?php
2 /** 2 /**
3 -* Business logic for delete a new step from the folder collaboration process  
4 -* Will use deleteFolderCollaborationUI.inc for presentation information  
5 -*  
6 -* Expected form variables:  
7 -* o $fFolderID - primary key of folder user is currently editing  
8 -* o $fFolderCollaborationID - primary key of folder collaboration to delete  
9 -*  
10 -* @author Rob Cherry, Jam Warehouse (Pty) Ltd, South Africa  
11 -* @date 6 February 2003  
12 -* @package presentation.lookAndFeel.knowledgeTree.foldermanagement  
13 -*  
14 -*/ 3 + * $Id$
  4 + *
  5 + * Business logic for delete a new step from the folder collaboration process
  6 + * Will use deleteFolderCollaborationUI.inc for presentation information
  7 + *
  8 + * Expected form variables:
  9 + * o $fFolderID - primary key of folder user is currently editing
  10 + * o $fFolderCollaborationID - primary key of folder collaboration to delete
  11 + *
  12 + * Copyright (c) 2003 Jam Warehouse http://www.jamwarehouse.com
  13 + *
  14 + * This program is free software; you can redistribute it and/or modify
  15 + * it under the terms of the GNU General Public License as published by
  16 + * the Free Software Foundation; either version 2 of the License, or
  17 + * (at your option) any later version.
  18 + *
  19 + * This program is distributed in the hope that it will be useful,
  20 + * but WITHOUT ANY WARRANTY; without even the implied warranty of
  21 + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  22 + * GNU General Public License for more details.
  23 + *
  24 + * You should have received a copy of the GNU General Public License
  25 + * along with this program; if not, write to the Free Software
  26 + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
  27 + *
  28 + * @version $Revision$
  29 + * @author Rob Cherry, Jam Warehouse (Pty) Ltd, South Africa
  30 + * @package foldermanagement
  31 + */
  32 +
15 require_once("../../../../config/dmsDefaults.php"); 33 require_once("../../../../config/dmsDefaults.php");
16 34
17 if (checkSession()) { 35 if (checkSession()) {
18 if (isset($fFolderID) && isset($fFolderCollaborationID)) { 36 if (isset($fFolderID) && isset($fFolderCollaborationID)) {
19 //if a folder has been selected 37 //if a folder has been selected
20 include_once("$default->fileSystemRoot/lib/foldermanagement/Folder.inc"); 38 include_once("$default->fileSystemRoot/lib/foldermanagement/Folder.inc");
21 - include_once("$default->fileSystemRoot/lib/security/permission.inc"); 39 + include_once("$default->fileSystemRoot/lib/security/Permission.inc");
22 include_once("$default->fileSystemRoot/lib/foldermanagement/FolderCollaboration.inc"); 40 include_once("$default->fileSystemRoot/lib/foldermanagement/FolderCollaboration.inc");
23 include_once("$default->fileSystemRoot/lib/groups/Group.inc"); 41 include_once("$default->fileSystemRoot/lib/groups/Group.inc");
24 include_once("$default->fileSystemRoot/lib/roles/Role.inc"); 42 include_once("$default->fileSystemRoot/lib/roles/Role.inc");
presentation/lookAndFeel/knowledgeTree/foldermanagement/deleteFolderCollaborationUI.inc
1 <?php 1 <?php
2 /** 2 /**
3 -* Presentation information for deletion of folder collaboration entry.  
4 -* Will be used by deleteFolderCollaborationBL.php  
5 -*  
6 -* @author Rob Cherry, Jam Warehouse (Pty) Ltd, South Africa  
7 -* @date 6 February 2003  
8 -* @package presentation.lookAndFeel.knowledgeTree.  
9 -*  
10 -*/  
11 -  
12 -/*function renderHeading($sHeading) {  
13 - global $default;  
14 - $sSectionName = $default->siteMap->getSectionName(substr($_SERVER["PHP_SELF"], strlen($default->rootUrl), strlen($_SERVER["PHP_SELF"])));  
15 - $sColor = $default->siteMap->getSectionColour($sSectionName, "th");  
16 - $sToRender = "<table border=\"0\" width=\"600\">\n";  
17 - $sToRender .= "<tr align=\"left\"><th class=\"sectionHeading\" bgcolor=\"$sColor\">$sHeading</th></tr>\n";  
18 - $sToRender .= "<tr/>\n";  
19 - $sToRender .= "<tr/>\n";  
20 - $sToRender .= "</table>\n";  
21 - return $sToRender;  
22 -}*/ 3 + * $Id$
  4 + *
  5 + * Presentation information for deletion of folder collaboration entry.
  6 + * Will be used by deleteFolderCollaborationBL.php.
  7 + *
  8 + * Copyright (c) 2003 Jam Warehouse http://www.jamwarehouse.com
  9 + *
  10 + * This program is free software; you can redistribute it and/or modify
  11 + * it under the terms of the GNU General Public License as published by
  12 + * the Free Software Foundation; either version 2 of the License, or
  13 + * (at your option) any later version.
  14 + *
  15 + * This program is distributed in the hope that it will be useful,
  16 + * but WITHOUT ANY WARRANTY; without even the implied warranty of
  17 + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  18 + * GNU General Public License for more details.
  19 + *
  20 + * You should have received a copy of the GNU General Public License
  21 + * along with this program; if not, write to the Free Software
  22 + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
  23 + *
  24 + * @version $Revision$
  25 + * @author Rob Cherry, Jam Warehouse (Pty) Ltd, South Africa
  26 + * @package foldermanagement
  27 + */
23 28
24 function getFolderPath($iFolderID) { 29 function getFolderPath($iFolderID) {
25 global $default; 30 global $default;
presentation/lookAndFeel/knowledgeTree/foldermanagement/deleteFolderDocTypeBL.php
1 <?php 1 <?php
2 /** 2 /**
3 -* Business logic for removing a document type from a folder  
4 -*  
5 -* @author Rob Cherry, Jam Warehouse South Africa (Pty) Ltd  
6 -* @date 27 February 2003  
7 -* @package presentation.lookAndFeel.knowledgeTree.foldermanagement  
8 -*/ 3 + * $Id$
  4 + *
  5 + * Business logic for removing a document type from a folder.
  6 + *
  7 + * Copyright (c) 2003 Jam Warehouse http://www.jamwarehouse.com
  8 + *
  9 + * This program is free software; you can redistribute it and/or modify
  10 + * it under the terms of the GNU General Public License as published by
  11 + * the Free Software Foundation; either version 2 of the License, or
  12 + * (at your option) any later version.
  13 + *
  14 + * This program is distributed in the hope that it will be useful,
  15 + * but WITHOUT ANY WARRANTY; without even the implied warranty of
  16 + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  17 + * GNU General Public License for more details.
  18 + *
  19 + * You should have received a copy of the GNU General Public License
  20 + * along with this program; if not, write to the Free Software
  21 + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
  22 + *
  23 + * @version $Revision$
  24 + * @author Rob Cherry, Jam Warehouse (Pty) Ltd, South Africa
  25 + * @package foldermanagement
  26 + */
9 27
10 require_once("../../../../config/dmsDefaults.php"); 28 require_once("../../../../config/dmsDefaults.php");
11 if (checkSession()) { 29 if (checkSession()) {
presentation/lookAndFeel/knowledgeTree/foldermanagement/deleteFolderDocTypeUI.inc
1 <?php 1 <?php
2 -  
3 /** 2 /**
4 -* Presentation information used by deleteFolderDocTypeUI.inc  
5 -*  
6 -* @author Rob Cherry, Jam Warehouse South Africa (Pty) Ltd  
7 -* @date 27 February 2003  
8 -* @package presentation.lookAndFeel.knowledgeTree.foldermanagement  
9 -*/ 3 + * $Id$
  4 + *
  5 + * Presentation information used by deleteFolderDocTypeUI.inc.
  6 + *
  7 + * Copyright (c) 2003 Jam Warehouse http://www.jamwarehouse.com
  8 + *
  9 + * This program is free software; you can redistribute it and/or modify
  10 + * it under the terms of the GNU General Public License as published by
  11 + * the Free Software Foundation; either version 2 of the License, or
  12 + * (at your option) any later version.
  13 + *
  14 + * This program is distributed in the hope that it will be useful,
  15 + * but WITHOUT ANY WARRANTY; without even the implied warranty of
  16 + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  17 + * GNU General Public License for more details.
  18 + *
  19 + * You should have received a copy of the GNU General Public License
  20 + * along with this program; if not, write to the Free Software
  21 + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
  22 + *
  23 + * @version $Revision$
  24 + * @author Rob Cherry, Jam Warehouse (Pty) Ltd, South Africa
  25 + * @package foldermanagement
  26 + */
10 27
11 function getPage($iFolderID) { 28 function getPage($iFolderID) {
12 global $default; 29 global $default;
presentation/lookAndFeel/knowledgeTree/foldermanagement/deleteFolderUI.inc
1 <?php 1 <?php
2 -  
3 /** 2 /**
4 - * Presentation information for deleteFolderBL.php 3 + * $Id$
  4 + *
  5 + * Presentation information for deleteFolderBL.php.
  6 + *
  7 + * Copyright (c) 2003 Jam Warehouse http://www.jamwarehouse.com
  8 + *
  9 + * This program is free software; you can redistribute it and/or modify
  10 + * it under the terms of the GNU General Public License as published by
  11 + * the Free Software Foundation; either version 2 of the License, or
  12 + * (at your option) any later version.
  13 + *
  14 + * This program is distributed in the hope that it will be useful,
  15 + * but WITHOUT ANY WARRANTY; without even the implied warranty of
  16 + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  17 + * GNU General Public License for more details.
5 * 18 *
6 - * Licensed under the GNU GPL. For full terms see the file COPYING. 19 + * You should have received a copy of the GNU General Public License
  20 + * along with this program; if not, write to the Free Software
  21 + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
7 * 22 *
8 * @version $Revision$ 23 * @version $Revision$
9 * @author Michael Joseph <michael@jamwarehouse.com>, Jam Warehouse (Pty) Ltd, South Africa 24 * @author Michael Joseph <michael@jamwarehouse.com>, Jam Warehouse (Pty) Ltd, South Africa
10 - * @package presentation.lookAndFeel.knowledgeTree.foldermanagement 25 + * @package foldermanagement
11 */ 26 */
12 27
13 function getFolderPath($iFolderID) { 28 function getFolderPath($iFolderID) {
presentation/lookAndFeel/knowledgeTree/foldermanagement/deleteGroupFolderLinkBL.php
@@ -5,20 +5,34 @@ @@ -5,20 +5,34 @@
5 * Business logic for deleting a folder access entry 5 * Business logic for deleting a folder access entry
6 * addFolderAccessUI.inc for presentation information 6 * addFolderAccessUI.inc for presentation information
7 * 7 *
8 - * Licensed under the GNU GPL. For full terms see the file COPYING.  
9 - *  
10 * Expected form variables: 8 * Expected form variables:
11 * o $fFolderID - primary key of folder user is currently editing 9 * o $fFolderID - primary key of folder user is currently editing
12 * o $fGroupFolderLinkID - primary key of group folder link user to delete 10 * o $fGroupFolderLinkID - primary key of group folder link user to delete
  11 + *
  12 + * Copyright (c) 2003 Jam Warehouse http://www.jamwarehouse.com
  13 + *
  14 + * This program is free software; you can redistribute it and/or modify
  15 + * it under the terms of the GNU General Public License as published by
  16 + * the Free Software Foundation; either version 2 of the License, or
  17 + * (at your option) any later version.
13 * 18 *
14 - * @version $Revision$ 19 + * This program is distributed in the hope that it will be useful,
  20 + * but WITHOUT ANY WARRANTY; without even the implied warranty of
  21 + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  22 + * GNU General Public License for more details.
  23 + *
  24 + * You should have received a copy of the GNU General Public License
  25 + * along with this program; if not, write to the Free Software
  26 + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
  27 + *
  28 + * @version $Revision$
15 * @author Michael Joseph <michael@jamwarehouse.com>, Jam Warehouse (Pty) Ltd, South Africa 29 * @author Michael Joseph <michael@jamwarehouse.com>, Jam Warehouse (Pty) Ltd, South Africa
16 - * @package presentation.lookAndFeel.knowledgeTree.foldermanagement 30 + * @package foldermanagement
17 */ 31 */
18 32
19 require_once("../../../../config/dmsDefaults.php"); 33 require_once("../../../../config/dmsDefaults.php");
20 include_once("$default->fileSystemRoot/lib/foldermanagement/Folder.inc"); 34 include_once("$default->fileSystemRoot/lib/foldermanagement/Folder.inc");
21 -include_once("$default->fileSystemRoot/lib/security/permission.inc"); 35 +include_once("$default->fileSystemRoot/lib/security/Permission.inc");
22 include_once("$default->fileSystemRoot/lib/groups/GroupFolderLink.inc"); 36 include_once("$default->fileSystemRoot/lib/groups/GroupFolderLink.inc");
23 include_once("$default->fileSystemRoot/lib/groups/Group.inc"); 37 include_once("$default->fileSystemRoot/lib/groups/Group.inc");
24 include_once("$default->fileSystemRoot/lib/roles/Role.inc"); 38 include_once("$default->fileSystemRoot/lib/roles/Role.inc");
presentation/lookAndFeel/knowledgeTree/foldermanagement/editBL.php
@@ -7,13 +7,27 @@ @@ -7,13 +7,27 @@
7 * Expected form variables: 7 * Expected form variables:
8 * o $fFolderID - primary key of folder user is currently browsing 8 * o $fFolderID - primary key of folder user is currently browsing
9 * 9 *
10 - * Licensed under the GNU GPL. For full terms see the file DOCS/COPYING. 10 + * Copyright (c) 2003 Jam Warehouse http://www.jamwarehouse.com
  11 + *
  12 + * This program is free software; you can redistribute it and/or modify
  13 + * it under the terms of the GNU General Public License as published by
  14 + * the Free Software Foundation; either version 2 of the License, or
  15 + * (at your option) any later version.
  16 + *
  17 + * This program is distributed in the hope that it will be useful,
  18 + * but WITHOUT ANY WARRANTY; without even the implied warranty of
  19 + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  20 + * GNU General Public License for more details.
11 * 21 *
  22 + * You should have received a copy of the GNU General Public License
  23 + * along with this program; if not, write to the Free Software
  24 + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
  25 + *
  26 + * @version $Revision$
12 * @author Rob Cherry, Jam Warehouse (Pty) Ltd, South Africa 27 * @author Rob Cherry, Jam Warehouse (Pty) Ltd, South Africa
13 - * @date 2 February 2003  
14 - * @package presentation.lookAndFeel.knowledgeTree.foldermanagement 28 + * @package foldermanagement
15 */ 29 */
16 - 30 +
17 require_once("../../../../config/dmsDefaults.php"); 31 require_once("../../../../config/dmsDefaults.php");
18 32
19 if (checkSession()) { 33 if (checkSession()) {
@@ -21,7 +35,7 @@ if (checkSession()) { @@ -21,7 +35,7 @@ if (checkSession()) {
21 require_once("$default->fileSystemRoot/lib/visualpatterns/PatternEditableListFromQuery.inc"); 35 require_once("$default->fileSystemRoot/lib/visualpatterns/PatternEditableListFromQuery.inc");
22 require_once("$default->fileSystemRoot/lib/visualpatterns/PatternListFromQuery.inc"); 36 require_once("$default->fileSystemRoot/lib/visualpatterns/PatternListFromQuery.inc");
23 require_once("editUI.inc"); 37 require_once("editUI.inc");
24 - require_once("$default->fileSystemRoot/lib/security/permission.inc"); 38 + require_once("$default->fileSystemRoot/lib/security/Permission.inc");
25 require_once("$default->fileSystemRoot/lib/visualpatterns/PatternCustom.inc"); 39 require_once("$default->fileSystemRoot/lib/visualpatterns/PatternCustom.inc");
26 require_once("$default->fileSystemRoot/lib/foldermanagement/Folder.inc"); 40 require_once("$default->fileSystemRoot/lib/foldermanagement/Folder.inc");
27 require_once("$default->fileSystemRoot/presentation/lookAndFeel/knowledgeTree/foldermanagement/folderUI.inc"); 41 require_once("$default->fileSystemRoot/presentation/lookAndFeel/knowledgeTree/foldermanagement/folderUI.inc");
presentation/lookAndFeel/knowledgeTree/foldermanagement/editGroupFolderLinkBL.php
@@ -5,20 +5,34 @@ @@ -5,20 +5,34 @@
5 * Business logic for editing a folder access entry 5 * Business logic for editing a folder access entry
6 * groupFolderLinkUI.inc for presentation information 6 * groupFolderLinkUI.inc for presentation information
7 * 7 *
8 - * Licensed under the GNU GPL. For full terms see the file COPYING.  
9 - *  
10 * Expected form variables: 8 * Expected form variables:
11 * o $fFolderID - primary key of folder user is currently editing 9 * o $fFolderID - primary key of folder user is currently editing
12 * o $fGroupFolderLinkID - primary key of group folder link user to delete 10 * o $fGroupFolderLinkID - primary key of group folder link user to delete
  11 + *
  12 + * Copyright (c) 2003 Jam Warehouse http://www.jamwarehouse.com
  13 + *
  14 + * This program is free software; you can redistribute it and/or modify
  15 + * it under the terms of the GNU General Public License as published by
  16 + * the Free Software Foundation; either version 2 of the License, or
  17 + * (at your option) any later version.
13 * 18 *
14 - * @version $Revision$ 19 + * This program is distributed in the hope that it will be useful,
  20 + * but WITHOUT ANY WARRANTY; without even the implied warranty of
  21 + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  22 + * GNU General Public License for more details.
  23 + *
  24 + * You should have received a copy of the GNU General Public License
  25 + * along with this program; if not, write to the Free Software
  26 + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
  27 + *
  28 + * @version $Revision$
15 * @author Michael Joseph <michael@jamwarehouse.com>, Jam Warehouse (Pty) Ltd, South Africa 29 * @author Michael Joseph <michael@jamwarehouse.com>, Jam Warehouse (Pty) Ltd, South Africa
16 - * @package presentation.lookAndFeel.knowledgeTree.foldermanagement 30 + * @package foldermanagement
17 */ 31 */
18 32
19 require_once("../../../../config/dmsDefaults.php"); 33 require_once("../../../../config/dmsDefaults.php");
20 include_once("$default->fileSystemRoot/lib/foldermanagement/Folder.inc"); 34 include_once("$default->fileSystemRoot/lib/foldermanagement/Folder.inc");
21 -include_once("$default->fileSystemRoot/lib/security/permission.inc"); 35 +include_once("$default->fileSystemRoot/lib/security/Permission.inc");
22 include_once("$default->fileSystemRoot/lib/groups/GroupFolderLink.inc"); 36 include_once("$default->fileSystemRoot/lib/groups/GroupFolderLink.inc");
23 include_once("$default->fileSystemRoot/lib/groups/Group.inc"); 37 include_once("$default->fileSystemRoot/lib/groups/Group.inc");
24 include_once("$default->fileSystemRoot/lib/roles/Role.inc"); 38 include_once("$default->fileSystemRoot/lib/roles/Role.inc");
presentation/lookAndFeel/knowledgeTree/foldermanagement/editUI.inc
@@ -3,13 +3,27 @@ require_once(&quot;$default-&gt;fileSystemRoot/lib/documentmanagement/Document.inc&quot;); @@ -3,13 +3,27 @@ require_once(&quot;$default-&gt;fileSystemRoot/lib/documentmanagement/Document.inc&quot;);
3 /** 3 /**
4 * $Id$ 4 * $Id$
5 * 5 *
6 - * Presentation information used for folder editing. Used by editBL.php 6 + * Presentation information used for folder editing. Used by editBL.php.
7 * 7 *
8 - * Licensed under the GNU GPL. For full terms see the file DOCS/COPYING. 8 + * Copyright (c) 2003 Jam Warehouse http://www.jamwarehouse.com
  9 + *
  10 + * This program is free software; you can redistribute it and/or modify
  11 + * it under the terms of the GNU General Public License as published by
  12 + * the Free Software Foundation; either version 2 of the License, or
  13 + * (at your option) any later version.
  14 + *
  15 + * This program is distributed in the hope that it will be useful,
  16 + * but WITHOUT ANY WARRANTY; without even the implied warranty of
  17 + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  18 + * GNU General Public License for more details.
9 * 19 *
  20 + * You should have received a copy of the GNU General Public License
  21 + * along with this program; if not, write to the Free Software
  22 + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
  23 + *
  24 + * @version $Revision$
10 * @author Rob Cherry, Jam Warehouse (Pty) Ltd, South Africa 25 * @author Rob Cherry, Jam Warehouse (Pty) Ltd, South Africa
11 - * @date 2 February 2003  
12 - * @package presentation.lookAndFeel.knowledgeTree.foldermanagement 26 + * @package foldermanagement
13 */ 27 */
14 28
15 function getFolderPath($iFolderID) { 29 function getFolderPath($iFolderID) {
@@ -25,7 +39,7 @@ function getFolderData($iFolderID, $sDivName, $sStatusMessage = &quot;&quot;) { @@ -25,7 +39,7 @@ function getFolderData($iFolderID, $sDivName, $sStatusMessage = &quot;&quot;) {
25 $sSectionName = $default->siteMap->getSectionName(substr($_SERVER["PHP_SELF"], strlen($default->rootUrl), strlen($_SERVER["PHP_SELF"]))); 39 $sSectionName = $default->siteMap->getSectionName(substr($_SERVER["PHP_SELF"], strlen($default->rootUrl), strlen($_SERVER["PHP_SELF"])));
26 $sTDBGColour = $default->siteMap->getSectionColour($sSectionName, "td"); 40 $sTDBGColour = $default->siteMap->getSectionColour($sSectionName, "td");
27 $sQuery = "SELECT F.id, F.name, F.description, F.is_public " . 41 $sQuery = "SELECT F.id, F.name, F.description, F.is_public " .
28 - "FROM $default->owl_folders_table AS F " . 42 + "FROM $default->folders_table AS F " .
29 "WHERE F.id = $iFolderID"; 43 "WHERE F.id = $iFolderID";
30 44
31 45
@@ -57,9 +71,9 @@ function getFolderRouting($iFolderID, $sDivName, $bCollaboration) { @@ -57,9 +71,9 @@ function getFolderRouting($iFolderID, $sDivName, $bCollaboration) {
57 //had to use coalesce and left outer join for user_id because this column was a new addition 71 //had to use coalesce and left outer join for user_id because this column was a new addition
58 //and the user_ids for existing documents before this change will be null 72 //and the user_ids for existing documents before this change will be null
59 $sQuery = "SELECT GFAL.id as id, GFAL.folder_id AS folder_id, G.name AS group_name, G.id AS group_id, GFAL.role_id AS role_id, R.name AS role_name, GFAL.precedence AS precedence, COALESCE(U.id, -1) AS user_id, COALESCE(U.name, 'Not Assigned') AS user_name, 'Edit' as edit, 'Delete' as del, 'Dependant docs' as depn " . 73 $sQuery = "SELECT GFAL.id as id, GFAL.folder_id AS folder_id, G.name AS group_name, G.id AS group_id, GFAL.role_id AS role_id, R.name AS role_name, GFAL.precedence AS precedence, COALESCE(U.id, -1) AS user_id, COALESCE(U.name, 'Not Assigned') AS user_name, 'Edit' as edit, 'Delete' as del, 'Dependant docs' as depn " .
60 - "FROM $default->owl_groups_folders_approval_table AS GFAL INNER JOIN roles AS R ON GFAL.role_id = R.id " .  
61 - "INNER JOIN $default->owl_groups_table AS G ON G.id = GFAL.group_id " .  
62 - "LEFT OUTER JOIN $default->owl_users_table AS U ON U.id = GFAL.user_id " . 74 + "FROM $default->groups_folders_approval_table AS GFAL INNER JOIN roles AS R ON GFAL.role_id = R.id " .
  75 + "INNER JOIN $default->groups_table AS G ON G.id = GFAL.group_id " .
  76 + "LEFT OUTER JOIN $default->users_table AS U ON U.id = GFAL.user_id " .
63 "WHERE GFAL.folder_id = $iFolderID " . 77 "WHERE GFAL.folder_id = $iFolderID " .
64 "ORDER BY GFAL.precedence, role_name ASC"; 78 "ORDER BY GFAL.precedence, role_name ASC";
65 79
@@ -90,7 +104,7 @@ function getFolderRouting($iFolderID, $sDivName, $bCollaboration) { @@ -90,7 +104,7 @@ function getFolderRouting($iFolderID, $sDivName, $bCollaboration) {
90 function getFolderDocTypes($iFolderID, $sDivName) { 104 function getFolderDocTypes($iFolderID, $sDivName) {
91 global $default; 105 global $default;
92 $sQuery = "SELECT FDL.id, FDL.folder_id, FDL.document_type_id, DTL.name, 'Remove' AS del " . 106 $sQuery = "SELECT FDL.id, FDL.folder_id, FDL.document_type_id, DTL.name, 'Remove' AS del " .
93 - "FROM $default->owl_folder_doctypes_table AS FDL INNER JOIN $default->owl_document_types_table AS DTL ON FDL.document_type_id = DTL.id " . 107 + "FROM $default->folder_doctypes_table AS FDL INNER JOIN $default->document_types_table AS DTL ON FDL.document_type_id = DTL.id " .
94 "WHERE FDL.folder_id = $iFolderID " . 108 "WHERE FDL.folder_id = $iFolderID " .
95 "ORDER BY DTL.name ASC"; 109 "ORDER BY DTL.name ASC";
96 110
@@ -115,8 +129,8 @@ function getFolderDocTypes($iFolderID, $sDivName) { @@ -115,8 +129,8 @@ function getFolderDocTypes($iFolderID, $sDivName) {
115 function getFolderGroupAccess($iFolderID, $sDivName) { 129 function getFolderGroupAccess($iFolderID, $sDivName) {
116 global $default; 130 global $default;
117 $sQuery = "SELECT GFL.id as id, GFL.group_id AS group_id, GFL.folder_id AS folder_id, GFL.can_read AS can_read, GFL.can_write AS can_write, GL.name AS group_name, 'Edit' as edit, 'Delete' as del " . 131 $sQuery = "SELECT GFL.id as id, GFL.group_id AS group_id, GFL.folder_id AS folder_id, GFL.can_read AS can_read, GFL.can_write AS can_write, GL.name AS group_name, 'Edit' as edit, 'Delete' as del " .
118 - "FROM $default->owl_groups_folders_table AS GFL " .  
119 - "INNER JOIN $default->owl_groups_table AS GL ON GFL.group_id = GL.id " . 132 + "FROM $default->groups_folders_table AS GFL " .
  133 + "INNER JOIN $default->groups_table AS GL ON GFL.group_id = GL.id " .
120 "WHERE GFL.folder_id = $iFolderID"; 134 "WHERE GFL.folder_id = $iFolderID";
121 135
122 $aColumns = array("group_name", "can_read", "can_write", "edit", "del"); 136 $aColumns = array("group_name", "can_read", "can_write", "edit", "del");
presentation/lookAndFeel/knowledgeTree/foldermanagement/folderUI.inc
1 <?php 1 <?php
2 -  
3 /** 2 /**
4 * $Id$ 3 * $Id$
5 * 4 *
6 - * HTML information for folder stuff 5 + * Common folder UI functions.
  6 + *
  7 + * Copyright (c) 2003 Jam Warehouse http://www.jamwarehouse.com
7 * 8 *
8 - * Licensed under the GNU GPL. For full terms see the file DOCS/COPYING. 9 + * This program is free software; you can redistribute it and/or modify
  10 + * it under the terms of the GNU General Public License as published by
  11 + * the Free Software Foundation; either version 2 of the License, or
  12 + * (at your option) any later version.
9 * 13 *
  14 + * This program is distributed in the hope that it will be useful,
  15 + * but WITHOUT ANY WARRANTY; without even the implied warranty of
  16 + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  17 + * GNU General Public License for more details.
  18 + *
  19 + * You should have received a copy of the GNU General Public License
  20 + * along with this program; if not, write to the Free Software
  21 + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
  22 + *
10 * @version $Revision$ 23 * @version $Revision$
11 * @author Rob Cherry, Jam Warehouse (Pty) Ltd, South Africa 24 * @author Rob Cherry, Jam Warehouse (Pty) Ltd, South Africa
12 - * @date 23 January 2003  
13 - * @package presentation.lookAndFeel.knowledgeTree.foldermanagement 25 + * @package foldermanagement
14 */ 26 */
15 27
16 /** 28 /**
@@ -82,7 +94,7 @@ function renderFolderPath($iFolderID, $sLinkURL, $bDisplayLinks = true) { @@ -82,7 +94,7 @@ function renderFolderPath($iFolderID, $sLinkURL, $bDisplayLinks = true) {
82 function renderFolderList($fFolderID, $sLinkURL) { 94 function renderFolderList($fFolderID, $sLinkURL) {
83 global $default; 95 global $default;
84 $sQuery = "SELECT F.id AS id, F.name AS name " . 96 $sQuery = "SELECT F.id AS id, F.name AS name " .
85 - "FROM $default->owl_folders_table AS F " . 97 + "FROM $default->folders_table AS F " .
86 "WHERE F.parent_id = " . $fFolderID . " " . 98 "WHERE F.parent_id = " . $fFolderID . " " .
87 "ORDER BY F.name ASC"; 99 "ORDER BY F.name ASC";
88 100
presentation/lookAndFeel/knowledgeTree/foldermanagement/groupFolderLinkUI.inc
1 <?php 1 <?php
2 /** 2 /**
  3 + * $Id$
  4 + *
3 * Presentation information for adding folder access 5 * Presentation information for adding folder access
4 * Used by addFolderAccessBL.php 6 * Used by addFolderAccessBL.php
5 * 7 *
6 - * @version $Revision$ 8 + * Copyright (c) 2003 Jam Warehouse http://www.jamwarehouse.com
  9 + *
  10 + * This program is free software; you can redistribute it and/or modify
  11 + * it under the terms of the GNU General Public License as published by
  12 + * the Free Software Foundation; either version 2 of the License, or
  13 + * (at your option) any later version.
  14 + *
  15 + * This program is distributed in the hope that it will be useful,
  16 + * but WITHOUT ANY WARRANTY; without even the implied warranty of
  17 + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  18 + * GNU General Public License for more details.
  19 + *
  20 + * You should have received a copy of the GNU General Public License
  21 + * along with this program; if not, write to the Free Software
  22 + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
  23 + *
  24 + * @version $Revision$
7 * @author Michael Joseph <michael@jamwarehouse.com>, Jam Warehouse (Pty) Ltd, South Africa 25 * @author Michael Joseph <michael@jamwarehouse.com>, Jam Warehouse (Pty) Ltd, South Africa
8 - * @package presentation.lookAndFeel.knowledgeTree.foldermanagement 26 + * @package foldermanagement
9 */ 27 */
10 28
11 function getFolderPath($iFolderID) { 29 function getFolderPath($iFolderID) {
@@ -102,10 +120,10 @@ function getAccessCheckBoxes($bReadOnly, $fCanRead = false, $fCanWrite = false) @@ -102,10 +120,10 @@ function getAccessCheckBoxes($bReadOnly, $fCanRead = false, $fCanWrite = false)
102 function getGroupDropDown($iGroupID = -1) { 120 function getGroupDropDown($iGroupID = -1) {
103 global $default; 121 global $default;
104 if (Permission::userIsSystemAdministrator()) { 122 if (Permission::userIsSystemAdministrator()) {
105 - $oPatternListBox = & new PatternListBox("$default->owl_groups_table", "name", "id", "fGroupID"); 123 + $oPatternListBox = & new PatternListBox("$default->groups_table", "name", "id", "fGroupID");
106 } else { 124 } else {
107 - $oPatternListBox = & new PatternListBox("$default->owl_groups_table", "name", "id", "fGroupID", "GUL.unit_id=" . User::getUnitID($_SESSION["userID"]));  
108 - $oPatternListBox->setFromClause("INNER JOIN $default->owl_groups_units_table AS GUL ON ST.id = GUL.group_id"); 125 + $oPatternListBox = & new PatternListBox("$default->groups_table", "name", "id", "fGroupID", "GUL.unit_id=" . User::getUnitID($_SESSION["userID"]));
  126 + $oPatternListBox->setFromClause("INNER JOIN $default->groups_units_table AS GUL ON ST.id = GUL.group_id");
109 } 127 }
110 $oPatternListBox->setEmptyErrorMessage("There are no groups"); 128 $oPatternListBox->setEmptyErrorMessage("There are no groups");
111 $oPatternListBox->setIncludeDefaultValue(false); 129 $oPatternListBox->setIncludeDefaultValue(false);
presentation/lookAndFeel/knowledgeTree/foldermanagement/modifyFolderDataBL.php
1 <?php 1 <?php
2 -  
3 /** 2 /**
4 * $Id$ 3 * $Id$
5 * 4 *
6 * Presentation information used for folder data editing. 5 * Presentation information used for folder data editing.
7 * 6 *
8 - * Licensed under the GNU GPL. For full terms see the file DOCS/COPYING. 7 + * Copyright (c) 2003 Jam Warehouse http://www.jamwarehouse.com
  8 + *
  9 + * This program is free software; you can redistribute it and/or modify
  10 + * it under the terms of the GNU General Public License as published by
  11 + * the Free Software Foundation; either version 2 of the License, or
  12 + * (at your option) any later version.
9 * 13 *
  14 + * This program is distributed in the hope that it will be useful,
  15 + * but WITHOUT ANY WARRANTY; without even the implied warranty of
  16 + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  17 + * GNU General Public License for more details.
  18 + *
  19 + * You should have received a copy of the GNU General Public License
  20 + * along with this program; if not, write to the Free Software
  21 + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
  22 + *
10 * @version $Revision$ 23 * @version $Revision$
11 * @author Michael Joseph <michael@jamwarehouse.com>, Jam Warehouse (Pty) Ltd, South Africa 24 * @author Michael Joseph <michael@jamwarehouse.com>, Jam Warehouse (Pty) Ltd, South Africa
12 - * @package presentation.lookAndFeel.knowledgeTree.foldermanagement 25 + * @package foldermanagement
13 */ 26 */
14 27
15 require_once("../../../../config/dmsDefaults.php"); 28 require_once("../../../../config/dmsDefaults.php");
@@ -18,7 +31,7 @@ if (checkSession()) { @@ -18,7 +31,7 @@ if (checkSession()) {
18 require_once("$default->fileSystemRoot/lib/visualpatterns/PatternListBox.inc"); 31 require_once("$default->fileSystemRoot/lib/visualpatterns/PatternListBox.inc");
19 require_once("$default->fileSystemRoot/lib/visualpatterns/PatternEditableListFromQuery.inc"); 32 require_once("$default->fileSystemRoot/lib/visualpatterns/PatternEditableListFromQuery.inc");
20 require_once("$default->fileSystemRoot/lib/visualpatterns/PatternListFromQuery.inc"); 33 require_once("$default->fileSystemRoot/lib/visualpatterns/PatternListFromQuery.inc");
21 - require_once("$default->fileSystemRoot/lib/security/permission.inc"); 34 + require_once("$default->fileSystemRoot/lib/security/Permission.inc");
22 require_once("$default->fileSystemRoot/lib/visualpatterns/PatternCustom.inc"); 35 require_once("$default->fileSystemRoot/lib/visualpatterns/PatternCustom.inc");
23 require_once("$default->fileSystemRoot/lib/foldermanagement/Folder.inc"); 36 require_once("$default->fileSystemRoot/lib/foldermanagement/Folder.inc");
24 require_once("$default->fileSystemRoot/presentation/lookAndFeel/knowledgeTree/foldermanagement/folderUI.inc"); 37 require_once("$default->fileSystemRoot/presentation/lookAndFeel/knowledgeTree/foldermanagement/folderUI.inc");
presentation/lookAndFeel/knowledgeTree/foldermanagement/modifyFolderDataUI.inc
@@ -4,20 +4,33 @@ @@ -4,20 +4,33 @@
4 * 4 *
5 * Presentation information used for folder data editing. 5 * Presentation information used for folder data editing.
6 * 6 *
7 - * Licensed under the GNU GPL. For full terms see the file DOCS/COPYING. 7 + * Copyright (c) 2003 Jam Warehouse http://www.jamwarehouse.com
  8 + *
  9 + * This program is free software; you can redistribute it and/or modify
  10 + * it under the terms of the GNU General Public License as published by
  11 + * the Free Software Foundation; either version 2 of the License, or
  12 + * (at your option) any later version.
  13 + *
  14 + * This program is distributed in the hope that it will be useful,
  15 + * but WITHOUT ANY WARRANTY; without even the implied warranty of
  16 + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  17 + * GNU General Public License for more details.
8 * 18 *
  19 + * You should have received a copy of the GNU General Public License
  20 + * along with this program; if not, write to the Free Software
  21 + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
  22 + *
9 * @version $Revision$ 23 * @version $Revision$
10 * @author Michael Joseph <michael@jamwarehouse.com>, Jam Warehouse (Pty) Ltd, South Africa 24 * @author Michael Joseph <michael@jamwarehouse.com>, Jam Warehouse (Pty) Ltd, South Africa
11 - * @package presentation.lookAndFeel.knowledgeTree.foldermanagement 25 + * @package foldermanagement
12 */ 26 */
13 27
14 -  
15 function getFolderData($iFolderID, $sStatusMessage = "") { 28 function getFolderData($iFolderID, $sStatusMessage = "") {
16 global $default; 29 global $default;
17 $sSectionName = $default->siteMap->getSectionName(substr($_SERVER["PHP_SELF"], strlen($default->rootUrl), strlen($_SERVER["PHP_SELF"]))); 30 $sSectionName = $default->siteMap->getSectionName(substr($_SERVER["PHP_SELF"], strlen($default->rootUrl), strlen($_SERVER["PHP_SELF"])));
18 $sTDBGColour = $default->siteMap->getSectionColour($sSectionName, "td"); 31 $sTDBGColour = $default->siteMap->getSectionColour($sSectionName, "td");
19 $sQuery = "SELECT F.id, F.name, F.description, F.is_public " . 32 $sQuery = "SELECT F.id, F.name, F.description, F.is_public " .
20 - "FROM $default->owl_folders_table AS F " . 33 + "FROM $default->folders_table AS F " .
21 "WHERE F.id = $iFolderID"; 34 "WHERE F.id = $iFolderID";
22 35
23 $sql = $default->db; 36 $sql = $default->db;
presentation/lookAndFeel/knowledgeTree/foldermanagement/viewDependantDocumentsBL.php
1 <?php 1 <?php
2 -  
3 /** 2 /**
4 -* Business logic for linking document creation to a folder collaboration step  
5 -*  
6 -* Expected variables:  
7 -* $fFolderCollaborationID: primary key of folder collaboration to check  
8 -* $fFolderID: folder we are currently editing  
9 -*  
10 -* @author Rob Cherry, Jam Warehouse (Pty) Ltd, South Africa  
11 -* @date 14 May 2003  
12 -* @package presentation.lookAndFeel.knowledgeTree.foldermanagement  
13 -*/ 3 + * $Id$
  4 + *
  5 + * Business logic for linking document creation to a folder collaboration step
  6 + *
  7 + * Expected variables:
  8 + * $fFolderCollaborationID: primary key of folder collaboration to check
  9 + * $fFolderID: folder we are currently editing
  10 + *
  11 + * Copyright (c) 2003 Jam Warehouse http://www.jamwarehouse.com
  12 + *
  13 + * This program is free software; you can redistribute it and/or modify
  14 + * it under the terms of the GNU General Public License as published by
  15 + * the Free Software Foundation; either version 2 of the License, or
  16 + * (at your option) any later version.
  17 + *
  18 + * This program is distributed in the hope that it will be useful,
  19 + * but WITHOUT ANY WARRANTY; without even the implied warranty of
  20 + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  21 + * GNU General Public License for more details.
  22 + *
  23 + * You should have received a copy of the GNU General Public License
  24 + * along with this program; if not, write to the Free Software
  25 + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
  26 + *
  27 + * @version $Revision$
  28 + * @author Rob Cherry, Jam Warehouse (Pty) Ltd, South Africa
  29 + * @package foldermanagement
  30 + */
14 31
15 require_once("../../../../config/dmsDefaults.php"); 32 require_once("../../../../config/dmsDefaults.php");
16 33
presentation/lookAndFeel/knowledgeTree/foldermanagement/viewDependantDocumentsUI.inc
1 <?php 1 <?php
2 - 2 +/**
  3 + * $Id$
  4 + *
  5 + * Dependent documents UI functions.
  6 + *
  7 + * Copyright (c) 2003 Jam Warehouse http://www.jamwarehouse.com
  8 + *
  9 + * This program is free software; you can redistribute it and/or modify
  10 + * it under the terms of the GNU General Public License as published by
  11 + * the Free Software Foundation; either version 2 of the License, or
  12 + * (at your option) any later version.
  13 + *
  14 + * This program is distributed in the hope that it will be useful,
  15 + * but WITHOUT ANY WARRANTY; without even the implied warranty of
  16 + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  17 + * GNU General Public License for more details.
  18 + *
  19 + * You should have received a copy of the GNU General Public License
  20 + * along with this program; if not, write to the Free Software
  21 + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
  22 + *
  23 + * @version $Revision$
  24 + * @author Michael Joseph <michael@jamwarehouse.com>, Jam Warehouse (Pty) Ltd, South Africa
  25 + * @package foldermanagement
  26 + */
3 27
4 function getFolderPath($iFolderID) { 28 function getFolderPath($iFolderID) {
5 global $default; 29 global $default;
@@ -128,7 +152,7 @@ function getAddPage($iFolderCollaborationID, $iFolderID, $iUnitID, $sDocumentTit @@ -128,7 +152,7 @@ function getAddPage($iFolderCollaborationID, $iFolderID, $iUnitID, $sDocumentTit
128 152
129 function getUserDropDown($iUnitID, $iUserID = null) { 153 function getUserDropDown($iUnitID, $iUserID = null) {
130 global $default; 154 global $default;
131 - $oPatternListBox = & new PatternListBox($default->owl_users_table, "Name", "id", "fUserID", "GUL.unit_id = $iUnitID"); 155 + $oPatternListBox = & new PatternListBox($default->users_table, "Name", "id", "fUserID", "GUL.unit_id = $iUnitID");
132 $sFromClause = "INNER join users_groups_link AS UGL ON UGL.user_id = ST.id " . 156 $sFromClause = "INNER join users_groups_link AS UGL ON UGL.user_id = ST.id " .
133 "INNER JOIN groups_units_link AS GUL ON GUL.group_id = UGL.group_id "; 157 "INNER JOIN groups_units_link AS GUL ON GUL.group_id = UGL.group_id ";
134 $oPatternListBox->setFromClause($sFromClause); 158 $oPatternListBox->setFromClause($sFromClause);
@@ -142,7 +166,7 @@ function getUserDropDown($iUnitID, $iUserID = null) { @@ -142,7 +166,7 @@ function getUserDropDown($iUnitID, $iUserID = null) {
142 166
143 function getUnitDropDown($iFolderCollaborationID, $iFolderID, $iUnitID = null) { 167 function getUnitDropDown($iFolderCollaborationID, $iFolderID, $iUnitID = null) {
144 global $default; 168 global $default;
145 - $oPatternListBox = & new PatternListBox($default->owl_units_table, "Name", "id", "fUnitID"); 169 + $oPatternListBox = & new PatternListBox($default->units_table, "Name", "id", "fUnitID");
146 $oPatternListBox->setPostBackOnChange(true); 170 $oPatternListBox->setPostBackOnChange(true);
147 $oPatternListBox->setOnChangeAction("setActionAndSubmit('" . $_SERVER["PHP_SELF"] . "?fFolderID=$iFolderID&fFolderCollaborationID=$iFolderCollaborationID&fForAdd=1')"); 171 $oPatternListBox->setOnChangeAction("setActionAndSubmit('" . $_SERVER["PHP_SELF"] . "?fFolderID=$iFolderID&fFolderCollaborationID=$iFolderCollaborationID&fForAdd=1')");
148 if (isset($iUnitID)) { 172 if (isset($iUnitID)) {
presentation/lookAndFeel/knowledgeTree/preferences/editPrefsSuccess.php
1 <?php 1 <?php
2 /** 2 /**
3 -* Presentation information when updating group properties is successful  
4 -*  
5 -* @author Mukhtar Dharsey  
6 -* @date 5 February 2003  
7 -* @package presentation.lookAndFeel.knowledgeTree.  
8 -*  
9 -*/ 3 + * $Id$
  4 + *
  5 + * Edit user preferences success page.
  6 + *
  7 + * Copyright (c) 2003 Jam Warehouse http://www.jamwarehouse.com
  8 + *
  9 + * This program is free software; you can redistribute it and/or modify
  10 + * it under the terms of the GNU General Public License as published by
  11 + * the Free Software Foundation; either version 2 of the License, or
  12 + * (at your option) any later version.
  13 + *
  14 + * This program is distributed in the hope that it will be useful,
  15 + * but WITHOUT ANY WARRANTY; without even the implied warranty of
  16 + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  17 + * GNU General Public License for more details.
  18 + *
  19 + * You should have received a copy of the GNU General Public License
  20 + * along with this program; if not, write to the Free Software
  21 + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
  22 + *
  23 + * @version $Revision$
  24 + * @author Mukhtar Dharsey, Jam Warehouse (Pty) Ltd, South Africa
  25 + * @package preferences
  26 + */
10 27
11 require_once("../../../../config/dmsDefaults.php"); 28 require_once("../../../../config/dmsDefaults.php");
12 require_once("editUserPrefsUI.inc"); 29 require_once("editUserPrefsUI.inc");
presentation/lookAndFeel/knowledgeTree/preferences/editUserPrefsBL.php
1 <?php 1 <?php
2 /** 2 /**
3 -* BL information for editing a User  
4 -*  
5 -* @author Mukhtar Dharsey  
6 -* @date 5 February 2003  
7 -* @package presentation.lookAndFeel.knowledgeTree.  
8 -*  
9 -*/ 3 + * $Id$
  4 + *
  5 + * Edit user preferences.
  6 + *
  7 + * Copyright (c) 2003 Jam Warehouse http://www.jamwarehouse.com
  8 + *
  9 + * This program is free software; you can redistribute it and/or modify
  10 + * it under the terms of the GNU General Public License as published by
  11 + * the Free Software Foundation; either version 2 of the License, or
  12 + * (at your option) any later version.
  13 + *
  14 + * This program is distributed in the hope that it will be useful,
  15 + * but WITHOUT ANY WARRANTY; without even the implied warranty of
  16 + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  17 + * GNU General Public License for more details.
  18 + *
  19 + * You should have received a copy of the GNU General Public License
  20 + * along with this program; if not, write to the Free Software
  21 + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
  22 + *
  23 + * @version $Revision$
  24 + * @author Mukhtar Dharsey, Jam Warehouse (Pty) Ltd, South Africa
  25 + * @package preferences
  26 + */
10 require_once("../../../../config/dmsDefaults.php"); 27 require_once("../../../../config/dmsDefaults.php");
11 28
12 if (checkSession()) { 29 if (checkSession()) {
13 require_once("$default->fileSystemRoot/lib/visualpatterns/PatternListBox.inc"); 30 require_once("$default->fileSystemRoot/lib/visualpatterns/PatternListBox.inc");
14 require_once("$default->fileSystemRoot/lib/visualpatterns/PatternEditableListFromQuery.inc"); 31 require_once("$default->fileSystemRoot/lib/visualpatterns/PatternEditableListFromQuery.inc");
15 require_once("editUserPrefsUI.inc"); 32 require_once("editUserPrefsUI.inc");
16 - require_once("$default->fileSystemRoot/lib/security/permission.inc"); 33 + require_once("$default->fileSystemRoot/lib/security/Permission.inc");
17 require_once("$default->fileSystemRoot/lib/users/User.inc"); 34 require_once("$default->fileSystemRoot/lib/users/User.inc");
18 require_once("$default->fileSystemRoot/presentation/webpageTemplate.inc"); 35 require_once("$default->fileSystemRoot/presentation/webpageTemplate.inc");
19 require_once("$default->fileSystemRoot/lib/visualpatterns/PatternCustom.inc"); 36 require_once("$default->fileSystemRoot/lib/visualpatterns/PatternCustom.inc");
presentation/lookAndFeel/knowledgeTree/preferences/editUserPrefsUI.inc
1 <?php 1 <?php
2 /** 2 /**
3 -* Presentation information for renaming a User  
4 -*  
5 -* @author Mukhtar Dharsey  
6 -* @date 5 February 2003  
7 -* @package presentation.lookAndFeel.knowledgeTree.  
8 -*  
9 -*/ 3 + * $Id$
  4 + *
  5 + * Edit user preferences UI functions.
  6 + *
  7 + * Copyright (c) 2003 Jam Warehouse http://www.jamwarehouse.com
  8 + *
  9 + * This program is free software; you can redistribute it and/or modify
  10 + * it under the terms of the GNU General Public License as published by
  11 + * the Free Software Foundation; either version 2 of the License, or
  12 + * (at your option) any later version.
  13 + *
  14 + * This program is distributed in the hope that it will be useful,
  15 + * but WITHOUT ANY WARRANTY; without even the implied warranty of
  16 + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  17 + * GNU General Public License for more details.
  18 + *
  19 + * You should have received a copy of the GNU General Public License
  20 + * along with this program; if not, write to the Free Software
  21 + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
  22 + *
  23 + * @version $Revision$
  24 + * @author Mukhtar Dharsey, Jam Warehouse (Pty) Ltd, South Africa
  25 + * @package preferences
  26 + */
10 27
11 function getUserDetailsPage($iUserID) { 28 function getUserDetailsPage($iUserID) {
12 29
13 global $default; 30 global $default;
14 $oUser = null; 31 $oUser = null;
15 32
16 - $sQuery = "SELECT * FROM $default->owl_users_table WHERE id = $iUserID"; 33 + $sQuery = "SELECT * FROM $default->users_table WHERE id = $iUserID";
17 $aDisplayColumns = array("name","email", "mobile", "email_notification"); 34 $aDisplayColumns = array("name","email", "mobile", "email_notification");
18 $aStoreColumns = array("name","email", "mobile", "email_notification") ; 35 $aStoreColumns = array("name","email", "mobile", "email_notification") ;
19 $aColumnNames = array("Name: ", "Email Address: ", "Mobile Number: ", "Email Notification: "); 36 $aColumnNames = array("Name: ", "Email Address: ", "Mobile Number: ", "Email Notification: ");
@@ -21,7 +38,7 @@ function getUserDetailsPage($iUserID) { @@ -21,7 +38,7 @@ function getUserDetailsPage($iUserID) {
21 $aDatabaseColumnTypes = array(1,1,1,2); 38 $aDatabaseColumnTypes = array(1,1,1,2);
22 39
23 // get list of User properties...name...text field...is_Sys_admin and is_unit_admin..checkboxes 40 // get list of User properties...name...text field...is_Sys_admin and is_unit_admin..checkboxes
24 - $oPattern = & new PatternEditableListFromQuery($sQuery, $default->owl_users_table, $aDisplayColumns, $aStoreColumns, $aColumnNames, $aDisplayColumnTypes, $aDatabaseColumnTypes) ; 41 + $oPattern = & new PatternEditableListFromQuery($sQuery, $default->users_table, $aDisplayColumns, $aStoreColumns, $aColumnNames, $aDisplayColumnTypes, $aDatabaseColumnTypes) ;
25 $oPattern->setUniqueName("userEdit"); 42 $oPattern->setUniqueName("userEdit");
26 $oPattern->setColumnsRequired(array(1,0,0,0)); 43 $oPattern->setColumnsRequired(array(1,0,0,0));
27 44
presentation/lookAndFeel/knowledgeTree/search/advancedSearchBL.php
@@ -4,10 +4,26 @@ @@ -4,10 +4,26 @@
4 * 4 *
5 * Business logic used to perform advanced search. Advanced search allows 5 * Business logic used to perform advanced search. Advanced search allows
6 * users to search by meta data types 6 * users to search by meta data types
  7 + *
  8 + * Copyright (c) 2003 Jam Warehouse http://www.jamwarehouse.com
  9 + *
  10 + * This program is free software; you can redistribute it and/or modify
  11 + * it under the terms of the GNU General Public License as published by
  12 + * the Free Software Foundation; either version 2 of the License, or
  13 + * (at your option) any later version.
7 * 14 *
8 - * @author Rob Cherry, Jam Warehouse South Africa (Pty) Ltd  
9 - * @date 26 February 2003  
10 - * @package presentation.knowledgeTree.search 15 + * This program is distributed in the hope that it will be useful,
  16 + * but WITHOUT ANY WARRANTY; without even the implied warranty of
  17 + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  18 + * GNU General Public License for more details.
  19 + *
  20 + * You should have received a copy of the GNU General Public License
  21 + * along with this program; if not, write to the Free Software
  22 + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
  23 + *
  24 + * @version $Revision$
  25 + * @author Rob Cherry, Jam Warehouse (Pty) Ltd, South Africa
  26 + * @package search
11 */ 27 */
12 28
13 require_once("../../../../config/dmsDefaults.php"); 29 require_once("../../../../config/dmsDefaults.php");
@@ -18,7 +34,7 @@ if (checkSession()) { @@ -18,7 +34,7 @@ if (checkSession()) {
18 require_once("$default->fileSystemRoot/lib/visualpatterns/PatternCustom.inc"); 34 require_once("$default->fileSystemRoot/lib/visualpatterns/PatternCustom.inc");
19 require_once("$default->fileSystemRoot/lib/foldermanagement/Folder.inc"); 35 require_once("$default->fileSystemRoot/lib/foldermanagement/Folder.inc");
20 require_once("$default->fileSystemRoot/lib/documentmanagement/Document.inc"); 36 require_once("$default->fileSystemRoot/lib/documentmanagement/Document.inc");
21 - require_once("$default->fileSystemRoot/lib/security/permission.inc"); 37 + require_once("$default->fileSystemRoot/lib/security/Permission.inc");
22 require_once("$default->fileSystemRoot/presentation/Html.inc"); 38 require_once("$default->fileSystemRoot/presentation/Html.inc");
23 require_once("advancedSearchUI.inc"); 39 require_once("advancedSearchUI.inc");
24 require_once("advancedSearchUtil.inc"); 40 require_once("advancedSearchUtil.inc");
presentation/lookAndFeel/knowledgeTree/search/advancedSearchUI.inc
@@ -4,14 +4,30 @@ @@ -4,14 +4,30 @@
4 * 4 *
5 * Presentation logic used by advancedSearchBL.php 5 * Presentation logic used by advancedSearchBL.php
6 * 6 *
7 - * @author Rob Cherry, Jam Warehouse South Africa (Pty) Ltd  
8 - * @date 26 February 2003  
9 - * @package presentation.lookAndFeel.knowledgeTree.search 7 + * Copyright (c) 2003 Jam Warehouse http://www.jamwarehouse.com
  8 + *
  9 + * This program is free software; you can redistribute it and/or modify
  10 + * it under the terms of the GNU General Public License as published by
  11 + * the Free Software Foundation; either version 2 of the License, or
  12 + * (at your option) any later version.
  13 + *
  14 + * This program is distributed in the hope that it will be useful,
  15 + * but WITHOUT ANY WARRANTY; without even the implied warranty of
  16 + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  17 + * GNU General Public License for more details.
  18 + *
  19 + * You should have received a copy of the GNU General Public License
  20 + * along with this program; if not, write to the Free Software
  21 + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
  22 + *
  23 + * @version $Revision$
  24 + * @author Rob Cherry, Jam Warehouse (Pty) Ltd, South Africa
  25 + * @package search
10 */ 26 */
11 27
12 function getMetaData($aMetaTagIDs) { 28 function getMetaData($aMetaTagIDs) {
13 global $default; 29 global $default;
14 - $sQuery = "SELECT name, id FROM $default->owl_fields_table ORDER BY name ASC"; 30 + $sQuery = "SELECT name, id FROM $default->document_fields_table ORDER BY name ASC";
15 31
16 $sql = $default->db; 32 $sql = $default->db;
17 $sql->query($sQuery); 33 $sql->query($sQuery);
@@ -83,11 +99,11 @@ function getSearchResults($sMetaTagIDs, $sSQLSearchString, $iStartIndex, $sStatu @@ -83,11 +99,11 @@ function getSearchResults($sMetaTagIDs, $sSQLSearchString, $iStartIndex, $sStatu
83 global $default; 99 global $default;
84 100
85 $sQuery = "SELECT '" . "$default->graphicsUrl/widgets/dfolder.gif" . "' AS folder_image_url, F.id folder_id, D.id document_id, D.name AS document_name, COUNT(D.id) AS doc_count " . 101 $sQuery = "SELECT '" . "$default->graphicsUrl/widgets/dfolder.gif" . "' AS folder_image_url, F.id folder_id, D.id document_id, D.name AS document_name, COUNT(D.id) AS doc_count " .
86 - "FROM $default->owl_documents_table AS D INNER JOIN $default->owl_folders_table AS F ON D.folder_id = F.id " .  
87 - "INNER JOIN $default->owl_document_fields_table AS DFL ON DFL.document_id = D.id " .  
88 - "INNER JOIN $default->owl_fields_table AS DF ON DF.id = DFL.document_field_id " . 102 + "FROM $default->documents_table AS D INNER JOIN $default->folders_table AS F ON D.folder_id = F.id " .
  103 + "INNER JOIN $default->document_fields_link_table AS DFL ON DFL.document_id = D.id " .
  104 + "INNER JOIN $default->document_fields_table AS DF ON DF.id = DFL.document_field_id " .
89 "INNER JOIN $default->search_permissions_table AS SDUL ON SDUL.document_id = D.ID " . 105 "INNER JOIN $default->search_permissions_table AS SDUL ON SDUL.document_id = D.ID " .
90 - "INNER JOIN $default->owl_status_table AS SL on D.status_id=SL.id " . 106 + "INNER JOIN $default->status_table AS SL on D.status_id=SL.id " .
91 "WHERE DF.ID IN ($sMetaTagIDs) " . 107 "WHERE DF.ID IN ($sMetaTagIDs) " .
92 "AND (" . $sSQLSearchString . ") " . 108 "AND (" . $sSQLSearchString . ") " .
93 "AND SDUL.user_id = " . $_SESSION["userID"] . " " . 109 "AND SDUL.user_id = " . $_SESSION["userID"] . " " .
presentation/lookAndFeel/knowledgeTree/search/advancedSearchUtil.inc
@@ -3,11 +3,27 @@ @@ -3,11 +3,27 @@
3 * $Id$ 3 * $Id$
4 * 4 *
5 * Business logic used to perform advanced search. Advanced search allows 5 * Business logic used to perform advanced search. Advanced search allows
6 - * users to search by meta data types 6 + * users to search by meta data types.
  7 + *
  8 + * Copyright (c) 2003 Jam Warehouse http://www.jamwarehouse.com
  9 + *
  10 + * This program is free software; you can redistribute it and/or modify
  11 + * it under the terms of the GNU General Public License as published by
  12 + * the Free Software Foundation; either version 2 of the License, or
  13 + * (at your option) any later version.
7 * 14 *
8 - * @author Rob Cherry, Jam Warehouse South Africa (Pty) Ltd  
9 - * @date 26 February 2003  
10 - * @package presentation.knowledgeTree.search 15 + * This program is distributed in the hope that it will be useful,
  16 + * but WITHOUT ANY WARRANTY; without even the implied warranty of
  17 + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  18 + * GNU General Public License for more details.
  19 + *
  20 + * You should have received a copy of the GNU General Public License
  21 + * along with this program; if not, write to the Free Software
  22 + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
  23 + *
  24 + * @version $Revision$
  25 + * @author Rob Cherry, Jam Warehouse (Pty) Ltd, South Africa
  26 + * @package search
11 */ 27 */
12 28
13 /** 29 /**
presentation/lookAndFeel/knowledgeTree/search/standardSearchBL.php
1 <?php 1 <?php
2 /** 2 /**
3 -* Business logic used to perform document searches  
4 -*  
5 -* Expected form variables  
6 -* o fSearchText - text to search on  
7 -* o fBrowseType - current browse type  
8 -* o fFolderID - folder currently being browsed (if a folder is being browsed)  
9 -* o fDocumentID - document currently being browsed (if a document is being browsed)  
10 -* o fCategoryName - name of category being browsed (if a category is being browsed)  
11 -* o fDocTypeID - name of document type being browsed (if a doc type is being browsed)  
12 -*  
13 -*  
14 -*/ 3 + * $Id$
  4 + *
  5 + * Business logic used to perform document searches
  6 + *
  7 + * Expected form variables
  8 + * o fSearchText - text to search on
  9 + * o fBrowseType - current browse type
  10 + * o fFolderID - folder currently being browsed (if a folder is being browsed)
  11 + * o fDocumentID - document currently being browsed (if a document is being browsed)
  12 + * o fCategoryName - name of category being browsed (if a category is being browsed)
  13 + * o fDocTypeID - name of document type being browsed (if a doc type is being browsed)
  14 + *
  15 + * Copyright (c) 2003 Jam Warehouse http://www.jamwarehouse.com
  16 + *
  17 + * This program is free software; you can redistribute it and/or modify
  18 + * it under the terms of the GNU General Public License as published by
  19 + * the Free Software Foundation; either version 2 of the License, or
  20 + * (at your option) any later version.
  21 + *
  22 + * This program is distributed in the hope that it will be useful,
  23 + * but WITHOUT ANY WARRANTY; without even the implied warranty of
  24 + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  25 + * GNU General Public License for more details.
  26 + *
  27 + * You should have received a copy of the GNU General Public License
  28 + * along with this program; if not, write to the Free Software
  29 + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
  30 + *
  31 + * @version $Revision$
  32 + * @author Rob Cherry, Jam Warehouse (Pty) Ltd, South Africa
  33 + * @package search
  34 + */
  35 +
15 require_once("../../../../config/dmsDefaults.php"); 36 require_once("../../../../config/dmsDefaults.php");
16 if (checkSession()) { 37 if (checkSession()) {
17 require_once("$default->fileSystemRoot/lib/visualpatterns/PatternBrowsableSearchResults.inc"); 38 require_once("$default->fileSystemRoot/lib/visualpatterns/PatternBrowsableSearchResults.inc");
presentation/lookAndFeel/knowledgeTree/search/standardSearchUI.inc
@@ -2,11 +2,27 @@ @@ -2,11 +2,27 @@
2 /** 2 /**
3 * $Id$ 3 * $Id$
4 * 4 *
5 - * Presentation functionality used to searchDocumentBL.php 5 + * Presentation functionality used to searchDocumentBL.php.
  6 + *
  7 + * Copyright (c) 2003 Jam Warehouse http://www.jamwarehouse.com
  8 + *
  9 + * This program is free software; you can redistribute it and/or modify
  10 + * it under the terms of the GNU General Public License as published by
  11 + * the Free Software Foundation; either version 2 of the License, or
  12 + * (at your option) any later version.
6 * 13 *
7 - * @author Rob Cherry, Jam Warehouse South Africa (Pty) Ltd  
8 - * @date 20 February 2003  
9 - * @package presentation.lookAndFeel.documentmanagement 14 + * This program is distributed in the hope that it will be useful,
  15 + * but WITHOUT ANY WARRANTY; without even the implied warranty of
  16 + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  17 + * GNU General Public License for more details.
  18 + *
  19 + * You should have received a copy of the GNU General Public License
  20 + * along with this program; if not, write to the Free Software
  21 + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
  22 + *
  23 + * @version $Revision$
  24 + * @author Rob Cherry, Jam Warehouse (Pty) Ltd, South Africa
  25 + * @package search
10 */ 26 */
11 27
12 function getHeading() { 28 function getHeading() {
@@ -21,11 +37,11 @@ function getSearchResultsByCategory($iFolderID, $sKeywords, $iStartIndex, $sCate @@ -21,11 +37,11 @@ function getSearchResultsByCategory($iFolderID, $sKeywords, $iStartIndex, $sCate
21 global $default; 37 global $default;
22 38
23 $sQuery = "SELECT DISTINCT '" . "$default->graphicsUrl/widgets/dfolder.gif" . "' AS folder_image_url, F.id AS folder_id, D.id AS document_id, D.name AS document_name, ROUND(MATCH(DT.document_text) AGAINST ('" . $sKeywords . "'),3) AS score " . 39 $sQuery = "SELECT DISTINCT '" . "$default->graphicsUrl/widgets/dfolder.gif" . "' AS folder_image_url, F.id AS folder_id, D.id AS document_id, D.name AS document_name, ROUND(MATCH(DT.document_text) AGAINST ('" . $sKeywords . "'),3) AS score " .
24 - "FROM $default->owl_documents_table AS D INNER JOIN $default->owl_document_text_table AS DT ON D.id = DT.document_id " .  
25 - "INNER JOIN $default->owl_document_fields_table AS DFL ON DT.document_id=DFL.document_id " .  
26 - "INNER JOIN $default->owl_fields_table AS DF ON DF.id = DFL.document_field_id " .  
27 - "INNER JOIN $default->owl_status_table AS SL ON D.status_id = SL.id " .  
28 - "INNER JOIN $default->owl_folders_table AS F on F.ID = D.folder_id " . 40 + "FROM $default->documents_table AS D INNER JOIN $default->document_text_table AS DT ON D.id = DT.document_id " .
  41 + "INNER JOIN $default->document_fields_link_table AS DFL ON DT.document_id=DFL.document_id " .
  42 + "INNER JOIN $default->document_fields_table AS DF ON DF.id = DFL.document_field_id " .
  43 + "INNER JOIN $default->status_table AS SL ON D.status_id = SL.id " .
  44 + "INNER JOIN $default->folders_table AS F on F.ID = D.folder_id " .
29 "INNER JOIN $default->search_permissions_table AS SDUL ON SDUL.document_id = D.id " . 45 "INNER JOIN $default->search_permissions_table AS SDUL ON SDUL.document_id = D.id " .
30 "WHERE MATCH(DT.document_text) AGAINST ('" . $sKeywords . "') " . 46 "WHERE MATCH(DT.document_text) AGAINST ('" . $sKeywords . "') " .
31 "AND SDUL.user_id = " . $_SESSION["userID"] . " " . 47 "AND SDUL.user_id = " . $_SESSION["userID"] . " " .
@@ -56,9 +72,9 @@ function getSearchResultsByCategory($iFolderID, $sKeywords, $iStartIndex, $sCate @@ -56,9 +72,9 @@ function getSearchResultsByCategory($iFolderID, $sKeywords, $iStartIndex, $sCate
56 function getSearchResultsByDocumentType($iFolderID, $sKeywords, $iStartIndex, $iDocTypeID) { 72 function getSearchResultsByDocumentType($iFolderID, $sKeywords, $iStartIndex, $iDocTypeID) {
57 global $default; 73 global $default;
58 $sQuery = "SELECT DISTINCT '" . "$default->graphicsUrl/widgets/dfolder.gif" . "' AS folder_image_url, F.id AS folder_id, D.id AS document_id, D.name AS document_name, ROUND(MATCH(DT.document_text) AGAINST ('" . $sKeywords . "'),3) AS score " . 74 $sQuery = "SELECT DISTINCT '" . "$default->graphicsUrl/widgets/dfolder.gif" . "' AS folder_image_url, F.id AS folder_id, D.id AS document_id, D.name AS document_name, ROUND(MATCH(DT.document_text) AGAINST ('" . $sKeywords . "'),3) AS score " .
59 - "FROM $default->owl_documents_table AS D INNER JOIN $default->owl_document_text_table AS DT ON D.id = DT.document_id " .  
60 - "INNER JOIN $default->owl_status_table AS SL ON D.status_id = SL.id " .  
61 - "INNER JOIN $default->owl_folders_table AS F on F.ID = D.folder_id " . 75 + "FROM $default->documents_table AS D INNER JOIN $default->document_text_table AS DT ON D.id = DT.document_id " .
  76 + "INNER JOIN $default->status_table AS SL ON D.status_id = SL.id " .
  77 + "INNER JOIN $default->folders_table AS F on F.ID = D.folder_id " .
62 "INNER JOIN $default->search_permissions_table AS SDUL ON SDUL.document_id = D.id " . 78 "INNER JOIN $default->search_permissions_table AS SDUL ON SDUL.document_id = D.id " .
63 "WHERE MATCH(DT.document_text) AGAINST ('" . $sKeywords . "') " . 79 "WHERE MATCH(DT.document_text) AGAINST ('" . $sKeywords . "') " .
64 "AND SDUL.user_id = " . $_SESSION["userID"] . " "; 80 "AND SDUL.user_id = " . $_SESSION["userID"] . " ";
@@ -89,9 +105,9 @@ function getSearchResultsByDocumentType($iFolderID, $sKeywords, $iStartIndex, $i @@ -89,9 +105,9 @@ function getSearchResultsByDocumentType($iFolderID, $sKeywords, $iStartIndex, $i
89 function getSeachResultsByFolder($iFolderID, $iStartIndex, $sKeywords) { 105 function getSeachResultsByFolder($iFolderID, $iStartIndex, $sKeywords) {
90 global $default; 106 global $default;
91 $sQuery = "SELECT DISTINCT '" . "$default->graphicsUrl/widgets/dfolder.gif" . "' AS folder_image_url, F.id AS folder_id, D.id AS document_id, D.name AS document_name, ROUND(MATCH(DT.document_text) AGAINST ('" . $sKeywords . "'),3) AS score " . 107 $sQuery = "SELECT DISTINCT '" . "$default->graphicsUrl/widgets/dfolder.gif" . "' AS folder_image_url, F.id AS folder_id, D.id AS document_id, D.name AS document_name, ROUND(MATCH(DT.document_text) AGAINST ('" . $sKeywords . "'),3) AS score " .
92 - "FROM $default->owl_documents_table AS D INNER JOIN $default->owl_document_text_table AS DT ON D.id = DT.document_id " .  
93 - "INNER JOIN $default->owl_status_table AS SL ON D.status_id = SL.id " .  
94 - "INNER JOIN $default->owl_folders_table AS F on F.ID = D.folder_id " . 108 + "FROM $default->documents_table AS D INNER JOIN $default->document_text_table AS DT ON D.id = DT.document_id " .
  109 + "INNER JOIN $default->status_table AS SL ON D.status_id = SL.id " .
  110 + "INNER JOIN $default->folders_table AS F on F.ID = D.folder_id " .
95 "INNER JOIN $default->search_permissions_table AS SDUL ON SDUL.document_id = D.id " . 111 "INNER JOIN $default->search_permissions_table AS SDUL ON SDUL.document_id = D.id " .
96 "WHERE MATCH(DT.document_text) AGAINST ('" . $sKeywords . "') " . 112 "WHERE MATCH(DT.document_text) AGAINST ('" . $sKeywords . "') " .
97 "AND SDUL.user_id = " . $_SESSION["userID"] . " " . 113 "AND SDUL.user_id = " . $_SESSION["userID"] . " " .
presentation/lookAndFeel/knowledgeTree/subscriptions/addSubscriptionBL.php
@@ -4,30 +4,37 @@ require_once(&quot;../../../../config/dmsDefaults.php&quot;); @@ -4,30 +4,37 @@ require_once(&quot;../../../../config/dmsDefaults.php&quot;);
4 require_once("$default->fileSystemRoot/lib/subscriptions/Subscription.inc"); 4 require_once("$default->fileSystemRoot/lib/subscriptions/Subscription.inc");
5 require_once("$default->fileSystemRoot/lib/subscriptions/SubscriptionManager.inc"); 5 require_once("$default->fileSystemRoot/lib/subscriptions/SubscriptionManager.inc");
6 require_once("$default->fileSystemRoot/presentation/Html.inc"); 6 require_once("$default->fileSystemRoot/presentation/Html.inc");
7 -  
8 /** 7 /**
9 * $Id$ 8 * $Id$
10 - *  
11 - * Adds a document or folder subscription for a user.  
12 * 9 *
13 - * Licensed under the GNU GPL. For full terms see the file DOCS/COPYING. 10 + * Adds a document or folder subscription for a user.
14 * 11 *
15 - * @version $Revision$  
16 - * @author Michael Joseph <michael@jamwarehouse.com>, Jam Warehouse (Pty) Ltd, South Africa  
17 - * @package presentation.lookAndFeel.knowledgeTree.subscriptions  
18 - */  
19 -  
20 -/*  
21 * Querystring variables 12 * Querystring variables
22 * --------------------- 13 * ---------------------
23 * fFolderID - the folder to subscribe the current user to (optional) 14 * fFolderID - the folder to subscribe the current user to (optional)
24 * fDocumentID - the document to subscribe the current user to (optional) 15 * fDocumentID - the document to subscribe the current user to (optional)
  16 + *
  17 + * Copyright (c) 2003 Jam Warehouse http://www.jamwarehouse.com
  18 + *
  19 + * This program is free software; you can redistribute it and/or modify
  20 + * it under the terms of the GNU General Public License as published by
  21 + * the Free Software Foundation; either version 2 of the License, or
  22 + * (at your option) any later version.
  23 + *
  24 + * This program is distributed in the hope that it will be useful,
  25 + * but WITHOUT ANY WARRANTY; without even the implied warranty of
  26 + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  27 + * GNU General Public License for more details.
  28 + *
  29 + * You should have received a copy of the GNU General Public License
  30 + * along with this program; if not, write to the Free Software
  31 + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
  32 + *
  33 + * @version $Revision$
  34 + * @author Michael Joseph <michael@jamwarehouse.com>, Jam Warehouse (Pty) Ltd, South Africa
  35 + * @package subscriptions
25 */ 36 */
26 37
27 -// -------------------------------  
28 -// page start  
29 -// -------------------------------  
30 -  
31 /** 38 /**
32 * Checks if the user has read permission on the subscription content 39 * Checks if the user has read permission on the subscription content
33 * 40 *
presentation/lookAndFeel/knowledgeTree/subscriptions/manageSubscriptionsBL.php
@@ -6,24 +6,33 @@ require_once(&quot;$default-&gt;fileSystemRoot/lib/subscriptions/SubscriptionManager.inc @@ -6,24 +6,33 @@ require_once(&quot;$default-&gt;fileSystemRoot/lib/subscriptions/SubscriptionManager.inc
6 require_once("$default->fileSystemRoot/lib/visualpatterns/PatternCustom.inc"); 6 require_once("$default->fileSystemRoot/lib/visualpatterns/PatternCustom.inc");
7 require_once("subscriptionUI.inc"); 7 require_once("subscriptionUI.inc");
8 require_once("$default->fileSystemRoot/presentation/Html.inc"); 8 require_once("$default->fileSystemRoot/presentation/Html.inc");
9 -  
10 /** 9 /**
11 * $Id$ 10 * $Id$
12 - * 11 + *
13 * Manages subscriptions- displays all current subscriptions and allows 12 * Manages subscriptions- displays all current subscriptions and allows
14 * multiple unsubscribes. 13 * multiple unsubscribes.
15 * 14 *
16 - * Licensed under the GNU GPL. For full terms see the file DOCS/COPYING. 15 + * Copyright (c) 2003 Jam Warehouse http://www.jamwarehouse.com
  16 + *
  17 + * This program is free software; you can redistribute it and/or modify
  18 + * it under the terms of the GNU General Public License as published by
  19 + * the Free Software Foundation; either version 2 of the License, or
  20 + * (at your option) any later version.
  21 + *
  22 + * This program is distributed in the hope that it will be useful,
  23 + * but WITHOUT ANY WARRANTY; without even the implied warranty of
  24 + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  25 + * GNU General Public License for more details.
  26 + *
  27 + * You should have received a copy of the GNU General Public License
  28 + * along with this program; if not, write to the Free Software
  29 + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
17 * 30 *
18 * @version $Revision$ 31 * @version $Revision$
19 * @author Michael Joseph <michael@jamwarehouse.com>, Jam Warehouse (Pty) Ltd, South Africa 32 * @author Michael Joseph <michael@jamwarehouse.com>, Jam Warehouse (Pty) Ltd, South Africa
20 - * @package presentation.lookAndFeel.knowledgeTree.subscriptions 33 + * @package subscriptions
21 */ 34 */
22 35
23 -// -------------------------------  
24 -// page start  
25 -// -------------------------------  
26 -  
27 // only if we have a valid session 36 // only if we have a valid session
28 if (checkSession()) { 37 if (checkSession()) {
29 38
presentation/lookAndFeel/knowledgeTree/subscriptions/removeSubscriptionBL.php
@@ -6,30 +6,37 @@ require_once(&quot;$default-&gt;fileSystemRoot/lib/subscriptions/SubscriptionManager.inc @@ -6,30 +6,37 @@ require_once(&quot;$default-&gt;fileSystemRoot/lib/subscriptions/SubscriptionManager.inc
6 require_once("$default->fileSystemRoot/lib/visualpatterns/PatternCustom.inc"); 6 require_once("$default->fileSystemRoot/lib/visualpatterns/PatternCustom.inc");
7 require_once("subscriptionUI.inc"); 7 require_once("subscriptionUI.inc");
8 require_once("$default->fileSystemRoot/presentation/Html.inc"); 8 require_once("$default->fileSystemRoot/presentation/Html.inc");
9 -  
10 /** 9 /**
11 * $Id$ 10 * $Id$
12 - *  
13 - * Removes a document or folder subscription for a user.  
14 * 11 *
15 - * Licensed under the GNU GPL. For full terms see the file DOCS/COPYING. 12 + * Removes a document or folder subscription for a user.
16 * 13 *
17 - * @version $Revision$  
18 - * @author Michael Joseph <michael@jamwarehouse.com>, Jam Warehouse (Pty) Ltd, South Africa  
19 - * @package presentation.lookAndFeel.knowledgeTree.subscriptions  
20 - */  
21 -  
22 -/*  
23 * Querystring variables 14 * Querystring variables
24 * --------------------- 15 * ---------------------
25 * fFolderID - the folder to subscribe the current user to (optional) 16 * fFolderID - the folder to subscribe the current user to (optional)
26 - * fDocumentID - the document to subscribe the current user to (optional) 17 + * fDocumentID - the document to subscribe the current user to (optional)
  18 + *
  19 + * Copyright (c) 2003 Jam Warehouse http://www.jamwarehouse.com
  20 + *
  21 + * This program is free software; you can redistribute it and/or modify
  22 + * it under the terms of the GNU General Public License as published by
  23 + * the Free Software Foundation; either version 2 of the License, or
  24 + * (at your option) any later version.
  25 + *
  26 + * This program is distributed in the hope that it will be useful,
  27 + * but WITHOUT ANY WARRANTY; without even the implied warranty of
  28 + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  29 + * GNU General Public License for more details.
  30 + *
  31 + * You should have received a copy of the GNU General Public License
  32 + * along with this program; if not, write to the Free Software
  33 + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
  34 + *
  35 + * @version $Revision$
  36 + * @author Michael Joseph <michael@jamwarehouse.com>, Jam Warehouse (Pty) Ltd, South Africa
  37 + * @package subscriptions
27 */ 38 */
28 39
29 -// -------------------------------  
30 -// page start  
31 -// -------------------------------  
32 -  
33 // only if we have a valid session 40 // only if we have a valid session
34 if (checkSession()) { 41 if (checkSession()) {
35 42
presentation/lookAndFeel/knowledgeTree/subscriptions/subscriptionUI.inc
1 <?php 1 <?php
2 -  
3 /** 2 /**
4 * $Id$ 3 * $Id$
5 * 4 *
6 * UI for subscription pages. 5 * UI for subscription pages.
7 * 6 *
8 - * Licensed under the GNU GPL. For full terms see the file DOCS/COPYING. 7 + * Copyright (c) 2003 Jam Warehouse http://www.jamwarehouse.com
  8 + *
  9 + * This program is free software; you can redistribute it and/or modify
  10 + * it under the terms of the GNU General Public License as published by
  11 + * the Free Software Foundation; either version 2 of the License, or
  12 + * (at your option) any later version.
  13 + *
  14 + * This program is distributed in the hope that it will be useful,
  15 + * but WITHOUT ANY WARRANTY; without even the implied warranty of
  16 + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  17 + * GNU General Public License for more details.
  18 + *
  19 + * You should have received a copy of the GNU General Public License
  20 + * along with this program; if not, write to the Free Software
  21 + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
9 * 22 *
10 * @version $Revision$ 23 * @version $Revision$
11 * @author Michael Joseph <michael@jamwarehouse.com>, Jam Warehouse (Pty) Ltd, South Africa 24 * @author Michael Joseph <michael@jamwarehouse.com>, Jam Warehouse (Pty) Ltd, South Africa
12 - * @package presentation.lookAndFeel.knowledgeTree.subscriptions 25 + * @package subscriptions
13 */ 26 */
14 27
15 /** 28 /**
presentation/lookAndFeel/knowledgeTree/subscriptions/viewAlertBL.php
@@ -2,31 +2,38 @@ @@ -2,31 +2,38 @@
2 2
3 require_once("../../../../config/dmsDefaults.php"); 3 require_once("../../../../config/dmsDefaults.php");
4 require_once("$default->fileSystemRoot/lib/subscriptions/SubscriptionManager.inc"); 4 require_once("$default->fileSystemRoot/lib/subscriptions/SubscriptionManager.inc");
5 -  
6 /** 5 /**
7 * $Id$ 6 * $Id$
8 - * 7 + *
9 * Clears the subscription alert, and forwards to the content that 8 * Clears the subscription alert, and forwards to the content that
10 * triggered the alert. 9 * triggered the alert.
11 * 10 *
12 - * Licensed under the GNU GPL. For full terms see the file DOCS/COPYING.  
13 - *  
14 - * @version $Revision$  
15 - * @author Michael Joseph <michael@jamwarehouse.com>, Jam Warehouse (Pty) Ltd, South Africa  
16 - * @package presentation.lookAndFeel.knowledgeTree.subscriptions  
17 - */  
18 -  
19 -/*  
20 * Querystring variables 11 * Querystring variables
21 * --------------------- 12 * ---------------------
22 * fSubscriptionID - the subscription to view 13 * fSubscriptionID - the subscription to view
23 * fSubscriptionType - the subscription type (folder,document) to view 14 * fSubscriptionType - the subscription type (folder,document) to view
  15 + *
  16 + * Copyright (c) 2003 Jam Warehouse http://www.jamwarehouse.com
  17 + *
  18 + * This program is free software; you can redistribute it and/or modify
  19 + * it under the terms of the GNU General Public License as published by
  20 + * the Free Software Foundation; either version 2 of the License, or
  21 + * (at your option) any later version.
  22 + *
  23 + * This program is distributed in the hope that it will be useful,
  24 + * but WITHOUT ANY WARRANTY; without even the implied warranty of
  25 + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  26 + * GNU General Public License for more details.
  27 + *
  28 + * You should have received a copy of the GNU General Public License
  29 + * along with this program; if not, write to the Free Software
  30 + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
  31 + *
  32 + * @version $Revision$
  33 + * @author Michael Joseph <michael@jamwarehouse.com>, Jam Warehouse (Pty) Ltd, South Africa
  34 + * @package subscriptions
24 */ 35 */
25 36
26 -// -------------------------------  
27 -// page start  
28 -// -------------------------------  
29 -  
30 // only if we have a valid session 37 // only if we have a valid session
31 if (checkSession()) { 38 if (checkSession()) {
32 39