Commit 142befe80235c180b120f2c7e383d6c9bad4f109
1 parent
8b0c0ed8
added copyright and gpl notice
removed owl prefix from table aliases git-svn-id: https://kt-dms.svn.sourceforge.net/svnroot/kt-dms/trunk@2582 c91229c3-7414-0410-bfa2-8a42b809f60b
Showing
34 changed files
with
811 additions
and
335 deletions
presentation/lookAndFeel/knowledgeTree/administration/groupmanagement/addGroupBL.php
| 1 | <?php | 1 | <?php |
| 2 | /** | 2 | /** |
| 3 | -* BL 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 group. | ||
| 6 | + * | ||
| 7 | + * Copyright (c) 2003 Jam Warehouse http://www.jamwarehouse.com | ||
| 8 | + * | ||
| 9 | + * This program is free software; you can redistribute it and/or modify | ||
| 10 | + * it under the terms of the GNU General Public License as published by | ||
| 11 | + * the Free Software Foundation; either version 2 of the License, or | ||
| 12 | + * (at your option) any later version. | ||
| 13 | + * | ||
| 14 | + * This program is distributed in the hope that it will be useful, | ||
| 15 | + * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| 16 | + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
| 17 | + * GNU General Public License for more details. | ||
| 18 | + * | ||
| 19 | + * You should have received a copy of the GNU General Public License | ||
| 20 | + * along with this program; if not, write to the Free Software | ||
| 21 | + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | ||
| 22 | + * | ||
| 23 | + * @version $Revision$ | ||
| 24 | + * @author Mukhtar Dharsey, Jam Warehouse (Pty) Ltd, South Africa | ||
| 25 | + * @package administration.groupmanagement | ||
| 26 | + */ | ||
| 27 | + | ||
| 10 | require_once("../../../../../config/dmsDefaults.php"); | 28 | require_once("../../../../../config/dmsDefaults.php"); |
| 11 | require_once("$default->fileSystemRoot/lib/visualpatterns/PatternListBox.inc"); | 29 | require_once("$default->fileSystemRoot/lib/visualpatterns/PatternListBox.inc"); |
| 12 | require_once("$default->fileSystemRoot/lib/visualpatterns/PatternCreate.inc"); | 30 | require_once("$default->fileSystemRoot/lib/visualpatterns/PatternCreate.inc"); |
| 13 | require_once("$default->fileSystemRoot/lib/groups/GroupUnitLink.inc"); | 31 | require_once("$default->fileSystemRoot/lib/groups/GroupUnitLink.inc"); |
| 14 | -require_once("$default->fileSystemRoot/lib/security/permission.inc"); | 32 | +require_once("$default->fileSystemRoot/lib/security/Permission.inc"); |
| 15 | require_once("$default->fileSystemRoot/lib/visualpatterns/PatternCustom.inc"); | 33 | require_once("$default->fileSystemRoot/lib/visualpatterns/PatternCustom.inc"); |
| 16 | require_once("$default->fileSystemRoot/lib/foldermanagement/Folder.inc"); | 34 | require_once("$default->fileSystemRoot/lib/foldermanagement/Folder.inc"); |
| 17 | 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/groupmanagement/addGroupUI.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 document field 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.groupmanagement | ||
| 26 | + */ | ||
| 27 | + | ||
| 10 | // get add pages | 28 | // get add pages |
| 11 | function getPage() { | 29 | function getPage() { |
| 12 | 30 |
presentation/lookAndFeel/knowledgeTree/administration/groupmanagement/addgroups.php deleted
| 1 | -<?php | ||
| 2 | - | ||
| 3 | -require_once("../../config/dmsDefaults.php"); | ||
| 4 | -require_once("$default->fileSystemRoot/lib/visualpatterns/PatternListBox.inc"); | ||
| 5 | - | ||
| 6 | -global $default; | ||
| 7 | - | ||
| 8 | -if(checkSession()) | ||
| 9 | -{ | ||
| 10 | - | ||
| 11 | -// include the page template (with navbar) | ||
| 12 | -require_once("$default->fileSystemRoot/presentation/webpageTemplate.inc"); | ||
| 13 | - // when email button sent..send email | ||
| 14 | -if ($submit) | ||
| 15 | -{ | ||
| 16 | - | ||
| 17 | - //$success = $ | ||
| 18 | - | ||
| 19 | - //if successful ..rerender the page | ||
| 20 | - if($success == True) | ||
| 21 | - { | ||
| 22 | - $Center = "<br>Group Successfully Added</br>"; | ||
| 23 | - $oPatternCustom = & new PatternCustom(); | ||
| 24 | - $oPatternCustom->setHtml($Center); | ||
| 25 | - $main->setCentralPayload($oPatternCustom); | ||
| 26 | - $main->render(); | ||
| 27 | - } | ||
| 28 | - Else | ||
| 29 | - { | ||
| 30 | - $Center = "<br>Group Addition Unsuccessful</br>"; | ||
| 31 | - $oPatternCustom = & new PatternCustom(); | ||
| 32 | - $oPatternCustom->setHtml($Center); | ||
| 33 | - $main->setCentralPayload($oPatternCustom); | ||
| 34 | - $main->render(); | ||
| 35 | - } | ||
| 36 | - | ||
| 37 | - | ||
| 38 | - | ||
| 39 | -} | ||
| 40 | - | ||
| 41 | -$Center = " | ||
| 42 | - <br> | ||
| 43 | - </br> | ||
| 44 | - <TABLE BORDER=\"0\" CELLSPACING=\"2\" CELLPADDING=\"2\"> | ||
| 45 | - <tr> | ||
| 46 | - <td>New Group: <TD WIDTH=\"100%\"><INPUT type=\"Text\" name=\"group\" size=\"30\"></td></td> | ||
| 47 | - </tr> | ||
| 48 | - <tr> | ||
| 49 | - <tr> | ||
| 50 | - <td><center><TD WIDTH=\"80%\"><INPUT type=\"Submit\" name=\"submit\" value=\"Add Group\"></center></td></td> | ||
| 51 | - </tr> | ||
| 52 | - </table> | ||
| 53 | - "; | ||
| 54 | - | ||
| 55 | -$oPatternListBox = & new PatternListBox("units_lookup", "name", "id", "Units"); | ||
| 56 | -//echo "<html><head></head><body>" . $oPatternListBox->render() . "</body></html>"; | ||
| 57 | - | ||
| 58 | - | ||
| 59 | - | ||
| 60 | -$oPatternCustom = & new PatternCustom(); | ||
| 61 | -$oPatternCustom->setHtml($Center); | ||
| 62 | -$main->setCentralPayload($oPatternCustom); | ||
| 63 | -$main->setFormAction($_SERVER["PHP_SELF"]); | ||
| 64 | -$main->render(); | ||
| 65 | - | ||
| 66 | - | ||
| 67 | - | ||
| 68 | - | ||
| 69 | -} | ||
| 70 | - | ||
| 71 | -?> | ||
| 72 | \ No newline at end of file | 0 | \ No newline at end of file |
presentation/lookAndFeel/knowledgeTree/administration/groupmanagement/assignGroupToUnitBL.php
| 1 | <?php | 1 | <?php |
| 2 | /** | 2 | /** |
| 3 | -* BL 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 | + * Map a group to 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.groupmanagement | ||
| 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/groups/Group.inc"); | 35 | require_once("$default->fileSystemRoot/lib/groups/Group.inc"); |
| 18 | require_once("$default->fileSystemRoot/lib/groups/GroupUnitLink.inc"); | 36 | require_once("$default->fileSystemRoot/lib/groups/GroupUnitLink.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/groupmanagement/assignGroupToUnitUI.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 | + * Map a group to 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.groupmanagement | ||
| 26 | + */ | ||
| 10 | 27 | ||
| 11 | function getGotGroupPage($iGroupID,$iUnitID){ | 28 | function getGotGroupPage($iGroupID,$iUnitID){ |
| 12 | global $default; | 29 | global $default; |
| @@ -196,8 +213,8 @@ function getGroupDisplay($oGroup) { | @@ -196,8 +213,8 @@ function getGroupDisplay($oGroup) { | ||
| 196 | 213 | ||
| 197 | if (!isset($oGroup)) { | 214 | if (!isset($oGroup)) { |
| 198 | // only display unassigned groups | 215 | // only display unassigned groups |
| 199 | - $oPatternListBox = & new PatternListBox($default->owl_groups_table, "name", "id", "fGroupID"); | ||
| 200 | - $oPatternListBox->setFromClause("LEFT OUTER JOIN $default->owl_groups_units_table GUL on ST.id=GUL.group_id"); | 216 | + $oPatternListBox = & new PatternListBox($default->groups_table, "name", "id", "fGroupID"); |
| 217 | + $oPatternListBox->setFromClause("LEFT OUTER JOIN $default->groups_units_table GUL on ST.id=GUL.group_id"); | ||
| 201 | $oPatternListBox->setWhereClause("ISNULL(GUL.group_id) AND ST.name <> 'Anonymous' AND ST.name <> 'System Administrators'"); | 218 | $oPatternListBox->setWhereClause("ISNULL(GUL.group_id) AND ST.name <> 'Anonymous' AND ST.name <> 'System Administrators'"); |
| 202 | return $oPatternListBox->render(); | 219 | return $oPatternListBox->render(); |
| 203 | } else { | 220 | } else { |
| @@ -214,7 +231,7 @@ function getUnitDisplay($oUnit) { | @@ -214,7 +231,7 @@ function getUnitDisplay($oUnit) { | ||
| 214 | $oUnit = Unit::get(User::getUnitID($_SESSION["userID"])); | 231 | $oUnit = Unit::get(User::getUnitID($_SESSION["userID"])); |
| 215 | } | 232 | } |
| 216 | if (!isset($oUnit)) { | 233 | if (!isset($oUnit)) { |
| 217 | - $oPatternListBox = & new PatternListBox($default->owl_units_table , "name", "id", "fUnitID"); | 234 | + $oPatternListBox = & new PatternListBox($default->units_table , "name", "id", "fUnitID"); |
| 218 | return $oPatternListBox->render(); | 235 | return $oPatternListBox->render(); |
| 219 | } else { | 236 | } else { |
| 220 | return "<input type=\"hidden\" name=\"fUnitID\" value=\"" . $oUnit->iId . "\">\n" . | 237 | return "<input type=\"hidden\" name=\"fUnitID\" value=\"" . $oUnit->iId . "\">\n" . |
presentation/lookAndFeel/knowledgeTree/administration/groupmanagement/editGroupBL.php
| 1 | <?php | 1 | <?php |
| 2 | /** | 2 | /** |
| 3 | -* BL 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 group. | ||
| 6 | + * | ||
| 7 | + * Copyright (c) 2003 Jam Warehouse http://www.jamwarehouse.com | ||
| 8 | + * | ||
| 9 | + * This program is free software; you can redistribute it and/or modify | ||
| 10 | + * it under the terms of the GNU General Public License as published by | ||
| 11 | + * the Free Software Foundation; either version 2 of the License, or | ||
| 12 | + * (at your option) any later version. | ||
| 13 | + * | ||
| 14 | + * This program is distributed in the hope that it will be useful, | ||
| 15 | + * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| 16 | + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
| 17 | + * GNU General Public License for more details. | ||
| 18 | + * | ||
| 19 | + * You should have received a copy of the GNU General Public License | ||
| 20 | + * along with this program; if not, write to the Free Software | ||
| 21 | + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | ||
| 22 | + * | ||
| 23 | + * @version $Revision$ | ||
| 24 | + * @author Mukhtar Dharsey, Jam Warehouse (Pty) Ltd, South Africa | ||
| 25 | + * @package administration.groupmanagement | ||
| 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("editGroupUI.inc"); | 33 | require_once("editGroupUI.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/groups/Group.inc"); | 35 | require_once("$default->fileSystemRoot/lib/groups/Group.inc"); |
| 18 | require_once("$default->fileSystemRoot/presentation/webpageTemplate.inc"); | 36 | require_once("$default->fileSystemRoot/presentation/webpageTemplate.inc"); |
| 19 | require_once("$default->fileSystemRoot/lib/visualpatterns/PatternCustom.inc"); | 37 | require_once("$default->fileSystemRoot/lib/visualpatterns/PatternCustom.inc"); |
presentation/lookAndFeel/knowledgeTree/administration/groupmanagement/editGroupFail.php
| 1 | <?php | 1 | <?php |
| 2 | /** | 2 | /** |
| 3 | -* Presentation information when updating froup properties fail | ||
| 4 | -* | ||
| 5 | -* @author Mukhtar Dharsey | ||
| 6 | -* @date 5 February 2003 | ||
| 7 | -* @package presentation.lookAndFeel.knowledgeTree. | ||
| 8 | -* | ||
| 9 | -*/ | 3 | + * $Id$ |
| 4 | + * | ||
| 5 | + * Edit a group failure 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.groupmanagement | ||
| 26 | + */ | ||
| 10 | 27 | ||
| 11 | require_once("../../../../../config/dmsDefaults.php"); | 28 | require_once("../../../../../config/dmsDefaults.php"); |
| 12 | 29 |
presentation/lookAndFeel/knowledgeTree/administration/groupmanagement/editGroupSuccess.php
| 1 | <?php | 1 | <?php |
| 2 | /** | 2 | /** |
| 3 | -* Presentation information when updating group properties is successful | ||
| 4 | -* | ||
| 5 | -* @author Mukhtar Dharsey | ||
| 6 | -* @date 5 February 2003 | ||
| 7 | -* @package presentation.lookAndFeel.knowledgeTree. | ||
| 8 | -* | ||
| 9 | -*/ | 3 | + * $Id$ |
| 4 | + * | ||
| 5 | + * Edit a group 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.groupmanagement | ||
| 26 | + */ | ||
| 10 | 27 | ||
| 11 | require_once("../../../../../config/dmsDefaults.php"); | 28 | require_once("../../../../../config/dmsDefaults.php"); |
| 12 | //require_once("../adminUI.inc"); | 29 | //require_once("../adminUI.inc"); |
presentation/lookAndFeel/knowledgeTree/administration/groupmanagement/editGroupUI.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 group UI functions. | ||
| 6 | + * | ||
| 7 | + * Copyright (c) 2003 Jam Warehouse http://www.jamwarehouse.com | ||
| 8 | + * | ||
| 9 | + * This program is free software; you can redistribute it and/or modify | ||
| 10 | + * it under the terms of the GNU General Public License as published by | ||
| 11 | + * the Free Software Foundation; either version 2 of the License, or | ||
| 12 | + * (at your option) any later version. | ||
| 13 | + * | ||
| 14 | + * This program is distributed in the hope that it will be useful, | ||
| 15 | + * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| 16 | + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
| 17 | + * GNU General Public License for more details. | ||
| 18 | + * | ||
| 19 | + * You should have received a copy of the GNU General Public License | ||
| 20 | + * along with this program; if not, write to the Free Software | ||
| 21 | + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | ||
| 22 | + * | ||
| 23 | + * @version $Revision$ | ||
| 24 | + * @author Mukhtar Dharsey, Jam Warehouse (Pty) Ltd, South Africa | ||
| 25 | + * @package administration.groupmanagement | ||
| 26 | + */ | ||
| 27 | + | ||
| 10 | // get hte edit page if it comes from the add page | 28 | // get hte edit page if it comes from the add page |
| 11 | function getCreatePage($iGroupID) { | 29 | function getCreatePage($iGroupID) { |
| 12 | 30 | ||
| 13 | global $default; | 31 | global $default; |
| 14 | $oGroup = null; | 32 | $oGroup = null; |
| 15 | 33 | ||
| 16 | - $sQuery = "SELECT * FROM $default->owl_groups_table WHERE id = $iGroupID"; | 34 | + $sQuery = "SELECT * FROM $default->groups_table WHERE id = $iGroupID"; |
| 17 | $aDisplayColumns = array("name","is_sys_admin","is_unit_admin"); | 35 | $aDisplayColumns = array("name","is_sys_admin","is_unit_admin"); |
| 18 | $aStoreColumns = array("name","is_sys_admin","is_unit_admin"); | 36 | $aStoreColumns = array("name","is_sys_admin","is_unit_admin"); |
| 19 | $aColumnNames = array("Name:","System admin:", "Unit admin:"); | 37 | $aColumnNames = array("Name:","System admin:", "Unit admin:"); |
| @@ -21,7 +39,7 @@ function getCreatePage($iGroupID) { | @@ -21,7 +39,7 @@ function getCreatePage($iGroupID) { | ||
| 21 | $aDatabaseColumnTypes = array(1,2,2); | 39 | $aDatabaseColumnTypes = array(1,2,2); |
| 22 | 40 | ||
| 23 | // get list of group properties...name...text field...is_Sys_admin and is_unit_admin..checkboxes | 41 | // get list of group properties...name...text field...is_Sys_admin and is_unit_admin..checkboxes |
| 24 | - $oPattern = & new PatternEditableListFromQuery($sQuery, $default->owl_groups_table, $aDisplayColumns, $aStoreColumns, $aColumnNames, $aDisplayColumnTypes, $aDatabaseColumnTypes); | 42 | + $oPattern = & new PatternEditableListFromQuery($sQuery, $default->groups_table, $aDisplayColumns, $aStoreColumns, $aColumnNames, $aDisplayColumnTypes, $aDatabaseColumnTypes); |
| 25 | $oPattern->setUniqueName("groupEdit"); | 43 | $oPattern->setUniqueName("groupEdit"); |
| 26 | $oPattern->setColumnsRequired(array(1,0,0)); | 44 | $oPattern->setColumnsRequired(array(1,0,0)); |
| 27 | 45 | ||
| @@ -156,18 +174,18 @@ function getGroupDisplay($oGroup) { | @@ -156,18 +174,18 @@ function getGroupDisplay($oGroup) { | ||
| 156 | if (!isset($oGroup)) { | 174 | if (!isset($oGroup)) { |
| 157 | if (Permission::userIsSystemAdministrator()) { | 175 | if (Permission::userIsSystemAdministrator()) { |
| 158 | // if this is the system administrator, prepend group names with unit name | 176 | // if this is the system administrator, prepend group names with unit name |
| 159 | - $oPatternListBox = & new PatternListBox($default->owl_groups_table, "name", "id", "fGroupID"); | 177 | + $oPatternListBox = & new PatternListBox($default->groups_table, "name", "id", "fGroupID"); |
| 160 | $oPatternListBox->setFromClause("LEFT OUTER JOIN groups_units_link GUL on ST.id=GUL.group_id " . | 178 | $oPatternListBox->setFromClause("LEFT OUTER JOIN groups_units_link GUL on ST.id=GUL.group_id " . |
| 161 | "LEFT OUTER JOIN units_lookup UL on GUL.unit_id=UL.id"); | 179 | "LEFT OUTER JOIN units_lookup UL on GUL.unit_id=UL.id"); |
| 162 | $oPatternListBox->setCompositeDisplayName("DISTINCT COALESCE(CONCAT(CONCAT(UL.name, '-'),ST.name),ST.name)"); | 180 | $oPatternListBox->setCompositeDisplayName("DISTINCT COALESCE(CONCAT(CONCAT(UL.name, '-'),ST.name),ST.name)"); |
| 163 | } else if (Permission::userIsUnitAdministrator()) { | 181 | } else if (Permission::userIsUnitAdministrator()) { |
| 164 | // else if this is a unit administrator, only display the groups in your unit | 182 | // else if this is a unit administrator, only display the groups in your unit |
| 165 | - $oPatternListBox = & new PatternListBox($default->owl_groups_table, "name", "id", "fGroupID"); | ||
| 166 | - $oPatternListBox->setFromClause("INNER JOIN $default->owl_groups_units_table GUL on ST.id=GUL.group_id"); | 183 | + $oPatternListBox = & new PatternListBox($default->groups_table, "name", "id", "fGroupID"); |
| 184 | + $oPatternListBox->setFromClause("INNER JOIN $default->groups_units_table GUL on ST.id=GUL.group_id"); | ||
| 167 | $oPatternListBox->setWhereClause("GUL.unit_id=" . User::getUnitID($_SESSION["userID"])); | 185 | $oPatternListBox->setWhereClause("GUL.unit_id=" . User::getUnitID($_SESSION["userID"])); |
| 168 | 186 | ||
| 169 | - $oUnassignedUsersLB = & new PatternListBox($default->owl_groups_table, "name", "id", "fGroupID"); | ||
| 170 | - $oUnassignedUsersLB->setFromClause("LEFT OUTER JOIN $default->owl_groups_units_table GUL ON ST.id=GUL.group_id"); | 187 | + $oUnassignedUsersLB = & new PatternListBox($default->groups_table, "name", "id", "fGroupID"); |
| 188 | + $oUnassignedUsersLB->setFromClause("LEFT OUTER JOIN $default->groups_units_table GUL ON ST.id=GUL.group_id"); | ||
| 171 | $oUnassignedUsersLB->setWhereClause("ISNULL(GUL.unit_id) AND ST.name <> 'Anonymous' AND ST.name <> 'System Administrators'"); | 189 | $oUnassignedUsersLB->setWhereClause("ISNULL(GUL.unit_id) AND ST.name <> 'Anonymous' AND ST.name <> 'System Administrators'"); |
| 172 | $oPatternListBox->setAdditionalEntries($oUnassignedUsersLB->getEntries()); | 190 | $oPatternListBox->setAdditionalEntries($oUnassignedUsersLB->getEntries()); |
| 173 | } | 191 | } |
presentation/lookAndFeel/knowledgeTree/administration/groupmanagement/editGroupUnitBL.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 the unit mapped to a group. | ||
| 6 | + * | ||
| 7 | + * Copyright (c) 2003 Jam Warehouse http://www.jamwarehouse.com | ||
| 8 | + * | ||
| 9 | + * This program is free software; you can redistribute it and/or modify | ||
| 10 | + * it under the terms of the GNU General Public License as published by | ||
| 11 | + * the Free Software Foundation; either version 2 of the License, or | ||
| 12 | + * (at your option) any later version. | ||
| 13 | + * | ||
| 14 | + * This program is distributed in the hope that it will be useful, | ||
| 15 | + * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| 16 | + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
| 17 | + * GNU General Public License for more details. | ||
| 18 | + * | ||
| 19 | + * You should have received a copy of the GNU General Public License | ||
| 20 | + * along with this program; if not, write to the Free Software | ||
| 21 | + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | ||
| 22 | + * | ||
| 23 | + * @version $Revision$ | ||
| 24 | + * @author Mukhtar Dharsey, Jam Warehouse (Pty) Ltd, South Africa | ||
| 25 | + * @package administration.groupmanagement | ||
| 26 | + */ | ||
| 27 | + | ||
| 10 | require_once("../../../../../config/dmsDefaults.php"); | 28 | require_once("../../../../../config/dmsDefaults.php"); |
| 11 | 29 | ||
| 12 | if (checkSession()) { | 30 | if (checkSession()) { |
| @@ -16,7 +34,7 @@ if (checkSession()) { | @@ -16,7 +34,7 @@ if (checkSession()) { | ||
| 16 | require_once("$default->fileSystemRoot/lib/groups/Group.inc"); | 34 | require_once("$default->fileSystemRoot/lib/groups/Group.inc"); |
| 17 | require_once("$default->fileSystemRoot/lib/users/User.inc"); | 35 | require_once("$default->fileSystemRoot/lib/users/User.inc"); |
| 18 | require_once("$default->fileSystemRoot/lib/groups/GroupUnitLink.inc"); | 36 | require_once("$default->fileSystemRoot/lib/groups/GroupUnitLink.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/groupmanagement/editGroupUnitUI.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 the unit mapped to group UI functions. | ||
| 6 | + * | ||
| 7 | + * Copyright (c) 2003 Jam Warehouse http://www.jamwarehouse.com | ||
| 8 | + * | ||
| 9 | + * This program is free software; you can redistribute it and/or modify | ||
| 10 | + * it under the terms of the GNU General Public License as published by | ||
| 11 | + * the Free Software Foundation; either version 2 of the License, or | ||
| 12 | + * (at your option) any later version. | ||
| 13 | + * | ||
| 14 | + * This program is distributed in the hope that it will be useful, | ||
| 15 | + * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| 16 | + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
| 17 | + * GNU General Public License for more details. | ||
| 18 | + * | ||
| 19 | + * You should have received a copy of the GNU General Public License | ||
| 20 | + * along with this program; if not, write to the Free Software | ||
| 21 | + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | ||
| 22 | + * | ||
| 23 | + * @version $Revision$ | ||
| 24 | + * @author Mukhtar Dharsey, Jam Warehouse (Pty) Ltd, South Africa | ||
| 25 | + * @package administration.groupmanagement | ||
| 26 | + */ | ||
| 10 | 27 | ||
| 11 | // get page for removal | 28 | // get page for removal |
| 12 | function getPage($iUserID) { | 29 | function getPage($iUserID) { |
| @@ -68,7 +85,7 @@ function getUnitPage($iGroupID) { | @@ -68,7 +85,7 @@ function getUnitPage($iGroupID) { | ||
| 68 | $oUser = null; | 85 | $oUser = null; |
| 69 | $oGroup = null; | 86 | $oGroup = null; |
| 70 | 87 | ||
| 71 | - $sWhereClause = "WHERE " . $default->owl_groups_units_table . ".group_id = $iGroupID"; | 88 | + $sWhereClause = "WHERE " . $default->groups_units_table . ".group_id = $iGroupID"; |
| 72 | $aGroupUnitLink = GroupUnitLink::getList($sWhereClause); | 89 | $aGroupUnitLink = GroupUnitLink::getList($sWhereClause); |
| 73 | 90 | ||
| 74 | 91 | ||
| @@ -200,10 +217,10 @@ function getPageSuccess() { | @@ -200,10 +217,10 @@ function getPageSuccess() { | ||
| 200 | function getUserDisplay($oUser) { | 217 | function getUserDisplay($oUser) { |
| 201 | global $default; | 218 | global $default; |
| 202 | if (!isset($oUser)) { | 219 | if (!isset($oUser)) { |
| 203 | - $oPatternListBox = & new PatternListBox($default->owl_users_table, "username", "id", "fUserID"); | 220 | + $oPatternListBox = & new PatternListBox($default->users_table, "username", "id", "fUserID"); |
| 204 | if (Permission::userIsUnitAdministrator()) { | 221 | if (Permission::userIsUnitAdministrator()) { |
| 205 | - $oPatternListBox->setFromClause("INNER JOIN $default->owl_users_groups_table UGL on ST.id=UGL.user_id " . | ||
| 206 | - "INNER JOIN $default->owl_groups_units_table GUL on UGL.group_id=GUL.group_id"); | 222 | + $oPatternListBox->setFromClause("INNER JOIN $default->users_groups_table UGL on ST.id=UGL.user_id " . |
| 223 | + "INNER JOIN $default->groups_units_table GUL on UGL.group_id=GUL.group_id"); | ||
| 207 | $oPatternListBox->setWhereClause("GUL.unit_id=" . User::getUnitID($_SESSION["userID"])); | 224 | $oPatternListBox->setWhereClause("GUL.unit_id=" . User::getUnitID($_SESSION["userID"])); |
| 208 | } | 225 | } |
| 209 | $oPatternListBox->setPostBackOnChange(true); | 226 | $oPatternListBox->setPostBackOnChange(true); |
| @@ -220,14 +237,14 @@ function getOtherGroupDisplay($oGroup) { | @@ -220,14 +237,14 @@ function getOtherGroupDisplay($oGroup) { | ||
| 220 | if (!isset($oGroup)) { | 237 | if (!isset($oGroup)) { |
| 221 | if (Permission::userIsSystemAdministrator()) { | 238 | if (Permission::userIsSystemAdministrator()) { |
| 222 | // if this is the system administrator, prepend group names with unit name | 239 | // if this is the system administrator, prepend group names with unit name |
| 223 | - $oPatternListBox = & new PatternListBox($default->owl_groups_table, "name", "id", "fOtherGroupID"); | 240 | + $oPatternListBox = & new PatternListBox($default->groups_table, "name", "id", "fOtherGroupID"); |
| 224 | $oPatternListBox->setFromClause("LEFT OUTER JOIN groups_units_link GUL on ST.id=GUL.group_id " . | 241 | $oPatternListBox->setFromClause("LEFT OUTER JOIN groups_units_link GUL on ST.id=GUL.group_id " . |
| 225 | "LEFT OUTER JOIN units_lookup UL on GUL.unit_id=UL.id"); | 242 | "LEFT OUTER JOIN units_lookup UL on GUL.unit_id=UL.id"); |
| 226 | $oPatternListBox->setCompositeDisplayName("DISTINCT COALESCE(CONCAT(CONCAT(UL.name, '-'),ST.name),ST.name)"); | 243 | $oPatternListBox->setCompositeDisplayName("DISTINCT COALESCE(CONCAT(CONCAT(UL.name, '-'),ST.name),ST.name)"); |
| 227 | } else if (Permission::userIsUnitAdministrator()) { | 244 | } else if (Permission::userIsUnitAdministrator()) { |
| 228 | // else if this is a unit administrator, only display the groups in your unit | 245 | // else if this is a unit administrator, only display the groups in your unit |
| 229 | - $oPatternListBox = & new PatternListBox($default->owl_groups_table, "name", "id", "fOtherGroupID"); | ||
| 230 | - $oPatternListBox->setFromClause("INNER JOIN $default->owl_groups_units_table GUL on ST.id=GUL.group_id"); | 246 | + $oPatternListBox = & new PatternListBox($default->groups_table, "name", "id", "fOtherGroupID"); |
| 247 | + $oPatternListBox->setFromClause("INNER JOIN $default->groups_units_table GUL on ST.id=GUL.group_id"); | ||
| 231 | $oPatternListBox->setWhereClause("GUL.unit_id=" . User::getUnitID($_SESSION["userID"])); | 248 | $oPatternListBox->setWhereClause("GUL.unit_id=" . User::getUnitID($_SESSION["userID"])); |
| 232 | } | 249 | } |
| 233 | return $oPatternListBox->render(); | 250 | return $oPatternListBox->render(); |
presentation/lookAndFeel/knowledgeTree/administration/groupmanagement/listGroupsBL.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 | - | ||
| 11 | - | 3 | + * $Id$ |
| 4 | + * | ||
| 5 | + * List groups. | ||
| 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.groupmanagement | ||
| 26 | + */ | ||
| 27 | + | ||
| 12 | require_once("../../../../../config/dmsDefaults.php"); | 28 | require_once("../../../../../config/dmsDefaults.php"); |
| 13 | require_once("$default->fileSystemRoot/lib/users/User.inc"); | 29 | require_once("$default->fileSystemRoot/lib/users/User.inc"); |
| 14 | -require_once("$default->fileSystemRoot/lib/security/permission.inc"); | 30 | +require_once("$default->fileSystemRoot/lib/security/Permission.inc"); |
| 15 | require_once("$default->fileSystemRoot/lib/visualpatterns/PatternCustom.inc"); | 31 | require_once("$default->fileSystemRoot/lib/visualpatterns/PatternCustom.inc"); |
| 16 | require_once("$default->fileSystemRoot/lib/visualpatterns/PatternTableSqlQuery.inc"); | 32 | require_once("$default->fileSystemRoot/lib/visualpatterns/PatternTableSqlQuery.inc"); |
| 17 | require_once("$default->fileSystemRoot/lib/visualpatterns/PatternListBox.inc"); | 33 | require_once("$default->fileSystemRoot/lib/visualpatterns/PatternListBox.inc"); |
presentation/lookAndFeel/knowledgeTree/administration/groupmanagement/listGroupsUI.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 groups UI functions. | ||
| 6 | + * | ||
| 7 | + * Copyright (c) 2003 Jam Warehouse http://www.jamwarehouse.com | ||
| 8 | + * | ||
| 9 | + * This program is free software; you can redistribute it and/or modify | ||
| 10 | + * it under the terms of the GNU General Public License as published by | ||
| 11 | + * the Free Software Foundation; either version 2 of the License, or | ||
| 12 | + * (at your option) any later version. | ||
| 13 | + * | ||
| 14 | + * This program is distributed in the hope that it will be useful, | ||
| 15 | + * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| 16 | + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
| 17 | + * GNU General Public License for more details. | ||
| 18 | + * | ||
| 19 | + * You should have received a copy of the GNU General Public License | ||
| 20 | + * along with this program; if not, write to the Free Software | ||
| 21 | + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | ||
| 22 | + * | ||
| 23 | + * @version $Revision$ | ||
| 24 | + * @author Omar Rahbeeni, Jam Warehouse (Pty) Ltd, South Africa | ||
| 25 | + * @package administration.groupmanagement | ||
| 26 | + */ | ||
| 10 | 27 | ||
| 11 | // display the listbox initially ..then just display the text | 28 | // display the listbox initially ..then just display the text |
| 12 | function getUnitDisplay($iUnitID) { | 29 | function getUnitDisplay($iUnitID) { |
| @@ -15,7 +32,7 @@ function getUnitDisplay($iUnitID) { | @@ -15,7 +32,7 @@ function getUnitDisplay($iUnitID) { | ||
| 15 | if (Permission::userIsUnitAdministrator()) { | 32 | if (Permission::userIsUnitAdministrator()) { |
| 16 | $iUnitID = User::getUnitID($_SESSION["userID"]); | 33 | $iUnitID = User::getUnitID($_SESSION["userID"]); |
| 17 | } | 34 | } |
| 18 | - $oPatternListBox = & new PatternListBox($default->owl_units_table, "name", "id", "fUnitID"); | 35 | + $oPatternListBox = & new PatternListBox($default->units_table, "name", "id", "fUnitID"); |
| 19 | $oPatternListBox->setPostBackOnChange(true); | 36 | $oPatternListBox->setPostBackOnChange(true); |
| 20 | if ($iUnitID != 0) { | 37 | if ($iUnitID != 0) { |
| 21 | $oPatternListBox->setSelectedValue($iUnitID); | 38 | $oPatternListBox->setSelectedValue($iUnitID); |
presentation/lookAndFeel/knowledgeTree/administration/groupmanagement/removeGroupBL.php
| 1 | <?php | 1 | <?php |
| 2 | /** | 2 | /** |
| 3 | -* BL 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 | + * Remove a group. | ||
| 6 | + * | ||
| 7 | + * Copyright (c) 2003 Jam Warehouse http://www.jamwarehouse.com | ||
| 8 | + * | ||
| 9 | + * This program is free software; you can redistribute it and/or modify | ||
| 10 | + * it under the terms of the GNU General Public License as published by | ||
| 11 | + * the Free Software Foundation; either version 2 of the License, or | ||
| 12 | + * (at your option) any later version. | ||
| 13 | + * | ||
| 14 | + * This program is distributed in the hope that it will be useful, | ||
| 15 | + * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| 16 | + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
| 17 | + * GNU General Public License for more details. | ||
| 18 | + * | ||
| 19 | + * You should have received a copy of the GNU General Public License | ||
| 20 | + * along with this program; if not, write to the Free Software | ||
| 21 | + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | ||
| 22 | + * | ||
| 23 | + * @version $Revision$ | ||
| 24 | + * @author Mukhtar Dharsey, Jam Warehouse (Pty) Ltd, South Africa | ||
| 25 | + * @package administration.groupmanagement | ||
| 26 | + */ | ||
| 27 | + | ||
| 10 | require_once("../../../../../config/dmsDefaults.php"); | 28 | require_once("../../../../../config/dmsDefaults.php"); |
| 11 | 29 | ||
| 12 | if (checkSession()) { | 30 | if (checkSession()) { |
| @@ -14,7 +32,7 @@ if (checkSession()) { | @@ -14,7 +32,7 @@ if (checkSession()) { | ||
| 14 | require_once("$default->fileSystemRoot/lib/visualpatterns/PatternEditableListFromQuery.inc"); | 32 | require_once("$default->fileSystemRoot/lib/visualpatterns/PatternEditableListFromQuery.inc"); |
| 15 | require_once("removeGroupUI.inc"); | 33 | require_once("removeGroupUI.inc"); |
| 16 | //require_once("../adminUI.inc"); | 34 | //require_once("../adminUI.inc"); |
| 17 | - require_once("$default->fileSystemRoot/lib/security/permission.inc"); | 35 | + require_once("$default->fileSystemRoot/lib/security/Permission.inc"); |
| 18 | require_once("$default->fileSystemRoot/lib/groups/Group.inc"); | 36 | require_once("$default->fileSystemRoot/lib/groups/Group.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"); |
presentation/lookAndFeel/knowledgeTree/administration/groupmanagement/removeGroupFail.php
| 1 | <?php | 1 | <?php |
| 2 | /** | 2 | /** |
| 3 | -* Presentation information when updating froup properties fail | ||
| 4 | -* | ||
| 5 | -* @author Mukhtar Dharsey | ||
| 6 | -* @date 5 February 2003 | ||
| 7 | -* @package presentation.lookAndFeel.knowledgeTree. | ||
| 8 | -* | ||
| 9 | -*/ | ||
| 10 | - | 3 | + * $Id$ |
| 4 | + * | ||
| 5 | + * Remove a group failure 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.groupmanagement | ||
| 26 | + */ | ||
| 27 | + | ||
| 11 | require_once("../../../../../config/dmsDefaults.php"); | 28 | require_once("../../../../../config/dmsDefaults.php"); |
| 12 | 29 | ||
| 13 | global $default; | 30 | global $default; |
presentation/lookAndFeel/knowledgeTree/administration/groupmanagement/removeGroupFromUnitBL.php
| 1 | <?php | 1 | <?php |
| 2 | /** | 2 | /** |
| 3 | -* BL 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 | + * Remove group-unit 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.groupmanagement | ||
| 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/groups/Group.inc"); | 35 | require_once("$default->fileSystemRoot/lib/groups/Group.inc"); |
| 18 | require_once("$default->fileSystemRoot/lib/groups/GroupUnitLink.inc"); | 36 | require_once("$default->fileSystemRoot/lib/groups/GroupUnitLink.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/groupmanagement/removeGroupFromUnitUI.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 | + * Remove group-unit 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.groupmanagement | ||
| 26 | + */ | ||
| 10 | 27 | ||
| 11 | function getNoUnitPage($fGroupID){ | 28 | function getNoUnitPage($fGroupID){ |
| 12 | global $default; | 29 | global $default; |
| @@ -140,7 +157,7 @@ function getGroupDisplay($oGroup) { | @@ -140,7 +157,7 @@ function getGroupDisplay($oGroup) { | ||
| 140 | global $default; | 157 | global $default; |
| 141 | 158 | ||
| 142 | if (!isset($oGroup)) { | 159 | if (!isset($oGroup)) { |
| 143 | - $oPatternListBox = & new PatternListBox($default->owl_groups_table, "name", "id", "fGroupID"); | 160 | + $oPatternListBox = & new PatternListBox($default->groups_table, "name", "id", "fGroupID"); |
| 144 | if (Permission::userIsSystemAdministrator()) { | 161 | if (Permission::userIsSystemAdministrator()) { |
| 145 | $default->log->info("getGroupDisplay sysadmin"); | 162 | $default->log->info("getGroupDisplay sysadmin"); |
| 146 | // if this is the system administrator, prepend group names with unit name | 163 | // if this is the system administrator, prepend group names with unit name |
| @@ -150,7 +167,7 @@ function getGroupDisplay($oGroup) { | @@ -150,7 +167,7 @@ function getGroupDisplay($oGroup) { | ||
| 150 | } else if (Permission::userIsUnitAdministrator()) { | 167 | } else if (Permission::userIsUnitAdministrator()) { |
| 151 | $default->log->info("getGroupDisplay unitadmin"); | 168 | $default->log->info("getGroupDisplay unitadmin"); |
| 152 | // else if this is a unit administrator, only display the groups in your unit | 169 | // else if this is a unit administrator, only display the groups in your unit |
| 153 | - $oPatternListBox->setFromClause("INNER JOIN $default->owl_groups_units_table GUL on ST.id=GUL.group_id"); | 170 | + $oPatternListBox->setFromClause("INNER JOIN $default->groups_units_table GUL on ST.id=GUL.group_id"); |
| 154 | $oPatternListBox->setWhereClause("GUL.unit_id=" . User::getUnitID($_SESSION["userID"])); | 171 | $oPatternListBox->setWhereClause("GUL.unit_id=" . User::getUnitID($_SESSION["userID"])); |
| 155 | } | 172 | } |
| 156 | return $oPatternListBox->render(); | 173 | return $oPatternListBox->render(); |
| @@ -164,7 +181,7 @@ function getGroupDisplay($oGroup) { | @@ -164,7 +181,7 @@ function getGroupDisplay($oGroup) { | ||
| 164 | function getUnitDisplay($oUnit) { | 181 | function getUnitDisplay($oUnit) { |
| 165 | global $default; | 182 | global $default; |
| 166 | if (!isset($oUnit)) { | 183 | if (!isset($oUnit)) { |
| 167 | - //$oPatternListBox = & new PatternListBox($default->owl_units_table, "name", "id", "fUnitID"); | 184 | + //$oPatternListBox = & new PatternListBox($default->units_table, "name", "id", "fUnitID"); |
| 168 | //$oPatternLiListBoxstBox->setPostBackOnChange(true); | 185 | //$oPatternLiListBoxstBox->setPostBackOnChange(true); |
| 169 | //return $oPatternListBox->render(); | 186 | //return $oPatternListBox->render(); |
| 170 | } else { | 187 | } else { |
presentation/lookAndFeel/knowledgeTree/administration/groupmanagement/removeGroupSuccess.php
| 1 | <?php | 1 | <?php |
| 2 | /** | 2 | /** |
| 3 | -* Presentation information when updating group properties is successful | ||
| 4 | -* | ||
| 5 | -* @author Mukhtar Dharsey | ||
| 6 | -* @date 5 February 2003 | ||
| 7 | -* @package presentation.lookAndFeel.knowledgeTree. | ||
| 8 | -* | ||
| 9 | -*/ | 3 | + * $Id$ |
| 4 | + * | ||
| 5 | + * Remove group 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.groupmanagement | ||
| 26 | + */ | ||
| 10 | 27 | ||
| 11 | require_once("../../../../../config/dmsDefaults.php"); | 28 | require_once("../../../../../config/dmsDefaults.php"); |
| 12 | 29 |
presentation/lookAndFeel/knowledgeTree/administration/groupmanagement/removeGroupUI.inc
| 1 | <?php | 1 | <?php |
| 2 | - | ||
| 3 | /** | 2 | /** |
| 4 | -* Presentation information for Deleting a group | ||
| 5 | -* | ||
| 6 | -* @author Mukhtar Dharsey | ||
| 7 | -* @date 5 February 2003 | ||
| 8 | -* @package presentation.lookAndFeel.knowledgeTree. | ||
| 9 | -* | ||
| 10 | -*/ | 3 | + * $Id$ |
| 4 | + * | ||
| 5 | + * Remove a group UI functions. | ||
| 6 | + * | ||
| 7 | + * Copyright (c) 2003 Jam Warehouse http://www.jamwarehouse.com | ||
| 8 | + * | ||
| 9 | + * This program is free software; you can redistribute it and/or modify | ||
| 10 | + * it under the terms of the GNU General Public License as published by | ||
| 11 | + * the Free Software Foundation; either version 2 of the License, or | ||
| 12 | + * (at your option) any later version. | ||
| 13 | + * | ||
| 14 | + * This program is distributed in the hope that it will be useful, | ||
| 15 | + * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| 16 | + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
| 17 | + * GNU General Public License for more details. | ||
| 18 | + * | ||
| 19 | + * You should have received a copy of the GNU General Public License | ||
| 20 | + * along with this program; if not, write to the Free Software | ||
| 21 | + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | ||
| 22 | + * | ||
| 23 | + * @version $Revision$ | ||
| 24 | + * @author Mukhtar Dharsey, Jam Warehouse (Pty) Ltd, South Africa | ||
| 25 | + * @package administration.groupmanagement | ||
| 26 | + */ | ||
| 27 | + | ||
| 11 | // gets the delete stuff | 28 | // gets the delete stuff |
| 12 | function getDeletePage($iGroupID) { | 29 | function getDeletePage($iGroupID) { |
| 13 | global $default; | 30 | global $default; |
| @@ -47,7 +64,7 @@ function getDeletePage($iGroupID) { | @@ -47,7 +64,7 @@ function getDeletePage($iGroupID) { | ||
| 47 | function getGroupDisplay($oGroup) { | 64 | function getGroupDisplay($oGroup) { |
| 48 | global $default; | 65 | global $default; |
| 49 | if (!isset($oGroup)) { | 66 | if (!isset($oGroup)) { |
| 50 | - $oPatternListBox = & new PatternListBox($default->owl_groups_table, "name", "id", "fGroupID"); | 67 | + $oPatternListBox = & new PatternListBox($default->groups_table, "name", "id", "fGroupID"); |
| 51 | $oPatternListBox->setIncludeDefaultValue(true); | 68 | $oPatternListBox->setIncludeDefaultValue(true); |
| 52 | $oPatternListBox->setPostBackOnChange(true); | 69 | $oPatternListBox->setPostBackOnChange(true); |
| 53 | return $oPatternListBox->render(); | 70 | return $oPatternListBox->render(); |
presentation/lookAndFeel/knowledgeTree/administration/linkmanagement/addLinkBL.php
| 1 | <?php | 1 | <?php |
| 2 | /** | 2 | /** |
| 3 | -* BL information for adding a link | ||
| 4 | -* | ||
| 5 | -* @author Mukhtar Dharsey | ||
| 6 | -* @date 5 February 2003 | ||
| 7 | -* @package presentation.lookAndFeel.knowledgeTree. | ||
| 8 | -* | ||
| 9 | -*/ | 3 | + * $Id$ |
| 4 | + * | ||
| 5 | + * Add a quicklink. | ||
| 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.docfieldmanagement | ||
| 26 | + */ | ||
| 27 | + | ||
| 10 | require_once("../../../../../config/dmsDefaults.php"); | 28 | require_once("../../../../../config/dmsDefaults.php"); |
| 11 | require_once("$default->fileSystemRoot/lib/visualpatterns/PatternCreate.inc"); | 29 | require_once("$default->fileSystemRoot/lib/visualpatterns/PatternCreate.inc"); |
| 12 | -require_once("$default->fileSystemRoot/lib/links/link.inc"); | ||
| 13 | -require_once("$default->fileSystemRoot/lib/security/permission.inc"); | 30 | +require_once("$default->fileSystemRoot/lib/links/Link.inc"); |
| 31 | +require_once("$default->fileSystemRoot/lib/security/Permission.inc"); | ||
| 14 | require_once("$default->fileSystemRoot/lib/visualpatterns/PatternCustom.inc"); | 32 | require_once("$default->fileSystemRoot/lib/visualpatterns/PatternCustom.inc"); |
| 15 | require_once("$default->fileSystemRoot/lib/foldermanagement/Folder.inc"); | 33 | require_once("$default->fileSystemRoot/lib/foldermanagement/Folder.inc"); |
| 16 | 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/linkmanagement/addLinkSuccess.php
| 1 | <?php | 1 | <?php |
| 2 | /** | 2 | /** |
| 3 | -* Presentation information when updating group properties is successful | ||
| 4 | -* | ||
| 5 | -* @author Mukhtar Dharsey | ||
| 6 | -* @date 5 February 2003 | ||
| 7 | -* @package presentation.lookAndFeel.knowledgeTree. | ||
| 8 | -* | ||
| 9 | -*/ | 3 | + * $Id$ |
| 4 | + * | ||
| 5 | + * Add a quicklink 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.docfieldmanagement | ||
| 26 | + */ | ||
| 10 | 27 | ||
| 11 | require_once("../../../../../config/dmsDefaults.php"); | 28 | require_once("../../../../../config/dmsDefaults.php"); |
| 12 | 29 |
presentation/lookAndFeel/knowledgeTree/administration/linkmanagement/addLinkUI.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 quicklink 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.docfieldmanagement | ||
| 26 | + */ | ||
| 10 | // get add pages | 27 | // get add pages |
| 11 | function getPage() { | 28 | function getPage() { |
| 12 | 29 | ||
| @@ -18,7 +35,7 @@ function getPage() { | @@ -18,7 +35,7 @@ function getPage() { | ||
| 18 | $aRequired = array(1,1,1); | 35 | $aRequired = array(1,1,1); |
| 19 | 36 | ||
| 20 | // create a text field that is required | 37 | // create a text field that is required |
| 21 | - $oPatternCreate = & new PatternCreate("Link", "links/link.inc",$aDisplayRowNames, $aParameterNumbers, $aDisplayColumnTypes, $aRequired); | 38 | + $oPatternCreate = & new PatternCreate("Link", "links/Link.inc",$aDisplayRowNames, $aParameterNumbers, $aDisplayColumnTypes, $aRequired); |
| 22 | $oPatternCreate->setUniqueName("link"); | 39 | $oPatternCreate->setUniqueName("link"); |
| 23 | $oPatternCreate->setDefaultValues(array(1=>"http://")); | 40 | $oPatternCreate->setDefaultValues(array(1=>"http://")); |
| 24 | 41 |
presentation/lookAndFeel/knowledgeTree/administration/linkmanagement/editLinkBL.php
| 1 | <?php | 1 | <?php |
| 2 | /** | 2 | /** |
| 3 | -* BL information for adding a Link | ||
| 4 | -* | ||
| 5 | -* @author Mukhtar Dharsey | ||
| 6 | -* @date 5 February 2003 | ||
| 7 | -* @package presentation.lookAndFeel.knowledgeTree. | ||
| 8 | -* | ||
| 9 | -*/ | 3 | + * $Id$ |
| 4 | + * | ||
| 5 | + * Edit a quicklink. | ||
| 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.docfieldmanagement | ||
| 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("editLinkUI.inc"); | 32 | require_once("editLinkUI.inc"); |
| 16 | - require_once("$default->fileSystemRoot/lib/security/permission.inc"); | ||
| 17 | - require_once("$default->fileSystemRoot/lib/links/link.inc"); | 33 | + require_once("$default->fileSystemRoot/lib/security/Permission.inc"); |
| 34 | + require_once("$default->fileSystemRoot/lib/links/Link.inc"); | ||
| 18 | require_once("$default->fileSystemRoot/presentation/webpageTemplate.inc"); | 35 | require_once("$default->fileSystemRoot/presentation/webpageTemplate.inc"); |
| 19 | require_once("$default->fileSystemRoot/lib/visualpatterns/PatternCustom.inc"); | 36 | require_once("$default->fileSystemRoot/lib/visualpatterns/PatternCustom.inc"); |
| 20 | require_once("$default->fileSystemRoot/lib/foldermanagement/Folder.inc"); | 37 | require_once("$default->fileSystemRoot/lib/foldermanagement/Folder.inc"); |
presentation/lookAndFeel/knowledgeTree/administration/linkmanagement/editLinkUI.inc
| 1 | <?php | 1 | <?php |
| 2 | /** | 2 | /** |
| 3 | -* Presentation information for adding a link | ||
| 4 | -* | ||
| 5 | -* @author Mukhtar Dharsey | ||
| 6 | -* @date 5 February 2003 | ||
| 7 | -* @package presentation.lookAndFeel.knowledgeTree. | ||
| 8 | -* | ||
| 9 | -*/ | 3 | + * $Id$ |
| 4 | + * | ||
| 5 | + * Edit a quicklink 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.docfieldmanagement | ||
| 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 | 28 | ||
| 12 | // if its the manual edit page..then display normally | 29 | // if its the manual edit page..then display normally |
| @@ -113,7 +130,7 @@ function getEditPageFail() { | @@ -113,7 +130,7 @@ function getEditPageFail() { | ||
| 113 | function getLinkDisplay($oLink) { | 130 | function getLinkDisplay($oLink) { |
| 114 | global $default; | 131 | global $default; |
| 115 | if (!isset($oLink)) { | 132 | if (!isset($oLink)) { |
| 116 | - $oPatternListBox = & new PatternListBox($default->owl_links_table, "name", "id", "fLinkID"); | 133 | + $oPatternListBox = & new PatternListBox($default->quicklinks_table, "name", "id", "fLinkID"); |
| 117 | //$oPatternListBox->setIncludeDefaultValue(true); | 134 | //$oPatternListBox->setIncludeDefaultValue(true); |
| 118 | $oPatternListBox->setPostBackOnChange(true); | 135 | $oPatternListBox->setPostBackOnChange(true); |
| 119 | return $oPatternListBox->render(); | 136 | return $oPatternListBox->render(); |
presentation/lookAndFeel/knowledgeTree/administration/linkmanagement/listLinksBL.php
| 1 | <?php | 1 | <?php |
| 2 | /** | 2 | /** |
| 3 | -* BL information for listing Documemnt Fields | ||
| 4 | -* | ||
| 5 | -* @author Omar Rahbeeni | ||
| 6 | -* @date 19 May 2003 | ||
| 7 | -* @package presentation.lookAndFeel.knowledgeTree. | ||
| 8 | -* | ||
| 9 | -*/ | 3 | + * $Id$ |
| 4 | + * | ||
| 5 | + * List quicklinks. | ||
| 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.docfieldmanagement | ||
| 26 | + */ | ||
| 10 | 27 | ||
| 11 | require_once("../../../../../config/dmsDefaults.php"); | 28 | require_once("../../../../../config/dmsDefaults.php"); |
| 12 | require_once("$default->fileSystemRoot/lib/visualpatterns/PatternCreate.inc"); | 29 | require_once("$default->fileSystemRoot/lib/visualpatterns/PatternCreate.inc"); |
| 13 | require_once("$default->fileSystemRoot/presentation/lookAndFeel/knowledgeTree/foldermanagement/folderUI.inc"); | 30 | require_once("$default->fileSystemRoot/presentation/lookAndFeel/knowledgeTree/foldermanagement/folderUI.inc"); |
| 14 | require_once("$default->fileSystemRoot/lib/foldermanagement/Folder.inc"); | 31 | require_once("$default->fileSystemRoot/lib/foldermanagement/Folder.inc"); |
| 15 | require_once("$default->fileSystemRoot/lib/users/User.inc"); | 32 | require_once("$default->fileSystemRoot/lib/users/User.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/visualpatterns/PatternCustom.inc"); | 34 | require_once("$default->fileSystemRoot/lib/visualpatterns/PatternCustom.inc"); |
| 18 | require_once("$default->fileSystemRoot/lib/visualpatterns/PatternTableSqlQuery.inc"); | 35 | require_once("$default->fileSystemRoot/lib/visualpatterns/PatternTableSqlQuery.inc"); |
| 19 | require_once("$default->fileSystemRoot/lib/visualpatterns/PatternBrowsableSearchResults.inc"); | 36 | require_once("$default->fileSystemRoot/lib/visualpatterns/PatternBrowsableSearchResults.inc"); |
presentation/lookAndFeel/knowledgeTree/administration/linkmanagement/listLinksUI.inc
| 1 | <?php | 1 | <?php |
| 2 | /** | 2 | /** |
| 3 | -* Presentation information for list links | ||
| 4 | -* | ||
| 5 | -* @author Omar Rahbeeni | ||
| 6 | -* @date 19 May 2003 | ||
| 7 | -* @package presentation.lookAndFeel.knowledgeTree. | ||
| 8 | -* | ||
| 9 | -*/ | 3 | + * $Id$ |
| 4 | + * | ||
| 5 | + * List quicklinks 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.docfieldmanagement | ||
| 26 | + */ | ||
| 10 | 27 | ||
| 11 | function getQuickLinks() { | 28 | function getQuickLinks() { |
| 12 | global $default; | 29 | global $default; |
| 13 | $sQuery = "SELECT id as LinkID, name as LinkName, url LinkURL, rank as LinkRank, " . | 30 | $sQuery = "SELECT id as LinkID, name as LinkName, url LinkURL, rank as LinkRank, " . |
| 14 | "'Edit', 'Delete' " . | 31 | "'Edit', 'Delete' " . |
| 15 | - "FROM " . $default->owl_links_table . " " . | 32 | + "FROM " . $default->quicklinks_table . " " . |
| 16 | "ORDER BY name"; | 33 | "ORDER BY name"; |
| 17 | 34 | ||
| 18 | $aColumns = array("LinkName", "LinkURL", "LinkRank", "Edit", "Delete"); | 35 | $aColumns = array("LinkName", "LinkURL", "LinkRank", "Edit", "Delete"); |
presentation/lookAndFeel/knowledgeTree/administration/linkmanagement/removeLinkBL.php
| 1 | <?php | 1 | <?php |
| 2 | /** | 2 | /** |
| 3 | -* BL information for adding a Link | ||
| 4 | -* | ||
| 5 | -* @author Mukhtar Dharsey | ||
| 6 | -* @date 5 February 2003 | ||
| 7 | -* @package presentation.lookAndFeel.knowledgeTree. | ||
| 8 | -* | ||
| 9 | -*/ | 3 | + * $Id$ |
| 4 | + * | ||
| 5 | + * Remove quicklink. | ||
| 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.docfieldmanagement | ||
| 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("removeLinkUI.inc"); | 32 | require_once("removeLinkUI.inc"); |
| 16 | - require_once("$default->fileSystemRoot/lib/security/permission.inc"); | ||
| 17 | - require_once("$default->fileSystemRoot/lib/links/link.inc"); | 33 | + require_once("$default->fileSystemRoot/lib/security/Permission.inc"); |
| 34 | + require_once("$default->fileSystemRoot/lib/links/Link.inc"); | ||
| 18 | require_once("$default->fileSystemRoot/presentation/webpageTemplate.inc"); | 35 | require_once("$default->fileSystemRoot/presentation/webpageTemplate.inc"); |
| 19 | require_once("$default->fileSystemRoot/lib/visualpatterns/PatternCustom.inc"); | 36 | require_once("$default->fileSystemRoot/lib/visualpatterns/PatternCustom.inc"); |
| 20 | require_once("$default->fileSystemRoot/lib/foldermanagement/Folder.inc"); | 37 | require_once("$default->fileSystemRoot/lib/foldermanagement/Folder.inc"); |
presentation/lookAndFeel/knowledgeTree/administration/linkmanagement/removeLinkUI.inc
| 1 | <?php | 1 | <?php |
| 2 | - | ||
| 3 | /** | 2 | /** |
| 4 | -* Presentation information for Deleting a Link | ||
| 5 | -* | ||
| 6 | -* @author Mukhtar Dharsey | ||
| 7 | -* @date 5 February 2003 | ||
| 8 | -* @package presentation.lookAndFeel.knowledgeTree. | ||
| 9 | -* | ||
| 10 | -*/ | 3 | + * $Id$ |
| 4 | + * | ||
| 5 | + * Remove quicklink 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.docfieldmanagement | ||
| 26 | + */ | ||
| 27 | + | ||
| 11 | // gets the delete stuff | 28 | // gets the delete stuff |
| 12 | function getDeletePage($iLinkID) { | 29 | function getDeletePage($iLinkID) { |
| 13 | global $default; | 30 | global $default; |
| @@ -91,7 +108,7 @@ function getDeleteFailPage() { | @@ -91,7 +108,7 @@ function getDeleteFailPage() { | ||
| 91 | function getLinkDisplay($oLink) { | 108 | function getLinkDisplay($oLink) { |
| 92 | global $default; | 109 | global $default; |
| 93 | if (!isset($oLink)) { | 110 | if (!isset($oLink)) { |
| 94 | - $oPatternListBox = & new PatternListBox($default->owl_links_table, "name", "id", "fLinkID"); | 111 | + $oPatternListBox = & new PatternListBox($default->quicklinks_table, "name", "id", "fLinkID"); |
| 95 | $oPatternListBox->setIncludeDefaultValue(true); | 112 | $oPatternListBox->setIncludeDefaultValue(true); |
| 96 | $oPatternListBox->setPostBackOnChange(true); | 113 | $oPatternListBox->setPostBackOnChange(true); |
| 97 | return $oPatternListBox->render(); | 114 | return $oPatternListBox->render(); |
presentation/lookAndFeel/knowledgeTree/administration/news/addNewsBL.php
| @@ -7,17 +7,30 @@ require_once("$default->fileSystemRoot/lib/visualpatterns/PatternCustom.inc"); | @@ -7,17 +7,30 @@ require_once("$default->fileSystemRoot/lib/visualpatterns/PatternCustom.inc"); | ||
| 7 | require_once("$default->fileSystemRoot/lib/visualpatterns/PatternTableSqlQuery.inc"); | 7 | require_once("$default->fileSystemRoot/lib/visualpatterns/PatternTableSqlQuery.inc"); |
| 8 | require_once("$default->uiDirectory/administration/news/newsUI.inc"); | 8 | require_once("$default->uiDirectory/administration/news/newsUI.inc"); |
| 9 | require_once("$default->fileSystemRoot/presentation/Html.inc"); | 9 | require_once("$default->fileSystemRoot/presentation/Html.inc"); |
| 10 | - | ||
| 11 | /** | 10 | /** |
| 12 | * $Id$ | 11 | * $Id$ |
| 13 | - * | ||
| 14 | - * Business logic for adding a news item | ||
| 15 | * | 12 | * |
| 16 | - * Licensed under the GNU GPL. For full terms see the file DOCS/COPYING. | 13 | + * Business logic for adding a news item. |
| 14 | + * | ||
| 15 | + * Copyright (c) 2003 Jam Warehouse http://www.jamwarehouse.com | ||
| 16 | + * | ||
| 17 | + * This program is free software; you can redistribute it and/or modify | ||
| 18 | + * it under the terms of the GNU General Public License as published by | ||
| 19 | + * the Free Software Foundation; either version 2 of the License, or | ||
| 20 | + * (at your option) any later version. | ||
| 21 | + * | ||
| 22 | + * This program is distributed in the hope that it will be useful, | ||
| 23 | + * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| 24 | + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
| 25 | + * GNU General Public License for more details. | ||
| 26 | + * | ||
| 27 | + * You should have received a copy of the GNU General Public License | ||
| 28 | + * along with this program; if not, write to the Free Software | ||
| 29 | + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | ||
| 17 | * | 30 | * |
| 18 | * @version $Revision$ | 31 | * @version $Revision$ |
| 19 | * @author Michael Joseph <michael@jamwarehouse.com>, Jam Warehouse (Pty) Ltd, South Africa | 32 | * @author Michael Joseph <michael@jamwarehouse.com>, Jam Warehouse (Pty) Ltd, South Africa |
| 20 | - * @package presentation.lookAndFeel.knowledgeTree.administration.news | 33 | + * @package administration.news |
| 21 | */ | 34 | */ |
| 22 | 35 | ||
| 23 | if (checkSession()) { | 36 | if (checkSession()) { |
presentation/lookAndFeel/knowledgeTree/administration/news/editNewsBL.php
| @@ -7,17 +7,30 @@ require_once("$default->fileSystemRoot/lib/visualpatterns/PatternCustom.inc"); | @@ -7,17 +7,30 @@ require_once("$default->fileSystemRoot/lib/visualpatterns/PatternCustom.inc"); | ||
| 7 | require_once("$default->fileSystemRoot/lib/visualpatterns/PatternTableSqlQuery.inc"); | 7 | require_once("$default->fileSystemRoot/lib/visualpatterns/PatternTableSqlQuery.inc"); |
| 8 | require_once("$default->uiDirectory/administration/news/newsUI.inc"); | 8 | require_once("$default->uiDirectory/administration/news/newsUI.inc"); |
| 9 | require_once("$default->fileSystemRoot/presentation/Html.inc"); | 9 | require_once("$default->fileSystemRoot/presentation/Html.inc"); |
| 10 | - | ||
| 11 | /** | 10 | /** |
| 12 | * $Id$ | 11 | * $Id$ |
| 13 | - * | ||
| 14 | - * Business logic for editing a news item | ||
| 15 | * | 12 | * |
| 16 | - * Licensed under the GNU GPL. For full terms see the file DOCS/COPYING. | 13 | + * Business logic for editing a news item. |
| 14 | + * | ||
| 15 | + * Copyright (c) 2003 Jam Warehouse http://www.jamwarehouse.com | ||
| 16 | + * | ||
| 17 | + * This program is free software; you can redistribute it and/or modify | ||
| 18 | + * it under the terms of the GNU General Public License as published by | ||
| 19 | + * the Free Software Foundation; either version 2 of the License, or | ||
| 20 | + * (at your option) any later version. | ||
| 21 | + * | ||
| 22 | + * This program is distributed in the hope that it will be useful, | ||
| 23 | + * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| 24 | + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
| 25 | + * GNU General Public License for more details. | ||
| 26 | + * | ||
| 27 | + * You should have received a copy of the GNU General Public License | ||
| 28 | + * along with this program; if not, write to the Free Software | ||
| 29 | + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | ||
| 17 | * | 30 | * |
| 18 | * @version $Revision$ | 31 | * @version $Revision$ |
| 19 | * @author Michael Joseph <michael@jamwarehouse.com>, Jam Warehouse (Pty) Ltd, South Africa | 32 | * @author Michael Joseph <michael@jamwarehouse.com>, Jam Warehouse (Pty) Ltd, South Africa |
| 20 | - * @package presentation.lookAndFeel.knowledgeTree.administration.news | 33 | + * @package administration.news |
| 21 | */ | 34 | */ |
| 22 | 35 | ||
| 23 | if (checkSession()) { | 36 | if (checkSession()) { |
presentation/lookAndFeel/knowledgeTree/administration/news/listNewsBL.php
| @@ -8,17 +8,30 @@ require_once("$default->fileSystemRoot/lib/visualpatterns/PatternTableSqlQuery.i | @@ -8,17 +8,30 @@ require_once("$default->fileSystemRoot/lib/visualpatterns/PatternTableSqlQuery.i | ||
| 8 | require_once("$default->uiDirectory/administration/news/newsUI.inc"); | 8 | require_once("$default->uiDirectory/administration/news/newsUI.inc"); |
| 9 | require_once("$default->fileSystemRoot/presentation/Html.inc"); | 9 | require_once("$default->fileSystemRoot/presentation/Html.inc"); |
| 10 | require_once("$default->fileSystemRoot/presentation/lookAndFeel/knowledgeTree/administration/adminUI.inc"); | 10 | require_once("$default->fileSystemRoot/presentation/lookAndFeel/knowledgeTree/administration/adminUI.inc"); |
| 11 | - | ||
| 12 | /** | 11 | /** |
| 13 | * $Id$ | 12 | * $Id$ |
| 14 | - * | ||
| 15 | - * This page handles the administration of dashboard news items | ||
| 16 | * | 13 | * |
| 17 | - * Licensed under the GNU GPL. For full terms see the file DOCS/COPYING. | 14 | + * This page handles the administration of dashboard news items. |
| 15 | + * | ||
| 16 | + * Copyright (c) 2003 Jam Warehouse http://www.jamwarehouse.com | ||
| 17 | + * | ||
| 18 | + * This program is free software; you can redistribute it and/or modify | ||
| 19 | + * it under the terms of the GNU General Public License as published by | ||
| 20 | + * the Free Software Foundation; either version 2 of the License, or | ||
| 21 | + * (at your option) any later version. | ||
| 22 | + * | ||
| 23 | + * This program is distributed in the hope that it will be useful, | ||
| 24 | + * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| 25 | + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
| 26 | + * GNU General Public License for more details. | ||
| 27 | + * | ||
| 28 | + * You should have received a copy of the GNU General Public License | ||
| 29 | + * along with this program; if not, write to the Free Software | ||
| 30 | + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | ||
| 18 | * | 31 | * |
| 19 | * @version $Revision$ | 32 | * @version $Revision$ |
| 20 | * @author Michael Joseph <michael@jamwarehouse.com>, Jam Warehouse (Pty) Ltd, South Africa | 33 | * @author Michael Joseph <michael@jamwarehouse.com>, Jam Warehouse (Pty) Ltd, South Africa |
| 21 | - * @package presentation.lookAndFeel.knowledgeTree.administration.news | 34 | + * @package administration.news |
| 22 | */ | 35 | */ |
| 23 | 36 | ||
| 24 | if (checkSession()) { | 37 | if (checkSession()) { |
presentation/lookAndFeel/knowledgeTree/administration/news/newsUI.inc
| 1 | <?php | 1 | <?php |
| 2 | - | ||
| 3 | /** | 2 | /** |
| 4 | * $Id$ | 3 | * $Id$ |
| 5 | - * | ||
| 6 | - * This page holds all presentation code for administering dashboard news. | ||
| 7 | * | 4 | * |
| 8 | - * Licensed under the GNU GPL. For full terms see the file DOCS/COPYING. | 5 | + * This page holds all presentation code for administering dashboard news.. |
| 6 | + * | ||
| 7 | + * Copyright (c) 2003 Jam Warehouse http://www.jamwarehouse.com | ||
| 8 | + * | ||
| 9 | + * This program is free software; you can redistribute it and/or modify | ||
| 10 | + * it under the terms of the GNU General Public License as published by | ||
| 11 | + * the Free Software Foundation; either version 2 of the License, or | ||
| 12 | + * (at your option) any later version. | ||
| 13 | + * | ||
| 14 | + * This program is distributed in the hope that it will be useful, | ||
| 15 | + * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| 16 | + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
| 17 | + * GNU General Public License for more details. | ||
| 18 | + * | ||
| 19 | + * You should have received a copy of the GNU General Public License | ||
| 20 | + * along with this program; if not, write to the Free Software | ||
| 21 | + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | ||
| 9 | * | 22 | * |
| 10 | * @version $Revision$ | 23 | * @version $Revision$ |
| 11 | * @author Michael Joseph <michael@jamwarehouse.com>, Jam Warehouse (Pty) Ltd, South Africa | 24 | * @author Michael Joseph <michael@jamwarehouse.com>, Jam Warehouse (Pty) Ltd, South Africa |
| 12 | - * @package presentation.lookAndFeel.knowledgeTree.administration.news | 25 | + * @package administration.news |
| 13 | */ | 26 | */ |
| 14 | 27 | ||
| 15 | /** | 28 | /** |
| @@ -28,7 +41,7 @@ function renderErrorMessage($sErrorMessage) { | @@ -28,7 +41,7 @@ function renderErrorMessage($sErrorMessage) { | ||
| 28 | function renderNewsTable() { | 41 | function renderNewsTable() { |
| 29 | global $default; | 42 | global $default; |
| 30 | $sQuery = "SELECT id, synopsis, IF(LENGTH(body) > 25, CONCAT(LEFT(body,25),'...'), body) AS body, rank, IF(LENGTH(image)>0, 'yes', 'no') as image, active, 'Edit' AS edit, 'Preview' AS preview, 'Delete' AS del " . | 43 | $sQuery = "SELECT id, synopsis, IF(LENGTH(body) > 25, CONCAT(LEFT(body,25),'...'), body) AS body, rank, IF(LENGTH(image)>0, 'yes', 'no') as image, active, 'Edit' AS edit, 'Preview' AS preview, 'Delete' AS del " . |
| 31 | - "FROM $default->owl_news_table ORDER BY rank ASC"; | 44 | + "FROM $default->news_table ORDER BY rank ASC"; |
| 32 | $aColumns = array("synopsis", "body", "rank", "image", "active", "edit", "preview", "del"); | 45 | $aColumns = array("synopsis", "body", "rank", "image", "active", "edit", "preview", "del"); |
| 33 | $aColumnHeaders = array("Synopsis", "Body", "Rank", "Image", "Active"); | 46 | $aColumnHeaders = array("Synopsis", "Body", "Rank", "Image", "Active"); |
| 34 | $aColumnTypes = array(1,1,1,1,2,3,3,3); | 47 | $aColumnTypes = array(1,1,1,1,2,3,3,3); |
presentation/lookAndFeel/knowledgeTree/administration/news/previewNewsBL.php
| @@ -10,16 +10,30 @@ require_once("$default->fileSystemRoot/presentation/Html.inc"); | @@ -10,16 +10,30 @@ require_once("$default->fileSystemRoot/presentation/Html.inc"); | ||
| 10 | 10 | ||
| 11 | /** | 11 | /** |
| 12 | * $Id$ | 12 | * $Id$ |
| 13 | - * | ||
| 14 | - * This page previews a news item | ||
| 15 | * | 13 | * |
| 16 | - * Licensed under the GNU GPL. For full terms see the file DOCS/COPYING. | 14 | + * This page previews a news item. |
| 15 | + * | ||
| 16 | + * Copyright (c) 2003 Jam Warehouse http://www.jamwarehouse.com | ||
| 17 | + * | ||
| 18 | + * This program is free software; you can redistribute it and/or modify | ||
| 19 | + * it under the terms of the GNU General Public License as published by | ||
| 20 | + * the Free Software Foundation; either version 2 of the License, or | ||
| 21 | + * (at your option) any later version. | ||
| 22 | + * | ||
| 23 | + * This program is distributed in the hope that it will be useful, | ||
| 24 | + * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| 25 | + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
| 26 | + * GNU General Public License for more details. | ||
| 27 | + * | ||
| 28 | + * You should have received a copy of the GNU General Public License | ||
| 29 | + * along with this program; if not, write to the Free Software | ||
| 30 | + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | ||
| 17 | * | 31 | * |
| 18 | * @version $Revision$ | 32 | * @version $Revision$ |
| 19 | * @author Michael Joseph <michael@jamwarehouse.com>, Jam Warehouse (Pty) Ltd, South Africa | 33 | * @author Michael Joseph <michael@jamwarehouse.com>, Jam Warehouse (Pty) Ltd, South Africa |
| 20 | - * @package presentation.lookAndFeel.knowledgeTree.administration.news | 34 | + * @package administration.news |
| 21 | */ | 35 | */ |
| 22 | - | 36 | + |
| 23 | if (checkSession()) { | 37 | if (checkSession()) { |
| 24 | 38 | ||
| 25 | // instantiate my content pattern | 39 | // instantiate my content pattern |
presentation/lookAndFeel/knowledgeTree/administration/news/removeNewsBL.php
| @@ -10,14 +10,28 @@ require_once("$default->fileSystemRoot/presentation/Html.inc"); | @@ -10,14 +10,28 @@ require_once("$default->fileSystemRoot/presentation/Html.inc"); | ||
| 10 | 10 | ||
| 11 | /** | 11 | /** |
| 12 | * $Id$ | 12 | * $Id$ |
| 13 | - * | ||
| 14 | - * Business logic for deleting a news item | ||
| 15 | * | 13 | * |
| 16 | - * Licensed under the GNU GPL. For full terms see the file DOCS/COPYING. | 14 | + * Business logic for deleting a news item. |
| 15 | + * | ||
| 16 | + * Copyright (c) 2003 Jam Warehouse http://www.jamwarehouse.com | ||
| 17 | + * | ||
| 18 | + * This program is free software; you can redistribute it and/or modify | ||
| 19 | + * it under the terms of the GNU General Public License as published by | ||
| 20 | + * the Free Software Foundation; either version 2 of the License, or | ||
| 21 | + * (at your option) any later version. | ||
| 22 | + * | ||
| 23 | + * This program is distributed in the hope that it will be useful, | ||
| 24 | + * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| 25 | + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
| 26 | + * GNU General Public License for more details. | ||
| 27 | + * | ||
| 28 | + * You should have received a copy of the GNU General Public License | ||
| 29 | + * along with this program; if not, write to the Free Software | ||
| 30 | + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | ||
| 17 | * | 31 | * |
| 18 | * @version $Revision$ | 32 | * @version $Revision$ |
| 19 | * @author Michael Joseph <michael@jamwarehouse.com>, Jam Warehouse (Pty) Ltd, South Africa | 33 | * @author Michael Joseph <michael@jamwarehouse.com>, Jam Warehouse (Pty) Ltd, South Africa |
| 20 | - * @package presentation.lookAndFeel.knowledgeTree.administration.news | 34 | + * @package administration.news |
| 21 | */ | 35 | */ |
| 22 | 36 | ||
| 23 | if (checkSession()) { | 37 | if (checkSession()) { |