Commit 5b11f426edeeb79158dd5dfb41abb9d78259b492
1 parent
733a6566
added copyright and gpl notice
removed owl prefix from table aliases git-svn-id: https://kt-dms.svn.sourceforge.net/svnroot/kt-dms/trunk@2584 c91229c3-7414-0410-bfa2-8a42b809f60b
Showing
34 changed files
with
852 additions
and
279 deletions
presentation/lookAndFeel/knowledgeTree/administration/orgmanagement/addOrgBL.php
| 1 | <?php | 1 | <?php |
| 2 | /** | 2 | /** |
| 3 | -* BL information for adding a Org | ||
| 4 | -* | ||
| 5 | -* @author Mukhtar Dharsey | ||
| 6 | -* @date 5 February 2003 | ||
| 7 | -* @package presentation.lookAndFeel.knowledgeTree. | ||
| 8 | -* | ||
| 9 | -*/ | 3 | + * $Id$ |
| 4 | + * | ||
| 5 | + * Add an organisation | ||
| 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.orgmanagement | ||
| 26 | + */ | ||
| 10 | require_once("../../../../../config/dmsDefaults.php"); | 27 | require_once("../../../../../config/dmsDefaults.php"); |
| 11 | require_once("$default->fileSystemRoot/lib/visualpatterns/PatternListBox.inc"); | 28 | require_once("$default->fileSystemRoot/lib/visualpatterns/PatternListBox.inc"); |
| 12 | require_once("$default->fileSystemRoot/lib/visualpatterns/PatternCreate.inc"); | 29 | require_once("$default->fileSystemRoot/lib/visualpatterns/PatternCreate.inc"); |
| 13 | require_once("$default->fileSystemRoot/lib/unitmanagement/UnitOrganisationLink.inc"); | 30 | require_once("$default->fileSystemRoot/lib/unitmanagement/UnitOrganisationLink.inc"); |
| 14 | -require_once("$default->fileSystemRoot/lib/security/permission.inc"); | 31 | +require_once("$default->fileSystemRoot/lib/security/Permission.inc"); |
| 15 | require_once("$default->fileSystemRoot/lib/visualpatterns/PatternCustom.inc"); | 32 | require_once("$default->fileSystemRoot/lib/visualpatterns/PatternCustom.inc"); |
| 16 | require_once("$default->fileSystemRoot/lib/foldermanagement/Folder.inc"); | 33 | require_once("$default->fileSystemRoot/lib/foldermanagement/Folder.inc"); |
| 17 | require_once("$default->fileSystemRoot/presentation/lookAndFeel/knowledgeTree/foldermanagement/folderUI.inc"); | 34 | require_once("$default->fileSystemRoot/presentation/lookAndFeel/knowledgeTree/foldermanagement/folderUI.inc"); |
presentation/lookAndFeel/knowledgeTree/administration/orgmanagement/addOrgSuccess.php
| 1 | <?php | 1 | <?php |
| 2 | /** | 2 | /** |
| 3 | -* Presentation information when adding a Org is successful | ||
| 4 | -* | ||
| 5 | -* @author Mukhtar Dharsey | ||
| 6 | -* @date 5 February 2003 | ||
| 7 | -* @package presentation.lookAndFeel.knowledgeTree. | ||
| 8 | -* | ||
| 9 | -*/ | ||
| 10 | - | 3 | + * $Id$ |
| 4 | + * | ||
| 5 | + * Add an organisation 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.orgmanagement | ||
| 26 | + */ | ||
| 11 | require_once("../../../../../config/dmsDefaults.php"); | 27 | require_once("../../../../../config/dmsDefaults.php"); |
| 12 | 28 | ||
| 13 | global $default; | 29 | global $default; |
presentation/lookAndFeel/knowledgeTree/administration/orgmanagement/addOrgUI.inc
| 1 | <?php | 1 | <?php |
| 2 | /** | 2 | /** |
| 3 | -* Presentation information for adding a Org | ||
| 4 | -* | ||
| 5 | -* @author Mukhtar Dharsey | ||
| 6 | -* @date 5 February 2003 | ||
| 7 | -* @package presentation.lookAndFeel.knowledgeTree. | ||
| 8 | -* | ||
| 9 | -*/ | 3 | + * $Id$ |
| 4 | + * | ||
| 5 | + * Add an organisation 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.orgmanagement | ||
| 26 | + */ | ||
| 10 | // get add pages | 27 | // get add pages |
| 11 | function getPage() { | 28 | function getPage() { |
| 12 | 29 |
presentation/lookAndFeel/knowledgeTree/administration/orgmanagement/editOrgBL.php
| 1 | <?php | 1 | <?php |
| 2 | /** | 2 | /** |
| 3 | -* BL information for editing a Org | ||
| 4 | -* | ||
| 5 | -* @author Mukhtar Dharsey | ||
| 6 | -* @date 5 February 2003 | ||
| 7 | -* @package presentation.lookAndFeel.knowledgeTree. | ||
| 8 | -* | ||
| 9 | -*/ | 3 | + * $Id$ |
| 4 | + * | ||
| 5 | + * Edit organisation. | ||
| 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.orgmanagement | ||
| 26 | + */ | ||
| 10 | require_once("../../../../../config/dmsDefaults.php"); | 27 | require_once("../../../../../config/dmsDefaults.php"); |
| 11 | 28 | ||
| 12 | if (checkSession()) { | 29 | if (checkSession()) { |
| 13 | require_once("$default->fileSystemRoot/lib/visualpatterns/PatternListBox.inc"); | 30 | require_once("$default->fileSystemRoot/lib/visualpatterns/PatternListBox.inc"); |
| 14 | require_once("$default->fileSystemRoot/lib/visualpatterns/PatternEditableListFromQuery.inc"); | 31 | require_once("$default->fileSystemRoot/lib/visualpatterns/PatternEditableListFromQuery.inc"); |
| 15 | require_once("editOrgUI.inc"); | 32 | require_once("editOrgUI.inc"); |
| 16 | - require_once("$default->fileSystemRoot/lib/security/permission.inc"); | 33 | + require_once("$default->fileSystemRoot/lib/security/Permission.inc"); |
| 17 | require_once("$default->fileSystemRoot/lib/orgmanagement/Organisation.inc"); | 34 | require_once("$default->fileSystemRoot/lib/orgmanagement/Organisation.inc"); |
| 18 | require_once("$default->fileSystemRoot/presentation/webpageTemplate.inc"); | 35 | require_once("$default->fileSystemRoot/presentation/webpageTemplate.inc"); |
| 19 | require_once("$default->fileSystemRoot/lib/visualpatterns/PatternCustom.inc"); | 36 | require_once("$default->fileSystemRoot/lib/visualpatterns/PatternCustom.inc"); |
presentation/lookAndFeel/knowledgeTree/administration/orgmanagement/editOrgUI.inc
| 1 | <?php | 1 | <?php |
| 2 | /** | 2 | /** |
| 3 | -* Presentation information for renaming a Org | ||
| 4 | -* | ||
| 5 | -* @author Mukhtar Dharsey | ||
| 6 | -* @date 5 February 2003 | ||
| 7 | -* @package presentation.lookAndFeel.knowledgeTree. | ||
| 8 | -* | ||
| 9 | -*/ | ||
| 10 | - | 3 | + * $Id$ |
| 4 | + * | ||
| 5 | + * Edit organisation 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.orgmanagement | ||
| 26 | + */ | ||
| 27 | + | ||
| 11 | // if its the manual edit page..then display normally | 28 | // if its the manual edit page..then display normally |
| 12 | function getEditPage($iOrgID) { | 29 | function getEditPage($iOrgID) { |
| 13 | global $default; | 30 | global $default; |
| @@ -80,7 +97,7 @@ function getEditPageFail() { | @@ -80,7 +97,7 @@ function getEditPageFail() { | ||
| 80 | function getOrgDisplay($oOrg) { | 97 | function getOrgDisplay($oOrg) { |
| 81 | global $default; | 98 | global $default; |
| 82 | if (!isset($oOrg)) { | 99 | if (!isset($oOrg)) { |
| 83 | - $oPatternListBox = & new PatternListBox($default->owl_organisations_table, "name", "id", "fOrgID"); | 100 | + $oPatternListBox = & new PatternListBox($default->organisations_table, "name", "id", "fOrgID"); |
| 84 | //$oPatternListBox->setIncludeDefaultValue(true); | 101 | //$oPatternListBox->setIncludeDefaultValue(true); |
| 85 | $oPatternListBox->setPostBackOnChange(true); | 102 | $oPatternListBox->setPostBackOnChange(true); |
| 86 | return $oPatternListBox->render(); | 103 | return $oPatternListBox->render(); |
presentation/lookAndFeel/knowledgeTree/administration/orgmanagement/listOrgBL.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 organisations. | ||
| 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.orgmanagement | ||
| 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/orgmanagement/listOrgUI.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 organisations 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.orgmanagement | ||
| 26 | + */ | ||
| 10 | 27 | ||
| 11 | function getOrganisations() { | 28 | function getOrganisations() { |
| 12 | global $default; | 29 | global $default; |
presentation/lookAndFeel/knowledgeTree/administration/orgmanagement/removeOrgBL.php
| 1 | <?php | 1 | <?php |
| 2 | /** | 2 | /** |
| 3 | -* BL information for adding a Org | ||
| 4 | -* | ||
| 5 | -* @author Mukhtar Dharsey | ||
| 6 | -* @date 5 February 2003 | ||
| 7 | -* @package presentation.lookAndFeel.knowledgeTree. | ||
| 8 | -* | ||
| 9 | -*/ | 3 | + * $Id$ |
| 4 | + * | ||
| 5 | + * Remove organisation. | ||
| 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.orgmanagement | ||
| 26 | + */ | ||
| 10 | require_once("../../../../../config/dmsDefaults.php"); | 27 | require_once("../../../../../config/dmsDefaults.php"); |
| 11 | 28 | ||
| 12 | if (checkSession()) { | 29 | if (checkSession()) { |
| 13 | require_once("$default->fileSystemRoot/lib/visualpatterns/PatternListBox.inc"); | 30 | require_once("$default->fileSystemRoot/lib/visualpatterns/PatternListBox.inc"); |
| 14 | require_once("$default->fileSystemRoot/lib/visualpatterns/PatternEditableListFromQuery.inc"); | 31 | require_once("$default->fileSystemRoot/lib/visualpatterns/PatternEditableListFromQuery.inc"); |
| 15 | require_once("removeOrgUI.inc"); | 32 | require_once("removeOrgUI.inc"); |
| 16 | - require_once("$default->fileSystemRoot/lib/security/permission.inc"); | 33 | + require_once("$default->fileSystemRoot/lib/security/Permission.inc"); |
| 17 | require_once("$default->fileSystemRoot/lib/orgmanagement/Organisation.inc"); | 34 | require_once("$default->fileSystemRoot/lib/orgmanagement/Organisation.inc"); |
| 18 | require_once("$default->fileSystemRoot/presentation/webpageTemplate.inc"); | 35 | require_once("$default->fileSystemRoot/presentation/webpageTemplate.inc"); |
| 19 | require_once("$default->fileSystemRoot/lib/visualpatterns/PatternCustom.inc"); | 36 | require_once("$default->fileSystemRoot/lib/visualpatterns/PatternCustom.inc"); |
presentation/lookAndFeel/knowledgeTree/administration/orgmanagement/removeOrgUI.inc
| 1 | <?php | 1 | <?php |
| 2 | - | ||
| 3 | /** | 2 | /** |
| 4 | -* Presentation information for Deleting a Org | ||
| 5 | -* | ||
| 6 | -* @author Mukhtar Dharsey | ||
| 7 | -* @date 5 February 2003 | ||
| 8 | -* @package presentation.lookAndFeel.knowledgeTree. | ||
| 9 | -* | ||
| 10 | -*/ | 3 | + * $Id$ |
| 4 | + * | ||
| 5 | + * Remove organisation 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.orgmanagement | ||
| 26 | + */ | ||
| 27 | + | ||
| 11 | // gets the delete stuff | 28 | // gets the delete stuff |
| 12 | function getDeletePage($iOrgID) { | 29 | function getDeletePage($iOrgID) { |
| 13 | global $default; | 30 | global $default; |
| @@ -87,7 +104,7 @@ function getDeleteFailPage() { | @@ -87,7 +104,7 @@ function getDeleteFailPage() { | ||
| 87 | function getOrgDisplay($oOrg) { | 104 | function getOrgDisplay($oOrg) { |
| 88 | global $default; | 105 | global $default; |
| 89 | if (!isset($oOrg)) { | 106 | if (!isset($oOrg)) { |
| 90 | - $oPatternListBox = & new PatternListBox($default->owl_organisations_table, "name", "id", "fOrgID"); | 107 | + $oPatternListBox = & new PatternListBox($default->organisations_table, "name", "id", "fOrgID"); |
| 91 | $oPatternListBox->setIncludeDefaultValue(true); | 108 | $oPatternListBox->setIncludeDefaultValue(true); |
| 92 | $oPatternListBox->setPostBackOnChange(true); | 109 | $oPatternListBox->setPostBackOnChange(true); |
| 93 | return $oPatternListBox->render(); | 110 | return $oPatternListBox->render(); |
presentation/lookAndFeel/knowledgeTree/administration/rolemanagement/addRoleBL.php
| 1 | <?php | 1 | <?php |
| 2 | /** | 2 | /** |
| 3 | -* BL information for adding a new role | ||
| 4 | -* | ||
| 5 | -* @author Mukhtar Dharsey | ||
| 6 | -* @date 5 February 2003 | ||
| 7 | -* @package presentation.lookAndFeel.knowledgeTree. | ||
| 8 | -* | ||
| 9 | -*/ | 3 | + * $Id$ |
| 4 | + * | ||
| 5 | + * Add a role. | ||
| 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.rolemanagement | ||
| 26 | + */ | ||
| 10 | require_once("../../../../../config/dmsDefaults.php"); | 27 | require_once("../../../../../config/dmsDefaults.php"); |
| 11 | require_once("$default->fileSystemRoot/lib/visualpatterns/PatternListBox.inc"); | 28 | require_once("$default->fileSystemRoot/lib/visualpatterns/PatternListBox.inc"); |
| 12 | require_once("$default->fileSystemRoot/lib/visualpatterns/PatternCreate.inc"); | 29 | require_once("$default->fileSystemRoot/lib/visualpatterns/PatternCreate.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/foldermanagement/Folder.inc"); | 32 | require_once("$default->fileSystemRoot/lib/foldermanagement/Folder.inc"); |
| 16 | require_once("$default->fileSystemRoot/presentation/lookAndFeel/knowledgeTree/foldermanagement/folderUI.inc"); | 33 | require_once("$default->fileSystemRoot/presentation/lookAndFeel/knowledgeTree/foldermanagement/folderUI.inc"); |
presentation/lookAndFeel/knowledgeTree/administration/rolemanagement/addRoleUI.inc
| 1 | <?php | 1 | <?php |
| 2 | /** | 2 | /** |
| 3 | -* Presentation information for adding a group | ||
| 4 | -* | ||
| 5 | -* @author Mukhtar Dharsey | ||
| 6 | -* @date 5 February 2003 | ||
| 7 | -* @package presentation.lookAndFeel.knowledgeTree. | ||
| 8 | -* | ||
| 9 | -*/ | 3 | + * $Id$ |
| 4 | + * | ||
| 5 | + * Add a role 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.rolemanagement | ||
| 26 | + */ | ||
| 10 | // get add pages | 27 | // get add pages |
| 11 | function getPage() { | 28 | function getPage() { |
| 12 | 29 |
presentation/lookAndFeel/knowledgeTree/administration/rolemanagement/editRoleBL.php
| 1 | <?php | 1 | <?php |
| 2 | /** | 2 | /** |
| 3 | -* BL information for editing a role's properties | ||
| 4 | -* | ||
| 5 | -* @author Mukhtar Dharsey | ||
| 6 | -* @date 5 February 2003 | ||
| 7 | -* @package presentation.lookAndFeel.knowledgeTree. | ||
| 8 | -* | ||
| 9 | -*/ | 3 | + * $Id$ |
| 4 | + * | ||
| 5 | + * Edit a role. | ||
| 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.rolemanagement | ||
| 26 | + */ | ||
| 10 | require_once("../../../../../config/dmsDefaults.php"); | 27 | require_once("../../../../../config/dmsDefaults.php"); |
| 11 | 28 | ||
| 12 | if (checkSession()) { | 29 | if (checkSession()) { |
| 13 | require_once("$default->fileSystemRoot/lib/visualpatterns/PatternListBox.inc"); | 30 | require_once("$default->fileSystemRoot/lib/visualpatterns/PatternListBox.inc"); |
| 14 | require_once("$default->fileSystemRoot/lib/visualpatterns/PatternEditableListFromQuery.inc"); | 31 | require_once("$default->fileSystemRoot/lib/visualpatterns/PatternEditableListFromQuery.inc"); |
| 15 | require_once("editRoleUI.inc"); | 32 | require_once("editRoleUI.inc"); |
| 16 | - require_once("$default->fileSystemRoot/lib/security/permission.inc"); | 33 | + require_once("$default->fileSystemRoot/lib/security/Permission.inc"); |
| 17 | require_once("$default->fileSystemRoot/lib/roles/Role.inc"); | 34 | require_once("$default->fileSystemRoot/lib/roles/Role.inc"); |
| 18 | require_once("$default->fileSystemRoot/presentation/webpageTemplate.inc"); | 35 | require_once("$default->fileSystemRoot/presentation/webpageTemplate.inc"); |
| 19 | require_once("$default->fileSystemRoot/lib/visualpatterns/PatternCustom.inc"); | 36 | require_once("$default->fileSystemRoot/lib/visualpatterns/PatternCustom.inc"); |
presentation/lookAndFeel/knowledgeTree/administration/rolemanagement/editRoleSuccess.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 | -*/ | ||
| 10 | - | 3 | + * $Id$ |
| 4 | + * | ||
| 5 | + * Edit a role 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.rolemanagement | ||
| 26 | + */ | ||
| 11 | require_once("../../../../../config/dmsDefaults.php"); | 27 | require_once("../../../../../config/dmsDefaults.php"); |
| 12 | 28 | ||
| 13 | global $default; | 29 | global $default; |
presentation/lookAndFeel/knowledgeTree/administration/rolemanagement/editRoleUI.inc
| 1 | <?php | 1 | <?php |
| 2 | /** | 2 | /** |
| 3 | -* Presentation information for adding a group | ||
| 4 | -* | ||
| 5 | -* @author Mukhtar Dharsey | ||
| 6 | -* @date 5 February 2003 | ||
| 7 | -* @package presentation.lookAndFeel.knowledgeTree. | ||
| 8 | -* | ||
| 9 | -*/ | 3 | + * $Id$ |
| 4 | + * | ||
| 5 | + * Edit a role 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.rolemanagement | ||
| 26 | + */ | ||
| 10 | // get hte edit page if it comes from the add page | 27 | // get hte edit page if it comes from the add page |
| 11 | function getCreatePage($iRoleID) { | 28 | function getCreatePage($iRoleID) { |
| 12 | 29 | ||
| 13 | global $default; | 30 | global $default; |
| 14 | 31 | ||
| 15 | - $sQuery = "SELECT * FROM $default->owl_roles_table WHERE id = $iRoleID"; | 32 | + $sQuery = "SELECT * FROM $default->roles_table WHERE id = $iRoleID"; |
| 16 | $aDisplayColumns = array("name","active","can_read","can_write"); | 33 | $aDisplayColumns = array("name","active","can_read","can_write"); |
| 17 | $aStoreColumns = array("name","active", "can_read","can_write"); | 34 | $aStoreColumns = array("name","active", "can_read","can_write"); |
| 18 | $aColumnNames = array("Name:","Active:", "Readable:", "Writable:"); | 35 | $aColumnNames = array("Name:","Active:", "Readable:", "Writable:"); |
| @@ -20,7 +37,7 @@ function getCreatePage($iRoleID) { | @@ -20,7 +37,7 @@ function getCreatePage($iRoleID) { | ||
| 20 | $aDatabaseColumnTypes = array(1,2,2,2); | 37 | $aDatabaseColumnTypes = array(1,2,2,2); |
| 21 | 38 | ||
| 22 | // get list of role properties...name...text field...is_Sys_admin and is_unit_admin..checkboxes | 39 | // get list of role properties...name...text field...is_Sys_admin and is_unit_admin..checkboxes |
| 23 | - $oPattern = & new PatternEditableListFromQuery($sQuery, $default->owl_roles_table, $aDisplayColumns, $aStoreColumns, $aColumnNames, $aDisplayColumnTypes, $aDatabaseColumnTypes) ; | 40 | + $oPattern = & new PatternEditableListFromQuery($sQuery, $default->roles_table, $aDisplayColumns, $aStoreColumns, $aColumnNames, $aDisplayColumnTypes, $aDatabaseColumnTypes) ; |
| 24 | $oPattern->setUniqueName("roleEdit"); | 41 | $oPattern->setUniqueName("roleEdit"); |
| 25 | $oPattern->setColumnsRequired(array(1,0,0,0)); | 42 | $oPattern->setColumnsRequired(array(1,0,0,0)); |
| 26 | 43 | ||
| @@ -159,7 +176,7 @@ function getEditPageFail() { | @@ -159,7 +176,7 @@ function getEditPageFail() { | ||
| 159 | function getRoleDisplay($oRole) { | 176 | function getRoleDisplay($oRole) { |
| 160 | global $default; | 177 | global $default; |
| 161 | if (!isset($oRole)) { | 178 | if (!isset($oRole)) { |
| 162 | - $oPatternListBox = & new PatternListBox($default->owl_roles_table, "name", "id", "fRoleID"); | 179 | + $oPatternListBox = & new PatternListBox($default->roles_table, "name", "id", "fRoleID"); |
| 163 | //$oPatternListBox->setIncludeDefaultValue(true); | 180 | //$oPatternListBox->setIncludeDefaultValue(true); |
| 164 | $oPatternListBox->setPostBackOnChange(true); | 181 | $oPatternListBox->setPostBackOnChange(true); |
| 165 | return $oPatternListBox->render(); | 182 | return $oPatternListBox->render(); |
presentation/lookAndFeel/knowledgeTree/administration/rolemanagement/listRolesBL.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 roles. | ||
| 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.rolemanagement | ||
| 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/rolemanagement/listRolesUI.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 roles 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.rolemanagement | ||
| 26 | + */ | ||
| 10 | function getRoles() { | 27 | function getRoles() { |
| 11 | global $default; | 28 | global $default; |
| 12 | $sQuery = "SELECT id as roleID, name as name, active, can_read as reader, can_write as writer, " . | 29 | $sQuery = "SELECT id as roleID, name as name, active, can_read as reader, can_write as writer, " . |
presentation/lookAndFeel/knowledgeTree/administration/rolemanagement/removeRoleBL.php
| 1 | <?php | 1 | <?php |
| 2 | /** | 2 | /** |
| 3 | -* BL information for adding a Role | ||
| 4 | -* | ||
| 5 | -* @author Mukhtar Dharsey | ||
| 6 | -* @date 5 February 2003 | ||
| 7 | -* @package presentation.lookAndFeel.knowledgeTree. | ||
| 8 | -* | ||
| 9 | -*/ | 3 | + * $Id$ |
| 4 | + * | ||
| 5 | + * Remove a role. | ||
| 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.rolemanagement | ||
| 26 | + */ | ||
| 10 | require_once("../../../../../config/dmsDefaults.php"); | 27 | require_once("../../../../../config/dmsDefaults.php"); |
| 11 | 28 | ||
| 12 | if (checkSession()) { | 29 | if (checkSession()) { |
| 13 | require_once("$default->fileSystemRoot/lib/visualpatterns/PatternListBox.inc"); | 30 | require_once("$default->fileSystemRoot/lib/visualpatterns/PatternListBox.inc"); |
| 14 | require_once("$default->fileSystemRoot/lib/visualpatterns/PatternEditableListFromQuery.inc"); | 31 | require_once("$default->fileSystemRoot/lib/visualpatterns/PatternEditableListFromQuery.inc"); |
| 15 | require_once("removeRoleUI.inc"); | 32 | require_once("removeRoleUI.inc"); |
| 16 | - require_once("$default->fileSystemRoot/lib/security/permission.inc"); | 33 | + require_once("$default->fileSystemRoot/lib/security/Permission.inc"); |
| 17 | require_once("$default->fileSystemRoot/lib/roles/Role.inc"); | 34 | require_once("$default->fileSystemRoot/lib/roles/Role.inc"); |
| 18 | require_once("$default->fileSystemRoot/presentation/webpageTemplate.inc"); | 35 | require_once("$default->fileSystemRoot/presentation/webpageTemplate.inc"); |
| 19 | require_once("$default->fileSystemRoot/lib/visualpatterns/PatternCustom.inc"); | 36 | require_once("$default->fileSystemRoot/lib/visualpatterns/PatternCustom.inc"); |
presentation/lookAndFeel/knowledgeTree/administration/rolemanagement/removeRoleUI.inc
| 1 | <?php | 1 | <?php |
| 2 | - | ||
| 3 | /** | 2 | /** |
| 4 | -* Presentation information for Deleting a Role | ||
| 5 | -* | ||
| 6 | -* @author Mukhtar Dharsey | ||
| 7 | -* @date 5 February 2003 | ||
| 8 | -* @package presentation.lookAndFeel.knowledgeTree. | ||
| 9 | -* | ||
| 10 | -*/ | 3 | + * $Id$ |
| 4 | + * | ||
| 5 | + * Remove a role 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.rolemanagement | ||
| 26 | + */ | ||
| 11 | // gets the delete stuff | 27 | // gets the delete stuff |
| 12 | function getDeletePage($iRoleID) { | 28 | function getDeletePage($iRoleID) { |
| 13 | global $default; | 29 | global $default; |
| @@ -94,7 +110,7 @@ function getDeleteFailPage() { | @@ -94,7 +110,7 @@ function getDeleteFailPage() { | ||
| 94 | function getRoleDisplay($oRole) { | 110 | function getRoleDisplay($oRole) { |
| 95 | global $default; | 111 | global $default; |
| 96 | if (!isset($oRole)) { | 112 | if (!isset($oRole)) { |
| 97 | - $oPatternListBox = & new PatternListBox($default->owl_roles_table, "name", "id", "fRoleID"); | 113 | + $oPatternListBox = & new PatternListBox($default->roles_table, "name", "id", "fRoleID"); |
| 98 | $oPatternListBox->setIncludeDefaultValue(true); | 114 | $oPatternListBox->setIncludeDefaultValue(true); |
| 99 | $oPatternListBox->setPostBackOnChange(true); | 115 | $oPatternListBox->setPostBackOnChange(true); |
| 100 | return $oPatternListBox->render(); | 116 | return $oPatternListBox->render(); |
presentation/lookAndFeel/knowledgeTree/administration/systemsettings/systemSettingsBL.php
| 1 | <?php | 1 | <?php |
| 2 | /** | 2 | /** |
| 3 | -* BL information for changing system info | ||
| 4 | -* | ||
| 5 | -* @author Mukhtar Dharsey | ||
| 6 | -* @date 5 February 2003 | ||
| 7 | -* @package presentation.lookAndFeel.knowledgeTree. | ||
| 8 | -* | ||
| 9 | -*/ | 3 | + * $Id$ |
| 4 | + * | ||
| 5 | + * Edit system 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 | ||
| 22 | + * | ||
| 23 | + * @version $Revision$ | ||
| 24 | + * @author Mukhtar Dharsey, Jam Warehouse (Pty) Ltd, South Africa | ||
| 25 | + * @package administration.systemsettings | ||
| 26 | + */ | ||
| 10 | require_once("../../../../../config/dmsDefaults.php"); | 27 | require_once("../../../../../config/dmsDefaults.php"); |
| 11 | 28 | ||
| 12 | if (checkSession()) { | 29 | if (checkSession()) { |
| 13 | require_once("$default->fileSystemRoot/lib/visualpatterns/PatternListBox.inc"); | 30 | require_once("$default->fileSystemRoot/lib/visualpatterns/PatternListBox.inc"); |
| 14 | require_once("$default->fileSystemRoot/lib/visualpatterns/PatternEditableListFromQuery.inc"); | 31 | require_once("$default->fileSystemRoot/lib/visualpatterns/PatternEditableListFromQuery.inc"); |
| 15 | require_once("systemSettingsUI.inc"); | 32 | require_once("systemSettingsUI.inc"); |
| 16 | - require_once("$default->fileSystemRoot/lib/security/permission.inc"); | 33 | + require_once("$default->fileSystemRoot/lib/security/Permission.inc"); |
| 17 | require_once("$default->fileSystemRoot/lib/System.inc"); | 34 | require_once("$default->fileSystemRoot/lib/System.inc"); |
| 18 | require_once("$default->fileSystemRoot/presentation/webpageTemplate.inc"); | 35 | require_once("$default->fileSystemRoot/presentation/webpageTemplate.inc"); |
| 19 | require_once("$default->fileSystemRoot/lib/visualpatterns/PatternCustom.inc"); | 36 | require_once("$default->fileSystemRoot/lib/visualpatterns/PatternCustom.inc"); |
presentation/lookAndFeel/knowledgeTree/administration/systemsettings/systemSettingsUI.inc
| 1 | <?php | 1 | <?php |
| 2 | - | ||
| 3 | /** | 2 | /** |
| 4 | -* Presentation information for changing system info | ||
| 5 | -* | ||
| 6 | -* @author Mukhtar Dharsey | ||
| 7 | -* @date 5 February 2003 | ||
| 8 | -* @package presentation.lookAndFeel.knowledgeTree. | ||
| 9 | -* | ||
| 10 | -*/ | 3 | + * $Id$ |
| 4 | + * | ||
| 5 | + * Edit system settings 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.systemsettings | ||
| 26 | + */ | ||
| 11 | // gets the delete stuff | 27 | // gets the delete stuff |
| 12 | function getPage() { | 28 | function getPage() { |
| 13 | global $default; | 29 | global $default; |
presentation/lookAndFeel/knowledgeTree/administration/unitmanagement/addUnitBL.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 unit. | ||
| 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.unitmanagement | ||
| 26 | + */ | ||
| 10 | require_once("../../../../../config/dmsDefaults.php"); | 27 | require_once("../../../../../config/dmsDefaults.php"); |
| 11 | require_once("$default->fileSystemRoot/lib/visualpatterns/PatternListBox.inc"); | 28 | require_once("$default->fileSystemRoot/lib/visualpatterns/PatternListBox.inc"); |
| 12 | require_once("$default->fileSystemRoot/lib/visualpatterns/PatternCreate.inc"); | 29 | require_once("$default->fileSystemRoot/lib/visualpatterns/PatternCreate.inc"); |
| 13 | require_once("$default->fileSystemRoot/lib/unitmanagement/Unit.inc"); | 30 | require_once("$default->fileSystemRoot/lib/unitmanagement/Unit.inc"); |
| 14 | require_once("$default->fileSystemRoot/lib/unitmanagement/UnitOrganisationLink.inc"); | 31 | require_once("$default->fileSystemRoot/lib/unitmanagement/UnitOrganisationLink.inc"); |
| 15 | -require_once("$default->fileSystemRoot/lib/security/permission.inc"); | 32 | +require_once("$default->fileSystemRoot/lib/security/Permission.inc"); |
| 16 | require_once("$default->fileSystemRoot/lib/visualpatterns/PatternCustom.inc"); | 33 | require_once("$default->fileSystemRoot/lib/visualpatterns/PatternCustom.inc"); |
| 17 | require_once("$default->fileSystemRoot/lib/foldermanagement/Folder.inc"); | 34 | require_once("$default->fileSystemRoot/lib/foldermanagement/Folder.inc"); |
| 18 | require_once("$default->fileSystemRoot/presentation/lookAndFeel/knowledgeTree/foldermanagement/folderUI.inc"); | 35 | require_once("$default->fileSystemRoot/presentation/lookAndFeel/knowledgeTree/foldermanagement/folderUI.inc"); |
presentation/lookAndFeel/knowledgeTree/administration/unitmanagement/addUnitToOrgBL.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 | + * Map unit to organisation. | ||
| 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.unitmanagement | ||
| 26 | + */ | ||
| 10 | require_once("../../../../../config/dmsDefaults.php"); | 27 | require_once("../../../../../config/dmsDefaults.php"); |
| 11 | 28 | ||
| 12 | if (checkSession()) { | 29 | if (checkSession()) { |
| @@ -16,7 +33,7 @@ if (checkSession()) { | @@ -16,7 +33,7 @@ if (checkSession()) { | ||
| 16 | require_once("$default->fileSystemRoot/lib/unitmanagement/Unit.inc"); | 33 | require_once("$default->fileSystemRoot/lib/unitmanagement/Unit.inc"); |
| 17 | require_once("$default->fileSystemRoot/lib/unitmanagement/UnitOrganisationLink.inc"); | 34 | require_once("$default->fileSystemRoot/lib/unitmanagement/UnitOrganisationLink.inc"); |
| 18 | require_once("$default->fileSystemRoot/lib/orgmanagement/Organisation.inc"); | 35 | require_once("$default->fileSystemRoot/lib/orgmanagement/Organisation.inc"); |
| 19 | - require_once("$default->fileSystemRoot/lib/security/permission.inc"); | 36 | + require_once("$default->fileSystemRoot/lib/security/Permission.inc"); |
| 20 | require_once("$default->fileSystemRoot/presentation/webpageTemplate.inc"); | 37 | require_once("$default->fileSystemRoot/presentation/webpageTemplate.inc"); |
| 21 | require_once("$default->fileSystemRoot/lib/visualpatterns/PatternCustom.inc"); | 38 | require_once("$default->fileSystemRoot/lib/visualpatterns/PatternCustom.inc"); |
| 22 | require_once("$default->fileSystemRoot/lib/foldermanagement/Folder.inc"); | 39 | require_once("$default->fileSystemRoot/lib/foldermanagement/Folder.inc"); |
presentation/lookAndFeel/knowledgeTree/administration/unitmanagement/addUnitToOrgUI.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 | + * Map a unit to an organisation 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.unitmanagement | ||
| 26 | + */ | ||
| 10 | 27 | ||
| 11 | function getAddFailPage(){ | 28 | function getAddFailPage(){ |
| 12 | global $default; | 29 | global $default; |
| @@ -78,7 +95,7 @@ function getAddUnitsPage($oUnit) { | @@ -78,7 +95,7 @@ function getAddUnitsPage($oUnit) { | ||
| 78 | function getOrgDropdown(){ | 95 | function getOrgDropdown(){ |
| 79 | global $default; | 96 | global $default; |
| 80 | 97 | ||
| 81 | - $oPatternListBox = & new PatternListBox($default->owl_organisations_table, "name", "id", "fOrgID"); | 98 | + $oPatternListBox = & new PatternListBox($default->organisations_table, "name", "id", "fOrgID"); |
| 82 | $sToRender .= $oPatternListBox->render(); | 99 | $sToRender .= $oPatternListBox->render(); |
| 83 | 100 | ||
| 84 | return $sToRender; | 101 | return $sToRender; |
| @@ -194,7 +211,7 @@ function getAddPageToOrgFail() { | @@ -194,7 +211,7 @@ function getAddPageToOrgFail() { | ||
| 194 | function getOrgDisplay($oOrg) { | 211 | function getOrgDisplay($oOrg) { |
| 195 | global $default; | 212 | global $default; |
| 196 | if (!isset($oOrg)) { | 213 | if (!isset($oOrg)) { |
| 197 | - $oPatternListBox = & new PatternListBox($default->owl_organisations_table, "name", "id", "fOrgID"); | 214 | + $oPatternListBox = & new PatternListBox($default->organisations_table, "name", "id", "fOrgID"); |
| 198 | return $oPatternListBox->render(); | 215 | return $oPatternListBox->render(); |
| 199 | } else { | 216 | } else { |
| 200 | return "<input type=\"hidden\" name=\"fOrgID\" value=\"" . $oOrg->iId . "\">\n" . | 217 | return "<input type=\"hidden\" name=\"fOrgID\" value=\"" . $oOrg->iId . "\">\n" . |
presentation/lookAndFeel/knowledgeTree/administration/unitmanagement/addUnitUI.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 unit 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.unitmanagement | ||
| 26 | + */ | ||
| 27 | + | ||
| 10 | // get add pages | 28 | // get add pages |
| 11 | function getAddPage() { | 29 | function getAddPage() { |
| 12 | global $default; | 30 | global $default; |
| @@ -116,7 +134,7 @@ function getAddPageToOrgFail() { | @@ -116,7 +134,7 @@ function getAddPageToOrgFail() { | ||
| 116 | */ | 134 | */ |
| 117 | function getOrgDisplay() { | 135 | function getOrgDisplay() { |
| 118 | global $default; | 136 | global $default; |
| 119 | - $oPatternListBox = & new PatternListBox($default->owl_organisations_table, "name", "id", "fOrgID"); | 137 | + $oPatternListBox = & new PatternListBox($default->organisations_table, "name", "id", "fOrgID"); |
| 120 | return $oPatternListBox->render(); | 138 | return $oPatternListBox->render(); |
| 121 | } | 139 | } |
| 122 | ?> | 140 | ?> |
| 123 | \ No newline at end of file | 141 | \ No newline at end of file |
presentation/lookAndFeel/knowledgeTree/administration/unitmanagement/editUnitBL.php
| 1 | <?php | 1 | <?php |
| 2 | /** | 2 | /** |
| 3 | -* BL information for editing a unit | ||
| 4 | -* | ||
| 5 | -* @author Mukhtar Dharsey | ||
| 6 | -* @date 5 February 2003 | ||
| 7 | -* @package presentation.lookAndFeel.knowledgeTree. | ||
| 8 | -* | ||
| 9 | -*/ | 3 | + * $Id$ |
| 4 | + * | ||
| 5 | + * Edit a unit. | ||
| 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.unitmanagement | ||
| 26 | + */ | ||
| 10 | require_once("../../../../../config/dmsDefaults.php"); | 27 | require_once("../../../../../config/dmsDefaults.php"); |
| 11 | 28 | ||
| 12 | if (checkSession()) { | 29 | if (checkSession()) { |
| 13 | require_once("$default->fileSystemRoot/lib/visualpatterns/PatternListBox.inc"); | 30 | require_once("$default->fileSystemRoot/lib/visualpatterns/PatternListBox.inc"); |
| 14 | require_once("$default->fileSystemRoot/lib/visualpatterns/PatternEditableListFromQuery.inc"); | 31 | require_once("$default->fileSystemRoot/lib/visualpatterns/PatternEditableListFromQuery.inc"); |
| 15 | require_once("editUnitUI.inc"); | 32 | require_once("editUnitUI.inc"); |
| 16 | - require_once("$default->fileSystemRoot/lib/security/permission.inc"); | 33 | + require_once("$default->fileSystemRoot/lib/security/Permission.inc"); |
| 17 | require_once("$default->fileSystemRoot/lib/unitmanagement/Unit.inc"); | 34 | require_once("$default->fileSystemRoot/lib/unitmanagement/Unit.inc"); |
| 18 | require_once("$default->fileSystemRoot/presentation/webpageTemplate.inc"); | 35 | require_once("$default->fileSystemRoot/presentation/webpageTemplate.inc"); |
| 19 | require_once("$default->fileSystemRoot/lib/visualpatterns/PatternCustom.inc"); | 36 | require_once("$default->fileSystemRoot/lib/visualpatterns/PatternCustom.inc"); |
presentation/lookAndFeel/knowledgeTree/administration/unitmanagement/editUnitOrgBL.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 unit-organisation mapping. | ||
| 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.unitmanagement | ||
| 26 | + */ | ||
| 27 | + | ||
| 10 | require_once("../../../../../config/dmsDefaults.php"); | 28 | require_once("../../../../../config/dmsDefaults.php"); |
| 11 | 29 | ||
| 12 | if (checkSession()) { | 30 | if (checkSession()) { |
| @@ -15,7 +33,7 @@ if (checkSession()) { | @@ -15,7 +33,7 @@ if (checkSession()) { | ||
| 15 | require_once("editUnitOrgUI.inc"); | 33 | require_once("editUnitOrgUI.inc"); |
| 16 | require_once("$default->fileSystemRoot/lib/unitmanagement/UnitOrganisationLink.inc"); | 34 | require_once("$default->fileSystemRoot/lib/unitmanagement/UnitOrganisationLink.inc"); |
| 17 | require_once("$default->fileSystemRoot/lib/orgmanagement/Organisation.inc"); | 35 | require_once("$default->fileSystemRoot/lib/orgmanagement/Organisation.inc"); |
| 18 | - require_once("$default->fileSystemRoot/lib/security/permission.inc"); | 36 | + require_once("$default->fileSystemRoot/lib/security/Permission.inc"); |
| 19 | require_once("$default->fileSystemRoot/presentation/webpageTemplate.inc"); | 37 | require_once("$default->fileSystemRoot/presentation/webpageTemplate.inc"); |
| 20 | require_once("$default->fileSystemRoot/lib/visualpatterns/PatternCustom.inc"); | 38 | require_once("$default->fileSystemRoot/lib/visualpatterns/PatternCustom.inc"); |
| 21 | require_once("$default->fileSystemRoot/lib/foldermanagement/Folder.inc"); | 39 | require_once("$default->fileSystemRoot/lib/foldermanagement/Folder.inc"); |
presentation/lookAndFeel/knowledgeTree/administration/unitmanagement/editUnitOrgUI.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 unit-organisation mapping 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.unitmanagement | ||
| 26 | + */ | ||
| 10 | 27 | ||
| 11 | function getOrgPage($fUnitID = null){ | 28 | function getOrgPage($fUnitID = null){ |
| 12 | global $default; | 29 | global $default; |
presentation/lookAndFeel/knowledgeTree/administration/unitmanagement/editUnitUI.inc
| 1 | <?php | 1 | <?php |
| 2 | /** | 2 | /** |
| 3 | -* Presentation information for renaming a unit | ||
| 4 | -* | ||
| 5 | -* @author Mukhtar Dharsey | ||
| 6 | -* @date 5 February 2003 | ||
| 7 | -* @package presentation.lookAndFeel.knowledgeTree. | ||
| 8 | -* | ||
| 9 | -*/ | ||
| 10 | - | 3 | + * $Id$ |
| 4 | + * | ||
| 5 | + * Edit unit 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.unitmanagement | ||
| 26 | + */ | ||
| 11 | // if its the manual edit page..then display normally | 27 | // if its the manual edit page..then display normally |
| 12 | function getEditPage($iUnitID) { | 28 | function getEditPage($iUnitID) { |
| 13 | global $default; | 29 | global $default; |
| @@ -77,7 +93,7 @@ function getEditPageFail() { | @@ -77,7 +93,7 @@ function getEditPageFail() { | ||
| 77 | function getUnitDisplay($oUnit) { | 93 | function getUnitDisplay($oUnit) { |
| 78 | global $default; | 94 | global $default; |
| 79 | if (!isset($oUnit)) { | 95 | if (!isset($oUnit)) { |
| 80 | - $oPatternListBox = & new PatternListBox($default->owl_units_table, "name", "id", "fUnitID"); | 96 | + $oPatternListBox = & new PatternListBox($default->units_table, "name", "id", "fUnitID"); |
| 81 | $oPatternListBox->setPostBackOnChange(true); | 97 | $oPatternListBox->setPostBackOnChange(true); |
| 82 | return $oPatternListBox->render(); | 98 | return $oPatternListBox->render(); |
| 83 | } else { | 99 | } else { |
presentation/lookAndFeel/knowledgeTree/administration/unitmanagement/listUnitsBL.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 | -*/ | ||
| 10 | - | 3 | + * $Id$ |
| 4 | + * | ||
| 5 | + * List units. | ||
| 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.unitmanagement | ||
| 26 | + */ | ||
| 11 | require_once("../../../../../config/dmsDefaults.php"); | 27 | require_once("../../../../../config/dmsDefaults.php"); |
| 12 | require_once("$default->fileSystemRoot/lib/users/User.inc"); | 28 | require_once("$default->fileSystemRoot/lib/users/User.inc"); |
| 13 | -require_once("$default->fileSystemRoot/lib/security/permission.inc"); | 29 | +require_once("$default->fileSystemRoot/lib/security/Permission.inc"); |
| 14 | require_once("$default->fileSystemRoot/lib/visualpatterns/PatternCustom.inc"); | 30 | require_once("$default->fileSystemRoot/lib/visualpatterns/PatternCustom.inc"); |
| 15 | require_once("$default->fileSystemRoot/lib/visualpatterns/PatternTableSqlQuery.inc"); | 31 | require_once("$default->fileSystemRoot/lib/visualpatterns/PatternTableSqlQuery.inc"); |
| 16 | require_once("$default->fileSystemRoot/lib/visualpatterns/PatternListBox.inc"); | 32 | require_once("$default->fileSystemRoot/lib/visualpatterns/PatternListBox.inc"); |
presentation/lookAndFeel/knowledgeTree/administration/unitmanagement/listUnitsUI.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 units 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.unitmanagement | ||
| 26 | + */ | ||
| 11 | function getOrganisationDisplay($fOrganisationID) { | 27 | function getOrganisationDisplay($fOrganisationID) { |
| 12 | global $default; | 28 | global $default; |
| 13 | - $oPatternListBox = & new PatternListBox($default->owl_organisations_table, "name", "id", "fOrganisationID"); | 29 | + $oPatternListBox = & new PatternListBox($default->organisations_table, "name", "id", "fOrganisationID"); |
| 14 | $oPatternListBox->setPostBackOnChange(true); | 30 | $oPatternListBox->setPostBackOnChange(true); |
| 15 | if ($fOrganisationID != 0) { | 31 | if ($fOrganisationID != 0) { |
| 16 | $oPatternListBox->setSelectedValue($fOrganisationID); | 32 | $oPatternListBox->setSelectedValue($fOrganisationID); |
presentation/lookAndFeel/knowledgeTree/administration/unitmanagement/removeUnitBL.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 | + * Remove a unit. | ||
| 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.unitmanagement | ||
| 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("removeUnitUI.inc"); | 33 | require_once("removeUnitUI.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/unitmanagement/Unit.inc"); | 35 | require_once("$default->fileSystemRoot/lib/unitmanagement/Unit.inc"); |
| 18 | require_once("$default->fileSystemRoot/lib/orgmanagement/Organisation.inc"); | 36 | require_once("$default->fileSystemRoot/lib/orgmanagement/Organisation.inc"); |
| 19 | require_once("$default->fileSystemRoot/lib/unitmanagement/UnitOrganisationLink.inc"); | 37 | require_once("$default->fileSystemRoot/lib/unitmanagement/UnitOrganisationLink.inc"); |
presentation/lookAndFeel/knowledgeTree/administration/unitmanagement/removeUnitFromOrgBL.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 | + * Remove unit-organisation mapping. | ||
| 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.unitmanagement | ||
| 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/unitmanagement/Unit.inc"); | 34 | require_once("$default->fileSystemRoot/lib/unitmanagement/Unit.inc"); |
| 17 | require_once("$default->fileSystemRoot/lib/unitmanagement/UnitOrganisationLink.inc"); | 35 | require_once("$default->fileSystemRoot/lib/unitmanagement/UnitOrganisationLink.inc"); |
| 18 | require_once("$default->fileSystemRoot/lib/orgmanagement/Organisation.inc"); | 36 | require_once("$default->fileSystemRoot/lib/orgmanagement/Organisation.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/unitmanagement/removeUnitFromOrgUI.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 | + * Remove unit-organisation mapping 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.unitmanagement | ||
| 26 | + */ | ||
| 11 | function getRemoveFailPage(){ | 27 | function getRemoveFailPage(){ |
| 12 | global $default; | 28 | global $default; |
| 13 | 29 | ||
| @@ -87,7 +103,7 @@ function getRemoveUnitsPage($oLink) { | @@ -87,7 +103,7 @@ function getRemoveUnitsPage($oLink) { | ||
| 87 | function getOrgDropdown(){ | 103 | function getOrgDropdown(){ |
| 88 | global $default; | 104 | global $default; |
| 89 | 105 | ||
| 90 | - $oPatternListBox = & new PatternListBox($default->owl_organisations_table, "name", "id", "fOrgID"); | 106 | + $oPatternListBox = & new PatternListBox($default->organisations_table, "name", "id", "fOrgID"); |
| 91 | $sToRender .= $oPatternListBox->render(); | 107 | $sToRender .= $oPatternListBox->render(); |
| 92 | 108 | ||
| 93 | return $sToRender; | 109 | return $sToRender; |
| @@ -203,7 +219,7 @@ function getAddPageToOrgFail() { | @@ -203,7 +219,7 @@ function getAddPageToOrgFail() { | ||
| 203 | function getOrgDisplay($oOrg) { | 219 | function getOrgDisplay($oOrg) { |
| 204 | global $default; | 220 | global $default; |
| 205 | if (!isset($oOrg)) { | 221 | if (!isset($oOrg)) { |
| 206 | - $oPatternListBox = & new PatternListBox($default->owl_organisations_table, "name", "id", "fOrgID"); | 222 | + $oPatternListBox = & new PatternListBox($default->organisations_table, "name", "id", "fOrgID"); |
| 207 | return $oPatternListBox->render(); | 223 | return $oPatternListBox->render(); |
| 208 | } else { | 224 | } else { |
| 209 | return "<input type=\"hidden\" name=\"fOrgID\" value=\"" . $oOrg->iId . "\">\n" . | 225 | return "<input type=\"hidden\" name=\"fOrgID\" value=\"" . $oOrg->iId . "\">\n" . |
presentation/lookAndFeel/knowledgeTree/administration/unitmanagement/removeUnitUI.inc
| 1 | <?php | 1 | <?php |
| 2 | - | ||
| 3 | /** | 2 | /** |
| 4 | -* Presentation information for Deleting a Unit | ||
| 5 | -* | ||
| 6 | -* @author Mukhtar Dharsey | ||
| 7 | -* @date 5 February 2003 | ||
| 8 | -* @package presentation.lookAndFeel.knowledgeTree. | ||
| 9 | -* | ||
| 10 | -*/ | 3 | + * $Id$ |
| 4 | + * | ||
| 5 | + * Remove a unit 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.unitmanagement | ||
| 26 | + */ | ||
| 11 | 27 | ||
| 12 | function getConfirmDeletePage($oUnit, $oOrg) { | 28 | function getConfirmDeletePage($oUnit, $oOrg) { |
| 13 | global $default; | 29 | global $default; |
| @@ -53,7 +69,7 @@ function getStatusPage($sHeading, $sText = "") { | @@ -53,7 +69,7 @@ function getStatusPage($sHeading, $sText = "") { | ||
| 53 | function getUnitDisplay($oUnit) { | 69 | function getUnitDisplay($oUnit) { |
| 54 | global $default; | 70 | global $default; |
| 55 | if (!isset($oUnit)) { | 71 | if (!isset($oUnit)) { |
| 56 | - $oPatternListBox = & new PatternListBox($default->owl_units_table, "name", "id", "fUnitID"); | 72 | + $oPatternListBox = & new PatternListBox($default->units_table, "name", "id", "fUnitID"); |
| 57 | $oPatternListBox->setIncludeDefaultValue(true); | 73 | $oPatternListBox->setIncludeDefaultValue(true); |
| 58 | $oPatternListBox->setPostBackOnChange(true); | 74 | $oPatternListBox->setPostBackOnChange(true); |
| 59 | return $oPatternListBox->render(); | 75 | return $oPatternListBox->render(); |