Commit 5b11f426edeeb79158dd5dfb41abb9d78259b492

Authored by michael
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 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 27 require_once("../../../../../config/dmsDefaults.php");
11 28 require_once("$default->fileSystemRoot/lib/visualpatterns/PatternListBox.inc");
12 29 require_once("$default->fileSystemRoot/lib/visualpatterns/PatternCreate.inc");
13 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 32 require_once("$default->fileSystemRoot/lib/visualpatterns/PatternCustom.inc");
16 33 require_once("$default->fileSystemRoot/lib/foldermanagement/Folder.inc");
17 34 require_once("$default->fileSystemRoot/presentation/lookAndFeel/knowledgeTree/foldermanagement/folderUI.inc");
... ...
presentation/lookAndFeel/knowledgeTree/administration/orgmanagement/addOrgSuccess.php
1 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 27 require_once("../../../../../config/dmsDefaults.php");
12 28  
13 29 global $default;
... ...
presentation/lookAndFeel/knowledgeTree/administration/orgmanagement/addOrgUI.inc
1 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 27 // get add pages
11 28 function getPage() {
12 29  
... ...
presentation/lookAndFeel/knowledgeTree/administration/orgmanagement/editOrgBL.php
1 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 27 require_once("../../../../../config/dmsDefaults.php");
11 28  
12 29 if (checkSession()) {
13 30 require_once("$default->fileSystemRoot/lib/visualpatterns/PatternListBox.inc");
14 31 require_once("$default->fileSystemRoot/lib/visualpatterns/PatternEditableListFromQuery.inc");
15 32 require_once("editOrgUI.inc");
16   - require_once("$default->fileSystemRoot/lib/security/permission.inc");
  33 + require_once("$default->fileSystemRoot/lib/security/Permission.inc");
17 34 require_once("$default->fileSystemRoot/lib/orgmanagement/Organisation.inc");
18 35 require_once("$default->fileSystemRoot/presentation/webpageTemplate.inc");
19 36 require_once("$default->fileSystemRoot/lib/visualpatterns/PatternCustom.inc");
... ...
presentation/lookAndFeel/knowledgeTree/administration/orgmanagement/editOrgUI.inc
1 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 28 // if its the manual edit page..then display normally
12 29 function getEditPage($iOrgID) {
13 30 global $default;
... ... @@ -80,7 +97,7 @@ function getEditPageFail() {
80 97 function getOrgDisplay($oOrg) {
81 98 global $default;
82 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 101 //$oPatternListBox->setIncludeDefaultValue(true);
85 102 $oPatternListBox->setPostBackOnChange(true);
86 103 return $oPatternListBox->render();
... ...
presentation/lookAndFeel/knowledgeTree/administration/orgmanagement/listOrgBL.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 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 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/orgmanagement/listOrgUI.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 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 28 function getOrganisations() {
12 29 global $default;
... ...
presentation/lookAndFeel/knowledgeTree/administration/orgmanagement/removeOrgBL.php
1 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 27 require_once("../../../../../config/dmsDefaults.php");
11 28  
12 29 if (checkSession()) {
13 30 require_once("$default->fileSystemRoot/lib/visualpatterns/PatternListBox.inc");
14 31 require_once("$default->fileSystemRoot/lib/visualpatterns/PatternEditableListFromQuery.inc");
15 32 require_once("removeOrgUI.inc");
16   - require_once("$default->fileSystemRoot/lib/security/permission.inc");
  33 + require_once("$default->fileSystemRoot/lib/security/Permission.inc");
17 34 require_once("$default->fileSystemRoot/lib/orgmanagement/Organisation.inc");
18 35 require_once("$default->fileSystemRoot/presentation/webpageTemplate.inc");
19 36 require_once("$default->fileSystemRoot/lib/visualpatterns/PatternCustom.inc");
... ...
presentation/lookAndFeel/knowledgeTree/administration/orgmanagement/removeOrgUI.inc
1 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 28 // gets the delete stuff
12 29 function getDeletePage($iOrgID) {
13 30 global $default;
... ... @@ -87,7 +104,7 @@ function getDeleteFailPage() {
87 104 function getOrgDisplay($oOrg) {
88 105 global $default;
89 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 108 $oPatternListBox->setIncludeDefaultValue(true);
92 109 $oPatternListBox->setPostBackOnChange(true);
93 110 return $oPatternListBox->render();
... ...
presentation/lookAndFeel/knowledgeTree/administration/rolemanagement/addRoleBL.php
1 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 27 require_once("../../../../../config/dmsDefaults.php");
11 28 require_once("$default->fileSystemRoot/lib/visualpatterns/PatternListBox.inc");
12 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 31 require_once("$default->fileSystemRoot/lib/visualpatterns/PatternCustom.inc");
15 32 require_once("$default->fileSystemRoot/lib/foldermanagement/Folder.inc");
16 33 require_once("$default->fileSystemRoot/presentation/lookAndFeel/knowledgeTree/foldermanagement/folderUI.inc");
... ...
presentation/lookAndFeel/knowledgeTree/administration/rolemanagement/addRoleUI.inc
1 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 27 // get add pages
11 28 function getPage() {
12 29  
... ...
presentation/lookAndFeel/knowledgeTree/administration/rolemanagement/editRoleBL.php
1 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 27 require_once("../../../../../config/dmsDefaults.php");
11 28  
12 29 if (checkSession()) {
13 30 require_once("$default->fileSystemRoot/lib/visualpatterns/PatternListBox.inc");
14 31 require_once("$default->fileSystemRoot/lib/visualpatterns/PatternEditableListFromQuery.inc");
15 32 require_once("editRoleUI.inc");
16   - require_once("$default->fileSystemRoot/lib/security/permission.inc");
  33 + require_once("$default->fileSystemRoot/lib/security/Permission.inc");
17 34 require_once("$default->fileSystemRoot/lib/roles/Role.inc");
18 35 require_once("$default->fileSystemRoot/presentation/webpageTemplate.inc");
19 36 require_once("$default->fileSystemRoot/lib/visualpatterns/PatternCustom.inc");
... ...
presentation/lookAndFeel/knowledgeTree/administration/rolemanagement/editRoleSuccess.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   -*/
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 27 require_once("../../../../../config/dmsDefaults.php");
12 28  
13 29 global $default;
... ...
presentation/lookAndFeel/knowledgeTree/administration/rolemanagement/editRoleUI.inc
1 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 27 // get hte edit page if it comes from the add page
11 28 function getCreatePage($iRoleID) {
12 29  
13 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 33 $aDisplayColumns = array("name","active","can_read","can_write");
17 34 $aStoreColumns = array("name","active", "can_read","can_write");
18 35 $aColumnNames = array("Name:","Active:", "Readable:", "Writable:");
... ... @@ -20,7 +37,7 @@ function getCreatePage($iRoleID) {
20 37 $aDatabaseColumnTypes = array(1,2,2,2);
21 38  
22 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 41 $oPattern->setUniqueName("roleEdit");
25 42 $oPattern->setColumnsRequired(array(1,0,0,0));
26 43  
... ... @@ -159,7 +176,7 @@ function getEditPageFail() {
159 176 function getRoleDisplay($oRole) {
160 177 global $default;
161 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 180 //$oPatternListBox->setIncludeDefaultValue(true);
164 181 $oPatternListBox->setPostBackOnChange(true);
165 182 return $oPatternListBox->render();
... ...
presentation/lookAndFeel/knowledgeTree/administration/rolemanagement/listRolesBL.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 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 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/rolemanagement/listRolesUI.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 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 27 function getRoles() {
11 28 global $default;
12 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 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 27 require_once("../../../../../config/dmsDefaults.php");
11 28  
12 29 if (checkSession()) {
13 30 require_once("$default->fileSystemRoot/lib/visualpatterns/PatternListBox.inc");
14 31 require_once("$default->fileSystemRoot/lib/visualpatterns/PatternEditableListFromQuery.inc");
15 32 require_once("removeRoleUI.inc");
16   - require_once("$default->fileSystemRoot/lib/security/permission.inc");
  33 + require_once("$default->fileSystemRoot/lib/security/Permission.inc");
17 34 require_once("$default->fileSystemRoot/lib/roles/Role.inc");
18 35 require_once("$default->fileSystemRoot/presentation/webpageTemplate.inc");
19 36 require_once("$default->fileSystemRoot/lib/visualpatterns/PatternCustom.inc");
... ...
presentation/lookAndFeel/knowledgeTree/administration/rolemanagement/removeRoleUI.inc
1 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 27 // gets the delete stuff
12 28 function getDeletePage($iRoleID) {
13 29 global $default;
... ... @@ -94,7 +110,7 @@ function getDeleteFailPage() {
94 110 function getRoleDisplay($oRole) {
95 111 global $default;
96 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 114 $oPatternListBox->setIncludeDefaultValue(true);
99 115 $oPatternListBox->setPostBackOnChange(true);
100 116 return $oPatternListBox->render();
... ...
presentation/lookAndFeel/knowledgeTree/administration/systemsettings/systemSettingsBL.php
1 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 27 require_once("../../../../../config/dmsDefaults.php");
11 28  
12 29 if (checkSession()) {
13 30 require_once("$default->fileSystemRoot/lib/visualpatterns/PatternListBox.inc");
14 31 require_once("$default->fileSystemRoot/lib/visualpatterns/PatternEditableListFromQuery.inc");
15 32 require_once("systemSettingsUI.inc");
16   - require_once("$default->fileSystemRoot/lib/security/permission.inc");
  33 + require_once("$default->fileSystemRoot/lib/security/Permission.inc");
17 34 require_once("$default->fileSystemRoot/lib/System.inc");
18 35 require_once("$default->fileSystemRoot/presentation/webpageTemplate.inc");
19 36 require_once("$default->fileSystemRoot/lib/visualpatterns/PatternCustom.inc");
... ...
presentation/lookAndFeel/knowledgeTree/administration/systemsettings/systemSettingsUI.inc
1 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 27 // gets the delete stuff
12 28 function getPage() {
13 29 global $default;
... ...
presentation/lookAndFeel/knowledgeTree/administration/unitmanagement/addUnitBL.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 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 27 require_once("../../../../../config/dmsDefaults.php");
11 28 require_once("$default->fileSystemRoot/lib/visualpatterns/PatternListBox.inc");
12 29 require_once("$default->fileSystemRoot/lib/visualpatterns/PatternCreate.inc");
13 30 require_once("$default->fileSystemRoot/lib/unitmanagement/Unit.inc");
14 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 33 require_once("$default->fileSystemRoot/lib/visualpatterns/PatternCustom.inc");
17 34 require_once("$default->fileSystemRoot/lib/foldermanagement/Folder.inc");
18 35 require_once("$default->fileSystemRoot/presentation/lookAndFeel/knowledgeTree/foldermanagement/folderUI.inc");
... ...
presentation/lookAndFeel/knowledgeTree/administration/unitmanagement/addUnitToOrgBL.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 + * 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 27 require_once("../../../../../config/dmsDefaults.php");
11 28  
12 29 if (checkSession()) {
... ... @@ -16,7 +33,7 @@ if (checkSession()) {
16 33 require_once("$default->fileSystemRoot/lib/unitmanagement/Unit.inc");
17 34 require_once("$default->fileSystemRoot/lib/unitmanagement/UnitOrganisationLink.inc");
18 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 37 require_once("$default->fileSystemRoot/presentation/webpageTemplate.inc");
21 38 require_once("$default->fileSystemRoot/lib/visualpatterns/PatternCustom.inc");
22 39 require_once("$default->fileSystemRoot/lib/foldermanagement/Folder.inc");
... ...
presentation/lookAndFeel/knowledgeTree/administration/unitmanagement/addUnitToOrgUI.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 + * 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 28 function getAddFailPage(){
12 29 global $default;
... ... @@ -78,7 +95,7 @@ function getAddUnitsPage($oUnit) {
78 95 function getOrgDropdown(){
79 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 99 $sToRender .= $oPatternListBox->render();
83 100  
84 101 return $sToRender;
... ... @@ -194,7 +211,7 @@ function getAddPageToOrgFail() {
194 211 function getOrgDisplay($oOrg) {
195 212 global $default;
196 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 215 return $oPatternListBox->render();
199 216 } else {
200 217 return "<input type=\"hidden\" name=\"fOrgID\" value=\"" . $oOrg->iId . "\">\n" .
... ...
presentation/lookAndFeel/knowledgeTree/administration/unitmanagement/addUnitUI.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 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 28 // get add pages
11 29 function getAddPage() {
12 30 global $default;
... ... @@ -116,7 +134,7 @@ function getAddPageToOrgFail() {
116 134 */
117 135 function getOrgDisplay() {
118 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 138 return $oPatternListBox->render();
121 139 }
122 140 ?>
123 141 \ No newline at end of file
... ...
presentation/lookAndFeel/knowledgeTree/administration/unitmanagement/editUnitBL.php
1 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 27 require_once("../../../../../config/dmsDefaults.php");
11 28  
12 29 if (checkSession()) {
13 30 require_once("$default->fileSystemRoot/lib/visualpatterns/PatternListBox.inc");
14 31 require_once("$default->fileSystemRoot/lib/visualpatterns/PatternEditableListFromQuery.inc");
15 32 require_once("editUnitUI.inc");
16   - require_once("$default->fileSystemRoot/lib/security/permission.inc");
  33 + require_once("$default->fileSystemRoot/lib/security/Permission.inc");
17 34 require_once("$default->fileSystemRoot/lib/unitmanagement/Unit.inc");
18 35 require_once("$default->fileSystemRoot/presentation/webpageTemplate.inc");
19 36 require_once("$default->fileSystemRoot/lib/visualpatterns/PatternCustom.inc");
... ...
presentation/lookAndFeel/knowledgeTree/administration/unitmanagement/editUnitOrgBL.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 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 28 require_once("../../../../../config/dmsDefaults.php");
11 29  
12 30 if (checkSession()) {
... ... @@ -15,7 +33,7 @@ if (checkSession()) {
15 33 require_once("editUnitOrgUI.inc");
16 34 require_once("$default->fileSystemRoot/lib/unitmanagement/UnitOrganisationLink.inc");
17 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 37 require_once("$default->fileSystemRoot/presentation/webpageTemplate.inc");
20 38 require_once("$default->fileSystemRoot/lib/visualpatterns/PatternCustom.inc");
21 39 require_once("$default->fileSystemRoot/lib/foldermanagement/Folder.inc");
... ...
presentation/lookAndFeel/knowledgeTree/administration/unitmanagement/editUnitOrgUI.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 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 28 function getOrgPage($fUnitID = null){
12 29 global $default;
... ...
presentation/lookAndFeel/knowledgeTree/administration/unitmanagement/editUnitUI.inc
1 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 27 // if its the manual edit page..then display normally
12 28 function getEditPage($iUnitID) {
13 29 global $default;
... ... @@ -77,7 +93,7 @@ function getEditPageFail() {
77 93 function getUnitDisplay($oUnit) {
78 94 global $default;
79 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 97 $oPatternListBox->setPostBackOnChange(true);
82 98 return $oPatternListBox->render();
83 99 } else {
... ...
presentation/lookAndFeel/knowledgeTree/administration/unitmanagement/listUnitsBL.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   -*/
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 27 require_once("../../../../../config/dmsDefaults.php");
12 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 30 require_once("$default->fileSystemRoot/lib/visualpatterns/PatternCustom.inc");
15 31 require_once("$default->fileSystemRoot/lib/visualpatterns/PatternTableSqlQuery.inc");
16 32 require_once("$default->fileSystemRoot/lib/visualpatterns/PatternListBox.inc");
... ...
presentation/lookAndFeel/knowledgeTree/administration/unitmanagement/listUnitsUI.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 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 27 function getOrganisationDisplay($fOrganisationID) {
12 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 30 $oPatternListBox->setPostBackOnChange(true);
15 31 if ($fOrganisationID != 0) {
16 32 $oPatternListBox->setSelectedValue($fOrganisationID);
... ...
presentation/lookAndFeel/knowledgeTree/administration/unitmanagement/removeUnitBL.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 + * 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 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("removeUnitUI.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/unitmanagement/Unit.inc");
18 36 require_once("$default->fileSystemRoot/lib/orgmanagement/Organisation.inc");
19 37 require_once("$default->fileSystemRoot/lib/unitmanagement/UnitOrganisationLink.inc");
... ...
presentation/lookAndFeel/knowledgeTree/administration/unitmanagement/removeUnitFromOrgBL.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 + * 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 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/unitmanagement/Unit.inc");
17 35 require_once("$default->fileSystemRoot/lib/unitmanagement/UnitOrganisationLink.inc");
18 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 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/unitmanagement/removeUnitFromOrgUI.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 + * 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 27 function getRemoveFailPage(){
12 28 global $default;
13 29  
... ... @@ -87,7 +103,7 @@ function getRemoveUnitsPage($oLink) {
87 103 function getOrgDropdown(){
88 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 107 $sToRender .= $oPatternListBox->render();
92 108  
93 109 return $sToRender;
... ... @@ -203,7 +219,7 @@ function getAddPageToOrgFail() {
203 219 function getOrgDisplay($oOrg) {
204 220 global $default;
205 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 223 return $oPatternListBox->render();
208 224 } else {
209 225 return "<input type=\"hidden\" name=\"fOrgID\" value=\"" . $oOrg->iId . "\">\n" .
... ...
presentation/lookAndFeel/knowledgeTree/administration/unitmanagement/removeUnitUI.inc
1 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 28 function getConfirmDeletePage($oUnit, $oOrg) {
13 29 global $default;
... ... @@ -53,7 +69,7 @@ function getStatusPage($sHeading, $sText = &quot;&quot;) {
53 69 function getUnitDisplay($oUnit) {
54 70 global $default;
55 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 73 $oPatternListBox->setIncludeDefaultValue(true);
58 74 $oPatternListBox->setPostBackOnChange(true);
59 75 return $oPatternListBox->render();
... ...