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 | 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 | 28 | require_once("../../../../../config/dmsDefaults.php"); |
| 11 | 29 | require_once("$default->fileSystemRoot/lib/visualpatterns/PatternListBox.inc"); |
| 12 | 30 | require_once("$default->fileSystemRoot/lib/visualpatterns/PatternCreate.inc"); |
| 13 | 31 | require_once("$default->fileSystemRoot/lib/groups/GroupUnitLink.inc"); |
| 14 | -require_once("$default->fileSystemRoot/lib/security/permission.inc"); | |
| 32 | +require_once("$default->fileSystemRoot/lib/security/Permission.inc"); | |
| 15 | 33 | require_once("$default->fileSystemRoot/lib/visualpatterns/PatternCustom.inc"); |
| 16 | 34 | require_once("$default->fileSystemRoot/lib/foldermanagement/Folder.inc"); |
| 17 | 35 | require_once("$default->fileSystemRoot/presentation/lookAndFeel/knowledgeTree/foldermanagement/folderUI.inc"); | ... | ... |
presentation/lookAndFeel/knowledgeTree/administration/groupmanagement/addGroupUI.inc
| 1 | 1 | <?php |
| 2 | 2 | /** |
| 3 | -* Presentation information for adding a group | |
| 4 | -* | |
| 5 | -* @author Mukhtar Dharsey | |
| 6 | -* @date 5 February 2003 | |
| 7 | -* @package presentation.lookAndFeel.knowledgeTree. | |
| 8 | -* | |
| 9 | -*/ | |
| 3 | + * $Id$ | |
| 4 | + * | |
| 5 | + * Add a 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 | 28 | // get add pages |
| 11 | 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 | 0 | \ No newline at end of file |
presentation/lookAndFeel/knowledgeTree/administration/groupmanagement/assignGroupToUnitBL.php
| 1 | 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 | 28 | require_once("../../../../../config/dmsDefaults.php"); |
| 11 | 29 | |
| 12 | 30 | if (checkSession()) { |
| ... | ... | @@ -16,7 +34,7 @@ if (checkSession()) { |
| 16 | 34 | require_once("$default->fileSystemRoot/lib/unitmanagement/Unit.inc"); |
| 17 | 35 | require_once("$default->fileSystemRoot/lib/groups/Group.inc"); |
| 18 | 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 | 38 | require_once("$default->fileSystemRoot/presentation/webpageTemplate.inc"); |
| 21 | 39 | require_once("$default->fileSystemRoot/lib/visualpatterns/PatternCustom.inc"); |
| 22 | 40 | require_once("$default->fileSystemRoot/lib/foldermanagement/Folder.inc"); | ... | ... |
presentation/lookAndFeel/knowledgeTree/administration/groupmanagement/assignGroupToUnitUI.inc
| 1 | 1 | <?php |
| 2 | 2 | /** |
| 3 | -* Presentation information for adding a group | |
| 4 | -* | |
| 5 | -* @author Mukhtar Dharsey | |
| 6 | -* @date 5 February 2003 | |
| 7 | -* @package presentation.lookAndFeel.knowledgeTree. | |
| 8 | -* | |
| 9 | -*/ | |
| 3 | + * $Id$ | |
| 4 | + * | |
| 5 | + * 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 | 28 | function getGotGroupPage($iGroupID,$iUnitID){ |
| 12 | 29 | global $default; |
| ... | ... | @@ -196,8 +213,8 @@ function getGroupDisplay($oGroup) { |
| 196 | 213 | |
| 197 | 214 | if (!isset($oGroup)) { |
| 198 | 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 | 218 | $oPatternListBox->setWhereClause("ISNULL(GUL.group_id) AND ST.name <> 'Anonymous' AND ST.name <> 'System Administrators'"); |
| 202 | 219 | return $oPatternListBox->render(); |
| 203 | 220 | } else { |
| ... | ... | @@ -214,7 +231,7 @@ function getUnitDisplay($oUnit) { |
| 214 | 231 | $oUnit = Unit::get(User::getUnitID($_SESSION["userID"])); |
| 215 | 232 | } |
| 216 | 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 | 235 | return $oPatternListBox->render(); |
| 219 | 236 | } else { |
| 220 | 237 | return "<input type=\"hidden\" name=\"fUnitID\" value=\"" . $oUnit->iId . "\">\n" . | ... | ... |
presentation/lookAndFeel/knowledgeTree/administration/groupmanagement/editGroupBL.php
| 1 | 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 | 28 | require_once("../../../../../config/dmsDefaults.php"); |
| 11 | 29 | |
| 12 | 30 | if (checkSession()) { |
| 13 | 31 | require_once("$default->fileSystemRoot/lib/visualpatterns/PatternListBox.inc"); |
| 14 | 32 | require_once("$default->fileSystemRoot/lib/visualpatterns/PatternEditableListFromQuery.inc"); |
| 15 | 33 | require_once("editGroupUI.inc"); |
| 16 | - require_once("$default->fileSystemRoot/lib/security/permission.inc"); | |
| 34 | + require_once("$default->fileSystemRoot/lib/security/Permission.inc"); | |
| 17 | 35 | require_once("$default->fileSystemRoot/lib/groups/Group.inc"); |
| 18 | 36 | require_once("$default->fileSystemRoot/presentation/webpageTemplate.inc"); |
| 19 | 37 | require_once("$default->fileSystemRoot/lib/visualpatterns/PatternCustom.inc"); | ... | ... |
presentation/lookAndFeel/knowledgeTree/administration/groupmanagement/editGroupFail.php
| 1 | 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 | 28 | require_once("../../../../../config/dmsDefaults.php"); |
| 12 | 29 | ... | ... |
presentation/lookAndFeel/knowledgeTree/administration/groupmanagement/editGroupSuccess.php
| 1 | 1 | <?php |
| 2 | 2 | /** |
| 3 | -* Presentation information when updating group properties is successful | |
| 4 | -* | |
| 5 | -* @author Mukhtar Dharsey | |
| 6 | -* @date 5 February 2003 | |
| 7 | -* @package presentation.lookAndFeel.knowledgeTree. | |
| 8 | -* | |
| 9 | -*/ | |
| 3 | + * $Id$ | |
| 4 | + * | |
| 5 | + * 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 | 28 | require_once("../../../../../config/dmsDefaults.php"); |
| 12 | 29 | //require_once("../adminUI.inc"); | ... | ... |
presentation/lookAndFeel/knowledgeTree/administration/groupmanagement/editGroupUI.inc
| 1 | 1 | <?php |
| 2 | 2 | /** |
| 3 | -* Presentation information for adding a group | |
| 4 | -* | |
| 5 | -* @author Mukhtar Dharsey | |
| 6 | -* @date 5 February 2003 | |
| 7 | -* @package presentation.lookAndFeel.knowledgeTree. | |
| 8 | -* | |
| 9 | -*/ | |
| 3 | + * $Id$ | |
| 4 | + * | |
| 5 | + * Edit a 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 | 28 | // get hte edit page if it comes from the add page |
| 11 | 29 | function getCreatePage($iGroupID) { |
| 12 | 30 | |
| 13 | 31 | global $default; |
| 14 | 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 | 35 | $aDisplayColumns = array("name","is_sys_admin","is_unit_admin"); |
| 18 | 36 | $aStoreColumns = array("name","is_sys_admin","is_unit_admin"); |
| 19 | 37 | $aColumnNames = array("Name:","System admin:", "Unit admin:"); |
| ... | ... | @@ -21,7 +39,7 @@ function getCreatePage($iGroupID) { |
| 21 | 39 | $aDatabaseColumnTypes = array(1,2,2); |
| 22 | 40 | |
| 23 | 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 | 43 | $oPattern->setUniqueName("groupEdit"); |
| 26 | 44 | $oPattern->setColumnsRequired(array(1,0,0)); |
| 27 | 45 | |
| ... | ... | @@ -156,18 +174,18 @@ function getGroupDisplay($oGroup) { |
| 156 | 174 | if (!isset($oGroup)) { |
| 157 | 175 | if (Permission::userIsSystemAdministrator()) { |
| 158 | 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 | 178 | $oPatternListBox->setFromClause("LEFT OUTER JOIN groups_units_link GUL on ST.id=GUL.group_id " . |
| 161 | 179 | "LEFT OUTER JOIN units_lookup UL on GUL.unit_id=UL.id"); |
| 162 | 180 | $oPatternListBox->setCompositeDisplayName("DISTINCT COALESCE(CONCAT(CONCAT(UL.name, '-'),ST.name),ST.name)"); |
| 163 | 181 | } else if (Permission::userIsUnitAdministrator()) { |
| 164 | 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 | 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 | 189 | $oUnassignedUsersLB->setWhereClause("ISNULL(GUL.unit_id) AND ST.name <> 'Anonymous' AND ST.name <> 'System Administrators'"); |
| 172 | 190 | $oPatternListBox->setAdditionalEntries($oUnassignedUsersLB->getEntries()); |
| 173 | 191 | } | ... | ... |
presentation/lookAndFeel/knowledgeTree/administration/groupmanagement/editGroupUnitBL.php
| 1 | 1 | <?php |
| 2 | 2 | /** |
| 3 | -* BL information for adding a User | |
| 4 | -* | |
| 5 | -* @author Mukhtar Dharsey | |
| 6 | -* @date 5 February 2003 | |
| 7 | -* @package presentation.lookAndFeel.knowledgeTree. | |
| 8 | -* | |
| 9 | -*/ | |
| 3 | + * $Id$ | |
| 4 | + * | |
| 5 | + * Edit 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 | 28 | require_once("../../../../../config/dmsDefaults.php"); |
| 11 | 29 | |
| 12 | 30 | if (checkSession()) { |
| ... | ... | @@ -16,7 +34,7 @@ if (checkSession()) { |
| 16 | 34 | require_once("$default->fileSystemRoot/lib/groups/Group.inc"); |
| 17 | 35 | require_once("$default->fileSystemRoot/lib/users/User.inc"); |
| 18 | 36 | require_once("$default->fileSystemRoot/lib/groups/GroupUnitLink.inc"); |
| 19 | - require_once("$default->fileSystemRoot/lib/security/permission.inc"); | |
| 37 | + require_once("$default->fileSystemRoot/lib/security/Permission.inc"); | |
| 20 | 38 | require_once("$default->fileSystemRoot/presentation/webpageTemplate.inc"); |
| 21 | 39 | require_once("$default->fileSystemRoot/lib/visualpatterns/PatternCustom.inc"); |
| 22 | 40 | require_once("$default->fileSystemRoot/lib/foldermanagement/Folder.inc"); | ... | ... |
presentation/lookAndFeel/knowledgeTree/administration/groupmanagement/editGroupUnitUI.inc
| 1 | 1 | <?php |
| 2 | 2 | /** |
| 3 | -* Presentation information for adding a User | |
| 4 | -* | |
| 5 | -* @author Mukhtar Dharsey | |
| 6 | -* @date 5 February 2003 | |
| 7 | -* @package presentation.lookAndFeel.knowledgeTree. | |
| 8 | -* | |
| 9 | -*/ | |
| 3 | + * $Id$ | |
| 4 | + * | |
| 5 | + * Edit 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 | 28 | // get page for removal |
| 12 | 29 | function getPage($iUserID) { |
| ... | ... | @@ -68,7 +85,7 @@ function getUnitPage($iGroupID) { |
| 68 | 85 | $oUser = null; |
| 69 | 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 | 89 | $aGroupUnitLink = GroupUnitLink::getList($sWhereClause); |
| 73 | 90 | |
| 74 | 91 | |
| ... | ... | @@ -200,10 +217,10 @@ function getPageSuccess() { |
| 200 | 217 | function getUserDisplay($oUser) { |
| 201 | 218 | global $default; |
| 202 | 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 | 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 | 224 | $oPatternListBox->setWhereClause("GUL.unit_id=" . User::getUnitID($_SESSION["userID"])); |
| 208 | 225 | } |
| 209 | 226 | $oPatternListBox->setPostBackOnChange(true); |
| ... | ... | @@ -220,14 +237,14 @@ function getOtherGroupDisplay($oGroup) { |
| 220 | 237 | if (!isset($oGroup)) { |
| 221 | 238 | if (Permission::userIsSystemAdministrator()) { |
| 222 | 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 | 241 | $oPatternListBox->setFromClause("LEFT OUTER JOIN groups_units_link GUL on ST.id=GUL.group_id " . |
| 225 | 242 | "LEFT OUTER JOIN units_lookup UL on GUL.unit_id=UL.id"); |
| 226 | 243 | $oPatternListBox->setCompositeDisplayName("DISTINCT COALESCE(CONCAT(CONCAT(UL.name, '-'),ST.name),ST.name)"); |
| 227 | 244 | } else if (Permission::userIsUnitAdministrator()) { |
| 228 | 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 | 248 | $oPatternListBox->setWhereClause("GUL.unit_id=" . User::getUnitID($_SESSION["userID"])); |
| 232 | 249 | } |
| 233 | 250 | return $oPatternListBox->render(); | ... | ... |
presentation/lookAndFeel/knowledgeTree/administration/groupmanagement/listGroupsBL.php
| 1 | 1 | <?php |
| 2 | 2 | /** |
| 3 | -* BL information for viewing a Discussion | |
| 4 | -* | |
| 5 | -* @author Omar Rahbeeni | |
| 6 | -* @date 19 May 2003 | |
| 7 | -* @package presentation.lookAndFeel.knowledgeTree. | |
| 8 | -* | |
| 9 | -*/ | |
| 10 | - | |
| 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 | 28 | require_once("../../../../../config/dmsDefaults.php"); |
| 13 | 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 | 31 | require_once("$default->fileSystemRoot/lib/visualpatterns/PatternCustom.inc"); |
| 16 | 32 | require_once("$default->fileSystemRoot/lib/visualpatterns/PatternTableSqlQuery.inc"); |
| 17 | 33 | require_once("$default->fileSystemRoot/lib/visualpatterns/PatternListBox.inc"); | ... | ... |
presentation/lookAndFeel/knowledgeTree/administration/groupmanagement/listGroupsUI.inc
| 1 | 1 | <?php |
| 2 | 2 | /** |
| 3 | -* Presentation information for adding a unit | |
| 4 | -* | |
| 5 | -* @author Omar Rahbeeni | |
| 6 | -* @date 19 May 2003 | |
| 7 | -* @package presentation.lookAndFeel.knowledgeTree. | |
| 8 | -* | |
| 9 | -*/ | |
| 3 | + * $Id$ | |
| 4 | + * | |
| 5 | + * List 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 | 28 | // display the listbox initially ..then just display the text |
| 12 | 29 | function getUnitDisplay($iUnitID) { |
| ... | ... | @@ -15,7 +32,7 @@ function getUnitDisplay($iUnitID) { |
| 15 | 32 | if (Permission::userIsUnitAdministrator()) { |
| 16 | 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 | 36 | $oPatternListBox->setPostBackOnChange(true); |
| 20 | 37 | if ($iUnitID != 0) { |
| 21 | 38 | $oPatternListBox->setSelectedValue($iUnitID); | ... | ... |
presentation/lookAndFeel/knowledgeTree/administration/groupmanagement/removeGroupBL.php
| 1 | 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 | 28 | require_once("../../../../../config/dmsDefaults.php"); |
| 11 | 29 | |
| 12 | 30 | if (checkSession()) { |
| ... | ... | @@ -14,7 +32,7 @@ if (checkSession()) { |
| 14 | 32 | require_once("$default->fileSystemRoot/lib/visualpatterns/PatternEditableListFromQuery.inc"); |
| 15 | 33 | require_once("removeGroupUI.inc"); |
| 16 | 34 | //require_once("../adminUI.inc"); |
| 17 | - require_once("$default->fileSystemRoot/lib/security/permission.inc"); | |
| 35 | + require_once("$default->fileSystemRoot/lib/security/Permission.inc"); | |
| 18 | 36 | require_once("$default->fileSystemRoot/lib/groups/Group.inc"); |
| 19 | 37 | require_once("$default->fileSystemRoot/presentation/webpageTemplate.inc"); |
| 20 | 38 | require_once("$default->fileSystemRoot/lib/visualpatterns/PatternCustom.inc"); | ... | ... |
presentation/lookAndFeel/knowledgeTree/administration/groupmanagement/removeGroupFail.php
| 1 | 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 | 28 | require_once("../../../../../config/dmsDefaults.php"); |
| 12 | 29 | |
| 13 | 30 | global $default; | ... | ... |
presentation/lookAndFeel/knowledgeTree/administration/groupmanagement/removeGroupFromUnitBL.php
| 1 | 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 | 28 | require_once("../../../../../config/dmsDefaults.php"); |
| 11 | 29 | |
| 12 | 30 | if (checkSession()) { |
| ... | ... | @@ -16,7 +34,7 @@ if (checkSession()) { |
| 16 | 34 | require_once("$default->fileSystemRoot/lib/unitmanagement/Unit.inc"); |
| 17 | 35 | require_once("$default->fileSystemRoot/lib/groups/Group.inc"); |
| 18 | 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 | 38 | require_once("$default->fileSystemRoot/presentation/webpageTemplate.inc"); |
| 21 | 39 | require_once("$default->fileSystemRoot/lib/visualpatterns/PatternCustom.inc"); |
| 22 | 40 | require_once("$default->fileSystemRoot/lib/foldermanagement/Folder.inc"); | ... | ... |
presentation/lookAndFeel/knowledgeTree/administration/groupmanagement/removeGroupFromUnitUI.inc
| 1 | 1 | <?php |
| 2 | 2 | /** |
| 3 | -* Presentation information for adding a group | |
| 4 | -* | |
| 5 | -* @author Mukhtar Dharsey | |
| 6 | -* @date 5 February 2003 | |
| 7 | -* @package presentation.lookAndFeel.knowledgeTree. | |
| 8 | -* | |
| 9 | -*/ | |
| 3 | + * $Id$ | |
| 4 | + * | |
| 5 | + * 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 | 28 | function getNoUnitPage($fGroupID){ |
| 12 | 29 | global $default; |
| ... | ... | @@ -140,7 +157,7 @@ function getGroupDisplay($oGroup) { |
| 140 | 157 | global $default; |
| 141 | 158 | |
| 142 | 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 | 161 | if (Permission::userIsSystemAdministrator()) { |
| 145 | 162 | $default->log->info("getGroupDisplay sysadmin"); |
| 146 | 163 | // if this is the system administrator, prepend group names with unit name |
| ... | ... | @@ -150,7 +167,7 @@ function getGroupDisplay($oGroup) { |
| 150 | 167 | } else if (Permission::userIsUnitAdministrator()) { |
| 151 | 168 | $default->log->info("getGroupDisplay unitadmin"); |
| 152 | 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 | 171 | $oPatternListBox->setWhereClause("GUL.unit_id=" . User::getUnitID($_SESSION["userID"])); |
| 155 | 172 | } |
| 156 | 173 | return $oPatternListBox->render(); |
| ... | ... | @@ -164,7 +181,7 @@ function getGroupDisplay($oGroup) { |
| 164 | 181 | function getUnitDisplay($oUnit) { |
| 165 | 182 | global $default; |
| 166 | 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 | 185 | //$oPatternLiListBoxstBox->setPostBackOnChange(true); |
| 169 | 186 | //return $oPatternListBox->render(); |
| 170 | 187 | } else { | ... | ... |
presentation/lookAndFeel/knowledgeTree/administration/groupmanagement/removeGroupSuccess.php
| 1 | 1 | <?php |
| 2 | 2 | /** |
| 3 | -* Presentation information when updating group properties is successful | |
| 4 | -* | |
| 5 | -* @author Mukhtar Dharsey | |
| 6 | -* @date 5 February 2003 | |
| 7 | -* @package presentation.lookAndFeel.knowledgeTree. | |
| 8 | -* | |
| 9 | -*/ | |
| 3 | + * $Id$ | |
| 4 | + * | |
| 5 | + * 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 | 28 | require_once("../../../../../config/dmsDefaults.php"); |
| 12 | 29 | ... | ... |
presentation/lookAndFeel/knowledgeTree/administration/groupmanagement/removeGroupUI.inc
| 1 | 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 | 28 | // gets the delete stuff |
| 12 | 29 | function getDeletePage($iGroupID) { |
| 13 | 30 | global $default; |
| ... | ... | @@ -47,7 +64,7 @@ function getDeletePage($iGroupID) { |
| 47 | 64 | function getGroupDisplay($oGroup) { |
| 48 | 65 | global $default; |
| 49 | 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 | 68 | $oPatternListBox->setIncludeDefaultValue(true); |
| 52 | 69 | $oPatternListBox->setPostBackOnChange(true); |
| 53 | 70 | return $oPatternListBox->render(); | ... | ... |
presentation/lookAndFeel/knowledgeTree/administration/linkmanagement/addLinkBL.php
| 1 | 1 | <?php |
| 2 | 2 | /** |
| 3 | -* BL information for adding a link | |
| 4 | -* | |
| 5 | -* @author Mukhtar Dharsey | |
| 6 | -* @date 5 February 2003 | |
| 7 | -* @package presentation.lookAndFeel.knowledgeTree. | |
| 8 | -* | |
| 9 | -*/ | |
| 3 | + * $Id$ | |
| 4 | + * | |
| 5 | + * Add a 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 | 28 | require_once("../../../../../config/dmsDefaults.php"); |
| 11 | 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 | 32 | require_once("$default->fileSystemRoot/lib/visualpatterns/PatternCustom.inc"); |
| 15 | 33 | require_once("$default->fileSystemRoot/lib/foldermanagement/Folder.inc"); |
| 16 | 34 | require_once("$default->fileSystemRoot/presentation/lookAndFeel/knowledgeTree/foldermanagement/folderUI.inc"); | ... | ... |
presentation/lookAndFeel/knowledgeTree/administration/linkmanagement/addLinkSuccess.php
| 1 | 1 | <?php |
| 2 | 2 | /** |
| 3 | -* Presentation information when updating group properties is successful | |
| 4 | -* | |
| 5 | -* @author Mukhtar Dharsey | |
| 6 | -* @date 5 February 2003 | |
| 7 | -* @package presentation.lookAndFeel.knowledgeTree. | |
| 8 | -* | |
| 9 | -*/ | |
| 3 | + * $Id$ | |
| 4 | + * | |
| 5 | + * Add a 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 | 28 | require_once("../../../../../config/dmsDefaults.php"); |
| 12 | 29 | ... | ... |
presentation/lookAndFeel/knowledgeTree/administration/linkmanagement/addLinkUI.inc
| 1 | 1 | <?php |
| 2 | 2 | /** |
| 3 | -* Presentation information for adding a unit | |
| 4 | -* | |
| 5 | -* @author Mukhtar Dharsey | |
| 6 | -* @date 5 February 2003 | |
| 7 | -* @package presentation.lookAndFeel.knowledgeTree. | |
| 8 | -* | |
| 9 | -*/ | |
| 3 | + * $Id$ | |
| 4 | + * | |
| 5 | + * Add a 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 | 27 | // get add pages |
| 11 | 28 | function getPage() { |
| 12 | 29 | |
| ... | ... | @@ -18,7 +35,7 @@ function getPage() { |
| 18 | 35 | $aRequired = array(1,1,1); |
| 19 | 36 | |
| 20 | 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 | 39 | $oPatternCreate->setUniqueName("link"); |
| 23 | 40 | $oPatternCreate->setDefaultValues(array(1=>"http://")); |
| 24 | 41 | ... | ... |
presentation/lookAndFeel/knowledgeTree/administration/linkmanagement/editLinkBL.php
| 1 | 1 | <?php |
| 2 | 2 | /** |
| 3 | -* BL information for adding a Link | |
| 4 | -* | |
| 5 | -* @author Mukhtar Dharsey | |
| 6 | -* @date 5 February 2003 | |
| 7 | -* @package presentation.lookAndFeel.knowledgeTree. | |
| 8 | -* | |
| 9 | -*/ | |
| 3 | + * $Id$ | |
| 4 | + * | |
| 5 | + * 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 | 27 | require_once("../../../../../config/dmsDefaults.php"); |
| 11 | 28 | |
| 12 | 29 | if (checkSession()) { |
| 13 | 30 | require_once("$default->fileSystemRoot/lib/visualpatterns/PatternListBox.inc"); |
| 14 | 31 | require_once("$default->fileSystemRoot/lib/visualpatterns/PatternEditableListFromQuery.inc"); |
| 15 | 32 | require_once("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 | 35 | require_once("$default->fileSystemRoot/presentation/webpageTemplate.inc"); |
| 19 | 36 | require_once("$default->fileSystemRoot/lib/visualpatterns/PatternCustom.inc"); |
| 20 | 37 | require_once("$default->fileSystemRoot/lib/foldermanagement/Folder.inc"); | ... | ... |
presentation/lookAndFeel/knowledgeTree/administration/linkmanagement/editLinkUI.inc
| 1 | 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 | 27 | // get hte edit page if it comes from the add page |
| 11 | 28 | |
| 12 | 29 | // if its the manual edit page..then display normally |
| ... | ... | @@ -113,7 +130,7 @@ function getEditPageFail() { |
| 113 | 130 | function getLinkDisplay($oLink) { |
| 114 | 131 | global $default; |
| 115 | 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 | 134 | //$oPatternListBox->setIncludeDefaultValue(true); |
| 118 | 135 | $oPatternListBox->setPostBackOnChange(true); |
| 119 | 136 | return $oPatternListBox->render(); | ... | ... |
presentation/lookAndFeel/knowledgeTree/administration/linkmanagement/listLinksBL.php
| 1 | 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 | 28 | require_once("../../../../../config/dmsDefaults.php"); |
| 12 | 29 | require_once("$default->fileSystemRoot/lib/visualpatterns/PatternCreate.inc"); |
| 13 | 30 | require_once("$default->fileSystemRoot/presentation/lookAndFeel/knowledgeTree/foldermanagement/folderUI.inc"); |
| 14 | 31 | require_once("$default->fileSystemRoot/lib/foldermanagement/Folder.inc"); |
| 15 | 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 | 34 | require_once("$default->fileSystemRoot/lib/visualpatterns/PatternCustom.inc"); |
| 18 | 35 | require_once("$default->fileSystemRoot/lib/visualpatterns/PatternTableSqlQuery.inc"); |
| 19 | 36 | require_once("$default->fileSystemRoot/lib/visualpatterns/PatternBrowsableSearchResults.inc"); | ... | ... |
presentation/lookAndFeel/knowledgeTree/administration/linkmanagement/listLinksUI.inc
| 1 | 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 | 28 | function getQuickLinks() { |
| 12 | 29 | global $default; |
| 13 | 30 | $sQuery = "SELECT id as LinkID, name as LinkName, url LinkURL, rank as LinkRank, " . |
| 14 | 31 | "'Edit', 'Delete' " . |
| 15 | - "FROM " . $default->owl_links_table . " " . | |
| 32 | + "FROM " . $default->quicklinks_table . " " . | |
| 16 | 33 | "ORDER BY name"; |
| 17 | 34 | |
| 18 | 35 | $aColumns = array("LinkName", "LinkURL", "LinkRank", "Edit", "Delete"); | ... | ... |
presentation/lookAndFeel/knowledgeTree/administration/linkmanagement/removeLinkBL.php
| 1 | 1 | <?php |
| 2 | 2 | /** |
| 3 | -* BL information for adding a Link | |
| 4 | -* | |
| 5 | -* @author Mukhtar Dharsey | |
| 6 | -* @date 5 February 2003 | |
| 7 | -* @package presentation.lookAndFeel.knowledgeTree. | |
| 8 | -* | |
| 9 | -*/ | |
| 3 | + * $Id$ | |
| 4 | + * | |
| 5 | + * Remove 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 | 27 | require_once("../../../../../config/dmsDefaults.php"); |
| 11 | 28 | |
| 12 | 29 | if (checkSession()) { |
| 13 | 30 | require_once("$default->fileSystemRoot/lib/visualpatterns/PatternListBox.inc"); |
| 14 | 31 | require_once("$default->fileSystemRoot/lib/visualpatterns/PatternEditableListFromQuery.inc"); |
| 15 | 32 | require_once("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 | 35 | require_once("$default->fileSystemRoot/presentation/webpageTemplate.inc"); |
| 19 | 36 | require_once("$default->fileSystemRoot/lib/visualpatterns/PatternCustom.inc"); |
| 20 | 37 | require_once("$default->fileSystemRoot/lib/foldermanagement/Folder.inc"); | ... | ... |
presentation/lookAndFeel/knowledgeTree/administration/linkmanagement/removeLinkUI.inc
| 1 | 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 | 28 | // gets the delete stuff |
| 12 | 29 | function getDeletePage($iLinkID) { |
| 13 | 30 | global $default; |
| ... | ... | @@ -91,7 +108,7 @@ function getDeleteFailPage() { |
| 91 | 108 | function getLinkDisplay($oLink) { |
| 92 | 109 | global $default; |
| 93 | 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 | 112 | $oPatternListBox->setIncludeDefaultValue(true); |
| 96 | 113 | $oPatternListBox->setPostBackOnChange(true); |
| 97 | 114 | return $oPatternListBox->render(); | ... | ... |
presentation/lookAndFeel/knowledgeTree/administration/news/addNewsBL.php
| ... | ... | @@ -7,17 +7,30 @@ require_once("$default->fileSystemRoot/lib/visualpatterns/PatternCustom.inc"); |
| 7 | 7 | require_once("$default->fileSystemRoot/lib/visualpatterns/PatternTableSqlQuery.inc"); |
| 8 | 8 | require_once("$default->uiDirectory/administration/news/newsUI.inc"); |
| 9 | 9 | require_once("$default->fileSystemRoot/presentation/Html.inc"); |
| 10 | - | |
| 11 | 10 | /** |
| 12 | 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 | 31 | * @version $Revision$ |
| 19 | 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 | 36 | if (checkSession()) { | ... | ... |
presentation/lookAndFeel/knowledgeTree/administration/news/editNewsBL.php
| ... | ... | @@ -7,17 +7,30 @@ require_once("$default->fileSystemRoot/lib/visualpatterns/PatternCustom.inc"); |
| 7 | 7 | require_once("$default->fileSystemRoot/lib/visualpatterns/PatternTableSqlQuery.inc"); |
| 8 | 8 | require_once("$default->uiDirectory/administration/news/newsUI.inc"); |
| 9 | 9 | require_once("$default->fileSystemRoot/presentation/Html.inc"); |
| 10 | - | |
| 11 | 10 | /** |
| 12 | 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 | 31 | * @version $Revision$ |
| 19 | 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 | 36 | if (checkSession()) { | ... | ... |
presentation/lookAndFeel/knowledgeTree/administration/news/listNewsBL.php
| ... | ... | @@ -8,17 +8,30 @@ require_once("$default->fileSystemRoot/lib/visualpatterns/PatternTableSqlQuery.i |
| 8 | 8 | require_once("$default->uiDirectory/administration/news/newsUI.inc"); |
| 9 | 9 | require_once("$default->fileSystemRoot/presentation/Html.inc"); |
| 10 | 10 | require_once("$default->fileSystemRoot/presentation/lookAndFeel/knowledgeTree/administration/adminUI.inc"); |
| 11 | - | |
| 12 | 11 | /** |
| 13 | 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 | 32 | * @version $Revision$ |
| 20 | 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 | 37 | if (checkSession()) { | ... | ... |
presentation/lookAndFeel/knowledgeTree/administration/news/newsUI.inc
| 1 | 1 | <?php |
| 2 | - | |
| 3 | 2 | /** |
| 4 | 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 | 23 | * @version $Revision$ |
| 11 | 24 | * @author Michael Joseph <michael@jamwarehouse.com>, Jam Warehouse (Pty) Ltd, South Africa |
| 12 | - * @package presentation.lookAndFeel.knowledgeTree.administration.news | |
| 25 | + * @package administration.news | |
| 13 | 26 | */ |
| 14 | 27 | |
| 15 | 28 | /** |
| ... | ... | @@ -28,7 +41,7 @@ function renderErrorMessage($sErrorMessage) { |
| 28 | 41 | function renderNewsTable() { |
| 29 | 42 | global $default; |
| 30 | 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 | 45 | $aColumns = array("synopsis", "body", "rank", "image", "active", "edit", "preview", "del"); |
| 33 | 46 | $aColumnHeaders = array("Synopsis", "Body", "Rank", "Image", "Active"); |
| 34 | 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 | 10 | |
| 11 | 11 | /** |
| 12 | 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 | 32 | * @version $Revision$ |
| 19 | 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 | 37 | if (checkSession()) { |
| 24 | 38 | |
| 25 | 39 | // instantiate my content pattern | ... | ... |
presentation/lookAndFeel/knowledgeTree/administration/news/removeNewsBL.php
| ... | ... | @@ -10,14 +10,28 @@ require_once("$default->fileSystemRoot/presentation/Html.inc"); |
| 10 | 10 | |
| 11 | 11 | /** |
| 12 | 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 | 32 | * @version $Revision$ |
| 19 | 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 | 37 | if (checkSession()) { | ... | ... |