Commit 06a70451b9ae0dabd44890265a11820173f74c25
1 parent
90be4327
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 | 5 | /** |
| 6 | 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 | 26 | * @version $Revision$ |
| 13 | 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 | 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 | 28 | function getAddLink($sAddAction, $sAddText) { | ... | ... |
presentation/lookAndFeel/knowledgeTree/administration/usermanagement/addUserBL.php
| 1 | 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 | 28 | require_once("../../../../../config/dmsDefaults.php"); |
| 11 | 29 | require_once("$default->fileSystemRoot/lib/visualpatterns/PatternListBox.inc"); |
| 12 | 30 | require_once("$default->fileSystemRoot/lib/visualpatterns/PatternCreate.inc"); |
| 13 | 31 | require_once("$default->fileSystemRoot/lib/users/User.inc"); |
| 14 | 32 | require_once("$default->fileSystemRoot/lib/groups/Group.inc"); |
| 15 | 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 | 35 | require_once("$default->fileSystemRoot/lib/visualpatterns/PatternCustom.inc"); |
| 18 | 36 | require_once("$default->fileSystemRoot/lib/foldermanagement/Folder.inc"); |
| 19 | 37 | require_once("$default->fileSystemRoot/presentation/lookAndFeel/knowledgeTree/foldermanagement/folderUI.inc"); | ... | ... |
presentation/lookAndFeel/knowledgeTree/administration/usermanagement/addUserToGroupBL.php
| 1 | 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 | 28 | require_once("../../../../../config/dmsDefaults.php"); |
| 11 | 29 | |
| 12 | 30 | if (checkSession()) { |
| ... | ... | @@ -16,7 +34,7 @@ if (checkSession()) { |
| 16 | 34 | require_once("$default->fileSystemRoot/lib/groups/Group.inc"); |
| 17 | 35 | require_once("$default->fileSystemRoot/lib/users/User.inc"); |
| 18 | 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 | 38 | require_once("$default->fileSystemRoot/presentation/webpageTemplate.inc"); |
| 21 | 39 | require_once("$default->fileSystemRoot/lib/visualpatterns/PatternCustom.inc"); |
| 22 | 40 | require_once("$default->fileSystemRoot/lib/foldermanagement/Folder.inc"); | ... | ... |
presentation/lookAndFeel/knowledgeTree/administration/usermanagement/addUserToGroupUI.inc
| 1 | 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 | 27 | // gets main page |
| 12 | 28 | function getPage($iUserID, $iGroupID) { |
| 13 | 29 | global $default; |
| ... | ... | @@ -111,14 +127,14 @@ function getPageFail($sQueryString) { |
| 111 | 127 | function getUserDisplay($oUser) { |
| 112 | 128 | global $default; |
| 113 | 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 | 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 | 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 | 138 | $oUnassignedUsersLB->setWhereClause("ISNULL(UGL.group_id)"); |
| 123 | 139 | $oPatternListBox->setAdditionalEntries($oUnassignedUsersLB->getEntries()); |
| 124 | 140 | } |
| ... | ... | @@ -136,14 +152,14 @@ function getGroupDisplay($oGroup) { |
| 136 | 152 | if (!isset($oGroup)) { |
| 137 | 153 | if (Permission::userIsSystemAdministrator()) { |
| 138 | 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 | 156 | $oPatternListBox->setFromClause("LEFT OUTER JOIN groups_units_link GUL on ST.id=GUL.group_id " . |
| 141 | 157 | "LEFT OUTER JOIN units_lookup UL on GUL.unit_id=UL.id"); |
| 142 | 158 | $oPatternListBox->setCompositeDisplayName("DISTINCT COALESCE(CONCAT(CONCAT(UL.name, '-'),ST.name),ST.name)"); |
| 143 | 159 | } else if (Permission::userIsUnitAdministrator()) { |
| 144 | 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 | 163 | $oPatternListBox->setWhereClause("GUL.unit_id=" . User::getUnitID($_SESSION["userID"])); |
| 148 | 164 | } |
| 149 | 165 | return $oPatternListBox->render(); | ... | ... |
presentation/lookAndFeel/knowledgeTree/administration/usermanagement/addUserUI.inc
| 1 | 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 | 27 | // display multiple users |
| 12 | 28 | function getSelectUserPage($aResults) { |
| 13 | 29 | global $default; |
| ... | ... | @@ -165,14 +181,14 @@ function getGroupListBox() { |
| 165 | 181 | global $default; |
| 166 | 182 | if (Permission::userIsSystemAdministrator()) { |
| 167 | 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 | 185 | $oPatternListBox->setFromClause("LEFT OUTER JOIN groups_units_link GUL on ST.id=GUL.group_id " . |
| 170 | 186 | "LEFT OUTER JOIN units_lookup UL on GUL.unit_id=UL.id"); |
| 171 | 187 | $oPatternListBox->setCompositeDisplayName("DISTINCT COALESCE(CONCAT(CONCAT(UL.name, '-'),ST.name),ST.name)"); |
| 172 | 188 | } else if (Permission::userIsUnitAdministrator()) { |
| 173 | 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 | 192 | $oPatternListBox->setWhereClause("GUL.unit_id=" . User::getUnitID($_SESSION["userID"])); |
| 177 | 193 | } |
| 178 | 194 | return $oPatternListBox->render(); | ... | ... |
presentation/lookAndFeel/knowledgeTree/administration/usermanagement/editUserBL.php
| 1 | 1 | <?php |
| 2 | 2 | /** |
| 3 | -* BL information for editing a User | |
| 4 | -* | |
| 5 | -* @author Mukhtar Dharsey | |
| 6 | -* @date 5 February 2003 | |
| 7 | -* @package presentation.lookAndFeel.knowledgeTree. | |
| 8 | -* | |
| 9 | -*/ | |
| 3 | + * $Id$ | |
| 4 | + * | |
| 5 | + * Edit user 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 | 28 | require_once("../../../../../config/dmsDefaults.php"); |
| 11 | 29 | |
| 12 | 30 | if (checkSession()) { |
| 13 | 31 | require_once("$default->fileSystemRoot/lib/visualpatterns/PatternListBox.inc"); |
| 14 | 32 | require_once("$default->fileSystemRoot/lib/visualpatterns/PatternEditableListFromQuery.inc"); |
| 15 | 33 | require_once("editUserUI.inc"); |
| 16 | - require_once("$default->fileSystemRoot/lib/security/permission.inc"); | |
| 34 | + require_once("$default->fileSystemRoot/lib/security/Permission.inc"); | |
| 17 | 35 | require_once("$default->fileSystemRoot/lib/users/User.inc"); |
| 18 | 36 | require_once("$default->fileSystemRoot/presentation/webpageTemplate.inc"); |
| 19 | 37 | require_once("$default->fileSystemRoot/lib/visualpatterns/PatternCustom.inc"); | ... | ... |
presentation/lookAndFeel/knowledgeTree/administration/usermanagement/editUserGroupsBL.php
| 1 | 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 | 28 | require_once("../../../../../config/dmsDefaults.php"); |
| 11 | 29 | |
| 12 | 30 | if (checkSession()) { |
| ... | ... | @@ -16,7 +34,7 @@ if (checkSession()) { |
| 16 | 34 | require_once("$default->fileSystemRoot/lib/groups/Group.inc"); |
| 17 | 35 | require_once("$default->fileSystemRoot/lib/users/User.inc"); |
| 18 | 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 | 38 | require_once("$default->fileSystemRoot/presentation/webpageTemplate.inc"); |
| 21 | 39 | require_once("$default->fileSystemRoot/lib/visualpatterns/PatternCustom.inc"); |
| 22 | 40 | require_once("$default->fileSystemRoot/lib/foldermanagement/Folder.inc"); | ... | ... |
presentation/lookAndFeel/knowledgeTree/administration/usermanagement/editUserGroupsUI.inc
| 1 | 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 | 28 | // get page for removal |
| 12 | 29 | function getPage($iUserID) { |
| ... | ... | @@ -189,10 +206,10 @@ function getPageSuccess() { |
| 189 | 206 | function getUserDisplay($oUser) { |
| 190 | 207 | global $default; |
| 191 | 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 | 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 | 213 | $oPatternListBox->setWhereClause("GUL.unit_id=" . User::getUnitID($_SESSION["userID"])); |
| 197 | 214 | } |
| 198 | 215 | $oPatternListBox->setPostBackOnChange(true); |
| ... | ... | @@ -209,14 +226,14 @@ function getOtherGroupDisplay($oGroup) { |
| 209 | 226 | if (!isset($oGroup)) { |
| 210 | 227 | if (Permission::userIsSystemAdministrator()) { |
| 211 | 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 | 230 | $oPatternListBox->setFromClause("LEFT OUTER JOIN groups_units_link GUL on ST.id=GUL.group_id " . |
| 214 | 231 | "LEFT OUTER JOIN units_lookup UL on GUL.unit_id=UL.id"); |
| 215 | 232 | $oPatternListBox->setCompositeDisplayName("DISTINCT COALESCE(CONCAT(CONCAT(UL.name, '-'),ST.name),ST.name)"); |
| 216 | 233 | } else if (Permission::userIsUnitAdministrator()) { |
| 217 | 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 | 237 | $oPatternListBox->setWhereClause("GUL.unit_id=" . User::getUnitID($_SESSION["userID"])); |
| 221 | 238 | } |
| 222 | 239 | return $oPatternListBox->render(); | ... | ... |
presentation/lookAndFeel/knowledgeTree/administration/usermanagement/editUserUI.inc
| 1 | 1 | <?php |
| 2 | 2 | /** |
| 3 | -* Presentation information for renaming a User | |
| 4 | -* | |
| 5 | -* @author Mukhtar Dharsey | |
| 6 | -* @date 5 February 2003 | |
| 7 | -* @package presentation.lookAndFeel.knowledgeTree. | |
| 8 | -* | |
| 9 | -*/ | |
| 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 | 27 | // if its the manual edit page..then display normally |
| 12 | 28 | function getEditPage($iUserID) { |
| 13 | 29 | global $default; |
| ... | ... | @@ -37,7 +53,7 @@ function getUserDetailsPage($iUserID) { |
| 37 | 53 | global $default; |
| 38 | 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 | 57 | $aDisplayColumns = array( "username","name","email", "mobile", "email_notification", "max_sessions"); |
| 42 | 58 | $aStoreColumns = array( "username","name","email", "mobile", "email_notification", "max_sessions") ; |
| 43 | 59 | $aColumnNames = array("Username: ","Name: ", "Email Address: ", "Mobile Number: ", "Email Notification: ", "Max Sessions: "); |
| ... | ... | @@ -45,7 +61,7 @@ function getUserDetailsPage($iUserID) { |
| 45 | 61 | $aDatabaseColumnTypes = array(1,1,1,1,2,1,1,1,1); |
| 46 | 62 | |
| 47 | 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 | 65 | $oPattern->setUniqueName("userEdit"); |
| 50 | 66 | $oPattern->setColumnsRequired(array(1,1,0,0,0,0)); |
| 51 | 67 | |
| ... | ... | @@ -110,7 +126,7 @@ function getEditPageFail() { |
| 110 | 126 | function getUserDisplay($oUser) { |
| 111 | 127 | global $default; |
| 112 | 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 | 130 | $oPatternListBox->setPostBackOnChange(true); |
| 115 | 131 | return $oPatternListBox->render(); |
| 116 | 132 | } else { | ... | ... |
presentation/lookAndFeel/knowledgeTree/administration/usermanagement/listUsersBL.php
| 1 | 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 | 28 | require_once("../../../../../config/dmsDefaults.php"); |
| 12 | 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 | 31 | require_once("$default->fileSystemRoot/lib/visualpatterns/PatternCustom.inc"); |
| 15 | 32 | require_once("$default->fileSystemRoot/lib/visualpatterns/PatternTableSqlQuery.inc"); |
| 16 | 33 | require_once("$default->fileSystemRoot/lib/visualpatterns/PatternListBox.inc"); | ... | ... |
presentation/lookAndFeel/knowledgeTree/administration/usermanagement/listUsersUI.inc
| 1 | 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 | 27 | function getGroupDisplay($iGroupID) { |
| 12 | 28 | global $default; |
| 13 | 29 | if (Permission::userIsSystemAdministrator()) { |
| 14 | 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 | 32 | $oPatternListBox->setFromClause("LEFT OUTER JOIN groups_units_link GUL on ST.id=GUL.group_id " . |
| 17 | 33 | "LEFT OUTER JOIN units_lookup UL on GUL.unit_id=UL.id"); |
| 18 | 34 | $oPatternListBox->setCompositeDisplayName("DISTINCT COALESCE(CONCAT(CONCAT(UL.name, '-'),ST.name),ST.name)"); |
| 19 | 35 | } else if (Permission::userIsUnitAdministrator()) { |
| 20 | 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 | 39 | $oPatternListBox->setWhereClause("GUL.unit_id=" . User::getUnitID($_SESSION["userID"])); |
| 24 | 40 | } |
| 25 | 41 | $oPatternListBox->setPostBackOnChange(true); | ... | ... |
presentation/lookAndFeel/knowledgeTree/administration/usermanagement/removeUserBL.php
| 1 | 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 | 28 | require_once("../../../../../config/dmsDefaults.php"); |
| 11 | 29 | |
| 12 | 30 | if (checkSession()) { |
| 13 | 31 | require_once("$default->fileSystemRoot/lib/visualpatterns/PatternListBox.inc"); |
| 14 | 32 | require_once("$default->fileSystemRoot/lib/visualpatterns/PatternEditableListFromQuery.inc"); |
| 15 | 33 | require_once("removeUserUI.inc"); |
| 16 | - require_once("$default->fileSystemRoot/lib/security/permission.inc"); | |
| 34 | + require_once("$default->fileSystemRoot/lib/security/Permission.inc"); | |
| 17 | 35 | require_once("$default->fileSystemRoot/lib/users/User.inc"); |
| 18 | 36 | require_once("$default->fileSystemRoot/lib/groups/Group.inc"); |
| 19 | 37 | require_once("$default->fileSystemRoot/lib/groups/GroupUserLink.inc"); | ... | ... |
presentation/lookAndFeel/knowledgeTree/administration/usermanagement/removeUserFromGroupBL.php
| 1 | 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 | 28 | require_once("../../../../../config/dmsDefaults.php"); |
| 11 | 29 | |
| 12 | 30 | if (checkSession()) { |
| ... | ... | @@ -16,7 +34,7 @@ if (checkSession()) { |
| 16 | 34 | require_once("$default->fileSystemRoot/lib/groups/Group.inc"); |
| 17 | 35 | require_once("$default->fileSystemRoot/lib/users/User.inc"); |
| 18 | 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 | 38 | require_once("$default->fileSystemRoot/presentation/webpageTemplate.inc"); |
| 21 | 39 | require_once("$default->fileSystemRoot/lib/visualpatterns/PatternCustom.inc"); |
| 22 | 40 | require_once("$default->fileSystemRoot/lib/foldermanagement/Folder.inc"); | ... | ... |
presentation/lookAndFeel/knowledgeTree/administration/usermanagement/removeUserFromGroupUI.inc
| 1 | 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 | 27 | // get page for removal |
| 12 | 28 | function getPage($iUserID) { |
| 13 | 29 | global $default; |
| ... | ... | @@ -174,10 +190,10 @@ function getPageSuccess($fUserID) { |
| 174 | 190 | function getUserDisplay($oUser) { |
| 175 | 191 | global $default; |
| 176 | 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 | 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 | 197 | $oPatternListBox->setWhereClause("GUL.unit_id=" . User::getUnitID($_SESSION["userID"])); |
| 182 | 198 | } |
| 183 | 199 | $oPatternListBox->setPostBackOnChange(true); | ... | ... |
presentation/lookAndFeel/knowledgeTree/administration/usermanagement/removeUserUI.inc
| 1 | 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 | 27 | // gets the delete stuff |
| 12 | 28 | function getDeletePage($iUserID) { |
| 13 | 29 | global $default; |
| ... | ... | @@ -113,7 +129,7 @@ function getDeleteConfirmedPage($iUserID) { |
| 113 | 129 | function getUserDisplay($oUser) { |
| 114 | 130 | global $default; |
| 115 | 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 | 133 | $oPatternListBox->setIncludeDefaultValue(true); |
| 118 | 134 | $oPatternListBox->setPostBackOnChange(true); |
| 119 | 135 | return $oPatternListBox->render(); | ... | ... |
presentation/lookAndFeel/knowledgeTree/administration/websitemanagement/addWebsiteBL.php
| 1 | 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 | 27 | require_once("../../../../../config/dmsDefaults.php"); |
| 11 | 28 | |
| 12 | 29 | if (checkSession()) { |
| ... | ... | @@ -14,7 +31,7 @@ if (checkSession()) { |
| 14 | 31 | require_once("$default->fileSystemRoot/lib/visualpatterns/PatternListBox.inc"); |
| 15 | 32 | require_once("addWebsiteUI.inc"); |
| 16 | 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 | 35 | require_once("$default->fileSystemRoot/presentation/webpageTemplate.inc"); |
| 19 | 36 | require_once("$default->fileSystemRoot/lib/visualpatterns/PatternCustom.inc"); |
| 20 | 37 | require_once("$default->fileSystemRoot/lib/foldermanagement/Folder.inc"); | ... | ... |
presentation/lookAndFeel/knowledgeTree/administration/websitemanagement/addWebsiteSuccess.php
| 1 | 1 | <?php |
| 2 | 2 | /** |
| 3 | -* Presentation information when updating group properties is successful | |
| 4 | -* | |
| 5 | -* @author Mukhtar Dharsey | |
| 6 | -* @date 5 February 2003 | |
| 7 | -* @package presentation.lookAndFeel.knowledgeTree. | |
| 8 | -* | |
| 9 | -*/ | |
| 3 | + * $Id$ | |
| 4 | + * | |
| 5 | + * 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 | 28 | require_once("../../../../../config/dmsDefaults.php"); |
| 12 | 29 | ... | ... |
presentation/lookAndFeel/knowledgeTree/administration/websitemanagement/addWebsiteUI.inc
| 1 | 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 | 27 | // get add pages |
| 11 | 28 | function getPage() { |
| 12 | 29 | global $default; |
| ... | ... | @@ -15,7 +32,7 @@ function getPage() { |
| 15 | 32 | $aParameterNumbers = array(0,1,2); |
| 16 | 33 | $aDisplayColumnTypes = array(1,1,3); |
| 17 | 34 | $aRequired = array(1,1,1); |
| 18 | - $aDropDownListTableNames = array(2 => "$default->owl_users_table"); | |
| 35 | + $aDropDownListTableNames = array(2 => "$default->users_table"); | |
| 19 | 36 | $aDropDownListValueColumns = array(2=>'id'); |
| 20 | 37 | $aDropDownListDisplayColumns = array(2=>'username'); |
| 21 | 38 | ... | ... |
presentation/lookAndFeel/knowledgeTree/administration/websitemanagement/editWebsiteBL.php
| 1 | 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 | 28 | require_once("../../../../../config/dmsDefaults.php"); |
| 11 | 29 | |
| 12 | 30 | if (checkSession()) { |
| 13 | 31 | require_once("$default->fileSystemRoot/lib/visualpatterns/PatternListBox.inc"); |
| 14 | 32 | require_once("$default->fileSystemRoot/lib/visualpatterns/PatternEditableListFromQuery.inc"); |
| 15 | 33 | require_once("editWebsiteUI.inc"); |
| 16 | - require_once("$default->fileSystemRoot/lib/security/permission.inc"); | |
| 34 | + require_once("$default->fileSystemRoot/lib/security/Permission.inc"); | |
| 17 | 35 | require_once("$default->fileSystemRoot/lib/users/User.inc"); |
| 18 | 36 | require_once("$default->fileSystemRoot/lib/web/WebSite.inc"); |
| 19 | 37 | require_once("$default->fileSystemRoot/presentation/webpageTemplate.inc"); | ... | ... |
presentation/lookAndFeel/knowledgeTree/administration/websitemanagement/editWebsiteUI.inc
| 1 | 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 | 27 | function getEditWebSitePage($oWebSite) { |
| 4 | 28 | global $default; |
| 5 | 29 | |
| ... | ... | @@ -50,7 +74,7 @@ function getCancelButton($oUser) { |
| 50 | 74 | // then shows a text box with the User's name |
| 51 | 75 | function getUserDisplay($oUser) { |
| 52 | 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 | 78 | if ($oUser) { |
| 55 | 79 | $oPatternListBox->setSelectedValue($oUser->getID()); |
| 56 | 80 | } | ... | ... |
presentation/lookAndFeel/knowledgeTree/administration/websitemanagement/listWebsitesBL.php
| 1 | 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 | 28 | require_once("../../../../../config/dmsDefaults.php"); |
| 12 | 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 | 31 | require_once("$default->fileSystemRoot/lib/visualpatterns/PatternCustom.inc"); |
| 15 | 32 | require_once("$default->fileSystemRoot/lib/visualpatterns/PatternTableSqlQuery.inc"); |
| 16 | 33 | require_once("$default->fileSystemRoot/lib/visualpatterns/PatternListBox.inc"); | ... | ... |
presentation/lookAndFeel/knowledgeTree/administration/websitemanagement/listWebsitesUI.inc
| 1 | 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 | 28 | function getWebsites() { |
| 11 | 29 | global $default; |
| 12 | 30 | $sQuery = "SELECT id as WebsiteID, web_site_name as WebsiteName, web_site_url WebsiteURL, web_master_id as WebmasterID, " . |
| 13 | 31 | "'Edit', 'Delete' " . |
| 14 | - "FROM " . $default->owl_web_sites_table . " " . | |
| 32 | + "FROM " . $default->web_sites_table . " " . | |
| 15 | 33 | "ORDER BY web_site_name"; |
| 16 | 34 | |
| 17 | 35 | $aColumns = array("WebsiteName", "WebsiteURL", "Edit", "Delete"); | ... | ... |
presentation/lookAndFeel/knowledgeTree/administration/websitemanagement/removeWebsiteBL.php
| 1 | 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 | 28 | require_once("../../../../../config/dmsDefaults.php"); |
| 11 | 29 | |
| 12 | 30 | if (checkSession()) { |
| 13 | 31 | require_once("$default->fileSystemRoot/lib/visualpatterns/PatternListBox.inc"); |
| 14 | 32 | require_once("$default->fileSystemRoot/lib/visualpatterns/PatternEditableListFromQuery.inc"); |
| 15 | 33 | require_once("removeWebsiteUI.inc"); |
| 16 | - require_once("$default->fileSystemRoot/lib/security/permission.inc"); | |
| 34 | + require_once("$default->fileSystemRoot/lib/security/Permission.inc"); | |
| 17 | 35 | require_once("$default->fileSystemRoot/lib/web/WebSite.inc"); |
| 18 | 36 | require_once("$default->fileSystemRoot/lib/users/User.inc"); |
| 19 | 37 | require_once("$default->fileSystemRoot/presentation/webpageTemplate.inc"); | ... | ... |
presentation/lookAndFeel/knowledgeTree/administration/websitemanagement/removeWebsiteUI.inc
| 1 | 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 | 28 | // gets the delete stuff |
| 12 | 29 | function getDeletePage($iWebSiteID) { |
| 13 | 30 | global $default; |
| ... | ... | @@ -92,7 +109,7 @@ function getDeleteFailPage() { |
| 92 | 109 | function getWebSiteDisplay($oWebSite) { |
| 93 | 110 | global $default; |
| 94 | 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 | 113 | $oPatternListBox->setIncludeDefaultValue(true); |
| 97 | 114 | $oPatternListBox->setPostBackOnChange(true); |
| 98 | 115 | return $oPatternListBox->render(); | ... | ... |
presentation/lookAndFeel/knowledgeTree/dashboard/news/displayNewsImage.php
| ... | ... | @@ -5,14 +5,28 @@ require_once("$default->fileSystemRoot/lib/dashboard/DashboardNews.inc"); |
| 5 | 5 | |
| 6 | 6 | /** |
| 7 | 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 | 27 | * @version $Revision$ |
| 14 | 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 | 32 | if (isset($fNewsID)) { | ... | ... |
presentation/lookAndFeel/knowledgeTree/dashboard/news/displayNewsItem.php
| ... | ... | @@ -6,14 +6,28 @@ require_once("$default->uiDirectory/dashboardUI.inc"); |
| 6 | 6 | |
| 7 | 7 | /** |
| 8 | 8 | * $Id$ |
| 9 | - * | |
| 9 | + * | |
| 10 | 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 | 28 | * @version $Revision$ |
| 15 | 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 | 33 | if (checkSession()) { | ... | ... |
presentation/lookAndFeel/knowledgeTree/discussions/addCommentBL.php
| 1 | 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 | 30 | if (checkSession()) { |
| 13 | 31 | |
| ... | ... | @@ -18,7 +36,7 @@ if (checkSession()) { |
| 18 | 36 | require_once("$default->fileSystemRoot/lib/documentmanagement/Document.inc"); |
| 19 | 37 | require_once("$default->fileSystemRoot/lib/foldermanagement/Folder.inc"); |
| 20 | 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 | 40 | require_once("$default->fileSystemRoot/presentation/webpageTemplate.inc"); |
| 23 | 41 | require_once("$default->fileSystemRoot/lib/visualpatterns/PatternCustom.inc"); |
| 24 | 42 | require_once("$default->fileSystemRoot/lib/discussions/DiscussionThread.inc"); //### | ... | ... |
presentation/lookAndFeel/knowledgeTree/discussions/addCommentUI.inc
| 1 | 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 | 29 | * Submission of comment SUCCESS page |
| 13 | 30 | * | ... | ... |
presentation/lookAndFeel/knowledgeTree/discussions/viewDiscussionBL.php
| 1 | 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 | 30 | if (checkSession()) { |
| 14 | 31 | // require_once("$default->fileSystemRoot/lib/visualpatterns/PatternCreate.inc"); |
| ... | ... | @@ -17,7 +34,7 @@ if (checkSession()) { |
| 17 | 34 | require_once("$default->fileSystemRoot/lib/documentmanagement/Document.inc"); |
| 18 | 35 | require_once("$default->fileSystemRoot/lib/foldermanagement/Folder.inc"); |
| 19 | 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 | 38 | require_once("$default->fileSystemRoot/presentation/webpageTemplate.inc"); |
| 22 | 39 | require_once("$default->fileSystemRoot/lib/visualpatterns/PatternCustom.inc"); |
| 23 | 40 | require_once("$default->fileSystemRoot/lib/visualpatterns/PatternBrowsableSearchResults.inc"); | ... | ... |
presentation/lookAndFeel/knowledgeTree/discussions/viewDiscussionUI.inc
| 1 | 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 | 28 | function getPageButtons($oThread){ |
| 13 | 29 | global $default; | ... | ... |
presentation/lookAndFeel/knowledgeTree/documentmanagement/archiving/addArchiveSettingsBL.php
| 1 | 1 | <?php |
| 2 | 2 | /** |
| 3 | 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 | 23 | * @version $Revision$ |
| 10 | 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 | 28 | require_once("../../../../../config/dmsDefaults.php"); |
| 14 | 29 | require_once("$default->fileSystemRoot/lib/documentmanagement/Document.inc"); |
| 15 | 30 | ... | ... |
presentation/lookAndFeel/knowledgeTree/documentmanagement/archiving/archiveDocumentBL.php
| ... | ... | @@ -12,17 +12,30 @@ require_once("$default->fileSystemRoot/presentation/Html.inc"); |
| 12 | 12 | require_once("$default->uiDirectory/documentmanagement/documentUI.inc"); |
| 13 | 13 | require_once("$default->uiDirectory/foldermanagement/folderUI.inc"); |
| 14 | 14 | require_once("$default->uiDirectory/documentmanagement/archiving/archiveSettingsUI.inc"); |
| 15 | - | |
| 16 | 15 | /** |
| 17 | 16 | * $Id$ |
| 18 | - * | |
| 17 | + * | |
| 19 | 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 | 36 | * @version $Revision$ |
| 24 | 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 | 41 | if (checkSession()) { | ... | ... |
presentation/lookAndFeel/knowledgeTree/documentmanagement/archiving/archiveSettingsUI.inc
| 1 | 1 | <?php |
| 2 | - | |
| 3 | 2 | /** |
| 4 | 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 | 23 | * @version $Revision$ |
| 11 | 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 | 37 | |
| 25 | 38 | function renderDocumentTransactionListBox($iDocumentTransactionID) { |
| 26 | 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 | 41 | $oPatternListBox->setWhereClause("ST.name in ('View','Download')"); |
| 29 | 42 | if (isset($iDocumentTransactionID)) { |
| 30 | 43 | $oPatternListBox->setSelectedValue($iDocumentTransactionID); |
| ... | ... | @@ -34,7 +47,7 @@ function renderDocumentTransactionListBox($iDocumentTransactionID) { |
| 34 | 47 | |
| 35 | 48 | function renderArchivingTypeListBox() { |
| 36 | 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 | 51 | $oPatternListBox->setPostBackOnChange(true); |
| 39 | 52 | $oPatternListBox->setSelectedValue($fArchivingTypeID); |
| 40 | 53 | return $oPatternListBox->render(); |
| ... | ... | @@ -42,7 +55,7 @@ function renderArchivingTypeListBox() { |
| 42 | 55 | |
| 43 | 56 | function renderTimeUnitsListBox($iTimeUnitID) { |
| 44 | 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 | 59 | if (isset($iTimeUnitID)) { |
| 47 | 60 | $oPatternListBox->setSelectedValue($iTimeUnitID); |
| 48 | 61 | } |
| ... | ... | @@ -134,7 +147,7 @@ function renderArchiveSettingsForm($iDocumentID, $oArchiveSettings, $iArchivingT |
| 134 | 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 | 152 | $sToRender .= "<table border=\"0\">"; |
| 140 | 153 | // TODO: calendar control integration | ... | ... |
presentation/lookAndFeel/knowledgeTree/documentmanagement/archiving/modifyArchiveSettingsBL.php
| 1 | 1 | <?php |
| 2 | 2 | /** |
| 3 | 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 | 23 | * @version $Revision$ |
| 10 | 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 | 28 | require_once("../../../../../config/dmsDefaults.php"); |
| 14 | 29 | require_once("$default->fileSystemRoot/lib/documentmanagement/Document.inc"); |
| 15 | 30 | ... | ... |
presentation/lookAndFeel/knowledgeTree/documentmanagement/archiving/requestDocumentRestoreBL.php
| ... | ... | @@ -10,17 +10,30 @@ require_once("$default->fileSystemRoot/lib/visualpatterns/PatternCustom.inc"); |
| 10 | 10 | require_once("restoreArchivedDocumentUI.inc"); |
| 11 | 11 | require_once("$default->uiDirectory/documentmanagement/documentUI.inc"); |
| 12 | 12 | require_once("$default->fileSystemRoot/presentation/Html.inc"); |
| 13 | - | |
| 14 | 13 | /** |
| 15 | 14 | * $Id$ |
| 16 | - * | |
| 15 | + * | |
| 17 | 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 | 34 | * @version $Revision$ |
| 22 | 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 | 39 | if (checkSession()) { | ... | ... |
presentation/lookAndFeel/knowledgeTree/documentmanagement/archiving/restoreArchivedDocumentUI.inc
| 1 | 1 | <?php |
| 2 | - | |
| 3 | 2 | /** |
| 4 | 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 | 23 | * @version $Revision$ |
| 11 | 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 | /** | ... | ... |