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 | <?php | 1 | <?php |
| 2 | /** | 2 | /** |
| 3 | -* BL information for adding a Link | ||
| 4 | -* | ||
| 5 | -* @author Mukhtar Dharsey | ||
| 6 | -* @date 5 February 2003 | ||
| 7 | -* @package presentation.lookAndFeel.knowledgeTree. | ||
| 8 | -* | ||
| 9 | -*/ | ||
| 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 | require_once("../../../../../config/dmsDefaults.php"); | 27 | require_once("../../../../../config/dmsDefaults.php"); |
| 12 | 28 | ||
| 13 | if (checkSession()) { | 29 | if (checkSession()) { |
| @@ -16,8 +32,8 @@ if (checkSession()) { | @@ -16,8 +32,8 @@ if (checkSession()) { | ||
| 16 | require_once("editDocCheckoutUI.inc"); | 32 | require_once("editDocCheckoutUI.inc"); |
| 17 | require_once("$default->fileSystemRoot/lib/documentmanagement/Document.inc"); | 33 | require_once("$default->fileSystemRoot/lib/documentmanagement/Document.inc"); |
| 18 | require_once("$default->fileSystemRoot/lib/documentmanagement/DocumentTransaction.inc"); | 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 | require_once("$default->fileSystemRoot/presentation/webpageTemplate.inc"); | 37 | require_once("$default->fileSystemRoot/presentation/webpageTemplate.inc"); |
| 22 | require_once("$default->fileSystemRoot/lib/visualpatterns/PatternCustom.inc"); | 38 | require_once("$default->fileSystemRoot/lib/visualpatterns/PatternCustom.inc"); |
| 23 | require_once("$default->fileSystemRoot/lib/foldermanagement/Folder.inc"); | 39 | require_once("$default->fileSystemRoot/lib/foldermanagement/Folder.inc"); |
presentation/lookAndFeel/knowledgeTree/administration/doccheckoutmanagement/editDocCheckoutUI.inc
| 1 | <?php | 1 | <?php |
| 2 | /** | 2 | /** |
| 3 | -* Presentation information for adding a link | ||
| 4 | -* | ||
| 5 | -* @author Mukhtar Dharsey | ||
| 6 | -* @date 5 February 2003 | ||
| 7 | -* @package presentation.lookAndFeel.knowledgeTree. | ||
| 8 | -* | ||
| 9 | -*/ | ||
| 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 | function getEditCheckoutSuccessPage(){ | 28 | function getEditCheckoutSuccessPage(){ |
| 12 | global $default; | 29 | global $default; |
| 13 | return statusPage("Edit Document Checkout", "Succesfully updated document checkout.", "", "listDocs"); | 30 | return statusPage("Edit Document Checkout", "Succesfully updated document checkout.", "", "listDocs"); |
presentation/lookAndFeel/knowledgeTree/administration/doccheckoutmanagement/listDocumentsBL.php
| 1 | <?php | 1 | <?php |
| 2 | /** | 2 | /** |
| 3 | -* BL information for viewing a Discussion | ||
| 4 | -* | ||
| 5 | -* @author Omar Rahbeeni | ||
| 6 | -* @date 19 May 2003 | ||
| 7 | -* @package presentation.lookAndFeel.knowledgeTree. | ||
| 8 | -* | ||
| 9 | -*/ | 3 | + * $Id$ |
| 4 | + * | ||
| 5 | + * List 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 | require_once("../../../../../config/dmsDefaults.php"); | 28 | require_once("../../../../../config/dmsDefaults.php"); |
| 12 | require_once("$default->fileSystemRoot/lib/documentmanagement/Document.inc"); | 29 | require_once("$default->fileSystemRoot/lib/documentmanagement/Document.inc"); |
presentation/lookAndFeel/knowledgeTree/administration/docfieldmanagement/addDocFieldBL.php
| 1 | <?php | 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 | require_once("../../../../../config/dmsDefaults.php"); | 27 | require_once("../../../../../config/dmsDefaults.php"); |
| 11 | require_once("$default->fileSystemRoot/lib/visualpatterns/PatternListBox.inc"); | 28 | require_once("$default->fileSystemRoot/lib/visualpatterns/PatternListBox.inc"); |
| 12 | require_once("$default->fileSystemRoot/lib/visualpatterns/PatternCreate.inc"); | 29 | require_once("$default->fileSystemRoot/lib/visualpatterns/PatternCreate.inc"); |
| 13 | -require_once("$default->fileSystemRoot/lib/security/permission.inc"); | 30 | +require_once("$default->fileSystemRoot/lib/security/Permission.inc"); |
| 14 | require_once("$default->fileSystemRoot/lib/visualpatterns/PatternCustom.inc"); | 31 | require_once("$default->fileSystemRoot/lib/visualpatterns/PatternCustom.inc"); |
| 15 | require_once("$default->fileSystemRoot/lib/foldermanagement/Folder.inc"); | 32 | require_once("$default->fileSystemRoot/lib/foldermanagement/Folder.inc"); |
| 16 | require_once("$default->fileSystemRoot/presentation/lookAndFeel/knowledgeTree/foldermanagement/folderUI.inc"); | 33 | require_once("$default->fileSystemRoot/presentation/lookAndFeel/knowledgeTree/foldermanagement/folderUI.inc"); |
presentation/lookAndFeel/knowledgeTree/administration/docfieldmanagement/addDocFieldSuccess.php
| 1 | <?php | 1 | <?php |
| 2 | /** | 2 | /** |
| 3 | -* Presentation information when adding a Org is successful | ||
| 4 | -* | ||
| 5 | -* @author Mukhtar Dharsey | ||
| 6 | -* @date 5 February 2003 | ||
| 7 | -* @package presentation.lookAndFeel.knowledgeTree. | ||
| 8 | -* | ||
| 9 | -*/ | 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 | require_once("../../../../../config/dmsDefaults.php"); | 28 | require_once("../../../../../config/dmsDefaults.php"); |
| 12 | 29 |
presentation/lookAndFeel/knowledgeTree/administration/docfieldmanagement/addDocFieldUI.inc
| 1 | <?php | 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 | // get add pages | 28 | // get add pages |
| 11 | function getPage() { | 29 | function getPage() { |
| 12 | 30 | ||
| @@ -15,7 +33,7 @@ function getPage() { | @@ -15,7 +33,7 @@ function getPage() { | ||
| 15 | $aParameterNumbers = array(0,1,2,3); | 33 | $aParameterNumbers = array(0,1,2,3); |
| 16 | $aDisplayColumnTypes = array(1,3,2,2); | 34 | $aDisplayColumnTypes = array(1,3,2,2); |
| 17 | $aRequired = array(1,1); | 35 | $aRequired = array(1,1); |
| 18 | - $aDropDownListTableNames = array(1 => "$default->owl_data_types_table"); | 36 | + $aDropDownListTableNames = array(1 => "$default->data_types_table"); |
| 19 | $aDropDownListValueColumns = array(1=>'name'); | 37 | $aDropDownListValueColumns = array(1=>'name'); |
| 20 | $aDropDownListDisplayColumns = array(1=>'name'); | 38 | $aDropDownListDisplayColumns = array(1=>'name'); |
| 21 | 39 |
presentation/lookAndFeel/knowledgeTree/administration/docfieldmanagement/editDocFieldBL.php
| 1 | <?php | 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 | * BL information for adding a DocField | 28 | * BL information for adding a DocField |
| 4 | * | 29 | * |
| 5 | * @author Mukhtar Dharsey | 30 | * @author Mukhtar Dharsey |
| @@ -13,7 +38,7 @@ if (checkSession()) { | @@ -13,7 +38,7 @@ if (checkSession()) { | ||
| 13 | require_once("$default->fileSystemRoot/lib/visualpatterns/PatternListBox.inc"); | 38 | require_once("$default->fileSystemRoot/lib/visualpatterns/PatternListBox.inc"); |
| 14 | require_once("$default->fileSystemRoot/lib/visualpatterns/PatternEditableListFromQuery.inc"); | 39 | require_once("$default->fileSystemRoot/lib/visualpatterns/PatternEditableListFromQuery.inc"); |
| 15 | require_once("editDocFieldUI.inc"); | 40 | require_once("editDocFieldUI.inc"); |
| 16 | - require_once("$default->fileSystemRoot/lib/security/permission.inc"); | 41 | + require_once("$default->fileSystemRoot/lib/security/Permission.inc"); |
| 17 | require_once("$default->fileSystemRoot/lib/documentmanagement/DocumentField.inc"); | 42 | require_once("$default->fileSystemRoot/lib/documentmanagement/DocumentField.inc"); |
| 18 | require_once("$default->fileSystemRoot/lib/visualpatterns/PatternCustom.inc"); | 43 | require_once("$default->fileSystemRoot/lib/visualpatterns/PatternCustom.inc"); |
| 19 | require_once("$default->fileSystemRoot/lib/foldermanagement/Folder.inc"); | 44 | require_once("$default->fileSystemRoot/lib/foldermanagement/Folder.inc"); |
presentation/lookAndFeel/knowledgeTree/administration/docfieldmanagement/editDocFieldLookupsBL.php
| 1 | <?php | 1 | <?php |
| 2 | /** | 2 | /** |
| 3 | -* BL information for adding a User | ||
| 4 | -* | ||
| 5 | -* @author Mukhtar Dharsey | ||
| 6 | -* @date 5 February 2003 | ||
| 7 | -* @package presentation.lookAndFeel.knowledgeTree. | ||
| 8 | -* | ||
| 9 | -*/ | 3 | + * $Id$ |
| 4 | + * | ||
| 5 | + * Edit 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 | require_once("../../../../../config/dmsDefaults.php"); | 28 | require_once("../../../../../config/dmsDefaults.php"); |
| 11 | 29 | ||
| 12 | if (checkSession()) { | 30 | if (checkSession()) { |
| @@ -17,7 +35,7 @@ if (checkSession()) { | @@ -17,7 +35,7 @@ if (checkSession()) { | ||
| 17 | require_once("$default->fileSystemRoot/lib/documentmanagement/MetaData.inc"); | 35 | require_once("$default->fileSystemRoot/lib/documentmanagement/MetaData.inc"); |
| 18 | require_once("$default->fileSystemRoot/lib/users/User.inc"); | 36 | require_once("$default->fileSystemRoot/lib/users/User.inc"); |
| 19 | require_once("$default->fileSystemRoot/lib/groups/GroupUserLink.inc"); | 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 | require_once("$default->fileSystemRoot/presentation/webpageTemplate.inc"); | 39 | require_once("$default->fileSystemRoot/presentation/webpageTemplate.inc"); |
| 22 | require_once("$default->fileSystemRoot/lib/visualpatterns/PatternCustom.inc"); | 40 | require_once("$default->fileSystemRoot/lib/visualpatterns/PatternCustom.inc"); |
| 23 | require_once("$default->fileSystemRoot/lib/foldermanagement/Folder.inc"); | 41 | require_once("$default->fileSystemRoot/lib/foldermanagement/Folder.inc"); |
presentation/lookAndFeel/knowledgeTree/administration/docfieldmanagement/editDocFieldLookupsUI.inc
| 1 | <?php | 1 | <?php |
| 2 | /** | 2 | /** |
| 3 | -* Presentation information for adding a User | ||
| 4 | -* | ||
| 5 | -* @author Mukhtar Dharsey | ||
| 6 | -* @date 5 February 2003 | ||
| 7 | -* @package presentation.lookAndFeel.knowledgeTree. | ||
| 8 | -* | ||
| 9 | -*/ | ||
| 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 | function getLookupNotSet() { | 28 | function getLookupNotSet() { |
| 12 | global $default; | 29 | global $default; |
| 13 | 30 | ||
| @@ -67,7 +84,7 @@ function getGroupPage($fDocFieldID) { | @@ -67,7 +84,7 @@ function getGroupPage($fDocFieldID) { | ||
| 67 | 84 | ||
| 68 | $LookupDisplay .= "<b>Current Lookups</b><br>\n"; | 85 | $LookupDisplay .= "<b>Current Lookups</b><br>\n"; |
| 69 | $sQuery = " Select * " . | 86 | $sQuery = " Select * " . |
| 70 | - " From " . $default->owl_document_fields_lookup_tables . | 87 | + " From " . $default->document_fields_lookup_tables . |
| 71 | " WHERE document_field_id=" . $fDocFieldID; | 88 | " WHERE document_field_id=" . $fDocFieldID; |
| 72 | 89 | ||
| 73 | $aColumns = array("name"); | 90 | $aColumns = array("name"); |
| @@ -215,10 +232,10 @@ function getPageSuccess() { | @@ -215,10 +232,10 @@ function getPageSuccess() { | ||
| 215 | function getUserDisplay($oUser) { | 232 | function getUserDisplay($oUser) { |
| 216 | global $default; | 233 | global $default; |
| 217 | if (!isset($oUser)) { | 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 | if (Permission::userIsUnitAdministrator()) { | 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 | $oPatternListBox->setWhereClause("GUL.unit_id=" . User::getUnitID($_SESSION["userID"])); | 239 | $oPatternListBox->setWhereClause("GUL.unit_id=" . User::getUnitID($_SESSION["userID"])); |
| 223 | } | 240 | } |
| 224 | $oPatternListBox->setPostBackOnChange(true); | 241 | $oPatternListBox->setPostBackOnChange(true); |
| @@ -235,14 +252,14 @@ function getOtherGroupDisplay($oGroup) { | @@ -235,14 +252,14 @@ function getOtherGroupDisplay($oGroup) { | ||
| 235 | if (!isset($oGroup)) { | 252 | if (!isset($oGroup)) { |
| 236 | if (Permission::userIsSystemAdministrator()) { | 253 | if (Permission::userIsSystemAdministrator()) { |
| 237 | // if this is the system administrator, prepend group names with unit name | 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 | $oPatternListBox->setFromClause("LEFT OUTER JOIN groups_units_link GUL on ST.id=GUL.group_id " . | 256 | $oPatternListBox->setFromClause("LEFT OUTER JOIN groups_units_link GUL on ST.id=GUL.group_id " . |
| 240 | "LEFT OUTER JOIN units_lookup UL on GUL.unit_id=UL.id"); | 257 | "LEFT OUTER JOIN units_lookup UL on GUL.unit_id=UL.id"); |
| 241 | $oPatternListBox->setCompositeDisplayName("DISTINCT COALESCE(CONCAT(CONCAT(UL.name, '-'),ST.name),ST.name)"); | 258 | $oPatternListBox->setCompositeDisplayName("DISTINCT COALESCE(CONCAT(CONCAT(UL.name, '-'),ST.name),ST.name)"); |
| 242 | } else if (Permission::userIsUnitAdministrator()) { | 259 | } else if (Permission::userIsUnitAdministrator()) { |
| 243 | // else if this is a unit administrator, only display the groups in your unit | 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 | $oPatternListBox->setWhereClause("GUL.unit_id=" . User::getUnitID($_SESSION["userID"])); | 263 | $oPatternListBox->setWhereClause("GUL.unit_id=" . User::getUnitID($_SESSION["userID"])); |
| 247 | } | 264 | } |
| 248 | return $oPatternListBox->render(); | 265 | return $oPatternListBox->render(); |
presentation/lookAndFeel/knowledgeTree/administration/docfieldmanagement/editDocFieldUI.inc
| 1 | <?php | 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 | // if its the manual edit page..then display normally | 28 | // if its the manual edit page..then display normally |
| 12 | function getEditPage($iDocFieldID) { | 29 | function getEditPage($iDocFieldID) { |
| @@ -117,7 +134,7 @@ function getEditPageFail() { | @@ -117,7 +134,7 @@ function getEditPageFail() { | ||
| 117 | function getDocFieldDisplay($oDocField) { | 134 | function getDocFieldDisplay($oDocField) { |
| 118 | global $default; | 135 | global $default; |
| 119 | if (!isset($oDocField)) { | 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 | $oPatternListBox->setPostBackOnChange(true); | 138 | $oPatternListBox->setPostBackOnChange(true); |
| 122 | return $oPatternListBox->render(); | 139 | return $oPatternListBox->render(); |
| 123 | } else { | 140 | } else { |
presentation/lookAndFeel/knowledgeTree/administration/docfieldmanagement/listDocFieldsBL.php
| 1 | <?php | 1 | <?php |
| 2 | /** | 2 | /** |
| 3 | -* BL information for listing Documemnt Fields | ||
| 4 | -* | ||
| 5 | -* @author Omar Rahbeeni | ||
| 6 | -* @date 19 May 2003 | ||
| 7 | -* @package presentation.lookAndFeel.knowledgeTree. | ||
| 8 | -* | ||
| 9 | -*/ | 3 | + * $Id$ |
| 4 | + * | ||
| 5 | + * List 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 | require_once("../../../../../config/dmsDefaults.php"); | 28 | require_once("../../../../../config/dmsDefaults.php"); |
| 12 | require_once("$default->fileSystemRoot/lib/users/User.inc"); | 29 | require_once("$default->fileSystemRoot/lib/users/User.inc"); |
| 13 | -require_once("$default->fileSystemRoot/lib/security/permission.inc"); | 30 | +require_once("$default->fileSystemRoot/lib/security/Permission.inc"); |
| 14 | require_once("$default->fileSystemRoot/lib/visualpatterns/PatternCustom.inc"); | 31 | require_once("$default->fileSystemRoot/lib/visualpatterns/PatternCustom.inc"); |
| 15 | require_once("$default->fileSystemRoot/lib/visualpatterns/PatternTableSqlQuery.inc"); | 32 | require_once("$default->fileSystemRoot/lib/visualpatterns/PatternTableSqlQuery.inc"); |
| 16 | require_once("$default->fileSystemRoot/lib/visualpatterns/PatternListBox.inc"); | 33 | require_once("$default->fileSystemRoot/lib/visualpatterns/PatternListBox.inc"); |
presentation/lookAndFeel/knowledgeTree/administration/docfieldmanagement/listDocFieldsUI.inc
| 1 | <?php | 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 | function getDocumentFields() { | 28 | function getDocumentFields() { |
| 12 | global $default; | 29 | global $default; |
| 13 | 30 | ||
| 14 | $sQuery = "SELECT id as DocFieldID, name as DocFieldName, data_type, is_generic, has_lookup, " . | 31 | $sQuery = "SELECT id as DocFieldID, name as DocFieldName, data_type, is_generic, has_lookup, " . |
| 15 | "'Edit', 'Delete', 'Edit Lookups' " . | 32 | "'Edit', 'Delete', 'Edit Lookups' " . |
| 16 | - "FROM " . $default->owl_fields_table . " " . | 33 | + "FROM " . $default->document_fields_table . " " . |
| 17 | "ORDER BY name"; | 34 | "ORDER BY name"; |
| 18 | 35 | ||
| 19 | $aColumns = array("DocFieldName", "data_type", "is_generic", "has_lookup","Edit", "Delete", "Edit Lookups" ); | 36 | $aColumns = array("DocFieldName", "data_type", "is_generic", "has_lookup","Edit", "Delete", "Edit Lookups" ); |
presentation/lookAndFeel/knowledgeTree/administration/docfieldmanagement/metadatamanagement/addMetaDataBL.php
| 1 | <?php | 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 | require_once("../../../../../../config/dmsDefaults.php"); | 27 | require_once("../../../../../../config/dmsDefaults.php"); |
| 11 | 28 | ||
| 12 | if (checkSession()) { | 29 | if (checkSession()) { |
| 13 | require_once("$default->fileSystemRoot/lib/visualpatterns/PatternListBox.inc"); | 30 | require_once("$default->fileSystemRoot/lib/visualpatterns/PatternListBox.inc"); |
| 14 | require_once("$default->fileSystemRoot/lib/visualpatterns/PatternEditableListFromQuery.inc"); | 31 | require_once("$default->fileSystemRoot/lib/visualpatterns/PatternEditableListFromQuery.inc"); |
| 15 | require_once("addMetaDataUI.inc"); | 32 | require_once("addMetaDataUI.inc"); |
| 16 | - require_once("$default->fileSystemRoot/lib/security/permission.inc"); | 33 | + require_once("$default->fileSystemRoot/lib/security/Permission.inc"); |
| 17 | require_once("$default->fileSystemRoot/lib/documentmanagement/DocumentField.inc"); | 34 | require_once("$default->fileSystemRoot/lib/documentmanagement/DocumentField.inc"); |
| 18 | require_once("$default->fileSystemRoot/lib/documentmanagement/MetaData.inc"); | 35 | require_once("$default->fileSystemRoot/lib/documentmanagement/MetaData.inc"); |
| 19 | require_once("$default->fileSystemRoot/presentation/webpageTemplate.inc"); | 36 | require_once("$default->fileSystemRoot/presentation/webpageTemplate.inc"); |
presentation/lookAndFeel/knowledgeTree/administration/docfieldmanagement/metadatamanagement/addMetaDataUI.inc
| 1 | <?php | 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 | // if its the manual edit page..then display normally | 27 | // if its the manual edit page..then display normally |
| 4 | function getSelectFieldPage($iDocFieldID) { | 28 | function getSelectFieldPage($iDocFieldID) { |
| 5 | global $default; | 29 | global $default; |
| @@ -147,7 +171,7 @@ function getDocFieldDisplay($oDocField) { | @@ -147,7 +171,7 @@ function getDocFieldDisplay($oDocField) { | ||
| 147 | if (!isset($oDocField)) { | 171 | if (!isset($oDocField)) { |
| 148 | 172 | ||
| 149 | $sWhereClause = " ST.has_lookup = 1" ; | 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 | //$oPatternListBox->setIncludeDefaultValue(true); | 175 | //$oPatternListBox->setIncludeDefaultValue(true); |
| 152 | $oPatternListBox->setWhereClause($sWhereClause); | 176 | $oPatternListBox->setWhereClause($sWhereClause); |
| 153 | $oPatternListBox->setPostBackOnChange(true); | 177 | $oPatternListBox->setPostBackOnChange(true); |
presentation/lookAndFeel/knowledgeTree/administration/docfieldmanagement/metadatamanagement/editMetaDataBL.php
| 1 | <?php | 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 | require_once("../../../../../../config/dmsDefaults.php"); | 28 | require_once("../../../../../../config/dmsDefaults.php"); |
| 11 | 29 | ||
| 12 | if (checkSession()) { | 30 | if (checkSession()) { |
| 13 | require_once("$default->fileSystemRoot/lib/visualpatterns/PatternListBox.inc"); | 31 | require_once("$default->fileSystemRoot/lib/visualpatterns/PatternListBox.inc"); |
| 14 | require_once("$default->fileSystemRoot/lib/visualpatterns/PatternEditableListFromQuery.inc"); | 32 | require_once("$default->fileSystemRoot/lib/visualpatterns/PatternEditableListFromQuery.inc"); |
| 15 | require_once("editMetaDataUI.inc"); | 33 | require_once("editMetaDataUI.inc"); |
| 16 | - require_once("$default->fileSystemRoot/lib/security/permission.inc"); | 34 | + require_once("$default->fileSystemRoot/lib/security/Permission.inc"); |
| 17 | require_once("$default->fileSystemRoot/lib/documentmanagement/DocumentField.inc"); | 35 | require_once("$default->fileSystemRoot/lib/documentmanagement/DocumentField.inc"); |
| 18 | require_once("$default->fileSystemRoot/lib/documentmanagement/MetaData.inc"); | 36 | require_once("$default->fileSystemRoot/lib/documentmanagement/MetaData.inc"); |
| 19 | require_once("$default->fileSystemRoot/presentation/webpageTemplate.inc"); | 37 | require_once("$default->fileSystemRoot/presentation/webpageTemplate.inc"); |
presentation/lookAndFeel/knowledgeTree/administration/docfieldmanagement/metadatamanagement/editMetaDataUI.inc
| 1 | <?php | 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 | function getEditMetaDataFailPage($iDocFieldID){ | 27 | function getEditMetaDataFailPage($iDocFieldID){ |
| 4 | global $default; | 28 | global $default; |
| 5 | 29 | ||
| @@ -197,7 +221,7 @@ function getDocFieldDisplay($oDocField) { | @@ -197,7 +221,7 @@ function getDocFieldDisplay($oDocField) { | ||
| 197 | if (!isset($oDocField)) { | 221 | if (!isset($oDocField)) { |
| 198 | 222 | ||
| 199 | $sWhereClause = " ST.has_lookup = 1" ; | 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 | //$oPatternListBox->setIncludeDefaultValue(true); | 225 | //$oPatternListBox->setIncludeDefaultValue(true); |
| 202 | $oPatternListBox->setWhereClause($sWhereClause); | 226 | $oPatternListBox->setWhereClause($sWhereClause); |
| 203 | $oPatternListBox->setPostBackOnChange(true); | 227 | $oPatternListBox->setPostBackOnChange(true); |
| @@ -216,7 +240,7 @@ function getMetaDataDisplay($oMetaData,$iDocFieldID) { | @@ -216,7 +240,7 @@ function getMetaDataDisplay($oMetaData,$iDocFieldID) { | ||
| 216 | if (!isset($oMetaData)) { | 240 | if (!isset($oMetaData)) { |
| 217 | 241 | ||
| 218 | $sWhereClause = " ST.document_field_id = " . $iDocFieldID; | 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 | //$oPatternListBox->setIncludeDefaultValue(true); | 244 | //$oPatternListBox->setIncludeDefaultValue(true); |
| 221 | $oPatternListBox->setWhereClause($sWhereClause); | 245 | $oPatternListBox->setWhereClause($sWhereClause); |
| 222 | $oPatternListBox->setPostBackOnChange(true); | 246 | $oPatternListBox->setPostBackOnChange(true); |
presentation/lookAndFeel/knowledgeTree/administration/docfieldmanagement/metadatamanagement/removeMetaDataBL.php
| 1 | <?php | 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 | require_once("../../../../../../config/dmsDefaults.php"); | 28 | require_once("../../../../../../config/dmsDefaults.php"); |
| 11 | 29 | ||
| 12 | if (checkSession()) { | 30 | if (checkSession()) { |
| 13 | require_once("$default->fileSystemRoot/lib/visualpatterns/PatternListBox.inc"); | 31 | require_once("$default->fileSystemRoot/lib/visualpatterns/PatternListBox.inc"); |
| 14 | require_once("$default->fileSystemRoot/lib/visualpatterns/PatternEditableListFromQuery.inc"); | 32 | require_once("$default->fileSystemRoot/lib/visualpatterns/PatternEditableListFromQuery.inc"); |
| 15 | require_once("removeMetaDataUI.inc"); | 33 | require_once("removeMetaDataUI.inc"); |
| 16 | - require_once("$default->fileSystemRoot/lib/security/permission.inc"); | 34 | + require_once("$default->fileSystemRoot/lib/security/Permission.inc"); |
| 17 | require_once("$default->fileSystemRoot/lib/documentmanagement/DocumentField.inc"); | 35 | require_once("$default->fileSystemRoot/lib/documentmanagement/DocumentField.inc"); |
| 18 | require_once("$default->fileSystemRoot/lib/documentmanagement/MetaData.inc"); | 36 | require_once("$default->fileSystemRoot/lib/documentmanagement/MetaData.inc"); |
| 19 | require_once("$default->fileSystemRoot/presentation/webpageTemplate.inc"); | 37 | require_once("$default->fileSystemRoot/presentation/webpageTemplate.inc"); |
| @@ -53,4 +71,4 @@ if (checkSession()) { | @@ -53,4 +71,4 @@ if (checkSession()) { | ||
| 53 | $main->setCentralPayload($oPatternCustom); | 71 | $main->setCentralPayload($oPatternCustom); |
| 54 | $main->render(); | 72 | $main->render(); |
| 55 | } | 73 | } |
| 56 | -?> | 74 | -?> |
| 75 | +?> | ||
| 57 | \ No newline at end of file | 76 | \ No newline at end of file |
presentation/lookAndFeel/knowledgeTree/administration/docfieldmanagement/metadatamanagement/removeMetaDataUI.inc
| 1 | <?php | 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 | // if its the manual edit page..then display normally | 28 | // if its the manual edit page..then display normally |
| 4 | function getSelectFieldPage($iDocFieldID) { | 29 | function getSelectFieldPage($iDocFieldID) { |
| 5 | global $default; | 30 | global $default; |
| @@ -155,7 +180,7 @@ function getDocFieldDisplay($oDocField) { | @@ -155,7 +180,7 @@ function getDocFieldDisplay($oDocField) { | ||
| 155 | if (!isset($oDocField)) { | 180 | if (!isset($oDocField)) { |
| 156 | 181 | ||
| 157 | $sWhereClause = " ST.has_lookup = 1" ; | 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 | //$oPatternListBox->setIncludeDefaultValue(true); | 184 | //$oPatternListBox->setIncludeDefaultValue(true); |
| 160 | $oPatternListBox->setWhereClause($sWhereClause); | 185 | $oPatternListBox->setWhereClause($sWhereClause); |
| 161 | $oPatternListBox->setPostBackOnChange(true); | 186 | $oPatternListBox->setPostBackOnChange(true); |
| @@ -175,7 +200,7 @@ function getMetaDataDisplay($oMetaData,$iDocFieldID) { | @@ -175,7 +200,7 @@ function getMetaDataDisplay($oMetaData,$iDocFieldID) { | ||
| 175 | 200 | ||
| 176 | 201 | ||
| 177 | $sWhereClause = " ST.document_field_id = " . $iDocFieldID; | 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 | //$oPatternListBox->setIncludeDefaultValue(true); | 204 | //$oPatternListBox->setIncludeDefaultValue(true); |
| 180 | $oPatternListBox->setWhereClause($sWhereClause); | 205 | $oPatternListBox->setWhereClause($sWhereClause); |
| 181 | $oPatternListBox->setPostBackOnChange(true); | 206 | $oPatternListBox->setPostBackOnChange(true); |
presentation/lookAndFeel/knowledgeTree/administration/docfieldmanagement/removeDocFieldBL.php
| 1 | <?php | 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 | require_once("../../../../../config/dmsDefaults.php"); | 28 | require_once("../../../../../config/dmsDefaults.php"); |
| 11 | 29 | ||
| 12 | if (checkSession()) { | 30 | if (checkSession()) { |
| 13 | require_once("$default->fileSystemRoot/lib/visualpatterns/PatternListBox.inc"); | 31 | require_once("$default->fileSystemRoot/lib/visualpatterns/PatternListBox.inc"); |
| 14 | require_once("$default->fileSystemRoot/lib/visualpatterns/PatternEditableListFromQuery.inc"); | 32 | require_once("$default->fileSystemRoot/lib/visualpatterns/PatternEditableListFromQuery.inc"); |
| 15 | require_once("removeDocFieldUI.inc"); | 33 | require_once("removeDocFieldUI.inc"); |
| 16 | - require_once("$default->fileSystemRoot/lib/security/permission.inc"); | 34 | + require_once("$default->fileSystemRoot/lib/security/Permission.inc"); |
| 17 | require_once("$default->fileSystemRoot/lib/documentmanagement/DocumentField.inc"); | 35 | require_once("$default->fileSystemRoot/lib/documentmanagement/DocumentField.inc"); |
| 18 | require_once("$default->fileSystemRoot/lib/documentmanagement/DocumentType.inc"); | 36 | require_once("$default->fileSystemRoot/lib/documentmanagement/DocumentType.inc"); |
| 19 | require_once("$default->fileSystemRoot/presentation/webpageTemplate.inc"); | 37 | require_once("$default->fileSystemRoot/presentation/webpageTemplate.inc"); |
presentation/lookAndFeel/knowledgeTree/administration/docfieldmanagement/removeDocFieldUI.inc
| @@ -2,11 +2,27 @@ | @@ -2,11 +2,27 @@ | ||
| 2 | /** | 2 | /** |
| 3 | * $Id$ | 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 | // gets the delete stuff | 28 | // gets the delete stuff |
| @@ -88,8 +104,8 @@ function getFieldMappedPage($sDocumentFieldName, $aDocumentTypes) { | @@ -88,8 +104,8 @@ function getFieldMappedPage($sDocumentFieldName, $aDocumentTypes) { | ||
| 88 | function getDocFieldDisplay($oDocField) { | 104 | function getDocFieldDisplay($oDocField) { |
| 89 | global $default; | 105 | global $default; |
| 90 | if (!isset($oDocField)) { | 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 | $oPatternListBox->setWhereClause("ISNULL(DFL.value)"); | 109 | $oPatternListBox->setWhereClause("ISNULL(DFL.value)"); |
| 94 | $oPatternListBox->setPostBackOnChange(true); | 110 | $oPatternListBox->setPostBackOnChange(true); |
| 95 | return $oPatternListBox->render(); | 111 | return $oPatternListBox->render(); |