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 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 32 require_once("../../../../config/dmsDefaults.php");
15 33 if (checkSession()) {
... ...
presentation/lookAndFeel/knowledgeTree/foldermanagement/addFolderCollaborationBL.php
1 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 32 require_once("../../../../config/dmsDefaults.php");
14 33  
15 34 if (checkSession()) {
16 35 if (isset($fFolderID)) {
17 36 //if a folder has been selected
18 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 39 include_once("$default->fileSystemRoot/lib/users/User.inc");
21 40 require_once("$default->fileSystemRoot/presentation/Html.inc");
22 41 if (Permission::userHasFolderWritePermission($fFolderID)) {
... ...
presentation/lookAndFeel/knowledgeTree/foldermanagement/addFolderCollaborationUI.inc
1 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 29 function getPage($iFolderID, $iGroupID, $iRoleID, $iSequenceNumber) {
26 30 global $default;
... ... @@ -65,7 +69,7 @@ function getFolderPath($iFolderID) {
65 69  
66 70 function getGroupDropDown($iGroupID, $iFolderID) {
67 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 73 $oPatternListBox->setPostBackOnChange(true);
70 74 $oPatternListBox->setOnChangeAction("setActionAndSubmit('" . $_SERVER["PHP_SELF"] . "?fFolderID=$iFolderID');");
71 75 if (isset($iGroupID)) {
... ... @@ -77,10 +81,10 @@ function getGroupDropDown($iGroupID, $iFolderID) {
77 81 //the groups in their unit
78 82 /*$oPatternListBox;
79 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 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 89 $oPatternListBox->setEmptyErrorMessage("There are no groups");
86 90 $oPatternListBox->setIncludeDefaultValue(false);
... ... @@ -98,8 +102,8 @@ function getUserDropDown($iGroupID) {
98 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 108 if ($iGroupID == -1) {
105 109 $oPatternListBox->setEmptyErrorMessage("Select a group");
... ... @@ -110,7 +114,7 @@ function getUserDropDown($iGroupID) {
110 114  
111 115 function getRoleDropDown($iRoleID) {
112 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 118 $oPatternListBox->setEmptyErrorMessage("There are no roles");
115 119 $oPatternListBox->setIncludeDefaultValue(false);
116 120 if (isset($iRoleID)) {
... ...
presentation/lookAndFeel/knowledgeTree/foldermanagement/addFolderDocTypeBL.php
1 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 28 require_once("../../../../config/dmsDefaults.php");
11 29 if (checkSession()) {
... ...
presentation/lookAndFeel/knowledgeTree/foldermanagement/addFolderDocTypeUI.inc
... ... @@ -2,12 +2,27 @@
2 2 /**
3 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 24 * @author Rob Cherry, Jam Warehouse (Pty) Ltd, South Africa
10   - * @package presentation.lookAndFeel.knowledgeTree.foldermanagement
  25 + * @package foldermanagement
11 26 */
12 27  
13 28 function getPage($iFolderID, $iDocumentTypeID) {
... ... @@ -40,8 +55,8 @@ function getDocumentTypeDropDown($iDocumentTypeID, $iFolderID) {
40 55 // cunningly joined query courtesy of R. Cherry Esq.
41 56 $oPatternListBox = & new PatternListBox(null, null, null, null);
42 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 60 "WHERE folder_id IS NULL");
46 61 $oPatternListBox->setSelectName("fDocumentTypeID");
47 62 $oPatternListBox->setIncludeDefaultValue(false);
... ...
presentation/lookAndFeel/knowledgeTree/foldermanagement/addFolderUI.inc
1 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 28 function renderBrowseAddPage($iFolderID) {
13 29 global $default;
... ... @@ -61,7 +77,7 @@ function getRightSide($iFolderID) {
61 77  
62 78 function getDocumentTypeDropDown() {
63 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 81 $oPatternListBox->setIncludeDefaultValue(false);
66 82 return $oPatternListBox->render();
67 83 }
... ...
presentation/lookAndFeel/knowledgeTree/foldermanagement/addGroupFolderLinkBL.php
1 1 <?php
2 2 /**
3 3 * $Id$
4   - *
5 4 * Business logic for adding folder access
6 5 * addFolderAccessUI.inc for presentation information
7 6 *
8   - * Licensed under the GNU GPL. For full terms see the file COPYING.
9   - *
10 7 * Expected form variables:
11 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 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 31 require_once("../../../../config/dmsDefaults.php");
18 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 34 include_once("$default->fileSystemRoot/lib/users/User.inc");
21 35 include_once("$default->fileSystemRoot/lib/groups/GroupFolderLink.inc");
22 36 include_once("$default->fileSystemRoot/presentation/Html.inc");
... ...
presentation/lookAndFeel/knowledgeTree/foldermanagement/collaborationBL.php
1 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 33 require_once("../../../../config/dmsDefaults.php");
17 34  
... ... @@ -21,7 +38,7 @@ if (checkSession()) {
21 38 require_once("$default->fileSystemRoot/lib/foldermanagement/FolderCollaboration.inc");
22 39 require_once("$default->fileSystemRoot/lib/foldermanagement/Folder.inc");
23 40 require_once("collaborationUI.inc");
24   - require_once("$default->fileSystemRoot/lib/security/permission.inc");
  41 + require_once("$default->fileSystemRoot/lib/security/Permission.inc");
25 42 require_once("$default->fileSystemRoot/lib/visualpatterns/PatternCustom.inc");
26 43 require_once("$default->fileSystemRoot/presentation/lookAndFeel/knowledgeTree/foldermanagement/folderUI.inc");
27 44 require_once("$default->fileSystemRoot/presentation/Html.inc");
... ...
presentation/lookAndFeel/knowledgeTree/foldermanagement/collaborationUI.inc
1 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 28 function getFolderPath($iFolderID) {
12 29 global $default;
... ... @@ -18,7 +35,7 @@ function getFolderPath($iFolderID) {
18 35  
19 36 function getGroupDropDown($iFolderCollaborationID, $iFolderID, $iGroupID) {
20 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 39 $oPatternListBox->setPostBackOnChange(true);
23 40 $oPatternListBox->setOnChangeAction("setActionAndSubmit('" . $_SERVER["userID"] . "?fFolderID=$iFolderID&fFolderCollaborationID=$iFolderCollaborationID');");
24 41 if (isset($iGroupID)) {
... ... @@ -33,8 +50,8 @@ function getUserDropDown($iGroupID, $iUserID) {
33 50 if (!(isset($iGroupID))) {
34 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 55 if (isset($iUserID)) {
39 56 $oPatternListBox->setSelectedValue($iUserID);
40 57 }
... ... @@ -76,7 +93,7 @@ function getEditPage($iFolderCollaborationID, $iFolderID, $iGroupID, $iUserID, $
76 93  
77 94 function getRoleDropDown($iRoleID) {
78 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 97 $oPatternListBox->setEmptyErrorMessage("There are no users in this group");
81 98 if (isset($iRoleID)) {
82 99 $oPatternListBox->setSelectedValue($iRoleID);
... ...
presentation/lookAndFeel/knowledgeTree/foldermanagement/deleteDependantDocumentBL.php
1 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 33 require_once("../../../../config/dmsDefaults.php");
17 34  
... ...
presentation/lookAndFeel/knowledgeTree/foldermanagement/deleteDependantDocumentUI.inc
1 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 28 function getPage($iFolderID, $iFolderCollaborationID, $sDocumentTitle, $sUserName, $sTemplateDocument) {
23 29 global $default;
... ...
presentation/lookAndFeel/knowledgeTree/foldermanagement/deleteFolderBL.php
1 1 <?php
2 2 /**
  3 + * $Id$
  4 + *
3 5 * Business logic concerned with the deletion of a folder.
4 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 24 * @version $Revision$
9 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 29 require_once("../../../../config/dmsDefaults.php");
... ...
presentation/lookAndFeel/knowledgeTree/foldermanagement/deleteFolderCollaborationBL.php
1 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 33 require_once("../../../../config/dmsDefaults.php");
16 34  
17 35 if (checkSession()) {
18 36 if (isset($fFolderID) && isset($fFolderCollaborationID)) {
19 37 //if a folder has been selected
20 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 40 include_once("$default->fileSystemRoot/lib/foldermanagement/FolderCollaboration.inc");
23 41 include_once("$default->fileSystemRoot/lib/groups/Group.inc");
24 42 include_once("$default->fileSystemRoot/lib/roles/Role.inc");
... ...
presentation/lookAndFeel/knowledgeTree/foldermanagement/deleteFolderCollaborationUI.inc
1 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 29 function getFolderPath($iFolderID) {
25 30 global $default;
... ...
presentation/lookAndFeel/knowledgeTree/foldermanagement/deleteFolderDocTypeBL.php
1 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 28 require_once("../../../../config/dmsDefaults.php");
11 29 if (checkSession()) {
... ...
presentation/lookAndFeel/knowledgeTree/foldermanagement/deleteFolderDocTypeUI.inc
1 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 28 function getPage($iFolderID) {
12 29 global $default;
... ...
presentation/lookAndFeel/knowledgeTree/foldermanagement/deleteFolderUI.inc
1 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 23 * @version $Revision$
9 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 28 function getFolderPath($iFolderID) {
... ...
presentation/lookAndFeel/knowledgeTree/foldermanagement/deleteGroupFolderLinkBL.php
... ... @@ -5,20 +5,34 @@
5 5 * Business logic for deleting a folder access entry
6 6 * addFolderAccessUI.inc for presentation information
7 7 *
8   - * Licensed under the GNU GPL. For full terms see the file COPYING.
9   - *
10 8 * Expected form variables:
11 9 * o $fFolderID - primary key of folder user is currently editing
12 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 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 33 require_once("../../../../config/dmsDefaults.php");
20 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 36 include_once("$default->fileSystemRoot/lib/groups/GroupFolderLink.inc");
23 37 include_once("$default->fileSystemRoot/lib/groups/Group.inc");
24 38 include_once("$default->fileSystemRoot/lib/roles/Role.inc");
... ...
presentation/lookAndFeel/knowledgeTree/foldermanagement/editBL.php
... ... @@ -7,13 +7,27 @@
7 7 * Expected form variables:
8 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 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 31 require_once("../../../../config/dmsDefaults.php");
18 32  
19 33 if (checkSession()) {
... ... @@ -21,7 +35,7 @@ if (checkSession()) {
21 35 require_once("$default->fileSystemRoot/lib/visualpatterns/PatternEditableListFromQuery.inc");
22 36 require_once("$default->fileSystemRoot/lib/visualpatterns/PatternListFromQuery.inc");
23 37 require_once("editUI.inc");
24   - require_once("$default->fileSystemRoot/lib/security/permission.inc");
  38 + require_once("$default->fileSystemRoot/lib/security/Permission.inc");
25 39 require_once("$default->fileSystemRoot/lib/visualpatterns/PatternCustom.inc");
26 40 require_once("$default->fileSystemRoot/lib/foldermanagement/Folder.inc");
27 41 require_once("$default->fileSystemRoot/presentation/lookAndFeel/knowledgeTree/foldermanagement/folderUI.inc");
... ...
presentation/lookAndFeel/knowledgeTree/foldermanagement/editGroupFolderLinkBL.php
... ... @@ -5,20 +5,34 @@
5 5 * Business logic for editing a folder access entry
6 6 * groupFolderLinkUI.inc for presentation information
7 7 *
8   - * Licensed under the GNU GPL. For full terms see the file COPYING.
9   - *
10 8 * Expected form variables:
11 9 * o $fFolderID - primary key of folder user is currently editing
12 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 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 33 require_once("../../../../config/dmsDefaults.php");
20 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 36 include_once("$default->fileSystemRoot/lib/groups/GroupFolderLink.inc");
23 37 include_once("$default->fileSystemRoot/lib/groups/Group.inc");
24 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 3 /**
4 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 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 29 function getFolderPath($iFolderID) {
... ... @@ -25,7 +39,7 @@ function getFolderData($iFolderID, $sDivName, $sStatusMessage = &quot;&quot;) {
25 39 $sSectionName = $default->siteMap->getSectionName(substr($_SERVER["PHP_SELF"], strlen($default->rootUrl), strlen($_SERVER["PHP_SELF"])));
26 40 $sTDBGColour = $default->siteMap->getSectionColour($sSectionName, "td");
27 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 43 "WHERE F.id = $iFolderID";
30 44  
31 45  
... ... @@ -57,9 +71,9 @@ function getFolderRouting($iFolderID, $sDivName, $bCollaboration) {
57 71 //had to use coalesce and left outer join for user_id because this column was a new addition
58 72 //and the user_ids for existing documents before this change will be null
59 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 77 "WHERE GFAL.folder_id = $iFolderID " .
64 78 "ORDER BY GFAL.precedence, role_name ASC";
65 79  
... ... @@ -90,7 +104,7 @@ function getFolderRouting($iFolderID, $sDivName, $bCollaboration) {
90 104 function getFolderDocTypes($iFolderID, $sDivName) {
91 105 global $default;
92 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 108 "WHERE FDL.folder_id = $iFolderID " .
95 109 "ORDER BY DTL.name ASC";
96 110  
... ... @@ -115,8 +129,8 @@ function getFolderDocTypes($iFolderID, $sDivName) {
115 129 function getFolderGroupAccess($iFolderID, $sDivName) {
116 130 global $default;
117 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 134 "WHERE GFL.folder_id = $iFolderID";
121 135  
122 136 $aColumns = array("group_name", "can_read", "can_write", "edit", "del");
... ...
presentation/lookAndFeel/knowledgeTree/foldermanagement/folderUI.inc
1 1 <?php
2   -
3 2 /**
4 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 23 * @version $Revision$
11 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 94 function renderFolderList($fFolderID, $sLinkURL) {
83 95 global $default;
84 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 98 "WHERE F.parent_id = " . $fFolderID . " " .
87 99 "ORDER BY F.name ASC";
88 100  
... ...
presentation/lookAndFeel/knowledgeTree/foldermanagement/groupFolderLinkUI.inc
1 1 <?php
2 2 /**
  3 + * $Id$
  4 + *
3 5 * Presentation information for adding folder access
4 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 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 29 function getFolderPath($iFolderID) {
... ... @@ -102,10 +120,10 @@ function getAccessCheckBoxes($bReadOnly, $fCanRead = false, $fCanWrite = false)
102 120 function getGroupDropDown($iGroupID = -1) {
103 121 global $default;
104 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 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 128 $oPatternListBox->setEmptyErrorMessage("There are no groups");
111 129 $oPatternListBox->setIncludeDefaultValue(false);
... ...
presentation/lookAndFeel/knowledgeTree/foldermanagement/modifyFolderDataBL.php
1 1 <?php
2   -
3 2 /**
4 3 * $Id$
5 4 *
6 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 23 * @version $Revision$
11 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 28 require_once("../../../../config/dmsDefaults.php");
... ... @@ -18,7 +31,7 @@ if (checkSession()) {
18 31 require_once("$default->fileSystemRoot/lib/visualpatterns/PatternListBox.inc");
19 32 require_once("$default->fileSystemRoot/lib/visualpatterns/PatternEditableListFromQuery.inc");
20 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 35 require_once("$default->fileSystemRoot/lib/visualpatterns/PatternCustom.inc");
23 36 require_once("$default->fileSystemRoot/lib/foldermanagement/Folder.inc");
24 37 require_once("$default->fileSystemRoot/presentation/lookAndFeel/knowledgeTree/foldermanagement/folderUI.inc");
... ...
presentation/lookAndFeel/knowledgeTree/foldermanagement/modifyFolderDataUI.inc
... ... @@ -4,20 +4,33 @@
4 4 *
5 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 23 * @version $Revision$
10 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 28 function getFolderData($iFolderID, $sStatusMessage = "") {
16 29 global $default;
17 30 $sSectionName = $default->siteMap->getSectionName(substr($_SERVER["PHP_SELF"], strlen($default->rootUrl), strlen($_SERVER["PHP_SELF"])));
18 31 $sTDBGColour = $default->siteMap->getSectionColour($sSectionName, "td");
19 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 34 "WHERE F.id = $iFolderID";
22 35  
23 36 $sql = $default->db;
... ...
presentation/lookAndFeel/knowledgeTree/foldermanagement/viewDependantDocumentsBL.php
1 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 32 require_once("../../../../config/dmsDefaults.php");
16 33  
... ...
presentation/lookAndFeel/knowledgeTree/foldermanagement/viewDependantDocumentsUI.inc
1 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 28 function getFolderPath($iFolderID) {
5 29 global $default;
... ... @@ -128,7 +152,7 @@ function getAddPage($iFolderCollaborationID, $iFolderID, $iUnitID, $sDocumentTit
128 152  
129 153 function getUserDropDown($iUnitID, $iUserID = null) {
130 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 156 $sFromClause = "INNER join users_groups_link AS UGL ON UGL.user_id = ST.id " .
133 157 "INNER JOIN groups_units_link AS GUL ON GUL.group_id = UGL.group_id ";
134 158 $oPatternListBox->setFromClause($sFromClause);
... ... @@ -142,7 +166,7 @@ function getUserDropDown($iUnitID, $iUserID = null) {
142 166  
143 167 function getUnitDropDown($iFolderCollaborationID, $iFolderID, $iUnitID = null) {
144 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 170 $oPatternListBox->setPostBackOnChange(true);
147 171 $oPatternListBox->setOnChangeAction("setActionAndSubmit('" . $_SERVER["PHP_SELF"] . "?fFolderID=$iFolderID&fFolderCollaborationID=$iFolderCollaborationID&fForAdd=1')");
148 172 if (isset($iUnitID)) {
... ...
presentation/lookAndFeel/knowledgeTree/preferences/editPrefsSuccess.php
1 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 28 require_once("../../../../config/dmsDefaults.php");
12 29 require_once("editUserPrefsUI.inc");
... ...
presentation/lookAndFeel/knowledgeTree/preferences/editUserPrefsBL.php
1 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 27 require_once("../../../../config/dmsDefaults.php");
11 28  
12 29 if (checkSession()) {
13 30 require_once("$default->fileSystemRoot/lib/visualpatterns/PatternListBox.inc");
14 31 require_once("$default->fileSystemRoot/lib/visualpatterns/PatternEditableListFromQuery.inc");
15 32 require_once("editUserPrefsUI.inc");
16   - require_once("$default->fileSystemRoot/lib/security/permission.inc");
  33 + require_once("$default->fileSystemRoot/lib/security/Permission.inc");
17 34 require_once("$default->fileSystemRoot/lib/users/User.inc");
18 35 require_once("$default->fileSystemRoot/presentation/webpageTemplate.inc");
19 36 require_once("$default->fileSystemRoot/lib/visualpatterns/PatternCustom.inc");
... ...
presentation/lookAndFeel/knowledgeTree/preferences/editUserPrefsUI.inc
1 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 28 function getUserDetailsPage($iUserID) {
12 29  
13 30 global $default;
14 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 34 $aDisplayColumns = array("name","email", "mobile", "email_notification");
18 35 $aStoreColumns = array("name","email", "mobile", "email_notification") ;
19 36 $aColumnNames = array("Name: ", "Email Address: ", "Mobile Number: ", "Email Notification: ");
... ... @@ -21,7 +38,7 @@ function getUserDetailsPage($iUserID) {
21 38 $aDatabaseColumnTypes = array(1,1,1,2);
22 39  
23 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 42 $oPattern->setUniqueName("userEdit");
26 43 $oPattern->setColumnsRequired(array(1,0,0,0));
27 44  
... ...
presentation/lookAndFeel/knowledgeTree/search/advancedSearchBL.php
... ... @@ -4,10 +4,26 @@
4 4 *
5 5 * Business logic used to perform advanced search. Advanced search allows
6 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 require_once("../../../../config/dmsDefaults.php");
... ... @@ -18,7 +34,7 @@ if (checkSession()) {
18 34 require_once("$default->fileSystemRoot/lib/visualpatterns/PatternCustom.inc");
19 35 require_once("$default->fileSystemRoot/lib/foldermanagement/Folder.inc");
20 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 38 require_once("$default->fileSystemRoot/presentation/Html.inc");
23 39 require_once("advancedSearchUI.inc");
24 40 require_once("advancedSearchUtil.inc");
... ...
presentation/lookAndFeel/knowledgeTree/search/advancedSearchUI.inc
... ... @@ -4,14 +4,30 @@
4 4 *
5 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 28 function getMetaData($aMetaTagIDs) {
13 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 32 $sql = $default->db;
17 33 $sql->query($sQuery);
... ... @@ -83,11 +99,11 @@ function getSearchResults($sMetaTagIDs, $sSQLSearchString, $iStartIndex, $sStatu
83 99 global $default;
84 100  
85 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 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 107 "WHERE DF.ID IN ($sMetaTagIDs) " .
92 108 "AND (" . $sSQLSearchString . ") " .
93 109 "AND SDUL.user_id = " . $_SESSION["userID"] . " " .
... ...
presentation/lookAndFeel/knowledgeTree/search/advancedSearchUtil.inc
... ... @@ -3,11 +3,27 @@
3 3 * $Id$
4 4 *
5 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 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 36 require_once("../../../../config/dmsDefaults.php");
16 37 if (checkSession()) {
17 38 require_once("$default->fileSystemRoot/lib/visualpatterns/PatternBrowsableSearchResults.inc");
... ...
presentation/lookAndFeel/knowledgeTree/search/standardSearchUI.inc
... ... @@ -2,11 +2,27 @@
2 2 /**
3 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 28 function getHeading() {
... ... @@ -21,11 +37,11 @@ function getSearchResultsByCategory($iFolderID, $sKeywords, $iStartIndex, $sCate
21 37 global $default;
22 38  
23 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 45 "INNER JOIN $default->search_permissions_table AS SDUL ON SDUL.document_id = D.id " .
30 46 "WHERE MATCH(DT.document_text) AGAINST ('" . $sKeywords . "') " .
31 47 "AND SDUL.user_id = " . $_SESSION["userID"] . " " .
... ... @@ -56,9 +72,9 @@ function getSearchResultsByCategory($iFolderID, $sKeywords, $iStartIndex, $sCate
56 72 function getSearchResultsByDocumentType($iFolderID, $sKeywords, $iStartIndex, $iDocTypeID) {
57 73 global $default;
58 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 78 "INNER JOIN $default->search_permissions_table AS SDUL ON SDUL.document_id = D.id " .
63 79 "WHERE MATCH(DT.document_text) AGAINST ('" . $sKeywords . "') " .
64 80 "AND SDUL.user_id = " . $_SESSION["userID"] . " ";
... ... @@ -89,9 +105,9 @@ function getSearchResultsByDocumentType($iFolderID, $sKeywords, $iStartIndex, $i
89 105 function getSeachResultsByFolder($iFolderID, $iStartIndex, $sKeywords) {
90 106 global $default;
91 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 111 "INNER JOIN $default->search_permissions_table AS SDUL ON SDUL.document_id = D.id " .
96 112 "WHERE MATCH(DT.document_text) AGAINST ('" . $sKeywords . "') " .
97 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 4 require_once("$default->fileSystemRoot/lib/subscriptions/Subscription.inc");
5 5 require_once("$default->fileSystemRoot/lib/subscriptions/SubscriptionManager.inc");
6 6 require_once("$default->fileSystemRoot/presentation/Html.inc");
7   -
8 7 /**
9 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 12 * Querystring variables
22 13 * ---------------------
23 14 * fFolderID - the folder to subscribe the current user to (optional)
24 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 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 6 require_once("$default->fileSystemRoot/lib/visualpatterns/PatternCustom.inc");
7 7 require_once("subscriptionUI.inc");
8 8 require_once("$default->fileSystemRoot/presentation/Html.inc");
9   -
10 9 /**
11 10 * $Id$
12   - *
  11 + *
13 12 * Manages subscriptions- displays all current subscriptions and allows
14 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 31 * @version $Revision$
19 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 36 // only if we have a valid session
28 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 6 require_once("$default->fileSystemRoot/lib/visualpatterns/PatternCustom.inc");
7 7 require_once("subscriptionUI.inc");
8 8 require_once("$default->fileSystemRoot/presentation/Html.inc");
9   -
10 9 /**
11 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 14 * Querystring variables
24 15 * ---------------------
25 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 40 // only if we have a valid session
34 41 if (checkSession()) {
35 42  
... ...
presentation/lookAndFeel/knowledgeTree/subscriptions/subscriptionUI.inc
1 1 <?php
2   -
3 2 /**
4 3 * $Id$
5 4 *
6 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 23 * @version $Revision$
11 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 2  
3 3 require_once("../../../../config/dmsDefaults.php");
4 4 require_once("$default->fileSystemRoot/lib/subscriptions/SubscriptionManager.inc");
5   -
6 5 /**
7 6 * $Id$
8   - *
  7 + *
9 8 * Clears the subscription alert, and forwards to the content that
10 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 11 * Querystring variables
21 12 * ---------------------
22 13 * fSubscriptionID - the subscription to view
23 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 37 // only if we have a valid session
31 38 if (checkSession()) {
32 39  
... ...