Commit 4df7fc557c522278c36ae2c8789bef9f3509b797
1 parent
06a70451
added copyright and gpl notice
removed owl prefix from table aliases git-svn-id: https://kt-dms.svn.sourceforge.net/svnroot/kt-dms/trunk@2587 c91229c3-7414-0410-bfa2-8a42b809f60b
Showing
40 changed files
with
858 additions
and
281 deletions
presentation/lookAndFeel/knowledgeTree/documentmanagement/addDocumentBL.php
| 1 | 1 | <?php |
| 2 | 2 | /** |
| 3 | -* Business Logic to add a new document to the | |
| 4 | -* database. Will use addDocumentUI.inc for presentation | |
| 5 | -* | |
| 6 | -* Expected form variable: | |
| 7 | -* o $fFolderID - primary key of folder user is currently browsing | |
| 8 | -* | |
| 9 | -* @author Rob Cherry, Jam Warehouse (Pty) Ltd, South Africa | |
| 10 | -* @date 28 January 2003 | |
| 11 | -* @package presentation.lookAndFeel.knowledgeTree.documentmanagement | |
| 12 | -*/ | |
| 3 | + * $Id$ | |
| 4 | + * | |
| 5 | + * Business Logic to add a new document to the | |
| 6 | + * database. Will use addDocumentUI.inc for presentation | |
| 7 | + * | |
| 8 | + * Expected form variable: | |
| 9 | + * o $fFolderID - primary key of folder user is currently browsing | |
| 10 | + * | |
| 11 | + * Copyright (c) 2003 Jam Warehouse http://www.jamwarehouse.com | |
| 12 | + * | |
| 13 | + * This program is free software; you can redistribute it and/or modify | |
| 14 | + * it under the terms of the GNU General Public License as published by | |
| 15 | + * the Free Software Foundation; either version 2 of the License, or | |
| 16 | + * (at your option) any later version. | |
| 17 | + * | |
| 18 | + * This program is distributed in the hope that it will be useful, | |
| 19 | + * but WITHOUT ANY WARRANTY; without even the implied warranty of | |
| 20 | + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
| 21 | + * GNU General Public License for more details. | |
| 22 | + * | |
| 23 | + * You should have received a copy of the GNU General Public License | |
| 24 | + * along with this program; if not, write to the Free Software | |
| 25 | + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | |
| 26 | + * | |
| 27 | + * @version $Revision$ | |
| 28 | + * @author Rob Cherry, Jam Warehouse (Pty) Ltd, South Africa | |
| 29 | + * @package documentmanagement | |
| 30 | + */ | |
| 13 | 31 | |
| 14 | 32 | require_once("../../../../config/dmsDefaults.php"); |
| 15 | 33 | ... | ... |
presentation/lookAndFeel/knowledgeTree/documentmanagement/addDocumentLinkBL.php
| 1 | 1 | <?php |
| 2 | 2 | /** |
| 3 | 3 | * $Id$ |
| 4 | - * | |
| 4 | + * | |
| 5 | 5 | * Business Logic to link a two documents together in a parent child |
| 6 | 6 | * relationship |
| 7 | 7 | * |
| 8 | 8 | * Expected form variable: |
| 9 | 9 | * o $fDocumentID - primary key of document user is currently viewing |
| 10 | 10 | * |
| 11 | - * Licensed under the GNU GPL. For full terms see the file DOCS/COPYING. | |
| 11 | + * Copyright (c) 2003 Jam Warehouse http://www.jamwarehouse.com | |
| 12 | + * | |
| 13 | + * This program is free software; you can redistribute it and/or modify | |
| 14 | + * it under the terms of the GNU General Public License as published by | |
| 15 | + * the Free Software Foundation; either version 2 of the License, or | |
| 16 | + * (at your option) any later version. | |
| 17 | + * | |
| 18 | + * This program is distributed in the hope that it will be useful, | |
| 19 | + * but WITHOUT ANY WARRANTY; without even the implied warranty of | |
| 20 | + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
| 21 | + * GNU General Public License for more details. | |
| 22 | + * | |
| 23 | + * You should have received a copy of the GNU General Public License | |
| 24 | + * along with this program; if not, write to the Free Software | |
| 25 | + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | |
| 12 | 26 | * |
| 27 | + * @version $Revision$ | |
| 13 | 28 | * @author Rob Cherry, Jam Warehouse (Pty) Ltd, South Africa |
| 14 | - * @package presentation.lookAndFeel.knowledgeTree.documentmanagement | |
| 29 | + * @package documentmanagement | |
| 15 | 30 | */ |
| 16 | 31 | |
| 17 | 32 | require_once("../../../../config/dmsDefaults.php"); |
| ... | ... | @@ -20,7 +35,7 @@ if (checkSession()) { |
| 20 | 35 | require_once("$default->fileSystemRoot/lib/documentmanagement/Document.inc"); |
| 21 | 36 | require_once("$default->fileSystemRoot/lib/documentmanagement/DocumentLink.inc"); |
| 22 | 37 | require_once("$default->fileSystemRoot/lib/visualpatterns/PatternCustom.inc"); |
| 23 | - require_once("$default->fileSystemRoot/lib/security/permission.inc"); | |
| 38 | + require_once("$default->fileSystemRoot/lib/security/Permission.inc"); | |
| 24 | 39 | require_once("$default->fileSystemRoot/presentation/Html.inc"); |
| 25 | 40 | require_once("documentUI.inc"); |
| 26 | 41 | require_once("addDocumentLinkUI.inc"); | ... | ... |
presentation/lookAndFeel/knowledgeTree/documentmanagement/addDocumentLinkUI.inc
| ... | ... | @@ -2,12 +2,27 @@ |
| 2 | 2 | /** |
| 3 | 3 | * $Id$ |
| 4 | 4 | * |
| 5 | - * Presentation logic used to link one document to another | |
| 5 | + * Presentation logic used to link one document to another. | |
| 6 | 6 | * |
| 7 | - * Licensed under the GNU GPL. For full terms see the file DOCS/COPYING. | |
| 7 | + * Copyright (c) 2003 Jam Warehouse http://www.jamwarehouse.com | |
| 8 | 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$ | |
| 9 | 24 | * @author Rob Cherry, Jam Warehouse (Pty) Ltd, South Africa |
| 10 | - * @package presentation.lookAndFeel.knowledgeTree.documentmanagement | |
| 25 | + * @package documentmanagement | |
| 11 | 26 | */ |
| 12 | 27 | |
| 13 | 28 | function getPage($iDocumentID) { | ... | ... |
presentation/lookAndFeel/knowledgeTree/documentmanagement/addDocumentUI.inc
| 1 | 1 | <?php |
| 2 | 2 | /** |
| 3 | -* Presentation data used to add a document. Used by addDocumentBL.php | |
| 4 | -* | |
| 5 | -* @author Rob Cherry, Jam Warehouse (Pty) Ltd, South Africa | |
| 6 | -* @date 28 January 2003 | |
| 7 | -* @package presentation.lookAndFeel.knowledgeTree.documentmanagement | |
| 8 | -* | |
| 9 | -*/ | |
| 3 | + * $Id$ | |
| 4 | + * | |
| 5 | + * Presentation data used to add a document. Used by addDocumentBL.php. | |
| 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 Rob Cherry, Jam Warehouse (Pty) Ltd, South Africa | |
| 25 | + * @package documentmanagement | |
| 26 | + */ | |
| 10 | 27 | |
| 11 | 28 | function getDocumentType($iFolderID, $iDocumentTypeID, $iDependantDocumentID = null) { |
| 12 | 29 | global $default; |
| 13 | 30 | |
| 14 | 31 | $sWhereClause = "FDL.folder_id = $iFolderID"; |
| 15 | - $oPatternListBox = & new PatternListBox("$default->owl_document_types_table", "name", "id", "fDocumentTypeID",$sWhereClause); | |
| 32 | + $oPatternListBox = & new PatternListBox("$default->document_types_table", "name", "id", "fDocumentTypeID",$sWhereClause); | |
| 16 | 33 | $oPatternListBox->setIncludeDefaultValue(true); |
| 17 | - $oPatternListBox->setFromClause("INNER JOIN $default->owl_folder_doctypes_table AS FDL ON ST.id = FDL.document_type_id"); | |
| 34 | + $oPatternListBox->setFromClause("INNER JOIN $default->folder_doctypes_table AS FDL ON ST.id = FDL.document_type_id"); | |
| 18 | 35 | $oPatternListBox->setPostBackOnChange(true); |
| 19 | 36 | $oPatternListBox->setOnChangeAction("setActionAndSubmit('" . $_SERVER["PHP_SELF"] . "?fFolderID=$iFolderID" . (isset($iDependantDocumentID) ? "&fDependantDocumentID=$iDependantDocumentID" : "") . "')"); |
| 20 | 37 | |
| ... | ... | @@ -142,7 +159,7 @@ function getPage($iFolderID, $iDocumentTypeID, $iDependantDocumentID = null, $sM |
| 142 | 159 | } |
| 143 | 160 | |
| 144 | 161 | if ($iDocumentTypeID) { |
| 145 | - $sToRender .= "<table><tr><td><b>Document Type<b></td></tr><tr><td>" . lookupName($default->owl_document_types_table, $iDocumentTypeID) . "</td></tr></table>"; | |
| 162 | + $sToRender .= "<table><tr><td><b>Document Type<b></td></tr><tr><td>" . lookupName($default->document_types_table, $iDocumentTypeID) . "</td></tr></table>"; | |
| 146 | 163 | $sToRender .= getUploadDocument(); |
| 147 | 164 | $sToRender .= getMetaDataForm($iFolderID, $iDocumentTypeID); |
| 148 | 165 | $sActionButtons = "<input type=\"image\" src=\"$default->graphicsUrl/widgets/add.gif\" border=\"0\"/>"; | ... | ... |
presentation/lookAndFeel/knowledgeTree/documentmanagement/browseBL.php
| ... | ... | @@ -8,24 +8,15 @@ require_once("$default->fileSystemRoot/lib/documentmanagement/DocumentTransactio |
| 8 | 8 | require_once("$default->fileSystemRoot/lib/visualpatterns/PatternCustom.inc"); |
| 9 | 9 | require_once("$default->uiDirectory/documentmanagement/browseUI.inc"); |
| 10 | 10 | require_once("$default->fileSystemRoot/presentation/Html.inc"); |
| 11 | - | |
| 12 | 11 | /** |
| 13 | 12 | * $Id$ |
| 14 | - * | |
| 13 | + * | |
| 15 | 14 | * This page controls browsing for documents- this can be done either by |
| 16 | 15 | * folder, category or document type. |
| 17 | 16 | * The relevant permission checking is performed, calls to the business logic |
| 18 | 17 | * layer to retrieve the details of the documents to view are made and the user |
| 19 | 18 | * interface is contructed. |
| 20 | 19 | * |
| 21 | - * Licensed under the GNU GPL. For full terms see the file DOCS/COPYING. | |
| 22 | - * | |
| 23 | - * @version $Revision$ | |
| 24 | - * @author Michael Joseph <michael@jamwarehouse.com>, Jam Warehouse (Pty) Ltd, South Africa | |
| 25 | - * @package presentation.lookAndFeel.knowledgeTree.documentmanagement | |
| 26 | - */ | |
| 27 | - | |
| 28 | -/* | |
| 29 | 20 | * Querystring variables |
| 30 | 21 | * --------------------- |
| 31 | 22 | * fBrowseType - determines whether to browse by (folder, category, documentType) [mandatory] |
| ... | ... | @@ -34,12 +25,28 @@ require_once("$default->fileSystemRoot/presentation/Html.inc"); |
| 34 | 25 | * fDocumentTypeID - the document type id to browse [optional depending on fBrowseType] |
| 35 | 26 | * fSortBy - the document attribute to sort the browse results by |
| 36 | 27 | * fSortDirection - the direction to sort |
| 28 | + * | |
| 29 | + * Copyright (c) 2003 Jam Warehouse http://www.jamwarehouse.com | |
| 30 | + * | |
| 31 | + * This program is free software; you can redistribute it and/or modify | |
| 32 | + * it under the terms of the GNU General Public License as published by | |
| 33 | + * the Free Software Foundation; either version 2 of the License, or | |
| 34 | + * (at your option) any later version. | |
| 35 | + * | |
| 36 | + * This program is distributed in the hope that it will be useful, | |
| 37 | + * but WITHOUT ANY WARRANTY; without even the implied warranty of | |
| 38 | + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
| 39 | + * GNU General Public License for more details. | |
| 40 | + * | |
| 41 | + * You should have received a copy of the GNU General Public License | |
| 42 | + * along with this program; if not, write to the Free Software | |
| 43 | + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | |
| 44 | + * | |
| 45 | + * @version $Revision$ | |
| 46 | + * @author Michael Joseph <michael@jamwarehouse.com>, Jam Warehouse (Pty) Ltd, South Africa | |
| 47 | + * @package documentmanagement | |
| 37 | 48 | */ |
| 38 | 49 | |
| 39 | -// ------------------------------- | |
| 40 | -// page start | |
| 41 | -// ------------------------------- | |
| 42 | - | |
| 43 | 50 | // only if we have a valid session |
| 44 | 51 | if (checkSession()) { |
| 45 | 52 | // retrieve variables | ... | ... |
presentation/lookAndFeel/knowledgeTree/documentmanagement/browseUI.inc
| ... | ... | @@ -4,17 +4,30 @@ require_once("$default->fileSystemRoot/presentation/Html.inc"); |
| 4 | 4 | require_once("$default->uiDirectory/foldermanagement/folderUI.inc"); |
| 5 | 5 | require_once("$default->uiDirectory/documentmanagement/documentUI.inc"); |
| 6 | 6 | require_once("$default->uiDirectory/foldermanagement/addFolderUI.inc"); |
| 7 | - | |
| 8 | 7 | /** |
| 9 | 8 | * $Id$ |
| 10 | 9 | * |
| 11 | 10 | * Document browsing page html UI building functions. |
| 12 | 11 | * |
| 13 | - * Licensed under the GNU GPL. For full terms see the file DOCS/COPYING. | |
| 12 | + * Copyright (c) 2003 Jam Warehouse http://www.jamwarehouse.com | |
| 13 | + * | |
| 14 | + * This program is free software; you can redistribute it and/or modify | |
| 15 | + * it under the terms of the GNU General Public License as published by | |
| 16 | + * the Free Software Foundation; either version 2 of the License, or | |
| 17 | + * (at your option) any later version. | |
| 18 | + * | |
| 19 | + * This program is distributed in the hope that it will be useful, | |
| 20 | + * but WITHOUT ANY WARRANTY; without even the implied warranty of | |
| 21 | + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
| 22 | + * GNU General Public License for more details. | |
| 23 | + * | |
| 24 | + * You should have received a copy of the GNU General Public License | |
| 25 | + * along with this program; if not, write to the Free Software | |
| 26 | + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | |
| 14 | 27 | * |
| 15 | 28 | * @version $Revision$ |
| 16 | 29 | * @author Michael Joseph <michael@jamwarehouse.com>, Jam Warehouse (Pty) Ltd, South Africa |
| 17 | - * @package presentation.lookAndFeel.knowledgeTree.documentmanagement | |
| 30 | + * @package documentmanagement | |
| 18 | 31 | */ |
| 19 | 32 | |
| 20 | 33 | /** | ... | ... |
presentation/lookAndFeel/knowledgeTree/documentmanagement/checkInDocumentBL.php
| ... | ... | @@ -2,17 +2,31 @@ |
| 2 | 2 | /** |
| 3 | 3 | * $Id$ |
| 4 | 4 | * |
| 5 | - * Business Logic to check in a document | |
| 5 | + * Business Logic to check in a document. | |
| 6 | 6 | * |
| 7 | 7 | * Expected form variable: |
| 8 | 8 | * o $fDocumentID - primary key of document user is checking out |
| 9 | 9 | * |
| 10 | - * Licensed under the GNU GPL. For full terms see the file COPYING. | |
| 10 | + * Copyright (c) 2003 Jam Warehouse http://www.jamwarehouse.com | |
| 11 | + * | |
| 12 | + * This program is free software; you can redistribute it and/or modify | |
| 13 | + * it under the terms of the GNU General Public License as published by | |
| 14 | + * the Free Software Foundation; either version 2 of the License, or | |
| 15 | + * (at your option) any later version. | |
| 16 | + * | |
| 17 | + * This program is distributed in the hope that it will be useful, | |
| 18 | + * but WITHOUT ANY WARRANTY; without even the implied warranty of | |
| 19 | + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
| 20 | + * GNU General Public License for more details. | |
| 21 | + * | |
| 22 | + * You should have received a copy of the GNU General Public License | |
| 23 | + * along with this program; if not, write to the Free Software | |
| 24 | + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | |
| 11 | 25 | * |
| 12 | 26 | * @version $Revision$ |
| 13 | 27 | * @author Michael Joseph <michael@jamwarehouse.com>, Jam Warehouse (Pty) Ltd, South Africa |
| 14 | - * @package presentation.lookAndFeel.knowledgeTree.documentmanagement | |
| 15 | -*/ | |
| 28 | + * @package documentmanagement | |
| 29 | + */ | |
| 16 | 30 | |
| 17 | 31 | require_once("../../../../config/dmsDefaults.php"); |
| 18 | 32 | ... | ... |
presentation/lookAndFeel/knowledgeTree/documentmanagement/checkInDocumentUI.inc
| 1 | 1 | <?php |
| 2 | - | |
| 3 | 2 | /** |
| 4 | 3 | * $Id$ |
| 5 | 4 | * |
| 6 | - * HTML information for document stuff. | |
| 5 | + * Check in document UI functions. | |
| 6 | + * | |
| 7 | + * Copyright (c) 2003 Jam Warehouse http://www.jamwarehouse.com | |
| 7 | 8 | * |
| 8 | - * Licensed under the GNU GPL. For full terms see the file DOCS/COPYING. | |
| 9 | + * This program is free software; you can redistribute it and/or modify | |
| 10 | + * it under the terms of the GNU General Public License as published by | |
| 11 | + * the Free Software Foundation; either version 2 of the License, or | |
| 12 | + * (at your option) any later version. | |
| 13 | + * | |
| 14 | + * This program is distributed in the hope that it will be useful, | |
| 15 | + * but WITHOUT ANY WARRANTY; without even the implied warranty of | |
| 16 | + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
| 17 | + * GNU General Public License for more details. | |
| 18 | + * | |
| 19 | + * You should have received a copy of the GNU General Public License | |
| 20 | + * along with this program; if not, write to the Free Software | |
| 21 | + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | |
| 9 | 22 | * |
| 10 | 23 | * @version $Revision$ |
| 11 | 24 | * @author Michael Joseph <michael@jamwarehouse.com>, Jam Warehouse (Pty) Ltd, South Africa |
| 12 | - * @package presentation.lookAndFeel.knowledgeTree.documentmanagement | |
| 25 | + * @package documentmanagement | |
| 13 | 26 | */ |
| 14 | 27 | |
| 15 | 28 | /** | ... | ... |
presentation/lookAndFeel/knowledgeTree/documentmanagement/checkOutDocumentBL.php
| ... | ... | @@ -7,11 +7,25 @@ |
| 7 | 7 | * Expected form variable: |
| 8 | 8 | * o $fDocumentID - primary key of document user is checking out |
| 9 | 9 | * |
| 10 | - * Licensed under the GNU GPL. For full terms see the file COPYING. | |
| 10 | + * Copyright (c) 2003 Jam Warehouse http://www.jamwarehouse.com | |
| 11 | + * | |
| 12 | + * This program is free software; you can redistribute it and/or modify | |
| 13 | + * it under the terms of the GNU General Public License as published by | |
| 14 | + * the Free Software Foundation; either version 2 of the License, or | |
| 15 | + * (at your option) any later version. | |
| 16 | + * | |
| 17 | + * This program is distributed in the hope that it will be useful, | |
| 18 | + * but WITHOUT ANY WARRANTY; without even the implied warranty of | |
| 19 | + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
| 20 | + * GNU General Public License for more details. | |
| 21 | + * | |
| 22 | + * You should have received a copy of the GNU General Public License | |
| 23 | + * along with this program; if not, write to the Free Software | |
| 24 | + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | |
| 11 | 25 | * |
| 12 | 26 | * @version $Revision$ |
| 13 | 27 | * @author Michael Joseph <michael@jamwarehouse.com>, Jam Warehouse (Pty) Ltd, South Africa |
| 14 | - * @package presentation.lookAndFeel.knowledgeTree.documentmanagement | |
| 28 | + * @package documentmanagement | |
| 15 | 29 | */ |
| 16 | 30 | |
| 17 | 31 | require_once("../../../../config/dmsDefaults.php"); | ... | ... |
presentation/lookAndFeel/knowledgeTree/documentmanagement/checkOutDocumentUI.inc
| 1 | 1 | <?php |
| 2 | - | |
| 3 | 2 | /** |
| 4 | 3 | * $Id$ |
| 5 | 4 | * |
| 6 | - * HTML information for document stuff. | |
| 5 | + * Check out document UI functions. | |
| 6 | + * | |
| 7 | + * Copyright (c) 2003 Jam Warehouse http://www.jamwarehouse.com | |
| 7 | 8 | * |
| 8 | - * Licensed under the GNU GPL. For full terms see the file DOCS/COPYING. | |
| 9 | + * This program is free software; you can redistribute it and/or modify | |
| 10 | + * it under the terms of the GNU General Public License as published by | |
| 11 | + * the Free Software Foundation; either version 2 of the License, or | |
| 12 | + * (at your option) any later version. | |
| 13 | + * | |
| 14 | + * This program is distributed in the hope that it will be useful, | |
| 15 | + * but WITHOUT ANY WARRANTY; without even the implied warranty of | |
| 16 | + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
| 17 | + * GNU General Public License for more details. | |
| 18 | + * | |
| 19 | + * You should have received a copy of the GNU General Public License | |
| 20 | + * along with this program; if not, write to the Free Software | |
| 21 | + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | |
| 9 | 22 | * |
| 10 | 23 | * @version $Revision$ |
| 11 | 24 | * @author Michael Joseph <michael@jamwarehouse.com>, Jam Warehouse (Pty) Ltd, South Africa |
| 12 | - * @package presentation.lookAndFeel.knowledgeTree.documentmanagement | |
| 25 | + * @package documentmanagement | |
| 13 | 26 | */ |
| 14 | 27 | |
| 15 | 28 | /** | ... | ... |
presentation/lookAndFeel/knowledgeTree/documentmanagement/collaborationBL.php
| 1 | 1 | <?php |
| 2 | 2 | /** |
| 3 | 3 | * $Id$ |
| 4 | - * | |
| 4 | + * | |
| 5 | 5 | * Document collaboration business logic - contains business logic to set up |
| 6 | 6 | * document approval process |
| 7 | 7 | * |
| ... | ... | @@ -12,8 +12,25 @@ |
| 12 | 12 | * o fDocumentID - primary key of document this folder collaboration entry is for |
| 13 | 13 | * o fIsActive - whether the document collaboration set is active or not |
| 14 | 14 | * |
| 15 | + * Copyright (c) 2003 Jam Warehouse http://www.jamwarehouse.com | |
| 16 | + * | |
| 17 | + * This program is free software; you can redistribute it and/or modify | |
| 18 | + * it under the terms of the GNU General Public License as published by | |
| 19 | + * the Free Software Foundation; either version 2 of the License, or | |
| 20 | + * (at your option) any later version. | |
| 21 | + * | |
| 22 | + * This program is distributed in the hope that it will be useful, | |
| 23 | + * but WITHOUT ANY WARRANTY; without even the implied warranty of | |
| 24 | + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
| 25 | + * GNU General Public License for more details. | |
| 26 | + * | |
| 27 | + * You should have received a copy of the GNU General Public License | |
| 28 | + * along with this program; if not, write to the Free Software | |
| 29 | + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | |
| 30 | + * | |
| 31 | + * @version $Revision$ | |
| 15 | 32 | * @author Rob Cherry, Jam Warehouse (Pty) Ltd, South Africa |
| 16 | - * @package presentation.lookAndFeel.knowledgeTree.documentmanagement | |
| 33 | + * @package documentmanagement | |
| 17 | 34 | */ |
| 18 | 35 | |
| 19 | 36 | require_once("../../../../config/dmsDefaults.php"); |
| ... | ... | @@ -30,7 +47,7 @@ if (checkSession()) { |
| 30 | 47 | require_once("$default->fileSystemRoot/lib/email/Email.inc"); |
| 31 | 48 | require_once("$default->fileSystemRoot/lib/groups/Group.inc"); |
| 32 | 49 | require_once("$default->fileSystemRoot/presentation/Html.inc"); |
| 33 | - require_once("$default->fileSystemRoot/lib/security/permission.inc"); | |
| 50 | + require_once("$default->fileSystemRoot/lib/security/Permission.inc"); | |
| 34 | 51 | require_once("$default->fileSystemRoot/lib/visualpatterns/PatternCustom.inc"); |
| 35 | 52 | require_once("documentUI.inc"); |
| 36 | 53 | require_once("collaborationUI.inc"); | ... | ... |
presentation/lookAndFeel/knowledgeTree/documentmanagement/collaborationRollbackBL.php
| 1 | 1 | <?php |
| 2 | - | |
| 3 | 2 | /** |
| 4 | -* Business logic used for the rollback of a collaboration step | |
| 5 | -* | |
| 6 | -* | |
| 7 | -*/ | |
| 3 | + * $Id$ | |
| 4 | + * | |
| 5 | + * Business logic used for the rollback of a collaboration step. | |
| 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 Rob Cherry, Jam Warehouse (Pty) Ltd, South Africa | |
| 25 | + * @package documentmanagement | |
| 26 | + */ | |
| 8 | 27 | |
| 9 | 28 | require_once("../../../../config/dmsDefaults.php"); |
| 10 | 29 | |
| 11 | -require_once("$default->fileSystemRoot/lib/security/permission.inc"); | |
| 30 | +require_once("$default->fileSystemRoot/lib/security/Permission.inc"); | |
| 12 | 31 | |
| 13 | 32 | require_once("$default->fileSystemRoot/lib/email/Email.inc"); |
| 14 | 33 | ... | ... |
presentation/lookAndFeel/knowledgeTree/documentmanagement/collaborationRollbackUI.inc
| 1 | 1 | <?php |
| 2 | - | |
| 2 | +/** | |
| 3 | + * $Id$ | |
| 4 | + * | |
| 5 | + * Collaboration rollback 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 Rob Cherry, Jam Warehouse (Pty) Ltd, South Africa | |
| 25 | + * @package documentmanagement | |
| 26 | + */ | |
| 3 | 27 | function getDocumentPath($iFolderID, $iDocumentID, $sDocumentName) { |
| 4 | 28 | global $default; |
| 5 | 29 | $sSectionName = $default->siteMap->getSectionName(substr($_SERVER["PHP_SELF"], strlen($default->rootUrl), strlen($_SERVER["PHP_SELF"]))); | ... | ... |
presentation/lookAndFeel/knowledgeTree/documentmanagement/collaborationUI.inc
| 1 | 1 | <?php |
| 2 | 2 | /** |
| 3 | 3 | * $Id$ |
| 4 | - * | |
| 5 | - * Presentation data for collaborationBL.php | |
| 6 | 4 | * |
| 7 | - * Licensed under the GNU GPL. For full terms see the file DOCS/COPYING. | |
| 5 | + * Presentation data for collaborationBL.php. | |
| 8 | 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$ | |
| 9 | 24 | * @author Rob Cherry, Jam Warehouse (Pty) Ltd, South Africa |
| 10 | - * @package presentation.lookAndFeel.knowledgeTree.documentmanagement | |
| 25 | + * @package documentmanagement | |
| 11 | 26 | */ |
| 12 | 27 | |
| 13 | 28 | function getGroupRow($iGroupID) { |
| ... | ... | @@ -17,8 +32,8 @@ function getGroupRow($iGroupID) { |
| 17 | 32 | |
| 18 | 33 | function getUserDropDown($iGroupID, $iUserID) { |
| 19 | 34 | global $default; |
| 20 | - $oPatternListBox = & new PatternListBox("$default->owl_users_table", "name", "id", "fUserID"); | |
| 21 | - $sFromClause = "INNER JOIN $default->owl_users_groups_table AS UGL ON ST.id = UGL.user_id "; | |
| 35 | + $oPatternListBox = & new PatternListBox("$default->users_table", "name", "id", "fUserID"); | |
| 36 | + $sFromClause = "INNER JOIN $default->users_groups_table AS UGL ON ST.id = UGL.user_id "; | |
| 22 | 37 | $oPatternListBox->setFromClause($sFromClause); |
| 23 | 38 | $sWhereClause = "UGL.group_id = $iGroupID"; |
| 24 | 39 | $oPatternListBox->setWhereClause($sWhereClause); |
| ... | ... | @@ -36,7 +51,7 @@ function getRole($iRoleID) { |
| 36 | 51 | $oRole = Role::get($iRoleID); |
| 37 | 52 | return "<input type=\"hidden\" name=\"fRoleID\" value=\"$iRoleID\" />" . $oRole->getName(); |
| 38 | 53 | /*global $default; |
| 39 | - $oPatternListBox = & new PatternListBox("$default->owl_roles_table", "name", "id", "fRoleID"); | |
| 54 | + $oPatternListBox = & new PatternListBox("$default->roles_table", "name", "id", "fRoleID"); | |
| 40 | 55 | if (isset($iRoleID)) { |
| 41 | 56 | $oPatternListBox->setSelectedValue($iRoleID); |
| 42 | 57 | } | ... | ... |
presentation/lookAndFeel/knowledgeTree/documentmanagement/createDependantDocumentBL.php
| 1 | 1 | <?php |
| 2 | - | |
| 3 | -/** Business logic for requesting the creation of a new document that | |
| 4 | -* will be linked to an existing one | |
| 5 | -* | |
| 6 | -* @author Rob Cherry, Jam Warehouse (Pty) Ltd, South Africa | |
| 7 | -* @date 10 June 2003 | |
| 8 | -*/ | |
| 9 | - | |
| 2 | +/** | |
| 3 | + * $Id$ | |
| 4 | + * | |
| 5 | + * Business logic for requesting the creation of a new document that | |
| 6 | + * will be linked to an existing one. | |
| 7 | + * | |
| 8 | + * Copyright (c) 2003 Jam Warehouse http://www.jamwarehouse.com | |
| 9 | + * | |
| 10 | + * This program is free software; you can redistribute it and/or modify | |
| 11 | + * it under the terms of the GNU General Public License as published by | |
| 12 | + * the Free Software Foundation; either version 2 of the License, or | |
| 13 | + * (at your option) any later version. | |
| 14 | + * | |
| 15 | + * This program is distributed in the hope that it will be useful, | |
| 16 | + * but WITHOUT ANY WARRANTY; without even the implied warranty of | |
| 17 | + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
| 18 | + * GNU General Public License for more details. | |
| 19 | + * | |
| 20 | + * You should have received a copy of the GNU General Public License | |
| 21 | + * along with this program; if not, write to the Free Software | |
| 22 | + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | |
| 23 | + * | |
| 24 | + * @version $Revision$ | |
| 25 | + * @author Rob Cherry, Jam Warehouse (Pty) Ltd, South Africa | |
| 26 | + * @package documentmanagement | |
| 27 | + */ | |
| 10 | 28 | |
| 11 | 29 | require_once("../../../../config/dmsDefaults.php"); |
| 12 | 30 | |
| ... | ... | @@ -16,7 +34,7 @@ if (checkSession()) { |
| 16 | 34 | require_once("$default->fileSystemRoot/lib/visualpatterns/PatternListBox.inc"); |
| 17 | 35 | require_once("$default->fileSystemRoot/lib/foldermanagement/Folder.inc"); |
| 18 | 36 | require_once("$default->fileSystemRoot/lib/documentmanagement/Document.inc"); |
| 19 | - require_once("$default->fileSystemRoot/lib/security/permission.inc"); | |
| 37 | + require_once("$default->fileSystemRoot/lib/security/Permission.inc"); | |
| 20 | 38 | require_once("$default->fileSystemRoot/lib/email/Email.inc"); |
| 21 | 39 | require_once("$default->fileSystemRoot/lib/documentmanagement/DependantDocumentInstance.inc"); |
| 22 | 40 | require_once("$default->fileSystemRoot/presentation/Html.inc"); | ... | ... |
presentation/lookAndFeel/knowledgeTree/documentmanagement/createDependantDocumentUI.inc
| 1 | 1 | <?php |
| 2 | - | |
| 2 | +/** | |
| 3 | + * $Id$ | |
| 4 | + * | |
| 5 | + * UI functions for requesting the creation of a new document that | |
| 6 | + * will be linked to an existing one. | |
| 7 | + * | |
| 8 | + * Copyright (c) 2003 Jam Warehouse http://www.jamwarehouse.com | |
| 9 | + * | |
| 10 | + * This program is free software; you can redistribute it and/or modify | |
| 11 | + * it under the terms of the GNU General Public License as published by | |
| 12 | + * the Free Software Foundation; either version 2 of the License, or | |
| 13 | + * (at your option) any later version. | |
| 14 | + * | |
| 15 | + * This program is distributed in the hope that it will be useful, | |
| 16 | + * but WITHOUT ANY WARRANTY; without even the implied warranty of | |
| 17 | + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
| 18 | + * GNU General Public License for more details. | |
| 19 | + * | |
| 20 | + * You should have received a copy of the GNU General Public License | |
| 21 | + * along with this program; if not, write to the Free Software | |
| 22 | + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | |
| 23 | + * | |
| 24 | + * @version $Revision$ | |
| 25 | + * @author Rob Cherry, Jam Warehouse (Pty) Ltd, South Africa | |
| 26 | + * @package documentmanagement | |
| 27 | + */ | |
| 3 | 28 | |
| 4 | 29 | function getFolderPath($iFolderID) { |
| 5 | 30 | global $default; |
| ... | ... | @@ -49,7 +74,7 @@ function getUserDropDown($iUnitID, $iUserID) { |
| 49 | 74 | if (!isset($iUnitID)) { |
| 50 | 75 | $iUnitID = -1; |
| 51 | 76 | } |
| 52 | - $oPatternListBox = & new PatternListBox($default->owl_users_table, "Name", "id", "fUserID", "GUL.unit_id = $iUnitID"); | |
| 77 | + $oPatternListBox = & new PatternListBox($default->users_table, "Name", "id", "fUserID", "GUL.unit_id = $iUnitID"); | |
| 53 | 78 | $sFromClause = "INNER join users_groups_link AS UGL ON UGL.user_id = ST.id " . |
| 54 | 79 | "INNER JOIN groups_units_link AS GUL ON GUL.group_id = UGL.group_id "; |
| 55 | 80 | $oPatternListBox->setFromClause($sFromClause); |
| ... | ... | @@ -66,7 +91,7 @@ function getUnitDropDown($iDocumentID, $iUnitID) { |
| 66 | 91 | if (!isset($iUnitID)) { |
| 67 | 92 | $iUnitID = -1; |
| 68 | 93 | } |
| 69 | - $oPatternListBox = & new PatternListBox($default->owl_units_table, "Name", "id", "fUnitID"); | |
| 94 | + $oPatternListBox = & new PatternListBox($default->units_table, "Name", "id", "fUnitID"); | |
| 70 | 95 | $oPatternListBox->setPostBackOnChange(true); |
| 71 | 96 | $oPatternListBox->setOnChangeAction("setActionAndSubmit('" . $_SERVER["PHP_SELF"] . "?fDocumentID=$iDocumentID')"); |
| 72 | 97 | if (isset($iUnitID)) { | ... | ... |
presentation/lookAndFeel/knowledgeTree/documentmanagement/deleteDocumentBL.php
| 1 | 1 | <?php |
| 2 | - | |
| 3 | 2 | /** |
| 4 | -* Business logic concerned with the deletion of a document. | |
| 5 | -* Will use documentDeleteUI for presentation information | |
| 6 | -* | |
| 7 | -* @author Rob Cherry, Jam Warehouse South Africa (Pty) Ltd | |
| 8 | -* @date 19 February 2003 | |
| 9 | -* @package presentation.lookAndFeel.knowledgeTree.documentmanagement | |
| 10 | -*/ | |
| 3 | + * $Id$ | |
| 4 | + * | |
| 5 | + * Business logic concerned with the deletion of a document. | |
| 6 | + * Will use deleteDocumentUI for presentation information. | |
| 7 | + * | |
| 8 | + * Copyright (c) 2003 Jam Warehouse http://www.jamwarehouse.com | |
| 9 | + * | |
| 10 | + * This program is free software; you can redistribute it and/or modify | |
| 11 | + * it under the terms of the GNU General Public License as published by | |
| 12 | + * the Free Software Foundation; either version 2 of the License, or | |
| 13 | + * (at your option) any later version. | |
| 14 | + * | |
| 15 | + * This program is distributed in the hope that it will be useful, | |
| 16 | + * but WITHOUT ANY WARRANTY; without even the implied warranty of | |
| 17 | + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
| 18 | + * GNU General Public License for more details. | |
| 19 | + * | |
| 20 | + * You should have received a copy of the GNU General Public License | |
| 21 | + * along with this program; if not, write to the Free Software | |
| 22 | + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | |
| 23 | + * | |
| 24 | + * @version $Revision$ | |
| 25 | + * @author Rob Cherry, Jam Warehouse (Pty) Ltd, South Africa | |
| 26 | + * @package documentmanagement | |
| 27 | + */ | |
| 11 | 28 | |
| 12 | 29 | require_once("../../../../config/dmsDefaults.php"); |
| 13 | 30 | require_once("$default->fileSystemRoot/lib/foldermanagement/Folder.inc"); | ... | ... |
presentation/lookAndFeel/knowledgeTree/documentmanagement/deleteDocumentUI.inc
| 1 | 1 | <?php |
| 2 | - | |
| 3 | 2 | /** |
| 4 | -* Presentation information for documentDeleteBL.php | |
| 5 | -* | |
| 6 | -* @author Rob Cherry, Jam Warehouse South Africa (Pty) Ltd | |
| 7 | -* @date 19 February 2003 | |
| 8 | -* @package presentation.lookAndFeel.knowledgeTree.documentmanagement | |
| 9 | -* | |
| 10 | -*/ | |
| 11 | - | |
| 12 | -/*function renderHeading($sHeading) { | |
| 13 | - global $default; | |
| 14 | - $sSectionName = $default->siteMap->getSectionName(substr($_SERVER["PHP_SELF"], strlen($default->rootUrl), strlen($_SERVER["PHP_SELF"]))); | |
| 15 | - $sColor = $default->siteMap->getSectionColour($sSectionName, "th"); | |
| 16 | - $sToRender = "<table border=\"0\" width=\"600\">\n"; | |
| 17 | - $sToRender .= "<tr align=\"left\"><th class=\"sectionHeading\" bgcolor=\"$sColor\">$sHeading</th></tr>\n"; | |
| 18 | - $sToRender .= "<tr/>\n"; | |
| 19 | - $sToRender .= "<tr/>\n"; | |
| 20 | - $sToRender .= "</table>\n"; | |
| 21 | - return $sToRender; | |
| 22 | -}*/ | |
| 3 | + * $Id$ | |
| 4 | + * | |
| 5 | + * Presentation information for documentDeleteBL.php. | |
| 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 Rob Cherry, Jam Warehouse (Pty) Ltd, South Africa | |
| 25 | + * @package documentmanagement | |
| 26 | + */ | |
| 23 | 27 | |
| 24 | 28 | function getDocumentPath($iFolderID, $sDocumentName) { |
| 25 | 29 | global $default; | ... | ... |
presentation/lookAndFeel/knowledgeTree/documentmanagement/documentUI.inc
| ... | ... | @@ -2,13 +2,27 @@ |
| 2 | 2 | /** |
| 3 | 3 | * $Id$ |
| 4 | 4 | * |
| 5 | - * HTML information for document stuff. | |
| 5 | + * Common document UI functions. | |
| 6 | 6 | * |
| 7 | - * Licensed under the GNU GPL. For full terms see the file DOCS/COPYING. | |
| 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 | |
| 8 | 22 | * |
| 9 | 23 | * @version $Revision$ |
| 10 | 24 | * @author Michael Joseph <michael@jamwarehouse.com>, Jam Warehouse (Pty) Ltd, South Africa |
| 11 | - * @package presentation.lookAndFeel.knowledgeTree.documentmanagement | |
| 25 | + * @package documentmanagement | |
| 12 | 26 | */ |
| 13 | 27 | |
| 14 | 28 | require_once("$default->fileSystemRoot/presentation/lookAndFeel/knowledgeTree/foldermanagement/folderUI.inc"); | ... | ... |
presentation/lookAndFeel/knowledgeTree/documentmanagement/downloadBL.php
| ... | ... | @@ -7,15 +7,30 @@ |
| 7 | 7 | * Expected form varaibles: |
| 8 | 8 | * o $fDocumentID - Primary key of document to view |
| 9 | 9 | * |
| 10 | - * Licensed under the GNU GPL. For full terms see the file DOCS/COPYING. | |
| 10 | + * Copyright (c) 2003 Jam Warehouse http://www.jamwarehouse.com | |
| 11 | 11 | * |
| 12 | + * This program is free software; you can redistribute it and/or modify | |
| 13 | + * it under the terms of the GNU General Public License as published by | |
| 14 | + * the Free Software Foundation; either version 2 of the License, or | |
| 15 | + * (at your option) any later version. | |
| 16 | + * | |
| 17 | + * This program is distributed in the hope that it will be useful, | |
| 18 | + * but WITHOUT ANY WARRANTY; without even the implied warranty of | |
| 19 | + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
| 20 | + * GNU General Public License for more details. | |
| 21 | + * | |
| 22 | + * You should have received a copy of the GNU General Public License | |
| 23 | + * along with this program; if not, write to the Free Software | |
| 24 | + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | |
| 25 | + * | |
| 26 | + * @version $Revision$ | |
| 12 | 27 | * @author Michael Joseph <michael@jamwarehouse.com>, Jam Warehouse (Pty) Ltd, South Africa |
| 13 | - * @package presentation.lookAndFeel.knowledgeTree.documentmanagement | |
| 28 | + * @package documentmanagement | |
| 14 | 29 | */ |
| 15 | 30 | |
| 16 | 31 | require_once("../../../../config/dmsDefaults.php"); |
| 17 | 32 | |
| 18 | -require_once("$default->fileSystemRoot/lib/security/permission.inc"); | |
| 33 | +require_once("$default->fileSystemRoot/lib/security/Permission.inc"); | |
| 19 | 34 | require_once("$default->fileSystemRoot/lib/documentmanagement/PhysicalDocumentManager.inc"); |
| 20 | 35 | require_once("$default->fileSystemRoot/lib/documentmanagement/DocumentTransaction.inc"); |
| 21 | 36 | require_once("$default->fileSystemRoot/lib/documentmanagement/Document.inc"); | ... | ... |
presentation/lookAndFeel/knowledgeTree/documentmanagement/emailBL.php
| 1 | 1 | <?php |
| 2 | 2 | /** |
| 3 | -* Business logic to email link to a document | |
| 4 | -* | |
| 5 | -* @author Rob Cherry, Jam Warehouse (Pty) Ltd, South Africa | |
| 6 | -* @date 31 January 2003 | |
| 7 | -* @package presentation.lookAndFeel.knowledgeTree.documentmanagement | |
| 8 | -* | |
| 9 | -*/ | |
| 3 | + * $Id$ | |
| 4 | + * | |
| 5 | + * Business logic to email link to a document. | |
| 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 Rob Cherry, Jam Warehouse (Pty) Ltd, South Africa | |
| 25 | + * @package documentmanagement | |
| 26 | + */ | |
| 10 | 27 | |
| 11 | 28 | require_once("../../../../config/dmsDefaults.php"); |
| 12 | 29 | if (checkSession()) { |
| 13 | 30 | if (isset($fDocumentID)) { |
| 14 | - require_once("$default->fileSystemRoot/lib/security/permission.inc"); | |
| 31 | + require_once("$default->fileSystemRoot/lib/security/Permission.inc"); | |
| 15 | 32 | require_once("$default->fileSystemRoot/lib/documentmanagement/Document.inc"); |
| 16 | 33 | require_once("$default->fileSystemRoot/lib/email/Email.inc"); |
| 17 | 34 | require_once("$default->fileSystemRoot/lib/users/User.inc"); | ... | ... |
presentation/lookAndFeel/knowledgeTree/documentmanagement/emailUI.inc
| 1 | 1 | <?php |
| 2 | 2 | /** |
| 3 | -* Business logic to email a link to a document to a colleauge | |
| 4 | -* | |
| 5 | -* @author Rob Cherry, Jam Warehouse (Pty) Ltd, South Africa | |
| 6 | -* @date 31 January 2003 | |
| 7 | -* @package presentation.lookAndFeel.knowledgeTree.documentmanagement | |
| 8 | -* | |
| 9 | -*/ | |
| 10 | - | |
| 11 | -/*function renderHeading($sHeading) { | |
| 12 | - global $default; | |
| 13 | - $sSectionName = $default->siteMap->getSectionName(substr($_SERVER["PHP_SELF"], strlen($default->rootUrl), strlen($_SERVER["PHP_SELF"]))); | |
| 14 | - $sColor = $default->siteMap->getSectionColour($sSectionName, "th"); | |
| 15 | - $sToRender = "<table border=\"0\" width=\"600\">\n"; | |
| 16 | - $sToRender .= "<tr align=\"left\"><th class=\"sectionHeading\" bgcolor=\"$sColor\">$sHeading</th></tr>\n"; | |
| 17 | - $sToRender .= "<tr/>\n"; | |
| 18 | - $sToRender .= "<tr/>\n"; | |
| 19 | - $sToRender .= "</table>\n"; | |
| 20 | - return $sToRender; | |
| 21 | -}*/ | |
| 3 | + * $Id$ | |
| 4 | + * | |
| 5 | + * Business logic to email a link to a document to a colleague. | |
| 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 Rob Cherry, Jam Warehouse (Pty) Ltd, South Africa | |
| 25 | + * @package documentmanagement | |
| 26 | + */ | |
| 22 | 27 | |
| 23 | 28 | function getDocumentPath($oDocument) { |
| 24 | 29 | global $default; | ... | ... |
presentation/lookAndFeel/knowledgeTree/documentmanagement/modifyBL.php
| ... | ... | @@ -9,19 +9,34 @@ |
| 9 | 9 | * Optional form variables |
| 10 | 10 | * o fForUpdate - generated when user clicks update on page and results in database update |
| 11 | 11 | * o fFirstEdit - generated from the document upload page when the user first uploads a document. |
| 12 | - * Is used to force the user to enter the necessary generic meta data | |
| 12 | + * Is used to force the user to enter the necessary generic meta data. | |
| 13 | 13 | * |
| 14 | - * Licensed under the GNU GPL. For full terms see the file DOCS/COPYING. | |
| 14 | + * Copyright (c) 2003 Jam Warehouse http://www.jamwarehouse.com | |
| 15 | 15 | * |
| 16 | + * This program is free software; you can redistribute it and/or modify | |
| 17 | + * it under the terms of the GNU General Public License as published by | |
| 18 | + * the Free Software Foundation; either version 2 of the License, or | |
| 19 | + * (at your option) any later version. | |
| 20 | + * | |
| 21 | + * This program is distributed in the hope that it will be useful, | |
| 22 | + * but WITHOUT ANY WARRANTY; without even the implied warranty of | |
| 23 | + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
| 24 | + * GNU General Public License for more details. | |
| 25 | + * | |
| 26 | + * You should have received a copy of the GNU General Public License | |
| 27 | + * along with this program; if not, write to the Free Software | |
| 28 | + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | |
| 29 | + * | |
| 30 | + * @version $Revision$ | |
| 16 | 31 | * @author Rob Cherry, Jam Warehouse (Pty) Ltd, South Africa |
| 17 | - * @package presentation.lookAndFeel.knowledgeTree.documentmanagement | |
| 32 | + * @package documentmanagement | |
| 18 | 33 | */ |
| 19 | 34 | |
| 20 | 35 | require_once("../../../../config/dmsDefaults.php"); |
| 21 | 36 | |
| 22 | 37 | if (checkSession()) { |
| 23 | 38 | |
| 24 | - require_once("$default->fileSystemRoot/lib/security/permission.inc"); | |
| 39 | + require_once("$default->fileSystemRoot/lib/security/Permission.inc"); | |
| 25 | 40 | require_once("$default->fileSystemRoot/lib/documentmanagement/Document.inc"); |
| 26 | 41 | require_once("$default->fileSystemRoot/lib/foldermanagement/Folder.inc"); |
| 27 | 42 | require_once("$default->fileSystemRoot/lib/subscriptions/SubscriptionEngine.inc"); | ... | ... |
presentation/lookAndFeel/knowledgeTree/documentmanagement/modifyGenericMetaDataBL.php
| ... | ... | @@ -7,15 +7,33 @@ |
| 7 | 7 | * Optional form variables: |
| 8 | 8 | * o fFirstTime - set by addDocumentBL on first time uploads and forces the user to |
| 9 | 9 | * fill out the generic meta data |
| 10 | + * | |
| 11 | + * Copyright (c) 2003 Jam Warehouse http://www.jamwarehouse.com | |
| 12 | + * | |
| 13 | + * This program is free software; you can redistribute it and/or modify | |
| 14 | + * it under the terms of the GNU General Public License as published by | |
| 15 | + * the Free Software Foundation; either version 2 of the License, or | |
| 16 | + * (at your option) any later version. | |
| 17 | + * | |
| 18 | + * This program is distributed in the hope that it will be useful, | |
| 19 | + * but WITHOUT ANY WARRANTY; without even the implied warranty of | |
| 20 | + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
| 21 | + * GNU General Public License for more details. | |
| 22 | + * | |
| 23 | + * You should have received a copy of the GNU General Public License | |
| 24 | + * along with this program; if not, write to the Free Software | |
| 25 | + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | |
| 26 | + * | |
| 27 | + * @version $Revision$ | |
| 10 | 28 | * @author Rob Cherry, Jam Warehouse (Pty) Ltd, South Africa |
| 11 | - * @package presentation.lookAndFeel.knowledgeTree.documentmanagement | |
| 29 | + * @package documentmanagement | |
| 12 | 30 | */ |
| 13 | 31 | |
| 14 | 32 | require_once("../../../../config/dmsDefaults.php"); |
| 15 | 33 | |
| 16 | 34 | if (checkSession()) { |
| 17 | 35 | |
| 18 | - require_once("$default->fileSystemRoot/lib/security/permission.inc"); | |
| 36 | + require_once("$default->fileSystemRoot/lib/security/Permission.inc"); | |
| 19 | 37 | require_once("$default->fileSystemRoot/lib/documentmanagement/Document.inc"); |
| 20 | 38 | require_once("$default->fileSystemRoot/lib/foldermanagement/Folder.inc"); |
| 21 | 39 | require_once("$default->fileSystemRoot/lib/visualpatterns/PatternEditableTableSqlQuery.inc"); | ... | ... |
presentation/lookAndFeel/knowledgeTree/documentmanagement/modifyGenericMetaDataUI.inc
| ... | ... | @@ -2,10 +2,27 @@ |
| 2 | 2 | /** |
| 3 | 3 | * $Id$ |
| 4 | 4 | * |
| 5 | - * Contains HTML information required to display the generic meta data edit page. | |
| 5 | + * Contains UI functions to display the generic meta data edit page.. | |
| 6 | 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$ | |
| 7 | 24 | * @author Rob Cherry, Jam Warehouse (Pty) Ltd, South Africa |
| 8 | - * @package presentation.lookAndFeel.knowledgeTree.documentmanagement | |
| 25 | + * @package documentmanagement | |
| 9 | 26 | */ |
| 10 | 27 | |
| 11 | 28 | function getEditableGenericMetaData($iDocumentID, $iDocumentTypeID) { | ... | ... |
presentation/lookAndFeel/knowledgeTree/documentmanagement/modifySpecificMetaDataBL.php
| ... | ... | @@ -2,16 +2,33 @@ |
| 2 | 2 | /** |
| 3 | 3 | * $Id$ |
| 4 | 4 | * |
| 5 | - * Business logic to modify type specific meta data for a document | |
| 5 | + * Business logic to modify type specific meta data for a document. | |
| 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. | |
| 6 | 13 | * |
| 7 | - * @author Rob Cherry, Jam Warehouse South Africa (Pty) Ltd | |
| 8 | - * @package presentation.lookAndFeel.knowledgeTree.documentmanagement | |
| 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 Rob Cherry, Jam Warehouse (Pty) Ltd, South Africa | |
| 25 | + * @package documentmanagement | |
| 9 | 26 | */ |
| 10 | 27 | |
| 11 | 28 | require_once("../../../../config/dmsDefaults.php"); |
| 12 | 29 | |
| 13 | 30 | if (checkSession()) { |
| 14 | - require_once("$default->fileSystemRoot/lib/security/permission.inc"); | |
| 31 | + require_once("$default->fileSystemRoot/lib/security/Permission.inc"); | |
| 15 | 32 | require_once("$default->fileSystemRoot/lib/documentmanagement/Document.inc"); |
| 16 | 33 | require_once("$default->fileSystemRoot/lib/foldermanagement/Folder.inc"); |
| 17 | 34 | require_once("$default->fileSystemRoot/lib/visualpatterns/PatternCustom.inc"); | ... | ... |
presentation/lookAndFeel/knowledgeTree/documentmanagement/modifySpecificMetaDataUI.inc
| ... | ... | @@ -2,10 +2,27 @@ |
| 2 | 2 | /** |
| 3 | 3 | * $Id$ |
| 4 | 4 | * |
| 5 | - * Presentation information used by modifySpecificMetaDataBL.php | |
| 5 | + * Presentation information used by modifySpecificMetaDataBL.php. | |
| 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. | |
| 6 | 13 | * |
| 7 | - * @author Rob Cherry, Jam Warehouse South Africa (Pty) Ltd | |
| 8 | - * @package presentation.lookAndFeel.knowledgeTree.documentmanagement | |
| 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 Rob Cherry, Jam Warehouse (Pty) Ltd, South Africa | |
| 25 | + * @package documentmanagement | |
| 9 | 26 | */ |
| 10 | 27 | |
| 11 | 28 | function getEditableTypeSpecificMetaData($iDocumentID, $iDocumentTypeID) { | ... | ... |
presentation/lookAndFeel/knowledgeTree/documentmanagement/modifyUI.inc
| ... | ... | @@ -4,10 +4,25 @@ |
| 4 | 4 | * |
| 5 | 5 | * Presentation data used to modify documents (will be used by modifyBL.inc) |
| 6 | 6 | * |
| 7 | - * Licensed under the GNU GPL. For full terms see the file DOCS/COPYING. | |
| 7 | + * Copyright (c) 2003 Jam Warehouse http://www.jamwarehouse.com | |
| 8 | 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$ | |
| 9 | 24 | * @author Rob Cherry, Jam Warehouse (Pty) Ltd, South Africa |
| 10 | - * @package presentation.lookAndFeel.knowledgeTree.documentmanagement | |
| 25 | + * @package documentmanagement | |
| 11 | 26 | */ |
| 12 | 27 | |
| 13 | 28 | function renderDocumentPath($oDocument) { |
| ... | ... | @@ -50,9 +65,9 @@ function renderEditableDocumentData($oDocument, $iDocumentTypeID) { |
| 50 | 65 | function getDocumentType($iFolderID, $iDocumentTypeID) { |
| 51 | 66 | global $default; |
| 52 | 67 | $sWhereClause = "FDL.folder_id = $iFolderID"; |
| 53 | - $oPatternListBox = & new PatternListBox("$default->owl_document_types_table", "name", "id", "fDocumentTypeID",$sWhereClause); | |
| 68 | + $oPatternListBox = & new PatternListBox("$default->document_types_table", "name", "id", "fDocumentTypeID",$sWhereClause); | |
| 54 | 69 | $oPatternListBox->setIncludeDefaultValue(false); |
| 55 | - $oPatternListBox->setFromClause("INNER JOIN $default->owl_folder_doctypes_table AS FDL ON ST.id = FDL.document_type_id"); | |
| 70 | + $oPatternListBox->setFromClause("INNER JOIN $default->folder_doctypes_table AS FDL ON ST.id = FDL.document_type_id"); | |
| 56 | 71 | if (isset($iDocumentTypeID)) { |
| 57 | 72 | $oPatternListBox->setSelectedValue($iDocumentTypeID); |
| 58 | 73 | } | ... | ... |
presentation/lookAndFeel/knowledgeTree/documentmanagement/moveDocumentBL.php
| 1 | 1 | <?php |
| 2 | - | |
| 3 | 2 | /** |
| 4 | 3 | * $Id$ |
| 5 | 4 | * |
| 6 | 5 | * Move document page. |
| 7 | 6 | * |
| 8 | - * Licensed under the GNU GPL. For full terms see the file DOCS/COPYING. | |
| 7 | + * Copyright (c) 2003 Jam Warehouse http://www.jamwarehouse.com | |
| 8 | + * | |
| 9 | + * This program is free software; you can redistribute it and/or modify | |
| 10 | + * it under the terms of the GNU General Public License as published by | |
| 11 | + * the Free Software Foundation; either version 2 of the License, or | |
| 12 | + * (at your option) any later version. | |
| 13 | + * | |
| 14 | + * This program is distributed in the hope that it will be useful, | |
| 15 | + * but WITHOUT ANY WARRANTY; without even the implied warranty of | |
| 16 | + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
| 17 | + * GNU General Public License for more details. | |
| 18 | + * | |
| 19 | + * You should have received a copy of the GNU General Public License | |
| 20 | + * along with this program; if not, write to the Free Software | |
| 21 | + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | |
| 9 | 22 | * |
| 10 | 23 | * @version $Revision$ |
| 11 | 24 | * @author Michael Joseph <michael@jamwarehouse.com>, Jam Warehouse (Pty) Ltd, South Africa |
| 12 | - * @package presentation.lookAndFeel.knowledgeTree.documentmanagement | |
| 25 | + * @package documentmanagement | |
| 13 | 26 | */ |
| 14 | 27 | |
| 15 | 28 | require_once("../../../../config/dmsDefaults.php"); |
| 16 | 29 | |
| 17 | -require_once("$default->fileSystemRoot/lib/security/permission.inc"); | |
| 30 | +require_once("$default->fileSystemRoot/lib/security/Permission.inc"); | |
| 18 | 31 | |
| 19 | 32 | require_once("$default->fileSystemRoot/lib/users/User.inc"); |
| 20 | 33 | ... | ... |
presentation/lookAndFeel/knowledgeTree/documentmanagement/moveDocumentUI.inc
| ... | ... | @@ -2,13 +2,27 @@ |
| 2 | 2 | /** |
| 3 | 3 | * $Id$ |
| 4 | 4 | * |
| 5 | - * Move document presentation logic. | |
| 5 | + * Move document presentation functions. | |
| 6 | 6 | * |
| 7 | - * Licensed under the GNU GPL. For full terms see the file DOCS/COPYING. | |
| 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 | |
| 8 | 22 | * |
| 9 | 23 | * @version $Revision$ |
| 10 | 24 | * @author Michael Joseph <michael@jamwarehouse.com>, Jam Warehouse (Pty) Ltd, South Africa |
| 11 | - * @package presentation.lookAndFeel.knowledgeTree.documentmanagement | |
| 25 | + * @package documentmanagement | |
| 12 | 26 | */ |
| 13 | 27 | |
| 14 | 28 | function getConfirmationPage($iFolderID, $iDocumentID) { | ... | ... |
presentation/lookAndFeel/knowledgeTree/documentmanagement/removeDocumentLinkBL.php
| 1 | 1 | <?php |
| 2 | - | |
| 3 | 2 | /** |
| 4 | 3 | * $Id$ |
| 5 | - * | |
| 4 | + * | |
| 6 | 5 | * Business logic for unlinking a parent document from a child documenbt |
| 7 | 6 | * |
| 8 | 7 | * Expected form variables: |
| ... | ... | @@ -10,15 +9,31 @@ |
| 10 | 9 | * $fChildDocumentID - primary key of child document to which parent document is linked |
| 11 | 10 | * $fParentDocumentID - primary key of parent document |
| 12 | 11 | * |
| 13 | - * Licensed under the GNU GPL. For full terms see the file DOCS/COPYING. | |
| 12 | + * Copyright (c) 2003 Jam Warehouse http://www.jamwarehouse.com | |
| 13 | + * | |
| 14 | + * This program is free software; you can redistribute it and/or modify | |
| 15 | + * it under the terms of the GNU General Public License as published by | |
| 16 | + * the Free Software Foundation; either version 2 of the License, or | |
| 17 | + * (at your option) any later version. | |
| 14 | 18 | * |
| 19 | + * This program is distributed in the hope that it will be useful, | |
| 20 | + * but WITHOUT ANY WARRANTY; without even the implied warranty of | |
| 21 | + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
| 22 | + * GNU General Public License for more details. | |
| 23 | + * | |
| 24 | + * You should have received a copy of the GNU General Public License | |
| 25 | + * along with this program; if not, write to the Free Software | |
| 26 | + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | |
| 27 | + * | |
| 28 | + * @version $Revision$ | |
| 15 | 29 | * @author Rob Cherry, Jam Warehouse (Pty) Ltd, South Africa |
| 16 | - * @package presentation.lookAndFeel.knowledgeTree.documentmanagement | |
| 30 | + * @package documentmanagement | |
| 17 | 31 | */ |
| 32 | + | |
| 18 | 33 | require_once("../../../../config/dmsDefaults.php"); |
| 19 | 34 | |
| 20 | 35 | if (checkSession()) { |
| 21 | - require_once("$default->fileSystemRoot/lib/security/permission.inc"); | |
| 36 | + require_once("$default->fileSystemRoot/lib/security/Permission.inc"); | |
| 22 | 37 | require_once("$default->fileSystemRoot/lib/documentmanagement/Document.inc"); |
| 23 | 38 | require_once("$default->fileSystemRoot/lib/documentmanagement/DocumentLink.inc"); |
| 24 | 39 | require_once("$default->fileSystemRoot/presentation/Html.inc"); | ... | ... |
presentation/lookAndFeel/knowledgeTree/documentmanagement/removeDocumentLinkUI.inc
| 1 | 1 | <?php |
| 2 | 2 | /** |
| 3 | -* Presentation logic for removing a link between two documents | |
| 4 | -* | |
| 5 | -* @author Rob Cherry, Jam Warehouse (Pty) Ltd, South Africa | |
| 6 | -* @date 22 May 2003 | |
| 7 | -*/ | |
| 8 | - | |
| 9 | -/*function renderHeading() { | |
| 10 | - global $default; | |
| 11 | - $sSectionName = $default->siteMap->getSectionName(substr($_SERVER["PHP_SELF"], strlen($default->rootUrl), strlen($_SERVER["PHP_SELF"]))); | |
| 12 | - $sColor = $default->siteMap->getSectionColour($sSectionName, "th"); | |
| 13 | - $sToRender = "<table border=\"0\" width=\"600\">\n"; | |
| 14 | - $sToRender .= "<tr align=\"left\"><th class=\"sectionHeading\" bgcolor=\"$sColor\"><font color=\"ffffff\">Unlink document</font></th></tr>\n"; | |
| 15 | - $sToRender .= "<tr/>\n"; | |
| 16 | - $sToRender .= "<tr/>\n"; | |
| 17 | - $sToRender .= "</table>\n"; | |
| 18 | - return $sToRender; | |
| 19 | -}*/ | |
| 3 | + * $Id$ | |
| 4 | + * | |
| 5 | + * Presentation logic for removing a link between two 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 Rob Cherry, Jam Warehouse (Pty) Ltd, South Africa | |
| 25 | + * @package documentmanagement | |
| 26 | + */ | |
| 20 | 27 | |
| 21 | 28 | function getPage($sParentDocumentName, $sChildDocumentName, $iParentDocumentID) { |
| 22 | 29 | global $default; | ... | ... |
presentation/lookAndFeel/knowledgeTree/documentmanagement/templateDocumentBrowseBL.php
| ... | ... | @@ -7,8 +7,9 @@ require_once("$default->fileSystemRoot/lib/documentmanagement/DocumentType.inc") |
| 7 | 7 | require_once("$default->fileSystemRoot/lib/visualpatterns/PatternCustom.inc"); |
| 8 | 8 | require_once("$default->uiDirectory/documentmanagement/templateDocumentBrowseUI.inc"); |
| 9 | 9 | require_once("$default->fileSystemRoot/presentation/Html.inc"); |
| 10 | - | |
| 11 | 10 | /** |
| 11 | + * $Id$ | |
| 12 | + * | |
| 12 | 13 | * This page very closely follows browseBL.php. This page is ONLY used when a user |
| 13 | 14 | * browses for a template document when setting up document linking in folder |
| 14 | 15 | * collaboration. This page is launched as a separate window by javascript. The |
| ... | ... | @@ -20,12 +21,28 @@ require_once("$default->fileSystemRoot/presentation/Html.inc"); |
| 20 | 21 | * links are generated. When clicking on a document link, instead of being taken |
| 21 | 22 | * to the document, the document values are sent to the parent window and the |
| 22 | 23 | * window is closed |
| 24 | + * | |
| 25 | + * Copyright (c) 2003 Jam Warehouse http://www.jamwarehouse.com | |
| 26 | + * | |
| 27 | + * This program is free software; you can redistribute it and/or modify | |
| 28 | + * it under the terms of the GNU General Public License as published by | |
| 29 | + * the Free Software Foundation; either version 2 of the License, or | |
| 30 | + * (at your option) any later version. | |
| 31 | + * | |
| 32 | + * This program is distributed in the hope that it will be useful, | |
| 33 | + * but WITHOUT ANY WARRANTY; without even the implied warranty of | |
| 34 | + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
| 35 | + * GNU General Public License for more details. | |
| 36 | + * | |
| 37 | + * You should have received a copy of the GNU General Public License | |
| 38 | + * along with this program; if not, write to the Free Software | |
| 39 | + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | |
| 40 | + * | |
| 41 | + * @version $Revision$ | |
| 42 | + * @author Rob Cherry, Jam Warehouse (Pty) Ltd, South Africa | |
| 43 | + * @package documentmanagement | |
| 23 | 44 | */ |
| 24 | 45 | |
| 25 | -// ------------------------------- | |
| 26 | -// page start | |
| 27 | -// ------------------------------- | |
| 28 | - | |
| 29 | 46 | // only if we have a valid session |
| 30 | 47 | if (checkSession()) { |
| 31 | 48 | require_once("../../../../phpSniff/phpTimer.class.php"); | ... | ... |
presentation/lookAndFeel/knowledgeTree/documentmanagement/templateDocumentBrowseUI.inc
| ... | ... | @@ -4,30 +4,31 @@ require_once("$default->fileSystemRoot/presentation/Html.inc"); |
| 4 | 4 | require_once("$default->uiDirectory/foldermanagement/folderUI.inc"); |
| 5 | 5 | require_once("$default->uiDirectory/documentmanagement/documentUI.inc"); |
| 6 | 6 | require_once("$default->uiDirectory/foldermanagement/addFolderUI.inc"); |
| 7 | - | |
| 8 | 7 | /** |
| 9 | 8 | * $Id$ |
| 10 | 9 | * |
| 11 | - * Document browsing page html UI building functions. | |
| 10 | + * Template document browsing page html UI building functions. | |
| 11 | + * | |
| 12 | + * Copyright (c) 2003 Jam Warehouse http://www.jamwarehouse.com | |
| 12 | 13 | * |
| 13 | - * Licensed under the GNU GPL. For full terms see the file DOCS/COPYING. | |
| 14 | + * This program is free software; you can redistribute it and/or modify | |
| 15 | + * it under the terms of the GNU General Public License as published by | |
| 16 | + * the Free Software Foundation; either version 2 of the License, or | |
| 17 | + * (at your option) any later version. | |
| 18 | + * | |
| 19 | + * This program is distributed in the hope that it will be useful, | |
| 20 | + * but WITHOUT ANY WARRANTY; without even the implied warranty of | |
| 21 | + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
| 22 | + * GNU General Public License for more details. | |
| 23 | + * | |
| 24 | + * You should have received a copy of the GNU General Public License | |
| 25 | + * along with this program; if not, write to the Free Software | |
| 26 | + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | |
| 14 | 27 | * |
| 15 | 28 | * @version $Revision$ |
| 16 | - * @author Michael Joseph <michael@jamwarehouse.com>, Jam Warehouse (Pty) Ltd, South Africa | |
| 17 | - * @package presentation.lookAndFeel.knowledgeTree.documentmanagement | |
| 29 | + * @author Rob Cherry, Jam Warehouse (Pty) Ltd, South Africa | |
| 30 | + * @package documentmanagement | |
| 18 | 31 | */ |
| 19 | - | |
| 20 | -/*function renderHeading($sHeading) { | |
| 21 | - global $default; | |
| 22 | - $sSectionName = $default->siteMap->getSectionName(substr($_SERVER["PHP_SELF"], strlen($default->rootUrl), strlen($_SERVER["PHP_SELF"]))); | |
| 23 | - $sColor = $default->siteMap->getSectionColour($sSectionName, "th"); | |
| 24 | - $sToRender = "<table border=\"0\" width=\"600\">\n"; | |
| 25 | - $sToRender .= "<tr align=\"left\"><th class=\"sectionHeading\" bgcolor=\"$sColor\"><font color=\"ffffff\">$sHeading</font></th></tr>\n"; | |
| 26 | - $sToRender .= "<tr/>\n"; | |
| 27 | - $sToRender .= "<tr/>\n"; | |
| 28 | - $sToRender .= "</table>\n"; | |
| 29 | - return $sToRender; | |
| 30 | -}*/ | |
| 31 | 32 | |
| 32 | 33 | /** |
| 33 | 34 | * Generates radio button selects for document browse by type | ... | ... |
presentation/lookAndFeel/knowledgeTree/documentmanagement/viewBL.php
| ... | ... | @@ -14,14 +14,31 @@ |
| 14 | 14 | * o fBeginCollaboration - the user selected the 'Begin Collaboration' button |
| 15 | 15 | * o fFireSubscription - the document has been modified, and a subscription alert must be fired |
| 16 | 16 | * |
| 17 | + * | |
| 18 | + * Copyright (c) 2003 Jam Warehouse http://www.jamwarehouse.com | |
| 19 | + * | |
| 20 | + * This program is free software; you can redistribute it and/or modify | |
| 21 | + * it under the terms of the GNU General Public License as published by | |
| 22 | + * the Free Software Foundation; either version 2 of the License, or | |
| 23 | + * (at your option) any later version. | |
| 24 | + * | |
| 25 | + * This program is distributed in the hope that it will be useful, | |
| 26 | + * but WITHOUT ANY WARRANTY; without even the implied warranty of | |
| 27 | + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
| 28 | + * GNU General Public License for more details. | |
| 29 | + * | |
| 30 | + * You should have received a copy of the GNU General Public License | |
| 31 | + * along with this program; if not, write to the Free Software | |
| 32 | + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | |
| 33 | + * | |
| 34 | + * @version $Revision$ | |
| 17 | 35 | * @author Rob Cherry, Jam Warehouse (Pty) Ltd, South Africa |
| 18 | - * @date 21 January 2003 | |
| 19 | - * @package presentation.lookAndFeel.knowledgeTree.documentmanagement | |
| 36 | + * @package documentmanagement | |
| 20 | 37 | */ |
| 21 | 38 | |
| 22 | 39 | require_once("../../../../config/dmsDefaults.php"); |
| 23 | 40 | |
| 24 | -require_once("$default->fileSystemRoot/lib/security/permission.inc"); | |
| 41 | +require_once("$default->fileSystemRoot/lib/security/Permission.inc"); | |
| 25 | 42 | |
| 26 | 43 | require_once("$default->fileSystemRoot/lib/email/Email.inc"); |
| 27 | 44 | |
| ... | ... | @@ -161,7 +178,7 @@ if (checkSession()) { |
| 161 | 178 | |
| 162 | 179 | if ($fSubmit) { |
| 163 | 180 | // user wishes to publish document |
| 164 | - $oWebDocument = WebDocument::get(lookupID($default->owl_web_documents_table, "document_id", $fDocumentID)); | |
| 181 | + $oWebDocument = WebDocument::get(lookupID($default->web_documents_table, "document_id", $fDocumentID)); | |
| 165 | 182 | $default->log->info("retrieved web document=" . arrayToString($oWebDocument)); |
| 166 | 183 | if ($oWebDocument) { |
| 167 | 184 | if ($fWebSiteID) { | ... | ... |
presentation/lookAndFeel/knowledgeTree/documentmanagement/viewHistoryBL.php
| 1 | 1 | <?php |
| 2 | - | |
| 3 | 2 | /** |
| 4 | -* viewHistoryUI.php | |
| 5 | -* Contains the business logic required to build the document history view page. | |
| 6 | -* Will use viewHistoryUI.php for HTML | |
| 7 | -* | |
| 8 | -* Expected form varaibles: | |
| 9 | -* o $fDocumentID - Primary key of document to view | |
| 10 | -* | |
| 11 | -* | |
| 12 | -* @author Rob Cherry, Jam Warehouse (Pty) Ltd, South Africa | |
| 13 | -* @date 12 February 2003 | |
| 14 | -* @package presentation.lookAndFeel.knowledgeTree.documentManager | |
| 15 | -*/ | |
| 3 | + * $Id$ | |
| 4 | + * | |
| 5 | + * Contains the business logic required to build the document history view page. | |
| 6 | + * Will use viewHistoryUI.php for HTML | |
| 7 | + * | |
| 8 | + * Expected form varaibles: | |
| 9 | + * o $fDocumentID - Primary key of document to view | |
| 10 | + * | |
| 11 | + * Copyright (c) 2003 Jam Warehouse http://www.jamwarehouse.com | |
| 12 | + * | |
| 13 | + * This program is free software; you can redistribute it and/or modify | |
| 14 | + * it under the terms of the GNU General Public License as published by | |
| 15 | + * the Free Software Foundation; either version 2 of the License, or | |
| 16 | + * (at your option) any later version. | |
| 17 | + * | |
| 18 | + * This program is distributed in the hope that it will be useful, | |
| 19 | + * but WITHOUT ANY WARRANTY; without even the implied warranty of | |
| 20 | + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
| 21 | + * GNU General Public License for more details. | |
| 22 | + * | |
| 23 | + * You should have received a copy of the GNU General Public License | |
| 24 | + * along with this program; if not, write to the Free Software | |
| 25 | + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | |
| 26 | + * | |
| 27 | + * @version $Revision$ | |
| 28 | + * @author Rob Cherry, Jam Warehouse (Pty) Ltd, South Africa | |
| 29 | + * @package documentmanagement | |
| 30 | + */ | |
| 16 | 31 | |
| 17 | 32 | require_once("../../../../config/dmsDefaults.php"); |
| 18 | 33 | |
| 19 | -require_once("$default->fileSystemRoot/lib/security/permission.inc"); | |
| 34 | +require_once("$default->fileSystemRoot/lib/security/Permission.inc"); | |
| 20 | 35 | |
| 21 | 36 | require_once("$default->fileSystemRoot/lib/users/User.inc"); |
| 22 | 37 | ... | ... |
presentation/lookAndFeel/knowledgeTree/documentmanagement/viewHistoryUI.inc
| ... | ... | @@ -5,11 +5,25 @@ |
| 5 | 5 | * Contains HTML information required to build the document history view page. |
| 6 | 6 | * Will be used by viewHistoryBL.php |
| 7 | 7 | * |
| 8 | - * Licensed under the GNU GPL. For full terms see the file DOCS/COPYING. | |
| 8 | + * Copyright (c) 2003 Jam Warehouse http://www.jamwarehouse.com | |
| 9 | 9 | * |
| 10 | + * This program is free software; you can redistribute it and/or modify | |
| 11 | + * it under the terms of the GNU General Public License as published by | |
| 12 | + * the Free Software Foundation; either version 2 of the License, or | |
| 13 | + * (at your option) any later version. | |
| 14 | + * | |
| 15 | + * This program is distributed in the hope that it will be useful, | |
| 16 | + * but WITHOUT ANY WARRANTY; without even the implied warranty of | |
| 17 | + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
| 18 | + * GNU General Public License for more details. | |
| 19 | + * | |
| 20 | + * You should have received a copy of the GNU General Public License | |
| 21 | + * along with this program; if not, write to the Free Software | |
| 22 | + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | |
| 23 | + * | |
| 24 | + * @version $Revision$ | |
| 10 | 25 | * @author Rob Cherry, Jam Warehouse (Pty) Ltd, South Africa |
| 11 | - * @date 12 February 2003 | |
| 12 | - * @package presentation.lookAndFeel.knowledgeTree.documentmanagement | |
| 26 | + * @package documentmanagement | |
| 13 | 27 | */ |
| 14 | 28 | |
| 15 | 29 | function getDocumentPath($iFolderID, $sDocumentName) { |
| ... | ... | @@ -23,8 +37,8 @@ function getDocumentPath($iFolderID, $sDocumentName) { |
| 23 | 37 | function getDocumentHistory($iDocumentID) { |
| 24 | 38 | global $default; |
| 25 | 39 | $sQuery = "SELECT DTT.name AS transaction_name, U.name AS user_name, DT.version AS version, DT.comment AS comment, DT.datetime AS datetime " . |
| 26 | - "FROM $default->owl_document_transactions_table AS DT INNER JOIN $default->owl_users_table AS U ON DT.user_id = U.id " . | |
| 27 | - "INNER JOIN $default->owl_transaction_types_table AS DTT ON DTT.id = DT.transaction_id " . | |
| 40 | + "FROM $default->document_transactions_table AS DT INNER JOIN $default->users_table AS U ON DT.user_id = U.id " . | |
| 41 | + "INNER JOIN $default->transaction_types_table AS DTT ON DTT.id = DT.transaction_id " . | |
| 28 | 42 | "WHERE DT.document_id = $iDocumentID ORDER BY DT.datetime DESC"; |
| 29 | 43 | $sql = $default->db; |
| 30 | 44 | $sToRender = "<table cellpadding=\"5\" width=\"100%\">\n"; | ... | ... |
presentation/lookAndFeel/knowledgeTree/documentmanagement/viewUI.inc
| ... | ... | @@ -3,15 +3,30 @@ |
| 3 | 3 | * $Id$ |
| 4 | 4 | * |
| 5 | 5 | * Contains HTML information required to build the document view page. |
| 6 | - * Will be used by documentViewBL.php | |
| 6 | + * Will be used by documentViewBL. | |
| 7 | 7 | * |
| 8 | 8 | * Variables expected: |
| 9 | 9 | * o $fDocumentID Primary key of document to view |
| 10 | 10 | * |
| 11 | + * Copyright (c) 2003 Jam Warehouse http://www.jamwarehouse.com | |
| 11 | 12 | * |
| 13 | + * This program is free software; you can redistribute it and/or modify | |
| 14 | + * it under the terms of the GNU General Public License as published by | |
| 15 | + * the Free Software Foundation; either version 2 of the License, or | |
| 16 | + * (at your option) any later version. | |
| 17 | + * | |
| 18 | + * This program is distributed in the hope that it will be useful, | |
| 19 | + * but WITHOUT ANY WARRANTY; without even the implied warranty of | |
| 20 | + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
| 21 | + * GNU General Public License for more details. | |
| 22 | + * | |
| 23 | + * You should have received a copy of the GNU General Public License | |
| 24 | + * along with this program; if not, write to the Free Software | |
| 25 | + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | |
| 26 | + * | |
| 27 | + * @version $Revision$ | |
| 12 | 28 | * @author Rob Cherry, Jam Warehouse (Pty) Ltd, South Africa |
| 13 | - * @date 21 January 2003 | |
| 14 | - * @package presentation.lookAndFeel.knowledgeTree.documentmanagement | |
| 29 | + * @package documentmanagement | |
| 15 | 30 | */ |
| 16 | 31 | |
| 17 | 32 | function renderDocumentPath($oDocument, $bDisplayActions = false) { |
| ... | ... | @@ -31,13 +46,13 @@ function renderDocumentPath($oDocument, $bDisplayActions = false) { |
| 31 | 46 | function renderDocumentData($oDocument, $bEditable, $sStatusMessage = "") { |
| 32 | 47 | global $default; |
| 33 | 48 | $sQuery = "SELECT D.name, D.modified, DTT.datetime AS created, U.name AS initiator, CONCAT(CONCAT(D.major_version, '.'), D.minor_version) AS version, WDSL.name AS status, DTL.name AS document_type, D.is_checked_out, COALESCE(U2.name, '') AS c_user " . |
| 34 | - "FROM $default->owl_documents_table AS D INNER JOIN $default->owl_web_documents_table AS WD ON WD.document_id = D.ID " . | |
| 35 | - "INNER JOIN $default->owl_web_documents_status_table AS WDSL ON WD.status_id = WDSL.id " . | |
| 36 | - "INNER JOIN $default->owl_users_table AS U ON U.id = D.creator_id " . | |
| 37 | - "INNER JOIN $default->owl_document_transactions_table AS DTT ON DTT.document_id = D.id " . | |
| 38 | - "INNER JOIN $default->owl_transaction_types_table AS TT ON DTT.transaction_id = TT.id " . | |
| 39 | - "INNER JOIN $default->owl_document_types_table AS DTL ON DTL.id = D.document_type_id " . | |
| 40 | - "LEFT OUTER JOIN $default->owl_users_table AS U2 ON U2.id = D.checked_out_user_id " . | |
| 49 | + "FROM $default->documents_table AS D INNER JOIN $default->web_documents_table AS WD ON WD.document_id = D.ID " . | |
| 50 | + "INNER JOIN $default->web_documents_status_table AS WDSL ON WD.status_id = WDSL.id " . | |
| 51 | + "INNER JOIN $default->users_table AS U ON U.id = D.creator_id " . | |
| 52 | + "INNER JOIN $default->document_transactions_table AS DTT ON DTT.document_id = D.id " . | |
| 53 | + "INNER JOIN $default->transaction_types_table AS TT ON DTT.transaction_id = TT.id " . | |
| 54 | + "INNER JOIN $default->document_types_table AS DTL ON DTL.id = D.document_type_id " . | |
| 55 | + "LEFT OUTER JOIN $default->users_table AS U2 ON U2.id = D.checked_out_user_id " . | |
| 41 | 56 | "WHERE D.id = " . $oDocument->getID() . " " . |
| 42 | 57 | "AND TT.name LIKE 'Create'"; |
| 43 | 58 | |
| ... | ... | @@ -70,8 +85,8 @@ function renderDocumentData($oDocument, $bEditable, $sStatusMessage = "") { |
| 70 | 85 | function renderGenericMetaData($oDocument, $bEditable) { |
| 71 | 86 | global $default; |
| 72 | 87 | $sQuery = "SELECT DF.name AS name, DFL.value as value " . |
| 73 | - "FROM $default->owl_documents_table AS D INNER JOIN $default->owl_document_fields_table AS DFL ON D.id = DFL.document_id " . | |
| 74 | - "INNER JOIN $default->owl_fields_table AS DF ON DF.id = DFL.document_field_id " . | |
| 88 | + "FROM $default->documents_table AS D INNER JOIN $default->document_fields_link_table AS DFL ON D.id = DFL.document_id " . | |
| 89 | + "INNER JOIN $default->document_fields_table AS DF ON DF.id = DFL.document_field_id " . | |
| 75 | 90 | "WHERE document_id = " . $oDocument->getID() . " " . |
| 76 | 91 | "AND DF.is_generic = 1"; |
| 77 | 92 | $aColumns = array("name", "value"); |
| ... | ... | @@ -127,10 +142,10 @@ function renderTypeSpecificMetaData($oDocument, $bEditable) { |
| 127 | 142 | |
| 128 | 143 | function renderEditableDocumentArchiveSettings($oDocument) { |
| 129 | 144 | global $default; |
| 130 | - $sQuery = "SELECT d.id, atl.name, 'Edit' AS edit FROM $default->owl_document_archiving_table AS da " . | |
| 131 | - "INNER JOIN $default->owl_archiving_settings_table AS ast ON da.archiving_settings_id=ast.id " . | |
| 132 | - "INNER JOIN $default->owl_archiving_type_lookup_table AS atl ON ast.archiving_type_id=atl.id " . | |
| 133 | - "INNER JOIN $default->owl_documents_table AS d ON da.document_id=d.id " . | |
| 145 | + $sQuery = "SELECT d.id, atl.name, 'Edit' AS edit FROM $default->document_archiving_table AS da " . | |
| 146 | + "INNER JOIN $default->archiving_settings_table AS ast ON da.archiving_settings_id=ast.id " . | |
| 147 | + "INNER JOIN $default->archiving_type_lookup_table AS atl ON ast.archiving_type_id=atl.id " . | |
| 148 | + "INNER JOIN $default->documents_table AS d ON da.document_id=d.id " . | |
| 134 | 149 | "WHERE d.id = " . $oDocument->getID(); |
| 135 | 150 | |
| 136 | 151 | $aColumns = array("name", "edit"); |
| ... | ... | @@ -148,10 +163,10 @@ function renderEditableDocumentArchiveSettings($oDocument) { |
| 148 | 163 | |
| 149 | 164 | function renderNonEditableDocumentArchiveSettings($oDocument) { |
| 150 | 165 | global $default; |
| 151 | - $sQuery = "SELECT d.id, atl.name FROM $default->owl_document_archiving_table AS da " . | |
| 152 | - "INNER JOIN $default->owl_archiving_settings_table AS ast ON da.archiving_settings_id=ast.id " . | |
| 153 | - "INNER JOIN $default->owl_archiving_type_lookup_table AS atl ON ast.archiving_type_id=atl.id " . | |
| 154 | - "INNER JOIN $default->owl_documents_table AS d ON da.document_id=d.id " . | |
| 166 | + $sQuery = "SELECT d.id, atl.name FROM $default->document_archiving_table AS da " . | |
| 167 | + "INNER JOIN $default->archiving_settings_table AS ast ON da.archiving_settings_id=ast.id " . | |
| 168 | + "INNER JOIN $default->archiving_type_lookup_table AS atl ON ast.archiving_type_id=atl.id " . | |
| 169 | + "INNER JOIN $default->documents_table AS d ON da.document_id=d.id " . | |
| 155 | 170 | "WHERE d.id = " . $oDocument->getID(); |
| 156 | 171 | |
| 157 | 172 | $aColumns = array("name"); |
| ... | ... | @@ -186,7 +201,7 @@ function renderDocumentArchiveSettings($oDocument, $bEditable) { |
| 186 | 201 | function renderEditableDocumentRouting($oDocument) { |
| 187 | 202 | global $default; |
| 188 | 203 | $sQuery = "SELECT D.id as document_id, GFAL.id as id, R.name AS role_name, COALESCE(U.Name, 'Not assigned') AS name, GFAL.precedence AS precedence, COALESCE(FURL.active,0) AS active, COALESCE(FURL.done, 0) AS done, 'Edit' as edit " . |
| 189 | - "FROM documents AS D INNER JOIN $default->owl_groups_folders_approval_table AS GFAL ON D.folder_id = GFAL.folder_id " . | |
| 204 | + "FROM documents AS D INNER JOIN $default->groups_folders_approval_table AS GFAL ON D.folder_id = GFAL.folder_id " . | |
| 190 | 205 | "INNER JOIN roles AS R ON GFAL.role_id = R.id " . |
| 191 | 206 | "LEFT OUTER JOIN folders_users_roles_link AS FURL ON FURL.group_folder_approval_id = GFAL.id AND FURL.document_id = D.id " . |
| 192 | 207 | "LEFT OUTER JOIN users AS U ON FURL.user_id = U.id " . |
| ... | ... | @@ -243,7 +258,7 @@ function renderEditableDocumentRouting($oDocument) { |
| 243 | 258 | function renderNonEditableDocumentRouting($oDocument) { |
| 244 | 259 | global $default; |
| 245 | 260 | $sQuery = "SELECT D.id as document_id, GFAL.id as id, R.name AS role_name, COALESCE(U.Name, 'Not assigned') AS name, GFAL.precedence AS precedence, COALESCE(FURL.active,0) AS active, COALESCE(FURL.done, 0) AS done " . |
| 246 | - "FROM documents AS D INNER JOIN $default->owl_groups_folders_approval_table AS GFAL ON D.folder_id = GFAL.folder_id " . | |
| 261 | + "FROM documents AS D INNER JOIN $default->groups_folders_approval_table AS GFAL ON D.folder_id = GFAL.folder_id " . | |
| 247 | 262 | "INNER JOIN roles AS R ON GFAL.role_id = R.id " . |
| 248 | 263 | "LEFT OUTER JOIN folders_users_roles_link AS FURL ON FURL.group_folder_approval_id = GFAL.id AND FURL.document_id = D.id " . |
| 249 | 264 | "LEFT OUTER JOIN users AS U ON FURL.user_id = U.id " . |
| ... | ... | @@ -599,7 +614,7 @@ function getStatusPage($oDocument, $sStatusMessage) { |
| 599 | 614 | function getWebPublishPage($oDocument) { |
| 600 | 615 | global $default; |
| 601 | 616 | |
| 602 | - $oPatternListBox = & new PatternListBox($default->owl_web_sites_table, "web_site_name", "id", "fWebSiteID"); | |
| 617 | + $oPatternListBox = & new PatternListBox($default->web_sites_table, "web_site_name", "id", "fWebSiteID"); | |
| 603 | 618 | |
| 604 | 619 | $sToRender .= renderHeading("Document Detail"); |
| 605 | 620 | $sToRender .= renderDocumentPath($oDocument, false) . "\n\n"; | ... | ... |
presentation/lookAndFeel/knowledgeTree/documentmanagement/webDocumentBL.php
| ... | ... | @@ -10,30 +10,37 @@ require_once("$default->fileSystemRoot/lib/web/WebSite.inc"); |
| 10 | 10 | require_once("$default->fileSystemRoot/lib/visualpatterns/PatternCustom.inc"); |
| 11 | 11 | require_once("$default->fileSystemRoot/presentation/Html.inc"); |
| 12 | 12 | require_once("webDocumentUI.inc"); |
| 13 | - | |
| 14 | 13 | /** |
| 15 | 14 | * $Id$ |
| 16 | - * | |
| 15 | + * | |
| 17 | 16 | * This page displays a web document pending publication and allows the webmaster |
| 18 | 17 | * to flag the upload to 3rd party website as completed. |
| 19 | 18 | * |
| 20 | - * Licensed under the GNU GPL. For full terms see the file DOCS/COPYING. | |
| 21 | - * | |
| 22 | - * @version $Revision$ | |
| 23 | - * @author Michael Joseph <michael@jamwarehouse.com>, Jam Warehouse (Pty) Ltd, South Africa | |
| 24 | - * @package presentation.lookAndFeel.knowledgeTree.documentmanagement | |
| 25 | - */ | |
| 26 | - | |
| 27 | -/* | |
| 28 | 19 | * Querystring variables |
| 29 | 20 | * --------------------- |
| 30 | 21 | * fWebDocumentID - the web document to process |
| 22 | + * | |
| 23 | + * Copyright (c) 2003 Jam Warehouse http://www.jamwarehouse.com | |
| 24 | + * | |
| 25 | + * This program is free software; you can redistribute it and/or modify | |
| 26 | + * it under the terms of the GNU General Public License as published by | |
| 27 | + * the Free Software Foundation; either version 2 of the License, or | |
| 28 | + * (at your option) any later version. | |
| 29 | + * | |
| 30 | + * This program is distributed in the hope that it will be useful, | |
| 31 | + * but WITHOUT ANY WARRANTY; without even the implied warranty of | |
| 32 | + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
| 33 | + * GNU General Public License for more details. | |
| 34 | + * | |
| 35 | + * You should have received a copy of the GNU General Public License | |
| 36 | + * along with this program; if not, write to the Free Software | |
| 37 | + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | |
| 38 | + * | |
| 39 | + * @version $Revision$ | |
| 40 | + * @author Michael Joseph <michael@jamwarehouse.com>, Jam Warehouse (Pty) Ltd, South Africa | |
| 41 | + * @package documentmanagement | |
| 31 | 42 | */ |
| 32 | 43 | |
| 33 | -// ------------------------------- | |
| 34 | -// page start | |
| 35 | -// ------------------------------- | |
| 36 | - | |
| 37 | 44 | // only if we have a valid session |
| 38 | 45 | if (checkSession()) { |
| 39 | 46 | ... | ... |
presentation/lookAndFeel/knowledgeTree/documentmanagement/webDocumentUI.inc
| ... | ... | @@ -3,13 +3,27 @@ |
| 3 | 3 | /** |
| 4 | 4 | * $Id$ |
| 5 | 5 | * |
| 6 | - * Web document presentation. | |
| 6 | + * Web document presentation functions. | |
| 7 | 7 | * |
| 8 | - * Licensed under the GNU GPL. For full terms see the file DOCS/COPYING. | |
| 8 | + * Copyright (c) 2003 Jam Warehouse http://www.jamwarehouse.com | |
| 9 | + * | |
| 10 | + * This program is free software; you can redistribute it and/or modify | |
| 11 | + * it under the terms of the GNU General Public License as published by | |
| 12 | + * the Free Software Foundation; either version 2 of the License, or | |
| 13 | + * (at your option) any later version. | |
| 14 | + * | |
| 15 | + * This program is distributed in the hope that it will be useful, | |
| 16 | + * but WITHOUT ANY WARRANTY; without even the implied warranty of | |
| 17 | + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
| 18 | + * GNU General Public License for more details. | |
| 19 | + * | |
| 20 | + * You should have received a copy of the GNU General Public License | |
| 21 | + * along with this program; if not, write to the Free Software | |
| 22 | + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | |
| 9 | 23 | * |
| 10 | 24 | * @version $Revision$ |
| 11 | 25 | * @author Michael Joseph <michael@jamwarehouse.com>, Jam Warehouse (Pty) Ltd, South Africa |
| 12 | - * @package presentation.lookAndFeel.knowledgeTree.documentmanagement | |
| 26 | + * @package documentmanagement | |
| 13 | 27 | */ |
| 14 | 28 | |
| 15 | 29 | /** | ... | ... |