Commit 58d9ecac460c589e276c182acabaeb8f58246217

Authored by Michael Joseph
1 parent 591f9dce

added copyright and gpl notice

removed owl prefix from table aliases


git-svn-id: https://kt-dms.svn.sourceforge.net/svnroot/kt-dms/trunk@2586 c91229c3-7414-0410-bfa2-8a42b809f60b
Showing 37 changed files with 895 additions and 281 deletions
presentation/lookAndFeel/knowledgeTree/administration/admin.php
@@ -5,13 +5,27 @@ require_once("$default->fileSystemRoot/presentation/Html.inc"); @@ -5,13 +5,27 @@ require_once("$default->fileSystemRoot/presentation/Html.inc");
5 /** 5 /**
6 * $Id$ 6 * $Id$
7 * 7 *
8 - * Displays the administration page. 8 + * Displays the administration splash page.
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.
  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
11 * 25 *
12 * @version $Revision$ 26 * @version $Revision$
13 * @author Michael Joseph <michael@jamwarehouse.com>, Jam Warehouse (Pty) Ltd, South Africa 27 * @author Michael Joseph <michael@jamwarehouse.com>, Jam Warehouse (Pty) Ltd, South Africa
14 - * @package presentation.lookAndFeel.knowledgeTree.administration 28 + * @package administration
15 */ 29 */
16 30
17 /** 31 /**
presentation/lookAndFeel/knowledgeTree/administration/adminUI.inc
1 <?php 1 <?php
2 -  
3 /** 2 /**
4 - * Contains UI methods common to all administration screens 3 + * $Id$
  4 + *
  5 + * Contains UI methods common to all administration screens.
  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 administration
5 */ 26 */
6 27
7 function getAddLink($sAddAction, $sAddText) { 28 function getAddLink($sAddAction, $sAddText) {
presentation/lookAndFeel/knowledgeTree/administration/usermanagement/addUserBL.php
1 <?php 1 <?php
2 /** 2 /**
3 -* BL information for adding a unit  
4 -*  
5 -* @author Mukhtar Dharsey  
6 -* @date 5 February 2003  
7 -* @package presentation.lookAndFeel.knowledgeTree.  
8 -*  
9 -*/ 3 + * $Id$
  4 + *
  5 + * Add a user.
  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 administration.usermanagement
  26 + */
  27 +
10 require_once("../../../../../config/dmsDefaults.php"); 28 require_once("../../../../../config/dmsDefaults.php");
11 require_once("$default->fileSystemRoot/lib/visualpatterns/PatternListBox.inc"); 29 require_once("$default->fileSystemRoot/lib/visualpatterns/PatternListBox.inc");
12 require_once("$default->fileSystemRoot/lib/visualpatterns/PatternCreate.inc"); 30 require_once("$default->fileSystemRoot/lib/visualpatterns/PatternCreate.inc");
13 require_once("$default->fileSystemRoot/lib/users/User.inc"); 31 require_once("$default->fileSystemRoot/lib/users/User.inc");
14 require_once("$default->fileSystemRoot/lib/groups/Group.inc"); 32 require_once("$default->fileSystemRoot/lib/groups/Group.inc");
15 require_once("$default->fileSystemRoot/lib/groups/GroupUserLink.inc"); 33 require_once("$default->fileSystemRoot/lib/groups/GroupUserLink.inc");
16 -require_once("$default->fileSystemRoot/lib/security/permission.inc"); 34 +require_once("$default->fileSystemRoot/lib/security/Permission.inc");
17 require_once("$default->fileSystemRoot/lib/visualpatterns/PatternCustom.inc"); 35 require_once("$default->fileSystemRoot/lib/visualpatterns/PatternCustom.inc");
18 require_once("$default->fileSystemRoot/lib/foldermanagement/Folder.inc"); 36 require_once("$default->fileSystemRoot/lib/foldermanagement/Folder.inc");
19 require_once("$default->fileSystemRoot/presentation/lookAndFeel/knowledgeTree/foldermanagement/folderUI.inc"); 37 require_once("$default->fileSystemRoot/presentation/lookAndFeel/knowledgeTree/foldermanagement/folderUI.inc");
presentation/lookAndFeel/knowledgeTree/administration/usermanagement/addUserToGroupBL.php
1 <?php 1 <?php
2 /** 2 /**
3 -* BL information for adding a User  
4 -*  
5 -* @author Mukhtar Dharsey  
6 -* @date 5 February 2003  
7 -* @package presentation.lookAndFeel.knowledgeTree.  
8 -*  
9 -*/ 3 + * $Id$
  4 + *
  5 + * Add a user to a group.
  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 administration.usermanagement
  26 + */
  27 +
10 require_once("../../../../../config/dmsDefaults.php"); 28 require_once("../../../../../config/dmsDefaults.php");
11 29
12 if (checkSession()) { 30 if (checkSession()) {
@@ -16,7 +34,7 @@ if (checkSession()) { @@ -16,7 +34,7 @@ if (checkSession()) {
16 require_once("$default->fileSystemRoot/lib/groups/Group.inc"); 34 require_once("$default->fileSystemRoot/lib/groups/Group.inc");
17 require_once("$default->fileSystemRoot/lib/users/User.inc"); 35 require_once("$default->fileSystemRoot/lib/users/User.inc");
18 require_once("$default->fileSystemRoot/lib/groups/GroupUserLink.inc"); 36 require_once("$default->fileSystemRoot/lib/groups/GroupUserLink.inc");
19 - require_once("$default->fileSystemRoot/lib/security/permission.inc"); 37 + require_once("$default->fileSystemRoot/lib/security/Permission.inc");
20 require_once("$default->fileSystemRoot/presentation/webpageTemplate.inc"); 38 require_once("$default->fileSystemRoot/presentation/webpageTemplate.inc");
21 require_once("$default->fileSystemRoot/lib/visualpatterns/PatternCustom.inc"); 39 require_once("$default->fileSystemRoot/lib/visualpatterns/PatternCustom.inc");
22 require_once("$default->fileSystemRoot/lib/foldermanagement/Folder.inc"); 40 require_once("$default->fileSystemRoot/lib/foldermanagement/Folder.inc");
presentation/lookAndFeel/knowledgeTree/administration/usermanagement/addUserToGroupUI.inc
1 <?php 1 <?php
2 /** 2 /**
3 -* Presentation information for adding a User  
4 -*  
5 -* @author Mukhtar Dharsey  
6 -* @date 5 February 2003  
7 -* @package presentation.lookAndFeel.knowledgeTree.  
8 -*  
9 -*/  
10 - 3 + * $Id$
  4 + *
  5 + * Add a user to a group 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 administration.usermanagement
  26 + */
11 // gets main page 27 // gets main page
12 function getPage($iUserID, $iGroupID) { 28 function getPage($iUserID, $iGroupID) {
13 global $default; 29 global $default;
@@ -111,14 +127,14 @@ function getPageFail($sQueryString) { @@ -111,14 +127,14 @@ function getPageFail($sQueryString) {
111 function getUserDisplay($oUser) { 127 function getUserDisplay($oUser) {
112 global $default; 128 global $default;
113 if (!isset($oUser)) { 129 if (!isset($oUser)) {
114 - $oPatternListBox = & new PatternListBox($default->owl_users_table, "username", "id", "fUserID"); 130 + $oPatternListBox = & new PatternListBox($default->users_table, "username", "id", "fUserID");
115 if (Permission::userIsUnitAdministrator() && !Permission::userIsSystemAdministrator()) { 131 if (Permission::userIsUnitAdministrator() && !Permission::userIsSystemAdministrator()) {
116 - $oPatternListBox->setFromClause("INNER JOIN $default->owl_users_groups_table UGL ON ST.id=UGL.user_id " .  
117 - "INNER JOIN $default->owl_groups_units_table GUL ON UGL.group_id=GUL.group_id"); 132 + $oPatternListBox->setFromClause("INNER JOIN $default->users_groups_table UGL ON ST.id=UGL.user_id " .
  133 + "INNER JOIN $default->groups_units_table GUL ON UGL.group_id=GUL.group_id");
118 $oPatternListBox->setWhereClause("GUL.unit_id=" . User::getUnitID($_SESSION["userID"])); 134 $oPatternListBox->setWhereClause("GUL.unit_id=" . User::getUnitID($_SESSION["userID"]));
119 135
120 - $oUnassignedUsersLB = & new PatternListBox($default->owl_users_table, "username", "id", "fUserID");  
121 - $oUnassignedUsersLB->setFromClause("LEFT OUTER JOIN $default->owl_users_groups_table UGL ON ST.id=UGL.user_id"); 136 + $oUnassignedUsersLB = & new PatternListBox($default->users_table, "username", "id", "fUserID");
  137 + $oUnassignedUsersLB->setFromClause("LEFT OUTER JOIN $default->users_groups_table UGL ON ST.id=UGL.user_id");
122 $oUnassignedUsersLB->setWhereClause("ISNULL(UGL.group_id)"); 138 $oUnassignedUsersLB->setWhereClause("ISNULL(UGL.group_id)");
123 $oPatternListBox->setAdditionalEntries($oUnassignedUsersLB->getEntries()); 139 $oPatternListBox->setAdditionalEntries($oUnassignedUsersLB->getEntries());
124 } 140 }
@@ -136,14 +152,14 @@ function getGroupDisplay($oGroup) { @@ -136,14 +152,14 @@ function getGroupDisplay($oGroup) {
136 if (!isset($oGroup)) { 152 if (!isset($oGroup)) {
137 if (Permission::userIsSystemAdministrator()) { 153 if (Permission::userIsSystemAdministrator()) {
138 // if this is the system administrator, prepend group names with unit name 154 // if this is the system administrator, prepend group names with unit name
139 - $oPatternListBox = & new PatternListBox($default->owl_groups_table, "name", "id", "fGroupID"); 155 + $oPatternListBox = & new PatternListBox($default->groups_table, "name", "id", "fGroupID");
140 $oPatternListBox->setFromClause("LEFT OUTER JOIN groups_units_link GUL on ST.id=GUL.group_id " . 156 $oPatternListBox->setFromClause("LEFT OUTER JOIN groups_units_link GUL on ST.id=GUL.group_id " .
141 "LEFT OUTER JOIN units_lookup UL on GUL.unit_id=UL.id"); 157 "LEFT OUTER JOIN units_lookup UL on GUL.unit_id=UL.id");
142 $oPatternListBox->setCompositeDisplayName("DISTINCT COALESCE(CONCAT(CONCAT(UL.name, '-'),ST.name),ST.name)"); 158 $oPatternListBox->setCompositeDisplayName("DISTINCT COALESCE(CONCAT(CONCAT(UL.name, '-'),ST.name),ST.name)");
143 } else if (Permission::userIsUnitAdministrator()) { 159 } else if (Permission::userIsUnitAdministrator()) {
144 // else if this is a unit administrator, only display the groups in your unit 160 // else if this is a unit administrator, only display the groups in your unit
145 - $oPatternListBox = & new PatternListBox($default->owl_groups_table, "name", "id", "fGroupID");  
146 - $oPatternListBox->setFromClause("INNER JOIN $default->owl_groups_units_table GUL on ST.id=GUL.group_id"); 161 + $oPatternListBox = & new PatternListBox($default->groups_table, "name", "id", "fGroupID");
  162 + $oPatternListBox->setFromClause("INNER JOIN $default->groups_units_table GUL on ST.id=GUL.group_id");
147 $oPatternListBox->setWhereClause("GUL.unit_id=" . User::getUnitID($_SESSION["userID"])); 163 $oPatternListBox->setWhereClause("GUL.unit_id=" . User::getUnitID($_SESSION["userID"]));
148 } 164 }
149 return $oPatternListBox->render(); 165 return $oPatternListBox->render();
presentation/lookAndFeel/knowledgeTree/administration/usermanagement/addUserUI.inc
1 <?php 1 <?php
2 /** 2 /**
3 -* Presentation information for adding a unit  
4 -*  
5 -* @author Mukhtar Dharsey  
6 -* @date 5 February 2003  
7 -* @package presentation.lookAndFeel.knowledgeTree.  
8 -*  
9 -*/  
10 - 3 + * $Id$
  4 + *
  5 + * Add user 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 administration.usermanagement
  26 + */
11 // display multiple users 27 // display multiple users
12 function getSelectUserPage($aResults) { 28 function getSelectUserPage($aResults) {
13 global $default; 29 global $default;
@@ -165,14 +181,14 @@ function getGroupListBox() { @@ -165,14 +181,14 @@ function getGroupListBox() {
165 global $default; 181 global $default;
166 if (Permission::userIsSystemAdministrator()) { 182 if (Permission::userIsSystemAdministrator()) {
167 // if this is the system administrator, prepend group names with unit name 183 // if this is the system administrator, prepend group names with unit name
168 - $oPatternListBox = & new PatternListBox($default->owl_groups_table, "name", "id", "fGroupID"); 184 + $oPatternListBox = & new PatternListBox($default->groups_table, "name", "id", "fGroupID");
169 $oPatternListBox->setFromClause("LEFT OUTER JOIN groups_units_link GUL on ST.id=GUL.group_id " . 185 $oPatternListBox->setFromClause("LEFT OUTER JOIN groups_units_link GUL on ST.id=GUL.group_id " .
170 "LEFT OUTER JOIN units_lookup UL on GUL.unit_id=UL.id"); 186 "LEFT OUTER JOIN units_lookup UL on GUL.unit_id=UL.id");
171 $oPatternListBox->setCompositeDisplayName("DISTINCT COALESCE(CONCAT(CONCAT(UL.name, '-'),ST.name),ST.name)"); 187 $oPatternListBox->setCompositeDisplayName("DISTINCT COALESCE(CONCAT(CONCAT(UL.name, '-'),ST.name),ST.name)");
172 } else if (Permission::userIsUnitAdministrator()) { 188 } else if (Permission::userIsUnitAdministrator()) {
173 // else if this is a unit administrator, only display the groups in your unit 189 // else if this is a unit administrator, only display the groups in your unit
174 - $oPatternListBox = & new PatternListBox($default->owl_groups_table, "name", "id", "fGroupID");  
175 - $oPatternListBox->setFromClause("INNER JOIN $default->owl_groups_units_table GUL on ST.id=GUL.group_id"); 190 + $oPatternListBox = & new PatternListBox($default->groups_table, "name", "id", "fGroupID");
  191 + $oPatternListBox->setFromClause("INNER JOIN $default->groups_units_table GUL on ST.id=GUL.group_id");
176 $oPatternListBox->setWhereClause("GUL.unit_id=" . User::getUnitID($_SESSION["userID"])); 192 $oPatternListBox->setWhereClause("GUL.unit_id=" . User::getUnitID($_SESSION["userID"]));
177 } 193 }
178 return $oPatternListBox->render(); 194 return $oPatternListBox->render();
presentation/lookAndFeel/knowledgeTree/administration/usermanagement/editUserBL.php
1 <?php 1 <?php
2 /** 2 /**
3 -* BL information for editing a User  
4 -*  
5 -* @author Mukhtar Dharsey  
6 -* @date 5 February 2003  
7 -* @package presentation.lookAndFeel.knowledgeTree.  
8 -*  
9 -*/ 3 + * $Id$
  4 + *
  5 + * Edit user details.
  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 administration.usermanagement
  26 + */
  27 +
10 require_once("../../../../../config/dmsDefaults.php"); 28 require_once("../../../../../config/dmsDefaults.php");
11 29
12 if (checkSession()) { 30 if (checkSession()) {
13 require_once("$default->fileSystemRoot/lib/visualpatterns/PatternListBox.inc"); 31 require_once("$default->fileSystemRoot/lib/visualpatterns/PatternListBox.inc");
14 require_once("$default->fileSystemRoot/lib/visualpatterns/PatternEditableListFromQuery.inc"); 32 require_once("$default->fileSystemRoot/lib/visualpatterns/PatternEditableListFromQuery.inc");
15 require_once("editUserUI.inc"); 33 require_once("editUserUI.inc");
16 - require_once("$default->fileSystemRoot/lib/security/permission.inc"); 34 + require_once("$default->fileSystemRoot/lib/security/Permission.inc");
17 require_once("$default->fileSystemRoot/lib/users/User.inc"); 35 require_once("$default->fileSystemRoot/lib/users/User.inc");
18 require_once("$default->fileSystemRoot/presentation/webpageTemplate.inc"); 36 require_once("$default->fileSystemRoot/presentation/webpageTemplate.inc");
19 require_once("$default->fileSystemRoot/lib/visualpatterns/PatternCustom.inc"); 37 require_once("$default->fileSystemRoot/lib/visualpatterns/PatternCustom.inc");
presentation/lookAndFeel/knowledgeTree/administration/usermanagement/editUserGroupsBL.php
1 <?php 1 <?php
2 /** 2 /**
3 -* BL information for adding 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-group mappings.
  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 administration.usermanagement
  26 + */
  27 +
10 require_once("../../../../../config/dmsDefaults.php"); 28 require_once("../../../../../config/dmsDefaults.php");
11 29
12 if (checkSession()) { 30 if (checkSession()) {
@@ -16,7 +34,7 @@ if (checkSession()) { @@ -16,7 +34,7 @@ if (checkSession()) {
16 require_once("$default->fileSystemRoot/lib/groups/Group.inc"); 34 require_once("$default->fileSystemRoot/lib/groups/Group.inc");
17 require_once("$default->fileSystemRoot/lib/users/User.inc"); 35 require_once("$default->fileSystemRoot/lib/users/User.inc");
18 require_once("$default->fileSystemRoot/lib/groups/GroupUserLink.inc"); 36 require_once("$default->fileSystemRoot/lib/groups/GroupUserLink.inc");
19 - require_once("$default->fileSystemRoot/lib/security/permission.inc"); 37 + require_once("$default->fileSystemRoot/lib/security/Permission.inc");
20 require_once("$default->fileSystemRoot/presentation/webpageTemplate.inc"); 38 require_once("$default->fileSystemRoot/presentation/webpageTemplate.inc");
21 require_once("$default->fileSystemRoot/lib/visualpatterns/PatternCustom.inc"); 39 require_once("$default->fileSystemRoot/lib/visualpatterns/PatternCustom.inc");
22 require_once("$default->fileSystemRoot/lib/foldermanagement/Folder.inc"); 40 require_once("$default->fileSystemRoot/lib/foldermanagement/Folder.inc");
presentation/lookAndFeel/knowledgeTree/administration/usermanagement/editUserGroupsUI.inc
1 <?php 1 <?php
2 /** 2 /**
3 -* Presentation information for adding a User  
4 -*  
5 -* @author Mukhtar Dharsey  
6 -* @date 5 February 2003  
7 -* @package presentation.lookAndFeel.knowledgeTree.  
8 -*  
9 -*/ 3 + * $Id$
  4 + *
  5 + * Edit a users groups 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 administration.usermanagement
  26 + */
10 27
11 // get page for removal 28 // get page for removal
12 function getPage($iUserID) { 29 function getPage($iUserID) {
@@ -189,10 +206,10 @@ function getPageSuccess() { @@ -189,10 +206,10 @@ function getPageSuccess() {
189 function getUserDisplay($oUser) { 206 function getUserDisplay($oUser) {
190 global $default; 207 global $default;
191 if (!isset($oUser)) { 208 if (!isset($oUser)) {
192 - $oPatternListBox = & new PatternListBox($default->owl_users_table, "username", "id", "fUserID"); 209 + $oPatternListBox = & new PatternListBox($default->users_table, "username", "id", "fUserID");
193 if (Permission::userIsUnitAdministrator()) { 210 if (Permission::userIsUnitAdministrator()) {
194 - $oPatternListBox->setFromClause("INNER JOIN $default->owl_users_groups_table UGL on ST.id=UGL.user_id " .  
195 - "INNER JOIN $default->owl_groups_units_table GUL on UGL.group_id=GUL.group_id"); 211 + $oPatternListBox->setFromClause("INNER JOIN $default->users_groups_table UGL on ST.id=UGL.user_id " .
  212 + "INNER JOIN $default->groups_units_table GUL on UGL.group_id=GUL.group_id");
196 $oPatternListBox->setWhereClause("GUL.unit_id=" . User::getUnitID($_SESSION["userID"])); 213 $oPatternListBox->setWhereClause("GUL.unit_id=" . User::getUnitID($_SESSION["userID"]));
197 } 214 }
198 $oPatternListBox->setPostBackOnChange(true); 215 $oPatternListBox->setPostBackOnChange(true);
@@ -209,14 +226,14 @@ function getOtherGroupDisplay($oGroup) { @@ -209,14 +226,14 @@ function getOtherGroupDisplay($oGroup) {
209 if (!isset($oGroup)) { 226 if (!isset($oGroup)) {
210 if (Permission::userIsSystemAdministrator()) { 227 if (Permission::userIsSystemAdministrator()) {
211 // if this is the system administrator, prepend group names with unit name 228 // if this is the system administrator, prepend group names with unit name
212 - $oPatternListBox = & new PatternListBox($default->owl_groups_table, "name", "id", "fOtherGroupID"); 229 + $oPatternListBox = & new PatternListBox($default->groups_table, "name", "id", "fOtherGroupID");
213 $oPatternListBox->setFromClause("LEFT OUTER JOIN groups_units_link GUL on ST.id=GUL.group_id " . 230 $oPatternListBox->setFromClause("LEFT OUTER JOIN groups_units_link GUL on ST.id=GUL.group_id " .
214 "LEFT OUTER JOIN units_lookup UL on GUL.unit_id=UL.id"); 231 "LEFT OUTER JOIN units_lookup UL on GUL.unit_id=UL.id");
215 $oPatternListBox->setCompositeDisplayName("DISTINCT COALESCE(CONCAT(CONCAT(UL.name, '-'),ST.name),ST.name)"); 232 $oPatternListBox->setCompositeDisplayName("DISTINCT COALESCE(CONCAT(CONCAT(UL.name, '-'),ST.name),ST.name)");
216 } else if (Permission::userIsUnitAdministrator()) { 233 } else if (Permission::userIsUnitAdministrator()) {
217 // else if this is a unit administrator, only display the groups in your unit 234 // else if this is a unit administrator, only display the groups in your unit
218 - $oPatternListBox = & new PatternListBox($default->owl_groups_table, "name", "id", "fOtherGroupID");  
219 - $oPatternListBox->setFromClause("INNER JOIN $default->owl_groups_units_table GUL on ST.id=GUL.group_id"); 235 + $oPatternListBox = & new PatternListBox($default->groups_table, "name", "id", "fOtherGroupID");
  236 + $oPatternListBox->setFromClause("INNER JOIN $default->groups_units_table GUL on ST.id=GUL.group_id");
220 $oPatternListBox->setWhereClause("GUL.unit_id=" . User::getUnitID($_SESSION["userID"])); 237 $oPatternListBox->setWhereClause("GUL.unit_id=" . User::getUnitID($_SESSION["userID"]));
221 } 238 }
222 return $oPatternListBox->render(); 239 return $oPatternListBox->render();
presentation/lookAndFeel/knowledgeTree/administration/usermanagement/editUserUI.inc
1 <?php 1 <?php
2 /** 2 /**
3 -* Presentation information for renaming a User  
4 -*  
5 -* @author Mukhtar Dharsey  
6 -* @date 5 February 2003  
7 -* @package presentation.lookAndFeel.knowledgeTree.  
8 -*  
9 -*/  
10 - 3 + * $Id$
  4 + *
  5 + * Edit user 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 administration.usermanagement
  26 + */
11 // if its the manual edit page..then display normally 27 // if its the manual edit page..then display normally
12 function getEditPage($iUserID) { 28 function getEditPage($iUserID) {
13 global $default; 29 global $default;
@@ -37,7 +53,7 @@ function getUserDetailsPage($iUserID) { @@ -37,7 +53,7 @@ function getUserDetailsPage($iUserID) {
37 global $default; 53 global $default;
38 $oUser = null; 54 $oUser = null;
39 55
40 - $sQuery = "SELECT * FROM $default->owl_users_table WHERE id = $iUserID"; 56 + $sQuery = "SELECT * FROM $default->users_table WHERE id = $iUserID";
41 $aDisplayColumns = array( "username","name","email", "mobile", "email_notification", "max_sessions"); 57 $aDisplayColumns = array( "username","name","email", "mobile", "email_notification", "max_sessions");
42 $aStoreColumns = array( "username","name","email", "mobile", "email_notification", "max_sessions") ; 58 $aStoreColumns = array( "username","name","email", "mobile", "email_notification", "max_sessions") ;
43 $aColumnNames = array("Username: ","Name: ", "Email Address: ", "Mobile Number: ", "Email Notification: ", "Max Sessions: "); 59 $aColumnNames = array("Username: ","Name: ", "Email Address: ", "Mobile Number: ", "Email Notification: ", "Max Sessions: ");
@@ -45,7 +61,7 @@ function getUserDetailsPage($iUserID) { @@ -45,7 +61,7 @@ function getUserDetailsPage($iUserID) {
45 $aDatabaseColumnTypes = array(1,1,1,1,2,1,1,1,1); 61 $aDatabaseColumnTypes = array(1,1,1,1,2,1,1,1,1);
46 62
47 // get list of User properties...name...text field...is_Sys_admin and is_unit_admin..checkboxes 63 // get list of User properties...name...text field...is_Sys_admin and is_unit_admin..checkboxes
48 - $oPattern = & new PatternEditableListFromQuery($sQuery, $default->owl_users_table, $aDisplayColumns, $aStoreColumns, $aColumnNames, $aDisplayColumnTypes, $aDatabaseColumnTypes) ; 64 + $oPattern = & new PatternEditableListFromQuery($sQuery, $default->users_table, $aDisplayColumns, $aStoreColumns, $aColumnNames, $aDisplayColumnTypes, $aDatabaseColumnTypes) ;
49 $oPattern->setUniqueName("userEdit"); 65 $oPattern->setUniqueName("userEdit");
50 $oPattern->setColumnsRequired(array(1,1,0,0,0,0)); 66 $oPattern->setColumnsRequired(array(1,1,0,0,0,0));
51 67
@@ -110,7 +126,7 @@ function getEditPageFail() { @@ -110,7 +126,7 @@ function getEditPageFail() {
110 function getUserDisplay($oUser) { 126 function getUserDisplay($oUser) {
111 global $default; 127 global $default;
112 if (!isset($oUser)) { 128 if (!isset($oUser)) {
113 - $oPatternListBox = & new PatternListBox($default->owl_users_table, "username", "id", "fUserID"); 129 + $oPatternListBox = & new PatternListBox($default->users_table, "username", "id", "fUserID");
114 $oPatternListBox->setPostBackOnChange(true); 130 $oPatternListBox->setPostBackOnChange(true);
115 return $oPatternListBox->render(); 131 return $oPatternListBox->render();
116 } else { 132 } else {
presentation/lookAndFeel/knowledgeTree/administration/usermanagement/listUsersBL.php
1 <?php 1 <?php
2 /** 2 /**
3 -* BL information for viewing a Discussion  
4 -*  
5 -* @author Omar Rahbeeni  
6 -* @date 19 May 2003  
7 -* @package presentation.lookAndFeel.knowledgeTree.  
8 -*  
9 -*/ 3 + * $Id$
  4 + *
  5 + * List users.
  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 Omar Rahbeeni, Jam Warehouse (Pty) Ltd, South Africa
  25 + * @package administration.usermanagement
  26 + */
10 27
11 require_once("../../../../../config/dmsDefaults.php"); 28 require_once("../../../../../config/dmsDefaults.php");
12 require_once("$default->fileSystemRoot/lib/users/User.inc"); 29 require_once("$default->fileSystemRoot/lib/users/User.inc");
13 -require_once("$default->fileSystemRoot/lib/security/permission.inc"); 30 +require_once("$default->fileSystemRoot/lib/security/Permission.inc");
14 require_once("$default->fileSystemRoot/lib/visualpatterns/PatternCustom.inc"); 31 require_once("$default->fileSystemRoot/lib/visualpatterns/PatternCustom.inc");
15 require_once("$default->fileSystemRoot/lib/visualpatterns/PatternTableSqlQuery.inc"); 32 require_once("$default->fileSystemRoot/lib/visualpatterns/PatternTableSqlQuery.inc");
16 require_once("$default->fileSystemRoot/lib/visualpatterns/PatternListBox.inc"); 33 require_once("$default->fileSystemRoot/lib/visualpatterns/PatternListBox.inc");
presentation/lookAndFeel/knowledgeTree/administration/usermanagement/listUsersUI.inc
1 <?php 1 <?php
2 /** 2 /**
3 -* Presentation information for adding a unit  
4 -*  
5 -* @author Omar Rahbeeni  
6 -* @date 19 May 2003  
7 -* @package presentation.lookAndFeel.knowledgeTree.  
8 -*  
9 -*/  
10 - 3 + * $Id$
  4 + *
  5 + * List users 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 Omar Rahbeeni, Jam Warehouse (Pty) Ltd, South Africa
  25 + * @package administration.usermanagement
  26 + */
11 function getGroupDisplay($iGroupID) { 27 function getGroupDisplay($iGroupID) {
12 global $default; 28 global $default;
13 if (Permission::userIsSystemAdministrator()) { 29 if (Permission::userIsSystemAdministrator()) {
14 // if this is the system administrator, prepend group names with unit name 30 // if this is the system administrator, prepend group names with unit name
15 - $oPatternListBox = & new PatternListBox($default->owl_groups_table, "name", "id", "fGroupID"); 31 + $oPatternListBox = & new PatternListBox($default->groups_table, "name", "id", "fGroupID");
16 $oPatternListBox->setFromClause("LEFT OUTER JOIN groups_units_link GUL on ST.id=GUL.group_id " . 32 $oPatternListBox->setFromClause("LEFT OUTER JOIN groups_units_link GUL on ST.id=GUL.group_id " .
17 "LEFT OUTER JOIN units_lookup UL on GUL.unit_id=UL.id"); 33 "LEFT OUTER JOIN units_lookup UL on GUL.unit_id=UL.id");
18 $oPatternListBox->setCompositeDisplayName("DISTINCT COALESCE(CONCAT(CONCAT(UL.name, '-'),ST.name),ST.name)"); 34 $oPatternListBox->setCompositeDisplayName("DISTINCT COALESCE(CONCAT(CONCAT(UL.name, '-'),ST.name),ST.name)");
19 } else if (Permission::userIsUnitAdministrator()) { 35 } else if (Permission::userIsUnitAdministrator()) {
20 // else if this is a unit administrator, only display the groups in your unit 36 // else if this is a unit administrator, only display the groups in your unit
21 - $oPatternListBox = & new PatternListBox($default->owl_groups_table, "name", "id", "fGroupID");  
22 - $oPatternListBox->setFromClause("INNER JOIN $default->owl_groups_units_table GUL on ST.id=GUL.group_id"); 37 + $oPatternListBox = & new PatternListBox($default->groups_table, "name", "id", "fGroupID");
  38 + $oPatternListBox->setFromClause("INNER JOIN $default->groups_units_table GUL on ST.id=GUL.group_id");
23 $oPatternListBox->setWhereClause("GUL.unit_id=" . User::getUnitID($_SESSION["userID"])); 39 $oPatternListBox->setWhereClause("GUL.unit_id=" . User::getUnitID($_SESSION["userID"]));
24 } 40 }
25 $oPatternListBox->setPostBackOnChange(true); 41 $oPatternListBox->setPostBackOnChange(true);
presentation/lookAndFeel/knowledgeTree/administration/usermanagement/removeUserBL.php
1 <?php 1 <?php
2 /** 2 /**
3 -* BL information for adding a User  
4 -*  
5 -* @author Mukhtar Dharsey  
6 -* @date 5 February 2003  
7 -* @package presentation.lookAndFeel.knowledgeTree.  
8 -*  
9 -*/ 3 + * $Id$
  4 + *
  5 + * Remove a user.
  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 administration.usermanagement
  26 + */
  27 +
10 require_once("../../../../../config/dmsDefaults.php"); 28 require_once("../../../../../config/dmsDefaults.php");
11 29
12 if (checkSession()) { 30 if (checkSession()) {
13 require_once("$default->fileSystemRoot/lib/visualpatterns/PatternListBox.inc"); 31 require_once("$default->fileSystemRoot/lib/visualpatterns/PatternListBox.inc");
14 require_once("$default->fileSystemRoot/lib/visualpatterns/PatternEditableListFromQuery.inc"); 32 require_once("$default->fileSystemRoot/lib/visualpatterns/PatternEditableListFromQuery.inc");
15 require_once("removeUserUI.inc"); 33 require_once("removeUserUI.inc");
16 - require_once("$default->fileSystemRoot/lib/security/permission.inc"); 34 + require_once("$default->fileSystemRoot/lib/security/Permission.inc");
17 require_once("$default->fileSystemRoot/lib/users/User.inc"); 35 require_once("$default->fileSystemRoot/lib/users/User.inc");
18 require_once("$default->fileSystemRoot/lib/groups/Group.inc"); 36 require_once("$default->fileSystemRoot/lib/groups/Group.inc");
19 require_once("$default->fileSystemRoot/lib/groups/GroupUserLink.inc"); 37 require_once("$default->fileSystemRoot/lib/groups/GroupUserLink.inc");
presentation/lookAndFeel/knowledgeTree/administration/usermanagement/removeUserFromGroupBL.php
1 <?php 1 <?php
2 /** 2 /**
3 -* BL information for adding a User  
4 -*  
5 -* @author Mukhtar Dharsey  
6 -* @date 5 February 2003  
7 -* @package presentation.lookAndFeel.knowledgeTree.  
8 -*  
9 -*/ 3 + * $Id$
  4 + *
  5 + * Remove user from a group.
  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 administration.usermanagement
  26 + */
  27 +
10 require_once("../../../../../config/dmsDefaults.php"); 28 require_once("../../../../../config/dmsDefaults.php");
11 29
12 if (checkSession()) { 30 if (checkSession()) {
@@ -16,7 +34,7 @@ if (checkSession()) { @@ -16,7 +34,7 @@ if (checkSession()) {
16 require_once("$default->fileSystemRoot/lib/groups/Group.inc"); 34 require_once("$default->fileSystemRoot/lib/groups/Group.inc");
17 require_once("$default->fileSystemRoot/lib/users/User.inc"); 35 require_once("$default->fileSystemRoot/lib/users/User.inc");
18 require_once("$default->fileSystemRoot/lib/groups/GroupUserLink.inc"); 36 require_once("$default->fileSystemRoot/lib/groups/GroupUserLink.inc");
19 - require_once("$default->fileSystemRoot/lib/security/permission.inc"); 37 + require_once("$default->fileSystemRoot/lib/security/Permission.inc");
20 require_once("$default->fileSystemRoot/presentation/webpageTemplate.inc"); 38 require_once("$default->fileSystemRoot/presentation/webpageTemplate.inc");
21 require_once("$default->fileSystemRoot/lib/visualpatterns/PatternCustom.inc"); 39 require_once("$default->fileSystemRoot/lib/visualpatterns/PatternCustom.inc");
22 require_once("$default->fileSystemRoot/lib/foldermanagement/Folder.inc"); 40 require_once("$default->fileSystemRoot/lib/foldermanagement/Folder.inc");
presentation/lookAndFeel/knowledgeTree/administration/usermanagement/removeUserFromGroupUI.inc
1 <?php 1 <?php
2 /** 2 /**
3 -* Presentation information for adding a User  
4 -*  
5 -* @author Mukhtar Dharsey  
6 -* @date 5 February 2003  
7 -* @package presentation.lookAndFeel.knowledgeTree.  
8 -*  
9 -*/  
10 - 3 + * $Id$
  4 + *
  5 + * Remove user from a group 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 administration.usermanagement
  26 + */
11 // get page for removal 27 // get page for removal
12 function getPage($iUserID) { 28 function getPage($iUserID) {
13 global $default; 29 global $default;
@@ -174,10 +190,10 @@ function getPageSuccess($fUserID) { @@ -174,10 +190,10 @@ function getPageSuccess($fUserID) {
174 function getUserDisplay($oUser) { 190 function getUserDisplay($oUser) {
175 global $default; 191 global $default;
176 if (!isset($oUser)) { 192 if (!isset($oUser)) {
177 - $oPatternListBox = & new PatternListBox($default->owl_users_table, "username", "id", "fUserID"); 193 + $oPatternListBox = & new PatternListBox($default->users_table, "username", "id", "fUserID");
178 if (Permission::userIsUnitAdministrator()) { 194 if (Permission::userIsUnitAdministrator()) {
179 - $oPatternListBox->setFromClause("INNER JOIN $default->owl_users_groups_table UGL on ST.id=UGL.user_id " .  
180 - "INNER JOIN $default->owl_groups_units_table GUL on UGL.group_id=GUL.group_id"); 195 + $oPatternListBox->setFromClause("INNER JOIN $default->users_groups_table UGL on ST.id=UGL.user_id " .
  196 + "INNER JOIN $default->groups_units_table GUL on UGL.group_id=GUL.group_id");
181 $oPatternListBox->setWhereClause("GUL.unit_id=" . User::getUnitID($_SESSION["userID"])); 197 $oPatternListBox->setWhereClause("GUL.unit_id=" . User::getUnitID($_SESSION["userID"]));
182 } 198 }
183 $oPatternListBox->setPostBackOnChange(true); 199 $oPatternListBox->setPostBackOnChange(true);
presentation/lookAndFeel/knowledgeTree/administration/usermanagement/removeUserUI.inc
1 <?php 1 <?php
2 -  
3 /** 2 /**
4 -* Presentation information for Deleting a User  
5 -*  
6 -* @author Mukhtar Dharsey  
7 -* @date 5 February 2003  
8 -* @package presentation.lookAndFeel.knowledgeTree.  
9 -*  
10 -*/ 3 + * $Id$
  4 + *
  5 + * Remove user 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 administration.usermanagement
  26 + */
11 // gets the delete stuff 27 // gets the delete stuff
12 function getDeletePage($iUserID) { 28 function getDeletePage($iUserID) {
13 global $default; 29 global $default;
@@ -113,7 +129,7 @@ function getDeleteConfirmedPage($iUserID) { @@ -113,7 +129,7 @@ function getDeleteConfirmedPage($iUserID) {
113 function getUserDisplay($oUser) { 129 function getUserDisplay($oUser) {
114 global $default; 130 global $default;
115 if (!isset($oUser)) { 131 if (!isset($oUser)) {
116 - $oPatternListBox = & new PatternListBox($default->owl_users_table, "username", "id", "fUserID"); 132 + $oPatternListBox = & new PatternListBox($default->users_table, "username", "id", "fUserID");
117 $oPatternListBox->setIncludeDefaultValue(true); 133 $oPatternListBox->setIncludeDefaultValue(true);
118 $oPatternListBox->setPostBackOnChange(true); 134 $oPatternListBox->setPostBackOnChange(true);
119 return $oPatternListBox->render(); 135 return $oPatternListBox->render();
presentation/lookAndFeel/knowledgeTree/administration/websitemanagement/addWebsiteBL.php
1 <?php 1 <?php
2 /** 2 /**
3 -* BL information for adding a link  
4 -*  
5 -* @author Mukhtar Dharsey  
6 -* @date 5 February 2003  
7 -* @package presentation.lookAndFeel.knowledgeTree.  
8 -*  
9 -*/ 3 + * $Id$
  4 + *
  5 + * Add a website.
  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 administration.websitemanagement
  26 + */
10 require_once("../../../../../config/dmsDefaults.php"); 27 require_once("../../../../../config/dmsDefaults.php");
11 28
12 if (checkSession()) { 29 if (checkSession()) {
@@ -14,7 +31,7 @@ if (checkSession()) { @@ -14,7 +31,7 @@ if (checkSession()) {
14 require_once("$default->fileSystemRoot/lib/visualpatterns/PatternListBox.inc"); 31 require_once("$default->fileSystemRoot/lib/visualpatterns/PatternListBox.inc");
15 require_once("addWebsiteUI.inc"); 32 require_once("addWebsiteUI.inc");
16 require_once("$default->fileSystemRoot/lib/web/WebSite.inc"); 33 require_once("$default->fileSystemRoot/lib/web/WebSite.inc");
17 - require_once("$default->fileSystemRoot/lib/security/permission.inc"); 34 + require_once("$default->fileSystemRoot/lib/security/Permission.inc");
18 require_once("$default->fileSystemRoot/presentation/webpageTemplate.inc"); 35 require_once("$default->fileSystemRoot/presentation/webpageTemplate.inc");
19 require_once("$default->fileSystemRoot/lib/visualpatterns/PatternCustom.inc"); 36 require_once("$default->fileSystemRoot/lib/visualpatterns/PatternCustom.inc");
20 require_once("$default->fileSystemRoot/lib/foldermanagement/Folder.inc"); 37 require_once("$default->fileSystemRoot/lib/foldermanagement/Folder.inc");
presentation/lookAndFeel/knowledgeTree/administration/websitemanagement/addWebsiteSuccess.php
1 <?php 1 <?php
2 /** 2 /**
3 -* Presentation information when updating group properties is successful  
4 -*  
5 -* @author Mukhtar Dharsey  
6 -* @date 5 February 2003  
7 -* @package presentation.lookAndFeel.knowledgeTree.  
8 -*  
9 -*/ 3 + * $Id$
  4 + *
  5 + * Add a website 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 administration.websitemanagement
  26 + */
10 27
11 require_once("../../../../../config/dmsDefaults.php"); 28 require_once("../../../../../config/dmsDefaults.php");
12 29
presentation/lookAndFeel/knowledgeTree/administration/websitemanagement/addWebsiteUI.inc
1 <?php 1 <?php
2 /** 2 /**
3 -* Presentation information for adding a unit  
4 -*  
5 -* @author Mukhtar Dharsey  
6 -* @date 5 February 2003  
7 -* @package presentation.lookAndFeel.knowledgeTree.  
8 -*  
9 -*/ 3 + * $Id$
  4 + *
  5 + * Add a website 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 administration.websitemanagement
  26 + */
10 // get add pages 27 // get add pages
11 function getPage() { 28 function getPage() {
12 global $default; 29 global $default;
@@ -15,7 +32,7 @@ function getPage() { @@ -15,7 +32,7 @@ function getPage() {
15 $aParameterNumbers = array(0,1,2); 32 $aParameterNumbers = array(0,1,2);
16 $aDisplayColumnTypes = array(1,1,3); 33 $aDisplayColumnTypes = array(1,1,3);
17 $aRequired = array(1,1,1); 34 $aRequired = array(1,1,1);
18 - $aDropDownListTableNames = array(2 => "$default->owl_users_table"); 35 + $aDropDownListTableNames = array(2 => "$default->users_table");
19 $aDropDownListValueColumns = array(2=>'id'); 36 $aDropDownListValueColumns = array(2=>'id');
20 $aDropDownListDisplayColumns = array(2=>'username'); 37 $aDropDownListDisplayColumns = array(2=>'username');
21 38
presentation/lookAndFeel/knowledgeTree/administration/websitemanagement/editWebsiteBL.php
1 <?php 1 <?php
2 /** 2 /**
3 -* BL information for adding a User  
4 -*  
5 -* @author Mukhtar Dharsey  
6 -* @date 5 February 2003  
7 -* @package presentation.lookAndFeel.knowledgeTree.  
8 -*  
9 -*/ 3 + * $Id$
  4 + *
  5 + * Edit a website.
  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 administration.websitemanagement
  26 + */
  27 +
10 require_once("../../../../../config/dmsDefaults.php"); 28 require_once("../../../../../config/dmsDefaults.php");
11 29
12 if (checkSession()) { 30 if (checkSession()) {
13 require_once("$default->fileSystemRoot/lib/visualpatterns/PatternListBox.inc"); 31 require_once("$default->fileSystemRoot/lib/visualpatterns/PatternListBox.inc");
14 require_once("$default->fileSystemRoot/lib/visualpatterns/PatternEditableListFromQuery.inc"); 32 require_once("$default->fileSystemRoot/lib/visualpatterns/PatternEditableListFromQuery.inc");
15 require_once("editWebsiteUI.inc"); 33 require_once("editWebsiteUI.inc");
16 - require_once("$default->fileSystemRoot/lib/security/permission.inc"); 34 + require_once("$default->fileSystemRoot/lib/security/Permission.inc");
17 require_once("$default->fileSystemRoot/lib/users/User.inc"); 35 require_once("$default->fileSystemRoot/lib/users/User.inc");
18 require_once("$default->fileSystemRoot/lib/web/WebSite.inc"); 36 require_once("$default->fileSystemRoot/lib/web/WebSite.inc");
19 require_once("$default->fileSystemRoot/presentation/webpageTemplate.inc"); 37 require_once("$default->fileSystemRoot/presentation/webpageTemplate.inc");
presentation/lookAndFeel/knowledgeTree/administration/websitemanagement/editWebsiteUI.inc
1 <?php 1 <?php
2 - 2 +/**
  3 + * $Id$
  4 + *
  5 + * Edit website 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 administration.websitemanagement
  26 + */
3 function getEditWebSitePage($oWebSite) { 27 function getEditWebSitePage($oWebSite) {
4 global $default; 28 global $default;
5 29
@@ -50,7 +74,7 @@ function getCancelButton($oUser) { @@ -50,7 +74,7 @@ function getCancelButton($oUser) {
50 // then shows a text box with the User's name 74 // then shows a text box with the User's name
51 function getUserDisplay($oUser) { 75 function getUserDisplay($oUser) {
52 global $default; 76 global $default;
53 - $oPatternListBox = & new PatternListBox($default->owl_users_table, "username", "id", "fWebMasterID"); 77 + $oPatternListBox = & new PatternListBox($default->users_table, "username", "id", "fWebMasterID");
54 if ($oUser) { 78 if ($oUser) {
55 $oPatternListBox->setSelectedValue($oUser->getID()); 79 $oPatternListBox->setSelectedValue($oUser->getID());
56 } 80 }
presentation/lookAndFeel/knowledgeTree/administration/websitemanagement/listWebsitesBL.php
1 <?php 1 <?php
2 /** 2 /**
3 -* BL information for viewing a Discussion  
4 -*  
5 -* @author Omar Rahbeeni  
6 -* @date 19 May 2003  
7 -* @package presentation.lookAndFeel.knowledgeTree.  
8 -*  
9 -*/ 3 + * $Id$
  4 + *
  5 + * List websites.
  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 Omar Rahbeeni, Jam Warehouse (Pty) Ltd, South Africa
  25 + * @package administration.websitemanagement
  26 + */
10 27
11 require_once("../../../../../config/dmsDefaults.php"); 28 require_once("../../../../../config/dmsDefaults.php");
12 require_once("$default->fileSystemRoot/lib/users/User.inc"); 29 require_once("$default->fileSystemRoot/lib/users/User.inc");
13 -require_once("$default->fileSystemRoot/lib/security/permission.inc"); 30 +require_once("$default->fileSystemRoot/lib/security/Permission.inc");
14 require_once("$default->fileSystemRoot/lib/visualpatterns/PatternCustom.inc"); 31 require_once("$default->fileSystemRoot/lib/visualpatterns/PatternCustom.inc");
15 require_once("$default->fileSystemRoot/lib/visualpatterns/PatternTableSqlQuery.inc"); 32 require_once("$default->fileSystemRoot/lib/visualpatterns/PatternTableSqlQuery.inc");
16 require_once("$default->fileSystemRoot/lib/visualpatterns/PatternListBox.inc"); 33 require_once("$default->fileSystemRoot/lib/visualpatterns/PatternListBox.inc");
presentation/lookAndFeel/knowledgeTree/administration/websitemanagement/listWebsitesUI.inc
1 <?php 1 <?php
2 /** 2 /**
3 -* Presentation information for adding a unit  
4 -*  
5 -* @author Omar Rahbeeni  
6 -* @date 19 May 2003  
7 -* @package presentation.lookAndFeel.knowledgeTree.  
8 -*  
9 -*/ 3 + * $Id$
  4 + *
  5 + * List websites 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 Omar Rahbeeni, Jam Warehouse (Pty) Ltd, South Africa
  25 + * @package administration.websitemanagement
  26 + */
  27 +
10 function getWebsites() { 28 function getWebsites() {
11 global $default; 29 global $default;
12 $sQuery = "SELECT id as WebsiteID, web_site_name as WebsiteName, web_site_url WebsiteURL, web_master_id as WebmasterID, " . 30 $sQuery = "SELECT id as WebsiteID, web_site_name as WebsiteName, web_site_url WebsiteURL, web_master_id as WebmasterID, " .
13 "'Edit', 'Delete' " . 31 "'Edit', 'Delete' " .
14 - "FROM " . $default->owl_web_sites_table . " " . 32 + "FROM " . $default->web_sites_table . " " .
15 "ORDER BY web_site_name"; 33 "ORDER BY web_site_name";
16 34
17 $aColumns = array("WebsiteName", "WebsiteURL", "Edit", "Delete"); 35 $aColumns = array("WebsiteName", "WebsiteURL", "Edit", "Delete");
presentation/lookAndFeel/knowledgeTree/administration/websitemanagement/removeWebsiteBL.php
1 <?php 1 <?php
2 /** 2 /**
3 -* BL information for adding a Link  
4 -*  
5 -* @author Mukhtar Dharsey  
6 -* @date 5 February 2003  
7 -* @package presentation.lookAndFeel.knowledgeTree.  
8 -*  
9 -*/ 3 + * $Id$
  4 + *
  5 + * Remove a website.
  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 administration.websitemanagement
  26 + */
  27 +
10 require_once("../../../../../config/dmsDefaults.php"); 28 require_once("../../../../../config/dmsDefaults.php");
11 29
12 if (checkSession()) { 30 if (checkSession()) {
13 require_once("$default->fileSystemRoot/lib/visualpatterns/PatternListBox.inc"); 31 require_once("$default->fileSystemRoot/lib/visualpatterns/PatternListBox.inc");
14 require_once("$default->fileSystemRoot/lib/visualpatterns/PatternEditableListFromQuery.inc"); 32 require_once("$default->fileSystemRoot/lib/visualpatterns/PatternEditableListFromQuery.inc");
15 require_once("removeWebsiteUI.inc"); 33 require_once("removeWebsiteUI.inc");
16 - require_once("$default->fileSystemRoot/lib/security/permission.inc"); 34 + require_once("$default->fileSystemRoot/lib/security/Permission.inc");
17 require_once("$default->fileSystemRoot/lib/web/WebSite.inc"); 35 require_once("$default->fileSystemRoot/lib/web/WebSite.inc");
18 require_once("$default->fileSystemRoot/lib/users/User.inc"); 36 require_once("$default->fileSystemRoot/lib/users/User.inc");
19 require_once("$default->fileSystemRoot/presentation/webpageTemplate.inc"); 37 require_once("$default->fileSystemRoot/presentation/webpageTemplate.inc");
presentation/lookAndFeel/knowledgeTree/administration/websitemanagement/removeWebsiteUI.inc
1 <?php 1 <?php
2 -  
3 /** 2 /**
4 -* Presentation information for Deleting a WebSite  
5 -*  
6 -* @author Mukhtar Dharsey  
7 -* @date 5 February 2003  
8 -* @package presentation.lookAndFeel.knowledgeTree.  
9 -*  
10 -*/ 3 + * $Id$
  4 + *
  5 + * Remove a website 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 administration.websitemanagement
  26 + */
  27 +
11 // gets the delete stuff 28 // gets the delete stuff
12 function getDeletePage($iWebSiteID) { 29 function getDeletePage($iWebSiteID) {
13 global $default; 30 global $default;
@@ -92,7 +109,7 @@ function getDeleteFailPage() { @@ -92,7 +109,7 @@ function getDeleteFailPage() {
92 function getWebSiteDisplay($oWebSite) { 109 function getWebSiteDisplay($oWebSite) {
93 global $default; 110 global $default;
94 if (!isset($oWebSite)) { 111 if (!isset($oWebSite)) {
95 - $oPatternListBox = & new PatternListBox($default->owl_web_sites_table, "web_site_name", "id", "fWebSiteID"); 112 + $oPatternListBox = & new PatternListBox($default->web_sites_table, "web_site_name", "id", "fWebSiteID");
96 $oPatternListBox->setIncludeDefaultValue(true); 113 $oPatternListBox->setIncludeDefaultValue(true);
97 $oPatternListBox->setPostBackOnChange(true); 114 $oPatternListBox->setPostBackOnChange(true);
98 return $oPatternListBox->render(); 115 return $oPatternListBox->render();
presentation/lookAndFeel/knowledgeTree/dashboard/news/displayNewsImage.php
@@ -5,14 +5,28 @@ require_once(&quot;$default-&gt;fileSystemRoot/lib/dashboard/DashboardNews.inc&quot;); @@ -5,14 +5,28 @@ require_once(&quot;$default-&gt;fileSystemRoot/lib/dashboard/DashboardNews.inc&quot;);
5 5
6 /** 6 /**
7 * $Id$ 7 * $Id$
8 - *  
9 - * Displays a news item image  
10 * 8 *
11 - * Licensed under the GNU GPL. For full terms see the file DOCS/COPYING. 9 + * Displays a news item image.
  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
12 * 26 *
13 * @version $Revision$ 27 * @version $Revision$
14 * @author Michael Joseph <michael@jamwarehouse.com>, Jam Warehouse (Pty) Ltd, South Africa 28 * @author Michael Joseph <michael@jamwarehouse.com>, Jam Warehouse (Pty) Ltd, South Africa
15 - * @package presentation.lookAndFeel.knowledgeTree.administration.news 29 + * @package dashboard.news
16 */ 30 */
17 31
18 if (isset($fNewsID)) { 32 if (isset($fNewsID)) {
presentation/lookAndFeel/knowledgeTree/dashboard/news/displayNewsItem.php
@@ -6,14 +6,28 @@ require_once(&quot;$default-&gt;uiDirectory/dashboardUI.inc&quot;); @@ -6,14 +6,28 @@ require_once(&quot;$default-&gt;uiDirectory/dashboardUI.inc&quot;);
6 6
7 /** 7 /**
8 * $Id$ 8 * $Id$
9 - * 9 + *
10 * Displays a news item. 10 * Displays a news item.
11 * 11 *
12 - * Licensed under the GNU GPL. For full terms see the file DOCS/COPYING. 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
13 * 27 *
14 * @version $Revision$ 28 * @version $Revision$
15 * @author Michael Joseph <michael@jamwarehouse.com>, Jam Warehouse (Pty) Ltd, South Africa 29 * @author Michael Joseph <michael@jamwarehouse.com>, Jam Warehouse (Pty) Ltd, South Africa
16 - * @package presentation.lookAndFeel.knowledgeTree.administration.news 30 + * @package dashboard.news
17 */ 31 */
18 32
19 if (checkSession()) { 33 if (checkSession()) {
presentation/lookAndFeel/knowledgeTree/discussions/addCommentBL.php
1 <?php 1 <?php
2 /** 2 /**
3 -* BL information for viewing a Discussion  
4 -*  
5 -* @author Omar Rahbeeni  
6 -* @date 5 May 2003  
7 -* @package presentation.lookAndFeel.knowledgeTree.  
8 -*  
9 -*/  
10 - require_once("../../../../config/dmsDefaults.php"); 3 + * $Id$
  4 + *
  5 + * Add a comment.
  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 Omar Rahbeeni, Jam Warehouse (Pty) Ltd, South Africa
  25 + * @package discussions
  26 + */
  27 +
  28 +require_once("../../../../config/dmsDefaults.php");
11 29
12 if (checkSession()) { 30 if (checkSession()) {
13 31
@@ -18,7 +36,7 @@ if (checkSession()) { @@ -18,7 +36,7 @@ if (checkSession()) {
18 require_once("$default->fileSystemRoot/lib/documentmanagement/Document.inc"); 36 require_once("$default->fileSystemRoot/lib/documentmanagement/Document.inc");
19 require_once("$default->fileSystemRoot/lib/foldermanagement/Folder.inc"); 37 require_once("$default->fileSystemRoot/lib/foldermanagement/Folder.inc");
20 require_once("$default->fileSystemRoot/lib/users/User.inc"); 38 require_once("$default->fileSystemRoot/lib/users/User.inc");
21 - require_once("$default->fileSystemRoot/lib/security/permission.inc"); 39 + require_once("$default->fileSystemRoot/lib/security/Permission.inc");
22 require_once("$default->fileSystemRoot/presentation/webpageTemplate.inc"); 40 require_once("$default->fileSystemRoot/presentation/webpageTemplate.inc");
23 require_once("$default->fileSystemRoot/lib/visualpatterns/PatternCustom.inc"); 41 require_once("$default->fileSystemRoot/lib/visualpatterns/PatternCustom.inc");
24 require_once("$default->fileSystemRoot/lib/discussions/DiscussionThread.inc"); //### 42 require_once("$default->fileSystemRoot/lib/discussions/DiscussionThread.inc"); //###
presentation/lookAndFeel/knowledgeTree/discussions/addCommentUI.inc
1 <?php 1 <?php
2 /** 2 /**
3 -* Presentation information for adding a unit  
4 -*  
5 -* @author Omar Rahbeeni  
6 -* @date 5 May 2003  
7 -* @package presentation.lookAndFeel.knowledgeTree.  
8 -*  
9 -*/  
10 - 3 + * $Id$
  4 + *
  5 + * Add a discussion comment 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 Omar Rahbeeni, Jam Warehouse (Pty) Ltd, South Africa
  25 + * @package discussions
  26 + */
  27 +
11 /** 28 /**
12 * Submission of comment SUCCESS page 29 * Submission of comment SUCCESS page
13 * 30 *
presentation/lookAndFeel/knowledgeTree/discussions/viewDiscussionBL.php
1 <?php 1 <?php
2 /** 2 /**
3 -* BL information for viewing a Discussion  
4 -*  
5 -* @author Omar Rahbeeni  
6 -* @date 8 May 2003  
7 -* @package presentation.lookAndFeel.knowledgeTree.  
8 -*  
9 -*/  
10 -  
11 - require_once("../../../../config/dmsDefaults.php"); 3 + * $Id$
  4 + *
  5 + * View discussions.
  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 Omar Rahbeeni, Jam Warehouse (Pty) Ltd, South Africa
  25 + * @package discussions
  26 + */
  27 +
  28 +require_once("../../../../config/dmsDefaults.php");
12 29
13 if (checkSession()) { 30 if (checkSession()) {
14 // require_once("$default->fileSystemRoot/lib/visualpatterns/PatternCreate.inc"); 31 // require_once("$default->fileSystemRoot/lib/visualpatterns/PatternCreate.inc");
@@ -17,7 +34,7 @@ if (checkSession()) { @@ -17,7 +34,7 @@ if (checkSession()) {
17 require_once("$default->fileSystemRoot/lib/documentmanagement/Document.inc"); 34 require_once("$default->fileSystemRoot/lib/documentmanagement/Document.inc");
18 require_once("$default->fileSystemRoot/lib/foldermanagement/Folder.inc"); 35 require_once("$default->fileSystemRoot/lib/foldermanagement/Folder.inc");
19 require_once("$default->fileSystemRoot/lib/users/User.inc"); 36 require_once("$default->fileSystemRoot/lib/users/User.inc");
20 - require_once("$default->fileSystemRoot/lib/security/permission.inc"); 37 + require_once("$default->fileSystemRoot/lib/security/Permission.inc");
21 require_once("$default->fileSystemRoot/presentation/webpageTemplate.inc"); 38 require_once("$default->fileSystemRoot/presentation/webpageTemplate.inc");
22 require_once("$default->fileSystemRoot/lib/visualpatterns/PatternCustom.inc"); 39 require_once("$default->fileSystemRoot/lib/visualpatterns/PatternCustom.inc");
23 require_once("$default->fileSystemRoot/lib/visualpatterns/PatternBrowsableSearchResults.inc"); 40 require_once("$default->fileSystemRoot/lib/visualpatterns/PatternBrowsableSearchResults.inc");
presentation/lookAndFeel/knowledgeTree/discussions/viewDiscussionUI.inc
1 <?php 1 <?php
2 /** 2 /**
3 -* Presentation information for adding a unit  
4 -*  
5 -* @author Omar Rahbeeni  
6 -* @date 5 May 2003  
7 -* @package presentation.lookAndFeel.knowledgeTree.  
8 -*  
9 -*/  
10 - 3 + * $Id$
  4 + *
  5 + * View discussion 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 Omar Rahbeeni, Jam Warehouse (Pty) Ltd, South Africa
  25 + * @package discussions
  26 + */
11 27
12 function getPageButtons($oThread){ 28 function getPageButtons($oThread){
13 global $default; 29 global $default;
presentation/lookAndFeel/knowledgeTree/documentmanagement/archiving/addArchiveSettingsBL.php
1 <?php 1 <?php
2 /** 2 /**
3 * $Id$ 3 * $Id$
4 - *  
5 - * Business logic for setting document archive settings  
6 * 4 *
7 - * Licensed under the GNU GPL. For full terms see the file DOCS/COPYING. 5 + * Business logic for setting document archive settings.
  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
8 * 22 *
9 * @version $Revision$ 23 * @version $Revision$
10 * @author Michael Joseph <michael@jamwarehouse.com>, Jam Warehouse (Pty) Ltd, South Africa 24 * @author Michael Joseph <michael@jamwarehouse.com>, Jam Warehouse (Pty) Ltd, South Africa
11 - * @package presentation.lookAndFeel.knowledgeTree.documentmanagement 25 + * @package documentmanagement.archiving
12 */ 26 */
  27 +
13 require_once("../../../../../config/dmsDefaults.php"); 28 require_once("../../../../../config/dmsDefaults.php");
14 require_once("$default->fileSystemRoot/lib/documentmanagement/Document.inc"); 29 require_once("$default->fileSystemRoot/lib/documentmanagement/Document.inc");
15 30
presentation/lookAndFeel/knowledgeTree/documentmanagement/archiving/archiveDocumentBL.php
@@ -12,17 +12,30 @@ require_once(&quot;$default-&gt;fileSystemRoot/presentation/Html.inc&quot;); @@ -12,17 +12,30 @@ require_once(&quot;$default-&gt;fileSystemRoot/presentation/Html.inc&quot;);
12 require_once("$default->uiDirectory/documentmanagement/documentUI.inc"); 12 require_once("$default->uiDirectory/documentmanagement/documentUI.inc");
13 require_once("$default->uiDirectory/foldermanagement/folderUI.inc"); 13 require_once("$default->uiDirectory/foldermanagement/folderUI.inc");
14 require_once("$default->uiDirectory/documentmanagement/archiving/archiveSettingsUI.inc"); 14 require_once("$default->uiDirectory/documentmanagement/archiving/archiveSettingsUI.inc");
15 -  
16 /** 15 /**
17 * $Id$ 16 * $Id$
18 - * 17 + *
19 * Business logic for archiving a document. 18 * Business logic for archiving a document.
20 * 19 *
21 - * Licensed under the GNU GPL. For full terms see the file DOCS/COPYING. 20 + * Copyright (c) 2003 Jam Warehouse http://www.jamwarehouse.com
  21 + *
  22 + * This program is free software; you can redistribute it and/or modify
  23 + * it under the terms of the GNU General Public License as published by
  24 + * the Free Software Foundation; either version 2 of the License, or
  25 + * (at your option) any later version.
  26 + *
  27 + * This program is distributed in the hope that it will be useful,
  28 + * but WITHOUT ANY WARRANTY; without even the implied warranty of
  29 + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  30 + * GNU General Public License for more details.
  31 + *
  32 + * You should have received a copy of the GNU General Public License
  33 + * along with this program; if not, write to the Free Software
  34 + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
22 * 35 *
23 * @version $Revision$ 36 * @version $Revision$
24 * @author Michael Joseph <michael@jamwarehouse.com>, Jam Warehouse (Pty) Ltd, South Africa 37 * @author Michael Joseph <michael@jamwarehouse.com>, Jam Warehouse (Pty) Ltd, South Africa
25 - * @package presentation.lookAndFeel.knowledgeTree.documentmanagement.archiving 38 + * @package documentmanagement.archiving
26 */ 39 */
27 40
28 if (checkSession()) { 41 if (checkSession()) {
presentation/lookAndFeel/knowledgeTree/documentmanagement/archiving/archiveSettingsUI.inc
1 <?php 1 <?php
2 -  
3 /** 2 /**
4 * $Id$ 3 * $Id$
5 - *  
6 - * This page holds all presentation code for display document archiving settings.  
7 * 4 *
8 - * Licensed under the GNU GPL. For full terms see the file DOCS/COPYING. 5 + * This page holds all presentation code for display document archiving settings.
  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
9 * 22 *
10 * @version $Revision$ 23 * @version $Revision$
11 * @author Michael Joseph <michael@jamwarehouse.com>, Jam Warehouse (Pty) Ltd, South Africa 24 * @author Michael Joseph <michael@jamwarehouse.com>, Jam Warehouse (Pty) Ltd, South Africa
12 - * @package presentation.lookAndFeel.knowledgeTree.administration.news 25 + * @package documentmanagement.archiving
13 */ 26 */
14 27
15 /** 28 /**
@@ -24,7 +37,7 @@ function renderErrorMessage($sErrorMessage) { @@ -24,7 +37,7 @@ function renderErrorMessage($sErrorMessage) {
24 37
25 function renderDocumentTransactionListBox($iDocumentTransactionID) { 38 function renderDocumentTransactionListBox($iDocumentTransactionID) {
26 global $default; 39 global $default;
27 - $oPatternListBox = & new PatternListBox($default->owl_transaction_types_table, "name", "id", "fDocumentTransactionID"); 40 + $oPatternListBox = & new PatternListBox($default->transaction_types_table, "name", "id", "fDocumentTransactionID");
28 $oPatternListBox->setWhereClause("ST.name in ('View','Download')"); 41 $oPatternListBox->setWhereClause("ST.name in ('View','Download')");
29 if (isset($iDocumentTransactionID)) { 42 if (isset($iDocumentTransactionID)) {
30 $oPatternListBox->setSelectedValue($iDocumentTransactionID); 43 $oPatternListBox->setSelectedValue($iDocumentTransactionID);
@@ -34,7 +47,7 @@ function renderDocumentTransactionListBox($iDocumentTransactionID) { @@ -34,7 +47,7 @@ function renderDocumentTransactionListBox($iDocumentTransactionID) {
34 47
35 function renderArchivingTypeListBox() { 48 function renderArchivingTypeListBox() {
36 global $default, $fArchivingTypeID; 49 global $default, $fArchivingTypeID;
37 - $oPatternListBox = & new PatternListBox($default->owl_archiving_type_lookup_table, "name", "id", "fArchivingTypeID"); 50 + $oPatternListBox = & new PatternListBox($default->archiving_type_lookup_table, "name", "id", "fArchivingTypeID");
38 $oPatternListBox->setPostBackOnChange(true); 51 $oPatternListBox->setPostBackOnChange(true);
39 $oPatternListBox->setSelectedValue($fArchivingTypeID); 52 $oPatternListBox->setSelectedValue($fArchivingTypeID);
40 return $oPatternListBox->render(); 53 return $oPatternListBox->render();
@@ -42,7 +55,7 @@ function renderArchivingTypeListBox() { @@ -42,7 +55,7 @@ function renderArchivingTypeListBox() {
42 55
43 function renderTimeUnitsListBox($iTimeUnitID) { 56 function renderTimeUnitsListBox($iTimeUnitID) {
44 global $default; 57 global $default;
45 - $oPatternListBox = & new PatternListBox($default->owl_time_unit_lookup_table, "name", "id", "fTimeUnitID"); 58 + $oPatternListBox = & new PatternListBox($default->time_unit_lookup_table, "name", "id", "fTimeUnitID");
46 if (isset($iTimeUnitID)) { 59 if (isset($iTimeUnitID)) {
47 $oPatternListBox->setSelectedValue($iTimeUnitID); 60 $oPatternListBox->setSelectedValue($iTimeUnitID);
48 } 61 }
@@ -134,7 +147,7 @@ function renderArchiveSettingsForm($iDocumentID, $oArchiveSettings, $iArchivingT @@ -134,7 +147,7 @@ function renderArchiveSettingsForm($iDocumentID, $oArchiveSettings, $iArchivingT
134 $iArchivingTypeID = $oArchiveSettings->getArchivingTypeID(); 147 $iArchivingTypeID = $oArchiveSettings->getArchivingTypeID();
135 } 148 }
136 149
137 - $sArchivingType = lookupName($default->owl_archiving_type_lookup_table, $iArchivingTypeID); 150 + $sArchivingType = lookupName($default->archiving_type_lookup_table, $iArchivingTypeID);
138 151
139 $sToRender .= "<table border=\"0\">"; 152 $sToRender .= "<table border=\"0\">";
140 // TODO: calendar control integration 153 // TODO: calendar control integration
presentation/lookAndFeel/knowledgeTree/documentmanagement/archiving/modifyArchiveSettingsBL.php
1 <?php 1 <?php
2 /** 2 /**
3 * $Id$ 3 * $Id$
4 - *  
5 - * Business logic for setting document archive settings  
6 * 4 *
7 - * Licensed under the GNU GPL. For full terms see the file DOCS/COPYING. 5 + * Business logic for setting document archive settings.
  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
8 * 22 *
9 * @version $Revision$ 23 * @version $Revision$
10 * @author Michael Joseph <michael@jamwarehouse.com>, Jam Warehouse (Pty) Ltd, South Africa 24 * @author Michael Joseph <michael@jamwarehouse.com>, Jam Warehouse (Pty) Ltd, South Africa
11 - * @package presentation.lookAndFeel.knowledgeTree.documentmanagement 25 + * @package documentmanagement.archiving
12 */ 26 */
  27 +
13 require_once("../../../../../config/dmsDefaults.php"); 28 require_once("../../../../../config/dmsDefaults.php");
14 require_once("$default->fileSystemRoot/lib/documentmanagement/Document.inc"); 29 require_once("$default->fileSystemRoot/lib/documentmanagement/Document.inc");
15 30
presentation/lookAndFeel/knowledgeTree/documentmanagement/archiving/requestDocumentRestoreBL.php
@@ -10,17 +10,30 @@ require_once(&quot;$default-&gt;fileSystemRoot/lib/visualpatterns/PatternCustom.inc&quot;); @@ -10,17 +10,30 @@ require_once(&quot;$default-&gt;fileSystemRoot/lib/visualpatterns/PatternCustom.inc&quot;);
10 require_once("restoreArchivedDocumentUI.inc"); 10 require_once("restoreArchivedDocumentUI.inc");
11 require_once("$default->uiDirectory/documentmanagement/documentUI.inc"); 11 require_once("$default->uiDirectory/documentmanagement/documentUI.inc");
12 require_once("$default->fileSystemRoot/presentation/Html.inc"); 12 require_once("$default->fileSystemRoot/presentation/Html.inc");
13 -  
14 /** 13 /**
15 * $Id$ 14 * $Id$
16 - * 15 + *
17 * Business logic for requesting the restoration of an archived document. 16 * Business logic for requesting the restoration of an archived document.
18 * 17 *
19 - * Licensed under the GNU GPL. For full terms see the file DOCS/COPYING. 18 + * Copyright (c) 2003 Jam Warehouse http://www.jamwarehouse.com
  19 + *
  20 + * This program is free software; you can redistribute it and/or modify
  21 + * it under the terms of the GNU General Public License as published by
  22 + * the Free Software Foundation; either version 2 of the License, or
  23 + * (at your option) any later version.
  24 + *
  25 + * This program is distributed in the hope that it will be useful,
  26 + * but WITHOUT ANY WARRANTY; without even the implied warranty of
  27 + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  28 + * GNU General Public License for more details.
  29 + *
  30 + * You should have received a copy of the GNU General Public License
  31 + * along with this program; if not, write to the Free Software
  32 + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
20 * 33 *
21 * @version $Revision$ 34 * @version $Revision$
22 * @author Michael Joseph <michael@jamwarehouse.com>, Jam Warehouse (Pty) Ltd, South Africa 35 * @author Michael Joseph <michael@jamwarehouse.com>, Jam Warehouse (Pty) Ltd, South Africa
23 - * @package presentation.lookAndFeel.knowledgeTree.documentmanagement.archiving 36 + * @package documentmanagement.archiving
24 */ 37 */
25 38
26 if (checkSession()) { 39 if (checkSession()) {
presentation/lookAndFeel/knowledgeTree/documentmanagement/archiving/restoreArchivedDocumentUI.inc
1 <?php 1 <?php
2 -  
3 /** 2 /**
4 * $Id$ 3 * $Id$
5 - *  
6 - * This page holds all presentation code for requesting the restoration of archived documents  
7 * 4 *
8 - * Licensed under the GNU GPL. For full terms see the file DOCS/COPYING. 5 + * This page holds all presentation code for requesting the restoration of archived documents.
  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
9 * 22 *
10 * @version $Revision$ 23 * @version $Revision$
11 * @author Michael Joseph <michael@jamwarehouse.com>, Jam Warehouse (Pty) Ltd, South Africa 24 * @author Michael Joseph <michael@jamwarehouse.com>, Jam Warehouse (Pty) Ltd, South Africa
12 - * @package presentation.lookAndFeel.knowledgeTree.administration.news 25 + * @package documentmanagement.archiving
13 */ 26 */
14 27
15 /** 28 /**