Commit f01456003f07735ed924813ef27b9e5b7774cac1
1 parent
535e75e0
added copyright and gpl notice
removed owl prefix from table aliases git-svn-id: https://kt-dms.svn.sourceforge.net/svnroot/kt-dms/trunk@2579 c91229c3-7414-0410-bfa2-8a42b809f60b
Showing
20 changed files
with
517 additions
and
144 deletions
presentation/lookAndFeel/knowledgeTree/administration/doccheckoutmanagement/editDocCheckoutBL.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 | -*/ | |
| 10 | - | |
| 3 | + * $Id$ | |
| 4 | + * | |
| 5 | + * Edit Document CheckOut Status. | |
| 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.doccheckoutmanagement | |
| 26 | + */ | |
| 11 | 27 | require_once("../../../../../config/dmsDefaults.php"); |
| 12 | 28 | |
| 13 | 29 | if (checkSession()) { |
| ... | ... | @@ -16,8 +32,8 @@ if (checkSession()) { |
| 16 | 32 | require_once("editDocCheckoutUI.inc"); |
| 17 | 33 | require_once("$default->fileSystemRoot/lib/documentmanagement/Document.inc"); |
| 18 | 34 | require_once("$default->fileSystemRoot/lib/documentmanagement/DocumentTransaction.inc"); |
| 19 | - require_once("$default->fileSystemRoot/lib/security/permission.inc"); | |
| 20 | - require_once("$default->fileSystemRoot/lib/links/link.inc"); | |
| 35 | + require_once("$default->fileSystemRoot/lib/security/Permission.inc"); | |
| 36 | + require_once("$default->fileSystemRoot/lib/links/Link.inc"); | |
| 21 | 37 | require_once("$default->fileSystemRoot/presentation/webpageTemplate.inc"); |
| 22 | 38 | require_once("$default->fileSystemRoot/lib/visualpatterns/PatternCustom.inc"); |
| 23 | 39 | require_once("$default->fileSystemRoot/lib/foldermanagement/Folder.inc"); | ... | ... |
presentation/lookAndFeel/knowledgeTree/administration/doccheckoutmanagement/editDocCheckoutUI.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 | -*/ | |
| 10 | - | |
| 3 | + * $Id$ | |
| 4 | + * | |
| 5 | + * Edit Document CheckOut Status 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.doccheckoutmanagement | |
| 26 | + */ | |
| 27 | + | |
| 11 | 28 | function getEditCheckoutSuccessPage(){ |
| 12 | 29 | global $default; |
| 13 | 30 | return statusPage("Edit Document Checkout", "Succesfully updated document checkout.", "", "listDocs"); | ... | ... |
presentation/lookAndFeel/knowledgeTree/administration/doccheckoutmanagement/listDocumentsBL.php
| 1 | 1 | <?php |
| 2 | 2 | /** |
| 3 | -* BL information for viewing a Discussion | |
| 4 | -* | |
| 5 | -* @author Omar Rahbeeni | |
| 6 | -* @date 19 May 2003 | |
| 7 | -* @package presentation.lookAndFeel.knowledgeTree. | |
| 8 | -* | |
| 9 | -*/ | |
| 3 | + * $Id$ | |
| 4 | + * | |
| 5 | + * List checked out documents. | |
| 6 | + * | |
| 7 | + * Copyright (c) 2003 Jam Warehouse http://www.jamwarehouse.com | |
| 8 | + * | |
| 9 | + * This program is free software; you can redistribute it and/or modify | |
| 10 | + * it under the terms of the GNU General Public License as published by | |
| 11 | + * the Free Software Foundation; either version 2 of the License, or | |
| 12 | + * (at your option) any later version. | |
| 13 | + * | |
| 14 | + * This program is distributed in the hope that it will be useful, | |
| 15 | + * but WITHOUT ANY WARRANTY; without even the implied warranty of | |
| 16 | + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
| 17 | + * GNU General Public License for more details. | |
| 18 | + * | |
| 19 | + * You should have received a copy of the GNU General Public License | |
| 20 | + * along with this program; if not, write to the Free Software | |
| 21 | + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | |
| 22 | + * | |
| 23 | + * @version $Revision$ | |
| 24 | + * @author Omar Rahbeeni, Jam Warehouse (Pty) Ltd, South Africa | |
| 25 | + * @package administration.doccheckoutmanagement | |
| 26 | + */ | |
| 10 | 27 | |
| 11 | 28 | require_once("../../../../../config/dmsDefaults.php"); |
| 12 | 29 | require_once("$default->fileSystemRoot/lib/documentmanagement/Document.inc"); | ... | ... |
presentation/lookAndFeel/knowledgeTree/administration/docfieldmanagement/addDocFieldBL.php
| 1 | 1 | <?php |
| 2 | 2 | /** |
| 3 | -* BL information for adding a DocField | |
| 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. | |
| 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 | require_once("$default->fileSystemRoot/lib/visualpatterns/PatternListBox.inc"); |
| 12 | 29 | require_once("$default->fileSystemRoot/lib/visualpatterns/PatternCreate.inc"); |
| 13 | -require_once("$default->fileSystemRoot/lib/security/permission.inc"); | |
| 30 | +require_once("$default->fileSystemRoot/lib/security/Permission.inc"); | |
| 14 | 31 | require_once("$default->fileSystemRoot/lib/visualpatterns/PatternCustom.inc"); |
| 15 | 32 | require_once("$default->fileSystemRoot/lib/foldermanagement/Folder.inc"); |
| 16 | 33 | require_once("$default->fileSystemRoot/presentation/lookAndFeel/knowledgeTree/foldermanagement/folderUI.inc"); | ... | ... |
presentation/lookAndFeel/knowledgeTree/administration/docfieldmanagement/addDocFieldSuccess.php
| 1 | 1 | <?php |
| 2 | 2 | /** |
| 3 | -* Presentation information when adding a Org is successful | |
| 4 | -* | |
| 5 | -* @author Mukhtar Dharsey | |
| 6 | -* @date 5 February 2003 | |
| 7 | -* @package presentation.lookAndFeel.knowledgeTree. | |
| 8 | -* | |
| 9 | -*/ | |
| 3 | + * $Id$ | |
| 4 | + * | |
| 5 | + * Succesfull document field addition. | |
| 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/docfieldmanagement/addDocFieldUI.inc
| 1 | 1 | <?php |
| 2 | 2 | /** |
| 3 | -* Presentation information for adding a DocField | |
| 4 | -* | |
| 5 | -* @author Mukhtar Dharsey | |
| 6 | -* @date 5 February 2003 | |
| 7 | -* @package presentation.lookAndFeel.knowledgeTree. | |
| 8 | -* | |
| 9 | -*/ | |
| 3 | + * $Id$ | |
| 4 | + * | |
| 5 | + * Add 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.docfieldmanagement | |
| 26 | + */ | |
| 27 | + | |
| 10 | 28 | // get add pages |
| 11 | 29 | function getPage() { |
| 12 | 30 | |
| ... | ... | @@ -15,7 +33,7 @@ function getPage() { |
| 15 | 33 | $aParameterNumbers = array(0,1,2,3); |
| 16 | 34 | $aDisplayColumnTypes = array(1,3,2,2); |
| 17 | 35 | $aRequired = array(1,1); |
| 18 | - $aDropDownListTableNames = array(1 => "$default->owl_data_types_table"); | |
| 36 | + $aDropDownListTableNames = array(1 => "$default->data_types_table"); | |
| 19 | 37 | $aDropDownListValueColumns = array(1=>'name'); |
| 20 | 38 | $aDropDownListDisplayColumns = array(1=>'name'); |
| 21 | 39 | ... | ... |
presentation/lookAndFeel/knowledgeTree/administration/docfieldmanagement/editDocFieldBL.php
| 1 | 1 | <?php |
| 2 | 2 | /** |
| 3 | + * $Id$ | |
| 4 | + * | |
| 5 | + * Edit document field. | |
| 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 | +/** | |
| 3 | 28 | * BL information for adding a DocField |
| 4 | 29 | * |
| 5 | 30 | * @author Mukhtar Dharsey |
| ... | ... | @@ -13,7 +38,7 @@ if (checkSession()) { |
| 13 | 38 | require_once("$default->fileSystemRoot/lib/visualpatterns/PatternListBox.inc"); |
| 14 | 39 | require_once("$default->fileSystemRoot/lib/visualpatterns/PatternEditableListFromQuery.inc"); |
| 15 | 40 | require_once("editDocFieldUI.inc"); |
| 16 | - require_once("$default->fileSystemRoot/lib/security/permission.inc"); | |
| 41 | + require_once("$default->fileSystemRoot/lib/security/Permission.inc"); | |
| 17 | 42 | require_once("$default->fileSystemRoot/lib/documentmanagement/DocumentField.inc"); |
| 18 | 43 | require_once("$default->fileSystemRoot/lib/visualpatterns/PatternCustom.inc"); |
| 19 | 44 | require_once("$default->fileSystemRoot/lib/foldermanagement/Folder.inc"); | ... | ... |
presentation/lookAndFeel/knowledgeTree/administration/docfieldmanagement/editDocFieldLookupsBL.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 document field lookups. | |
| 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 | |
| 12 | 30 | if (checkSession()) { |
| ... | ... | @@ -17,7 +35,7 @@ if (checkSession()) { |
| 17 | 35 | require_once("$default->fileSystemRoot/lib/documentmanagement/MetaData.inc"); |
| 18 | 36 | require_once("$default->fileSystemRoot/lib/users/User.inc"); |
| 19 | 37 | require_once("$default->fileSystemRoot/lib/groups/GroupUserLink.inc"); |
| 20 | - require_once("$default->fileSystemRoot/lib/security/permission.inc"); | |
| 38 | + require_once("$default->fileSystemRoot/lib/security/Permission.inc"); | |
| 21 | 39 | require_once("$default->fileSystemRoot/presentation/webpageTemplate.inc"); |
| 22 | 40 | require_once("$default->fileSystemRoot/lib/visualpatterns/PatternCustom.inc"); |
| 23 | 41 | require_once("$default->fileSystemRoot/lib/foldermanagement/Folder.inc"); | ... | ... |
presentation/lookAndFeel/knowledgeTree/administration/docfieldmanagement/editDocFieldLookupsUI.inc
| 1 | 1 | <?php |
| 2 | 2 | /** |
| 3 | -* Presentation information for adding a User | |
| 4 | -* | |
| 5 | -* @author Mukhtar Dharsey | |
| 6 | -* @date 5 February 2003 | |
| 7 | -* @package presentation.lookAndFeel.knowledgeTree. | |
| 8 | -* | |
| 9 | -*/ | |
| 10 | - | |
| 3 | + * $Id$ | |
| 4 | + * | |
| 5 | + * Edit document field lookups 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 | function getLookupNotSet() { |
| 12 | 29 | global $default; |
| 13 | 30 | |
| ... | ... | @@ -67,7 +84,7 @@ function getGroupPage($fDocFieldID) { |
| 67 | 84 | |
| 68 | 85 | $LookupDisplay .= "<b>Current Lookups</b><br>\n"; |
| 69 | 86 | $sQuery = " Select * " . |
| 70 | - " From " . $default->owl_document_fields_lookup_tables . | |
| 87 | + " From " . $default->document_fields_lookup_tables . | |
| 71 | 88 | " WHERE document_field_id=" . $fDocFieldID; |
| 72 | 89 | |
| 73 | 90 | $aColumns = array("name"); |
| ... | ... | @@ -215,10 +232,10 @@ function getPageSuccess() { |
| 215 | 232 | function getUserDisplay($oUser) { |
| 216 | 233 | global $default; |
| 217 | 234 | if (!isset($oUser)) { |
| 218 | - $oPatternListBox = & new PatternListBox($default->owl_users_table, "username", "id", "fUserID"); | |
| 235 | + $oPatternListBox = & new PatternListBox($default->users_table, "username", "id", "fUserID"); | |
| 219 | 236 | if (Permission::userIsUnitAdministrator()) { |
| 220 | - $oPatternListBox->setFromClause("INNER JOIN $default->owl_users_groups_table UGL on ST.id=UGL.user_id " . | |
| 221 | - "INNER JOIN $default->owl_groups_units_table GUL on UGL.group_id=GUL.group_id"); | |
| 237 | + $oPatternListBox->setFromClause("INNER JOIN $default->users_groups_table UGL on ST.id=UGL.user_id " . | |
| 238 | + "INNER JOIN $default->groups_units_table GUL on UGL.group_id=GUL.group_id"); | |
| 222 | 239 | $oPatternListBox->setWhereClause("GUL.unit_id=" . User::getUnitID($_SESSION["userID"])); |
| 223 | 240 | } |
| 224 | 241 | $oPatternListBox->setPostBackOnChange(true); |
| ... | ... | @@ -235,14 +252,14 @@ function getOtherGroupDisplay($oGroup) { |
| 235 | 252 | if (!isset($oGroup)) { |
| 236 | 253 | if (Permission::userIsSystemAdministrator()) { |
| 237 | 254 | // if this is the system administrator, prepend group names with unit name |
| 238 | - $oPatternListBox = & new PatternListBox($default->owl_groups_table, "name", "id", "fOtherGroupID"); | |
| 255 | + $oPatternListBox = & new PatternListBox($default->groups_table, "name", "id", "fOtherGroupID"); | |
| 239 | 256 | $oPatternListBox->setFromClause("LEFT OUTER JOIN groups_units_link GUL on ST.id=GUL.group_id " . |
| 240 | 257 | "LEFT OUTER JOIN units_lookup UL on GUL.unit_id=UL.id"); |
| 241 | 258 | $oPatternListBox->setCompositeDisplayName("DISTINCT COALESCE(CONCAT(CONCAT(UL.name, '-'),ST.name),ST.name)"); |
| 242 | 259 | } else if (Permission::userIsUnitAdministrator()) { |
| 243 | 260 | // else if this is a unit administrator, only display the groups in your unit |
| 244 | - $oPatternListBox = & new PatternListBox($default->owl_groups_table, "name", "id", "fOtherGroupID"); | |
| 245 | - $oPatternListBox->setFromClause("INNER JOIN $default->owl_groups_units_table GUL on ST.id=GUL.group_id"); | |
| 261 | + $oPatternListBox = & new PatternListBox($default->groups_table, "name", "id", "fOtherGroupID"); | |
| 262 | + $oPatternListBox->setFromClause("INNER JOIN $default->groups_units_table GUL on ST.id=GUL.group_id"); | |
| 246 | 263 | $oPatternListBox->setWhereClause("GUL.unit_id=" . User::getUnitID($_SESSION["userID"])); |
| 247 | 264 | } |
| 248 | 265 | return $oPatternListBox->render(); | ... | ... |
presentation/lookAndFeel/knowledgeTree/administration/docfieldmanagement/editDocFieldUI.inc
| 1 | 1 | <?php |
| 2 | 2 | /** |
| 3 | -* Presentation information for adding a DocField | |
| 4 | -* | |
| 5 | -* @author Mukhtar Dharsey | |
| 6 | -* @date 5 February 2003 | |
| 7 | -* @package presentation.lookAndFeel.knowledgeTree. | |
| 8 | -* | |
| 9 | -*/ | |
| 3 | + * $Id$ | |
| 4 | + * | |
| 5 | + * Edit 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.docfieldmanagement | |
| 26 | + */ | |
| 10 | 27 | |
| 11 | 28 | // if its the manual edit page..then display normally |
| 12 | 29 | function getEditPage($iDocFieldID) { |
| ... | ... | @@ -117,7 +134,7 @@ function getEditPageFail() { |
| 117 | 134 | function getDocFieldDisplay($oDocField) { |
| 118 | 135 | global $default; |
| 119 | 136 | if (!isset($oDocField)) { |
| 120 | - $oPatternListBox = & new PatternListBox($default->owl_fields_table, "name", "id", "fDocFieldID"); | |
| 137 | + $oPatternListBox = & new PatternListBox($default->document_fields_table, "name", "id", "fDocFieldID"); | |
| 121 | 138 | $oPatternListBox->setPostBackOnChange(true); |
| 122 | 139 | return $oPatternListBox->render(); |
| 123 | 140 | } else { | ... | ... |
presentation/lookAndFeel/knowledgeTree/administration/docfieldmanagement/listDocFieldsBL.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 document fields. | |
| 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/users/User.inc"); |
| 13 | -require_once("$default->fileSystemRoot/lib/security/permission.inc"); | |
| 30 | +require_once("$default->fileSystemRoot/lib/security/Permission.inc"); | |
| 14 | 31 | require_once("$default->fileSystemRoot/lib/visualpatterns/PatternCustom.inc"); |
| 15 | 32 | require_once("$default->fileSystemRoot/lib/visualpatterns/PatternTableSqlQuery.inc"); |
| 16 | 33 | require_once("$default->fileSystemRoot/lib/visualpatterns/PatternListBox.inc"); | ... | ... |
presentation/lookAndFeel/knowledgeTree/administration/docfieldmanagement/listDocFieldsUI.inc
| 1 | 1 | <?php |
| 2 | 2 | /** |
| 3 | -* Presentation information for listing Documemnt Fields | |
| 4 | -* | |
| 5 | -* @author Omar Rahbeeni | |
| 6 | -* @date 19 May 2003 | |
| 7 | -* @package presentation.lookAndFeel.knowledgeTree. | |
| 8 | -* | |
| 9 | -*/ | |
| 10 | - | |
| 3 | + * $Id$ | |
| 4 | + * | |
| 5 | + * List document fields 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 | + */ | |
| 27 | + | |
| 11 | 28 | function getDocumentFields() { |
| 12 | 29 | global $default; |
| 13 | 30 | |
| 14 | 31 | $sQuery = "SELECT id as DocFieldID, name as DocFieldName, data_type, is_generic, has_lookup, " . |
| 15 | 32 | "'Edit', 'Delete', 'Edit Lookups' " . |
| 16 | - "FROM " . $default->owl_fields_table . " " . | |
| 33 | + "FROM " . $default->document_fields_table . " " . | |
| 17 | 34 | "ORDER BY name"; |
| 18 | 35 | |
| 19 | 36 | $aColumns = array("DocFieldName", "data_type", "is_generic", "has_lookup","Edit", "Delete", "Edit Lookups" ); | ... | ... |
presentation/lookAndFeel/knowledgeTree/administration/docfieldmanagement/metadatamanagement/addMetaDataBL.php
| 1 | 1 | <?php |
| 2 | 2 | /** |
| 3 | -* BL information for adding a DocField | |
| 4 | -* | |
| 5 | -* @author Mukhtar Dharsey | |
| 6 | -* @date 5 February 2003 | |
| 7 | -* @package presentation.lookAndFeel.knowledgeTree. | |
| 8 | -* | |
| 9 | -*/ | |
| 3 | + * $Id$ | |
| 4 | + * | |
| 5 | + * Add MetaData Entry. | |
| 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.metadatamanagement | |
| 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("addMetaDataUI.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/documentmanagement/DocumentField.inc"); |
| 18 | 35 | require_once("$default->fileSystemRoot/lib/documentmanagement/MetaData.inc"); |
| 19 | 36 | require_once("$default->fileSystemRoot/presentation/webpageTemplate.inc"); | ... | ... |
presentation/lookAndFeel/knowledgeTree/administration/docfieldmanagement/metadatamanagement/addMetaDataUI.inc
| 1 | 1 | <?php |
| 2 | - | |
| 2 | +/** | |
| 3 | + * $Id$ | |
| 4 | + * | |
| 5 | + * Add MetaData Entry 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.metadatamanagement | |
| 26 | + */ | |
| 3 | 27 | // if its the manual edit page..then display normally |
| 4 | 28 | function getSelectFieldPage($iDocFieldID) { |
| 5 | 29 | global $default; |
| ... | ... | @@ -147,7 +171,7 @@ function getDocFieldDisplay($oDocField) { |
| 147 | 171 | if (!isset($oDocField)) { |
| 148 | 172 | |
| 149 | 173 | $sWhereClause = " ST.has_lookup = 1" ; |
| 150 | - $oPatternListBox = & new PatternListBox($default->owl_fields_table, "name", "id", "fDocFieldID"); | |
| 174 | + $oPatternListBox = & new PatternListBox($default->document_fields_table, "name", "id", "fDocFieldID"); | |
| 151 | 175 | //$oPatternListBox->setIncludeDefaultValue(true); |
| 152 | 176 | $oPatternListBox->setWhereClause($sWhereClause); |
| 153 | 177 | $oPatternListBox->setPostBackOnChange(true); | ... | ... |
presentation/lookAndFeel/knowledgeTree/administration/docfieldmanagement/metadatamanagement/editMetaDataBL.php
| 1 | 1 | <?php |
| 2 | 2 | /** |
| 3 | -* BL information for adding a DocField | |
| 4 | -* | |
| 5 | -* @author Mukhtar Dharsey | |
| 6 | -* @date 5 February 2003 | |
| 7 | -* @package presentation.lookAndFeel.knowledgeTree. | |
| 8 | -* | |
| 9 | -*/ | |
| 3 | + * $Id$ | |
| 4 | + * | |
| 5 | + * Edit MetaData entry. | |
| 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.metadatamanagement | |
| 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("editMetaDataUI.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/documentmanagement/DocumentField.inc"); |
| 18 | 36 | require_once("$default->fileSystemRoot/lib/documentmanagement/MetaData.inc"); |
| 19 | 37 | require_once("$default->fileSystemRoot/presentation/webpageTemplate.inc"); | ... | ... |
presentation/lookAndFeel/knowledgeTree/administration/docfieldmanagement/metadatamanagement/editMetaDataUI.inc
| 1 | 1 | <?php |
| 2 | - | |
| 2 | +/** | |
| 3 | + * $Id$ | |
| 4 | + * | |
| 5 | + * Edit MetaData 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.metadatamanagement | |
| 26 | + */ | |
| 3 | 27 | function getEditMetaDataFailPage($iDocFieldID){ |
| 4 | 28 | global $default; |
| 5 | 29 | |
| ... | ... | @@ -197,7 +221,7 @@ function getDocFieldDisplay($oDocField) { |
| 197 | 221 | if (!isset($oDocField)) { |
| 198 | 222 | |
| 199 | 223 | $sWhereClause = " ST.has_lookup = 1" ; |
| 200 | - $oPatternListBox = & new PatternListBox($default->owl_fields_table, "name", "id", "fDocFieldID"); | |
| 224 | + $oPatternListBox = & new PatternListBox($default->document_fields_table, "name", "id", "fDocFieldID"); | |
| 201 | 225 | //$oPatternListBox->setIncludeDefaultValue(true); |
| 202 | 226 | $oPatternListBox->setWhereClause($sWhereClause); |
| 203 | 227 | $oPatternListBox->setPostBackOnChange(true); |
| ... | ... | @@ -216,7 +240,7 @@ function getMetaDataDisplay($oMetaData,$iDocFieldID) { |
| 216 | 240 | if (!isset($oMetaData)) { |
| 217 | 241 | |
| 218 | 242 | $sWhereClause = " ST.document_field_id = " . $iDocFieldID; |
| 219 | - $oPatternListBox = & new PatternListBox($default->owl_metadata_table, "name", "id", "fMetaDataID"); | |
| 243 | + $oPatternListBox = & new PatternListBox($default->metadata_table, "name", "id", "fMetaDataID"); | |
| 220 | 244 | //$oPatternListBox->setIncludeDefaultValue(true); |
| 221 | 245 | $oPatternListBox->setWhereClause($sWhereClause); |
| 222 | 246 | $oPatternListBox->setPostBackOnChange(true); | ... | ... |
presentation/lookAndFeel/knowledgeTree/administration/docfieldmanagement/metadatamanagement/removeMetaDataBL.php
| 1 | 1 | <?php |
| 2 | 2 | /** |
| 3 | -* BL information for adding a DocField | |
| 4 | -* | |
| 5 | -* @author Mukhtar Dharsey | |
| 6 | -* @date 5 February 2003 | |
| 7 | -* @package presentation.lookAndFeel.knowledgeTree. | |
| 8 | -* | |
| 9 | -*/ | |
| 3 | + * $Id$ | |
| 4 | + * | |
| 5 | + * Remove MetaData entry. | |
| 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.metadatamanagement | |
| 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("removeMetaDataUI.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/documentmanagement/DocumentField.inc"); |
| 18 | 36 | require_once("$default->fileSystemRoot/lib/documentmanagement/MetaData.inc"); |
| 19 | 37 | require_once("$default->fileSystemRoot/presentation/webpageTemplate.inc"); |
| ... | ... | @@ -53,4 +71,4 @@ if (checkSession()) { |
| 53 | 71 | $main->setCentralPayload($oPatternCustom); |
| 54 | 72 | $main->render(); |
| 55 | 73 | } |
| 56 | 74 | -?> |
| 75 | +?> | |
| 57 | 76 | \ No newline at end of file | ... | ... |
presentation/lookAndFeel/knowledgeTree/administration/docfieldmanagement/metadatamanagement/removeMetaDataUI.inc
| 1 | 1 | <?php |
| 2 | - | |
| 2 | +/** | |
| 3 | + * $Id$ | |
| 4 | + * | |
| 5 | + * Remove MetaData 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.metadatamanagement | |
| 26 | + */ | |
| 27 | + | |
| 3 | 28 | // if its the manual edit page..then display normally |
| 4 | 29 | function getSelectFieldPage($iDocFieldID) { |
| 5 | 30 | global $default; |
| ... | ... | @@ -155,7 +180,7 @@ function getDocFieldDisplay($oDocField) { |
| 155 | 180 | if (!isset($oDocField)) { |
| 156 | 181 | |
| 157 | 182 | $sWhereClause = " ST.has_lookup = 1" ; |
| 158 | - $oPatternListBox = & new PatternListBox($default->owl_fields_table, "name", "id", "fDocFieldID"); | |
| 183 | + $oPatternListBox = & new PatternListBox($default->document_fields_table, "name", "id", "fDocFieldID"); | |
| 159 | 184 | //$oPatternListBox->setIncludeDefaultValue(true); |
| 160 | 185 | $oPatternListBox->setWhereClause($sWhereClause); |
| 161 | 186 | $oPatternListBox->setPostBackOnChange(true); |
| ... | ... | @@ -175,7 +200,7 @@ function getMetaDataDisplay($oMetaData,$iDocFieldID) { |
| 175 | 200 | |
| 176 | 201 | |
| 177 | 202 | $sWhereClause = " ST.document_field_id = " . $iDocFieldID; |
| 178 | - $oPatternListBox = & new PatternListBox($default->owl_metadata_table, "name", "id", "fMetaDataID"); | |
| 203 | + $oPatternListBox = & new PatternListBox($default->metadata_table, "name", "id", "fMetaDataID"); | |
| 179 | 204 | //$oPatternListBox->setIncludeDefaultValue(true); |
| 180 | 205 | $oPatternListBox->setWhereClause($sWhereClause); |
| 181 | 206 | $oPatternListBox->setPostBackOnChange(true); | ... | ... |
presentation/lookAndFeel/knowledgeTree/administration/docfieldmanagement/removeDocFieldBL.php
| 1 | 1 | <?php |
| 2 | 2 | /** |
| 3 | -* BL information for adding a DocField | |
| 4 | -* | |
| 5 | -* @author Mukhtar Dharsey | |
| 6 | -* @date 5 February 2003 | |
| 7 | -* @package presentation.lookAndFeel.knowledgeTree. | |
| 8 | -* | |
| 9 | -*/ | |
| 3 | + * $Id$ | |
| 4 | + * | |
| 5 | + * Remove document field. | |
| 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 | |
| 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("removeDocFieldUI.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/documentmanagement/DocumentField.inc"); |
| 18 | 36 | require_once("$default->fileSystemRoot/lib/documentmanagement/DocumentType.inc"); |
| 19 | 37 | require_once("$default->fileSystemRoot/presentation/webpageTemplate.inc"); | ... | ... |
presentation/lookAndFeel/knowledgeTree/administration/docfieldmanagement/removeDocFieldUI.inc
| ... | ... | @@ -2,11 +2,27 @@ |
| 2 | 2 | /** |
| 3 | 3 | * $Id$ |
| 4 | 4 | * |
| 5 | - * Presentation information for Deleting a DocField | |
| 5 | + * Remove document field UI functions. | |
| 6 | 6 | * |
| 7 | - * @author Mukhtar Dharsey | |
| 8 | - * @date 5 February 2003 | |
| 9 | - * @package presentation.lookAndFeel.knowledgeTree. | |
| 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 | |
| 10 | 26 | */ |
| 11 | 27 | |
| 12 | 28 | // gets the delete stuff |
| ... | ... | @@ -88,8 +104,8 @@ function getFieldMappedPage($sDocumentFieldName, $aDocumentTypes) { |
| 88 | 104 | function getDocFieldDisplay($oDocField) { |
| 89 | 105 | global $default; |
| 90 | 106 | if (!isset($oDocField)) { |
| 91 | - $oPatternListBox = & new PatternListBox($default->owl_fields_table, "name", "id", "fDocFieldID"); | |
| 92 | - $oPatternListBox->setFromClause("LEFT OUTER JOIN $default->owl_document_fields_table DFL ON ST.id=DFL.document_field_id"); | |
| 107 | + $oPatternListBox = & new PatternListBox($default->document_fields_table, "name", "id", "fDocFieldID"); | |
| 108 | + $oPatternListBox->setFromClause("LEFT OUTER JOIN $default->document_fields_link_table DFL ON ST.id=DFL.document_field_id"); | |
| 93 | 109 | $oPatternListBox->setWhereClause("ISNULL(DFL.value)"); |
| 94 | 110 | $oPatternListBox->setPostBackOnChange(true); |
| 95 | 111 | return $oPatternListBox->render(); | ... | ... |