Add php files
This commit is contained in:
62
modules/EcmFkBooks/metadata/SearchFields.php
Executable file
62
modules/EcmFkBooks/metadata/SearchFields.php
Executable file
@@ -0,0 +1,62 @@
|
||||
<?php
|
||||
|
||||
if (!defined('sugarEntry') || !sugarEntry)
|
||||
die('Not A Valid Entry Point');
|
||||
|
||||
/* * *******************************************************************************
|
||||
* SugarCRM is a customer relationship management program developed by
|
||||
* SugarCRM, Inc. Copyright (C) 2004-2010 SugarCRM Inc.
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify it under
|
||||
* the terms of the GNU Affero General Public License version 3 as published by the
|
||||
* Free Software Foundation with the addition of the following permission added
|
||||
* to Section 15 as permitted in Section 7(a): FOR ANY PART OF THE COVERED WORK
|
||||
* IN WHICH THE COPYRIGHT IS OWNED BY SUGARCRM, SUGARCRM DISCLAIMS THE WARRANTY
|
||||
* OF NON INFRINGEMENT OF THIRD PARTY RIGHTS.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful, but WITHOUT
|
||||
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
|
||||
* FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more
|
||||
* details.
|
||||
*
|
||||
* You should have received a copy of the GNU Affero General Public License along with
|
||||
* this program; if not, see http://www.gnu.org/licenses or write to the Free
|
||||
* Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
|
||||
* 02110-1301 USA.
|
||||
*
|
||||
* You can contact SugarCRM, Inc. headquarters at 10050 North Wolfe Road,
|
||||
* SW2-130, Cupertino, CA 95014, USA. or at email address contact@sugarcrm.com.
|
||||
*
|
||||
* The interactive user interfaces in modified source and object code versions
|
||||
* of this program must display Appropriate Legal Notices, as required under
|
||||
* Section 5 of the GNU Affero General Public License version 3.
|
||||
*
|
||||
* In accordance with Section 7(b) of the GNU Affero General Public License version 3,
|
||||
* these Appropriate Legal Notices must retain the display of the "Powered by
|
||||
* SugarCRM" logo. If the display of the logo is not reasonably feasible for
|
||||
* technical reasons, the Appropriate Legal Notices must display the words
|
||||
*
|
||||
* "Powered by SugarCRM".
|
||||
* ****************************************************************************** */
|
||||
|
||||
$searchFields['EcmFkBooks'] = array(
|
||||
// 'ecmfkbook_name' => array(
|
||||
// 'query_type' => 'default',
|
||||
// ),
|
||||
// 'category_id' => array(
|
||||
// 'query_type' => 'default',
|
||||
// 'options' => 'ecmfkbook_category_dom',
|
||||
// 'template_var' => 'CATEGORY_OPTIONS',
|
||||
// ),
|
||||
// 'subcategory_id' => array(
|
||||
// 'query_type' => 'default',
|
||||
// 'options' => 'ecmfkbook_subcategory_dom',
|
||||
// 'template_var' => 'SUBCATEGORY_OPTIONS',
|
||||
// ),
|
||||
// 'active_date' => array(
|
||||
// 'query_type' => 'default',
|
||||
// ),
|
||||
// 'exp_date' => array(
|
||||
// 'query_type' => 'default',
|
||||
// ),
|
||||
);
|
||||
238
modules/EcmFkBooks/metadata/_listviewdefs.php
Executable file
238
modules/EcmFkBooks/metadata/_listviewdefs.php
Executable file
@@ -0,0 +1,238 @@
|
||||
<?php
|
||||
|
||||
if (!defined('sugarEntry') || !sugarEntry)
|
||||
die('Not A Valid Entry Point');
|
||||
|
||||
/* * *******************************************************************************
|
||||
* SugarCRM is a customer relationship management program developed by
|
||||
* SugarCRM, Inc. Copyright (C) 2004-2010 SugarCRM Inc.
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify it under
|
||||
* the terms of the GNU Affero General Public License version 3 as published by the
|
||||
* Free Software Foundation with the addition of the following permission added
|
||||
* to Section 15 as permitted in Section 7(a): FOR ANY PART OF THE COVERED WORK
|
||||
* IN WHICH THE COPYRIGHT IS OWNED BY SUGARCRM, SUGARCRM DISCLAIMS THE WARRANTY
|
||||
* OF NON INFRINGEMENT OF THIRD PARTY RIGHTS.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful, but WITHOUT
|
||||
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
|
||||
* FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more
|
||||
* details.
|
||||
*
|
||||
* You should have received a copy of the GNU Affero General Public License along with
|
||||
* this program; if not, see http://www.gnu.org/licenses or write to the Free
|
||||
* Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
|
||||
* 02110-1301 USA.
|
||||
*
|
||||
* You can contact SugarCRM, Inc. headquarters at 10050 North Wolfe Road,
|
||||
* SW2-130, Cupertino, CA 95014, USA. or at email address contact@sugarcrm.com.
|
||||
*
|
||||
* The interactive user interfaces in modified source and object code versions
|
||||
* of this program must display Appropriate Legal Notices, as required under
|
||||
* Section 5 of the GNU Affero General Public License version 3.
|
||||
*
|
||||
* In accordance with Section 7(b) of the GNU Affero General Public License version 3,
|
||||
* these Appropriate Legal Notices must retain the display of the "Powered by
|
||||
* SugarCRM" logo. If the display of the logo is not reasonably feasible for
|
||||
* technical reasons, the Appropriate Legal Notices must display the words
|
||||
*
|
||||
* "Powered by SugarCRM".
|
||||
* ****************************************************************************** */
|
||||
|
||||
$listViewDefs['EcmFkBooks'] = array(
|
||||
// 'ID' => array(
|
||||
// 'label' => 'LBL_ID',
|
||||
// 'link' => true,
|
||||
// 'default' => true,
|
||||
// 'bold' => true,
|
||||
// ),
|
||||
// 'DATE_ENTERED' => array(
|
||||
// 'label' => 'LBL_DATE_ENTERED',
|
||||
// 'link' => true,
|
||||
// 'default' => true,
|
||||
// 'bold' => true,
|
||||
// ),
|
||||
// 'DATE_MODIFIED' => array(
|
||||
// 'label' => 'LBL_DATE_MODIFIED',
|
||||
// 'link' => true,
|
||||
// 'default' => true,
|
||||
// 'bold' => true,
|
||||
// ),
|
||||
// 'DATE_BOOK' => array(
|
||||
// 'label' => 'LBL_DATE_BOOK',
|
||||
// 'link' => true,
|
||||
// 'default' => true,
|
||||
// 'bold' => true,
|
||||
// ),
|
||||
// 'DATE_DOCUMENT' => array(
|
||||
// 'label' => 'LBL_DATE_DOCUMENT',
|
||||
// 'link' => true,
|
||||
// 'default' => true,
|
||||
// 'bold' => true,
|
||||
// ),
|
||||
// 'MODIFIED_USER_ID' => array(
|
||||
// 'label' => 'LBL_MODIFIED_USER_ID',
|
||||
// 'link' => true,
|
||||
// 'default' => true,
|
||||
// 'bold' => true,
|
||||
// ),
|
||||
// 'CREATED_BY' => array(
|
||||
// 'label' => 'LBL_CREATED_BY',
|
||||
// 'link' => true,
|
||||
// 'default' => true,
|
||||
// 'bold' => true,
|
||||
// ),
|
||||
// 'DESCRIPTION' => array(
|
||||
// 'label' => 'LBL_DESCRIPTION',
|
||||
// 'link' => true,
|
||||
// 'default' => true,
|
||||
// 'bold' => true,
|
||||
// ),
|
||||
// 'DELETED' => array(
|
||||
// 'label' => 'LBL_DELETED',
|
||||
// 'link' => true,
|
||||
// 'default' => true,
|
||||
// 'bold' => true,
|
||||
// ),
|
||||
// 'BOOK_DATE' => array(
|
||||
// 'label' => 'LBL_BOOK_DATE',
|
||||
// 'link' => true,
|
||||
// 'default' => true,
|
||||
// 'bold' => true,
|
||||
// ),
|
||||
// 'BOOK_NAME' => array(
|
||||
// 'label' => 'LBL_BOOK_NAME',
|
||||
// 'link' => true,
|
||||
// 'default' => true,
|
||||
// 'bold' => true,
|
||||
// ),
|
||||
// 'BOOK_NUMBER' => array(
|
||||
// 'label' => 'LBL_BOOK_NUMBER',
|
||||
// 'link' => true,
|
||||
// 'default' => true,
|
||||
// 'bold' => true,
|
||||
// ),
|
||||
// 'BOOK_AMOUNT' => array(
|
||||
// 'label' => 'LBL_BOOK_AMOUNT',
|
||||
// 'link' => true,
|
||||
// 'default' => true,
|
||||
// 'bold' => true,
|
||||
// ),
|
||||
// 'BOOK_ACC_MA' => array(
|
||||
// 'label' => 'LBL_BOOK_ACC_MA',
|
||||
// 'link' => true,
|
||||
// 'default' => true,
|
||||
// 'bold' => true,
|
||||
// ),
|
||||
// 'BOOK_ACC_WN' => array(
|
||||
// 'label' => 'LBL_BOOK_ACC_WN',
|
||||
// 'link' => true,
|
||||
// 'default' => true,
|
||||
// 'bold' => true,
|
||||
// ),
|
||||
// 'BOOK_POSITION' => array(
|
||||
// 'label' => 'LBL_BOOK_POSITION',
|
||||
// 'link' => true,
|
||||
// 'default' => true,
|
||||
// 'bold' => true,
|
||||
// ),
|
||||
// 'BOOK_SYMBOL' => array(
|
||||
// 'label' => 'LBL_BOOK_SYMBOL',
|
||||
// 'link' => true,
|
||||
// 'default' => true,
|
||||
// 'bold' => true,
|
||||
// ),
|
||||
// 'BOOK_IDENTIFIER' => array(
|
||||
// 'label' => 'LBL_BOOK_IDENTIFIER',
|
||||
// 'link' => true,
|
||||
// 'default' => true,
|
||||
// 'bold' => true,
|
||||
// ),
|
||||
// 'FILE_URL' => array(
|
||||
// 'width' => '2%',
|
||||
// 'label' => ' ',
|
||||
// 'link' => true,
|
||||
// 'default' => true,
|
||||
// 'related_fields' => array(
|
||||
// 0 => 'ecmfkbook_revision_id',
|
||||
// ),
|
||||
// 'sortable' => false,
|
||||
// 'studio' => false,
|
||||
// ),
|
||||
// 'DOCUMENT_NAME' => array(
|
||||
// 'width' => '40%',
|
||||
// 'label' => 'LBL_NAME',
|
||||
// 'link' => true,
|
||||
// 'default' => true,
|
||||
// 'bold' => true,
|
||||
// ),
|
||||
// 'CATEGORY_ID' => array(
|
||||
// 'width' => '40%',
|
||||
// 'label' => 'LBL_LIST_CATEGORY',
|
||||
// 'default' => true,
|
||||
// ),
|
||||
// 'SUBCATEGORY_ID' => array(
|
||||
// 'width' => '40%',
|
||||
// 'label' => 'LBL_LIST_SUBCATEGORY',
|
||||
// 'default' => true,
|
||||
// ),
|
||||
// 'LAST_REV_CREATE_DATE' => array(
|
||||
// 'width' => '10%',
|
||||
// 'label' => 'LBL_LIST_LAST_REV_DATE',
|
||||
// 'default' => true,
|
||||
// 'sortable' => false,
|
||||
// 'related_fields' => array(
|
||||
// 0 => 'ecmfkbook_revision_id',
|
||||
// ),
|
||||
// ),
|
||||
//
|
||||
'BOOK_NUMBER' => array(
|
||||
'label' => 'LBL_BOOK_NUMBER',
|
||||
'link' => false,
|
||||
'default' => false,
|
||||
'bold' => false,
|
||||
),
|
||||
/*
|
||||
'BOOK_NAME' => array(
|
||||
'label' => 'LBL_BOOK_NAME',
|
||||
'link' => true,
|
||||
'default' => false,
|
||||
'bold' => true,
|
||||
),
|
||||
'BOOK_AMOUNT' => array(
|
||||
'label' => 'LBL_BOOK_AMOUNT',
|
||||
'link' => false,
|
||||
'default' => false,
|
||||
'bold' => false,
|
||||
),
|
||||
'DATE_DOCUMENT' => array(
|
||||
'label' => 'LBL_DATE_DOCUMENT',
|
||||
'link' => false,
|
||||
'default' => false,
|
||||
'bold' => false,
|
||||
),
|
||||
'BOOK_DATE' => array(
|
||||
'label' => 'LBL_BOOK_DATE',
|
||||
'link' => false,
|
||||
'default' => false,
|
||||
'bold' => false,
|
||||
),
|
||||
*/
|
||||
// 'CREATED_BY_NAME' => array(
|
||||
// 'width' => '2%',
|
||||
// 'label' => 'LBL_CREATED_BY',
|
||||
// 'default' => true,
|
||||
// 'sortable' => false,
|
||||
// ),
|
||||
// 'MODIFIED_BY_NAME' => array(
|
||||
// 'width' => '10%',
|
||||
// 'label' => 'LBL_MODIFIED_USER',
|
||||
// 'module' => 'Users',
|
||||
// 'id' => 'USERS_ID',
|
||||
// 'default' => false,
|
||||
// 'sortable' => false,
|
||||
// 'related_fields' => array(
|
||||
// 0 => 'modified_user_id',
|
||||
// ),
|
||||
// ),
|
||||
);
|
||||
128
modules/EcmFkBooks/metadata/detailviewdefs.php
Executable file
128
modules/EcmFkBooks/metadata/detailviewdefs.php
Executable file
@@ -0,0 +1,128 @@
|
||||
<?php
|
||||
|
||||
/* * *******************************************************************************
|
||||
* SugarCRM is a customer relationship management program developed by
|
||||
* SugarCRM, Inc. Copyright (C) 2004-2010 SugarCRM Inc.
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify it under
|
||||
* the terms of the GNU Affero General Public License version 3 as published by the
|
||||
* Free Software Foundation with the addition of the following permission added
|
||||
* to Section 15 as permitted in Section 7(a): FOR ANY PART OF THE COVERED WORK
|
||||
* IN WHICH THE COPYRIGHT IS OWNED BY SUGARCRM, SUGARCRM DISCLAIMS THE WARRANTY
|
||||
* OF NON INFRINGEMENT OF THIRD PARTY RIGHTS.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful, but WITHOUT
|
||||
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
|
||||
* FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more
|
||||
* details.
|
||||
*
|
||||
* You should have received a copy of the GNU Affero General Public License along with
|
||||
* this program; if not, see http://www.gnu.org/licenses or write to the Free
|
||||
* Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
|
||||
* 02110-1301 USA.
|
||||
*
|
||||
* You can contact SugarCRM, Inc. headquarters at 10050 North Wolfe Road,
|
||||
* SW2-130, Cupertino, CA 95014, USA. or at email address contact@sugarcrm.com.
|
||||
*
|
||||
* The interactive user interfaces in modified source and object code versions
|
||||
* of this program must display Appropriate Legal Notices, as required under
|
||||
* Section 5 of the GNU Affero General Public License version 3.
|
||||
*
|
||||
* In accordance with Section 7(b) of the GNU Affero General Public License version 3,
|
||||
* these Appropriate Legal Notices must retain the display of the "Powered by
|
||||
* SugarCRM" logo. If the display of the logo is not reasonably feasible for
|
||||
* technical reasons, the Appropriate Legal Notices must display the words
|
||||
*
|
||||
* "Powered by SugarCRM".
|
||||
* ****************************************************************************** */
|
||||
|
||||
$viewdefs['EcmFkBooks']['DetailView'] = array(
|
||||
'templateMeta' => array(
|
||||
'maxColumns' => '2',
|
||||
'form' => array(
|
||||
'hidden' => array(
|
||||
'<input type="hidden" name="old_id" value="{$fields.ecmfkbook_revision_id.value}">',
|
||||
),
|
||||
),
|
||||
'widths' => array(
|
||||
array(
|
||||
'label' => '10',
|
||||
'field' => '30',
|
||||
),
|
||||
array(
|
||||
'label' => '10',
|
||||
'field' => '30',
|
||||
),
|
||||
),
|
||||
),
|
||||
'panels' => array(
|
||||
'LBL_ECMFKBOOK_INFORMATION' => array(
|
||||
array(
|
||||
'date_entered',
|
||||
'date_modified',
|
||||
),
|
||||
// array(
|
||||
// 'modified_user_id',
|
||||
// 'created_by',
|
||||
// ),
|
||||
// array(
|
||||
// 'created_by_link',
|
||||
// 'modified_user_link',
|
||||
// ),
|
||||
array(
|
||||
'created_by_name',
|
||||
'modified_by_name',
|
||||
),
|
||||
),
|
||||
'LBL_ECMFKBOOK_DETAILS' => array(
|
||||
array(
|
||||
'date_book',
|
||||
'date_document',
|
||||
),
|
||||
array(
|
||||
'description',
|
||||
//'deleted',
|
||||
),
|
||||
array(
|
||||
'book_date',
|
||||
'book_name',
|
||||
),
|
||||
array(
|
||||
'book_number',
|
||||
'book_amount',
|
||||
),
|
||||
array(
|
||||
'book_acc_ma',
|
||||
'book_acc_wn',
|
||||
),
|
||||
array(
|
||||
'book_position',
|
||||
'book_symbol',
|
||||
),
|
||||
array(
|
||||
'book_identifier',
|
||||
),
|
||||
),
|
||||
),
|
||||
);
|
||||
|
||||
/*
|
||||
id
|
||||
date_entered
|
||||
date_modified
|
||||
date_book
|
||||
date_document
|
||||
modified_user_id
|
||||
created_by
|
||||
description
|
||||
deleted
|
||||
book_date
|
||||
book_name
|
||||
book_number
|
||||
book_amount
|
||||
book_acc_ma
|
||||
book_acc_wn
|
||||
book_position
|
||||
book_symbol
|
||||
book_identifier
|
||||
*/
|
||||
119
modules/EcmFkBooks/metadata/editviewdefs.php
Executable file
119
modules/EcmFkBooks/metadata/editviewdefs.php
Executable file
@@ -0,0 +1,119 @@
|
||||
<?php
|
||||
|
||||
/* * *******************************************************************************
|
||||
* SugarCRM is a customer relationship management program developed by
|
||||
* SugarCRM, Inc. Copyright (C) 2004-2010 SugarCRM Inc.
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify it under
|
||||
* the terms of the GNU Affero General Public License version 3 as published by the
|
||||
* Free Software Foundation with the addition of the following permission added
|
||||
* to Section 15 as permitted in Section 7(a): FOR ANY PART OF THE COVERED WORK
|
||||
* IN WHICH THE COPYRIGHT IS OWNED BY SUGARCRM, SUGARCRM DISCLAIMS THE WARRANTY
|
||||
* OF NON INFRINGEMENT OF THIRD PARTY RIGHTS.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful, but WITHOUT
|
||||
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
|
||||
* FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more
|
||||
* details.
|
||||
*
|
||||
* You should have received a copy of the GNU Affero General Public License along with
|
||||
* this program; if not, see http://www.gnu.org/licenses or write to the Free
|
||||
* Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
|
||||
* 02110-1301 USA.
|
||||
*
|
||||
* You can contact SugarCRM, Inc. headquarters at 10050 North Wolfe Road,
|
||||
* SW2-130, Cupertino, CA 95014, USA. or at email address contact@sugarcrm.com.
|
||||
*
|
||||
* The interactive user interfaces in modified source and object code versions
|
||||
* of this program must display Appropriate Legal Notices, as required under
|
||||
* Section 5 of the GNU Affero General Public License version 3.
|
||||
*
|
||||
* In accordance with Section 7(b) of the GNU Affero General Public License version 3,
|
||||
* these Appropriate Legal Notices must retain the display of the "Powered by
|
||||
* SugarCRM" logo. If the display of the logo is not reasonably feasible for
|
||||
* technical reasons, the Appropriate Legal Notices must display the words
|
||||
*
|
||||
* "Powered by SugarCRM".
|
||||
* ****************************************************************************** */
|
||||
|
||||
$viewdefs['EcmFkBooks']['EditView'] = array(
|
||||
'templateMeta' => array(
|
||||
'form' => array(
|
||||
'enctype' => 'multipart/form-data',
|
||||
'hidden' => array(
|
||||
'<input type="hidden" name="old_id" value="{$fields.ecmfkbook_revision_id.value}">',
|
||||
'<input type="hidden" name="contract_id" value="{$smarty.request.contract_id}">'
|
||||
),
|
||||
),
|
||||
'maxColumns' => '2',
|
||||
'widths' => array(
|
||||
array(
|
||||
'label' => '10',
|
||||
'field' => '30',
|
||||
),
|
||||
array(
|
||||
'label' => '10',
|
||||
'field' => '30',
|
||||
),
|
||||
),
|
||||
'javascript' =>
|
||||
'
|
||||
<script type="text/javascript" src="include/javascript/popup_parent_helper.js?s={$SUGAR_VERSION}&c={$JS_CUSTOM_VERSION}"></script>
|
||||
<script type="text/javascript" src="include/jsolait/init.js?s={$SUGAR_VERSION}&c={$JS_CUSTOM_VERSION}"></script>
|
||||
<script type="text/javascript" src="include/jsolait/lib/urllib.js?s={$SUGAR_VERSION}&c={$JS_CUSTOM_VERSION}"></script>
|
||||
<script type="text/javascript" src="include/javascript/jsclass_base.js"></script>
|
||||
<script type="text/javascript" src="include/javascript/jsclass_async.js"></script>
|
||||
<script type="text/javascript" src="include/JSON.js?s={$SUGAR_VERSION}"></script>
|
||||
<script type="text/javascript" src="modules/EcmFkBooks/ecmfkbooks.js?s={$SUGAR_VERSION}&c={$JS_CUSTOM_VERSION}"></script>
|
||||
',
|
||||
),
|
||||
'panels' => array(
|
||||
'LBL_ECMFKBOOK_INFORMATION' => array(
|
||||
// array(
|
||||
// 'date_entered',
|
||||
// 'date_modified',
|
||||
// ),
|
||||
// array(
|
||||
// 'modified_user_id',
|
||||
// 'created_by',
|
||||
// ),
|
||||
// array(
|
||||
// 'created_by_link',
|
||||
// 'modified_user_link',
|
||||
// ),
|
||||
array(
|
||||
'created_by_name',
|
||||
'modified_by_name',
|
||||
),
|
||||
),
|
||||
'LBL_ECMFKBOOK_DETAILS' => array(
|
||||
array(
|
||||
'date_book',
|
||||
'date_document',
|
||||
),
|
||||
array(
|
||||
'description',
|
||||
'deleted',
|
||||
),
|
||||
array(
|
||||
'book_date',
|
||||
'book_name',
|
||||
),
|
||||
array(
|
||||
'book_number',
|
||||
'book_amount',
|
||||
),
|
||||
array(
|
||||
'book_acc_ma',
|
||||
'book_acc_wn',
|
||||
),
|
||||
array(
|
||||
'book_position',
|
||||
'book_symbol',
|
||||
),
|
||||
array(
|
||||
'book_identifier',
|
||||
),
|
||||
),
|
||||
)
|
||||
);
|
||||
183
modules/EcmFkBooks/metadata/listviewdefs.php
Executable file
183
modules/EcmFkBooks/metadata/listviewdefs.php
Executable file
@@ -0,0 +1,183 @@
|
||||
<?php
|
||||
|
||||
if (!defined('sugarEntry') || !sugarEntry)
|
||||
die('Not A Valid Entry Point');
|
||||
|
||||
/* * *******************************************************************************
|
||||
* SugarCRM is a customer relationship management program developed by
|
||||
* SugarCRM, Inc. Copyright (C) 2004-2010 SugarCRM Inc.
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify it under
|
||||
* the terms of the GNU Affero General Public License version 3 as published by the
|
||||
* Free Software Foundation with the addition of the following permission added
|
||||
* to Section 15 as permitted in Section 7(a): FOR ANY PART OF THE COVERED WORK
|
||||
* IN WHICH THE COPYRIGHT IS OWNED BY SUGARCRM, SUGARCRM DISCLAIMS THE WARRANTY
|
||||
* OF NON INFRINGEMENT OF THIRD PARTY RIGHTS.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful, but WITHOUT
|
||||
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
|
||||
* FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more
|
||||
* details.
|
||||
*
|
||||
* You should have received a copy of the GNU Affero General Public License along with
|
||||
* this program; if not, see http://www.gnu.org/licenses or write to the Free
|
||||
* Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
|
||||
* 02110-1301 USA.
|
||||
*
|
||||
* You can contact SugarCRM, Inc. headquarters at 10050 North Wolfe Road,
|
||||
* SW2-130, Cupertino, CA 95014, USA. or at email address contact@sugarcrm.com.
|
||||
*
|
||||
* The interactive user interfaces in modified source and object code versions
|
||||
* of this program must display Appropriate Legal Notices, as required under
|
||||
* Section 5 of the GNU Affero General Public License version 3.
|
||||
*
|
||||
* In accordance with Section 7(b) of the GNU Affero General Public License version 3,
|
||||
* these Appropriate Legal Notices must retain the display of the "Powered by
|
||||
* SugarCRM" logo. If the display of the logo is not reasonably feasible for
|
||||
* technical reasons, the Appropriate Legal Notices must display the words
|
||||
*
|
||||
* "Powered by SugarCRM".
|
||||
* ****************************************************************************** */
|
||||
|
||||
$listViewDefs['EcmFkBooks'] = array(
|
||||
// 'ID' => array(
|
||||
// 'width' => '40%',
|
||||
// 'label' => 'LBL_ID',
|
||||
// 'link' => false,
|
||||
// 'default' => false,
|
||||
// 'bold' => false,
|
||||
// ),
|
||||
// 'DATE_ENTERED' => array(
|
||||
// 'width' => '40%',
|
||||
// 'label' => 'LBL_DATE_ENTERED',
|
||||
// 'link' => false,
|
||||
// 'default' => true,
|
||||
// 'bold' => false,
|
||||
// ),
|
||||
// 'DATE_MODIFIED' => array(
|
||||
// 'width' => '40%',
|
||||
// 'label' => 'LBL_DATE_MODIFIED',
|
||||
// 'link' => false,
|
||||
// 'default' => false,
|
||||
// 'bold' => false,
|
||||
// ),
|
||||
// 'DATE_BOOK' => array(
|
||||
// 'width' => '40%',
|
||||
// 'label' => 'LBL_DATE_BOOK',
|
||||
// 'link' => false,
|
||||
// 'default' => false,
|
||||
// 'bold' => false,
|
||||
// ),
|
||||
// 'MODIFIED_USER_ID' => array(
|
||||
// 'width' => '40%',
|
||||
// 'label' => 'LBL_MODIFIED_USER_ID',
|
||||
// 'link' => false,
|
||||
// 'default' => false,
|
||||
// 'bold' => false,
|
||||
// ),
|
||||
// 'CREATED_BY' => array(
|
||||
// 'width' => '40%',
|
||||
// 'label' => 'LBL_CREATED_BY',
|
||||
// 'link' => false,
|
||||
// 'default' => false,
|
||||
// 'bold' => false,
|
||||
// ),
|
||||
// 'DELETED' => array(
|
||||
// 'width' => '40%',
|
||||
// 'label' => 'LBL_DELETED',
|
||||
// 'link' => false,
|
||||
// 'default' => false,
|
||||
// 'bold' => false,
|
||||
// ),
|
||||
'BOOK_MONTH' => array(
|
||||
'width' => '40%',
|
||||
'label' => 'LBL_BOOK_MONTH',
|
||||
'link' => false,
|
||||
'default' => true,
|
||||
'bold' => false,
|
||||
),
|
||||
'BOOK_NUMBER' => array(
|
||||
'width' => '40%',
|
||||
'label' => 'LBL_BOOK_NUMBER',
|
||||
'link' => false,
|
||||
'default' => true,
|
||||
'bold' => false,
|
||||
),
|
||||
'BOOK_SYMBOL' => array(
|
||||
'width' => '40%',
|
||||
'label' => 'LBL_BOOK_SYMBOL',
|
||||
'link' => false,
|
||||
'default' => true,
|
||||
'bold' => false,
|
||||
),
|
||||
'BOOK_NAME' => array(
|
||||
'width' => '40%',
|
||||
'label' => 'LBL_BOOK_NAME',
|
||||
'link' => true,
|
||||
'default' => true,
|
||||
'bold' => false,
|
||||
),
|
||||
'DATE_DOCUMENT' => array(
|
||||
'width' => '40%',
|
||||
'label' => 'LBL_DATE_DOCUMENT',
|
||||
'link' => false,
|
||||
'default' => true,
|
||||
'bold' => false,
|
||||
),
|
||||
'BOOK_AMOUNT' => array(
|
||||
'width' => '40%',
|
||||
'label' => 'LBL_BOOK_AMOUNT',
|
||||
'link' => false,
|
||||
'default' => true,
|
||||
'bold' => false,
|
||||
),
|
||||
// 'BOOK_AMOUNT_COLORED' => array(
|
||||
// 'width' => '40%',
|
||||
// 'label' => 'LBL_BOOK_AMOUNT_COLORED',
|
||||
// 'link' => false,
|
||||
// 'default' => true,
|
||||
// 'bold' => false,
|
||||
// ),
|
||||
'BOOK_ACC_WN' => array(
|
||||
'width' => '40%',
|
||||
'label' => 'LBL_BOOK_ACC_WN',
|
||||
'link' => false,
|
||||
'default' => true,
|
||||
'bold' => false,
|
||||
),
|
||||
'BOOK_ACC_MA' => array(
|
||||
'width' => '40%',
|
||||
'label' => 'LBL_BOOK_ACC_MA',
|
||||
'link' => false,
|
||||
'default' => true,
|
||||
'bold' => false,
|
||||
),
|
||||
// 'BOOK_POSITION' => array(
|
||||
// 'width' => '40%',
|
||||
// 'label' => 'LBL_BOOK_POSITION',
|
||||
// 'link' => false,
|
||||
// 'default' => true,
|
||||
// 'bold' => false,
|
||||
// ),
|
||||
'BOOK_IDENTIFIER' => array(
|
||||
'width' => '40%',
|
||||
'label' => 'LBL_BOOK_IDENTIFIER',
|
||||
'link' => false,
|
||||
'default' => true,
|
||||
'bold' => false,
|
||||
),
|
||||
'DESCRIPTION' => array(
|
||||
'width' => '40%',
|
||||
'label' => 'LBL_DESCRIPTION',
|
||||
'link' => false,
|
||||
'default' => true,
|
||||
'bold' => false,
|
||||
),
|
||||
// 'BOOK_DATE' => array(
|
||||
// 'width' => '40%',
|
||||
// 'label' => 'LBL_BOOK_DATE',
|
||||
// 'link' => false,
|
||||
// 'default' => true,
|
||||
// 'bold' => false,
|
||||
// ),
|
||||
);
|
||||
106
modules/EcmFkBooks/metadata/quickcreatedefs.php
Executable file
106
modules/EcmFkBooks/metadata/quickcreatedefs.php
Executable file
@@ -0,0 +1,106 @@
|
||||
<?php
|
||||
/*********************************************************************************
|
||||
* SugarCRM is a customer relationship management program developed by
|
||||
* SugarCRM, Inc. Copyright (C) 2004-2010 SugarCRM Inc.
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify it under
|
||||
* the terms of the GNU Affero General Public License version 3 as published by the
|
||||
* Free Software Foundation with the addition of the following permission added
|
||||
* to Section 15 as permitted in Section 7(a): FOR ANY PART OF THE COVERED WORK
|
||||
* IN WHICH THE COPYRIGHT IS OWNED BY SUGARCRM, SUGARCRM DISCLAIMS THE WARRANTY
|
||||
* OF NON INFRINGEMENT OF THIRD PARTY RIGHTS.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful, but WITHOUT
|
||||
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
|
||||
* FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more
|
||||
* details.
|
||||
*
|
||||
* You should have received a copy of the GNU Affero General Public License along with
|
||||
* this program; if not, see http://www.gnu.org/licenses or write to the Free
|
||||
* Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
|
||||
* 02110-1301 USA.
|
||||
*
|
||||
* You can contact SugarCRM, Inc. headquarters at 10050 North Wolfe Road,
|
||||
* SW2-130, Cupertino, CA 95014, USA. or at email address contact@sugarcrm.com.
|
||||
*
|
||||
* The interactive user interfaces in modified source and object code versions
|
||||
* of this program must display Appropriate Legal Notices, as required under
|
||||
* Section 5 of the GNU Affero General Public License version 3.
|
||||
*
|
||||
* In accordance with Section 7(b) of the GNU Affero General Public License version 3,
|
||||
* these Appropriate Legal Notices must retain the display of the "Powered by
|
||||
* SugarCRM" logo. If the display of the logo is not reasonably feasible for
|
||||
* technical reasons, the Appropriate Legal Notices must display the words
|
||||
* "Powered by SugarCRM".
|
||||
********************************************************************************/
|
||||
$viewdefs['EcmFkBooks']['QuickCreate'] = array(
|
||||
'templateMeta' => array('form' => array('enctype'=>'multipart/form-data',
|
||||
'hidden'=>array('<input type="hidden" name="old_id" value="{$fields.ecmfkbook_revision_id.value}">',
|
||||
'<input type="hidden" name="parent_id" value="{$smarty.request.parent_id}">',
|
||||
'<input type="hidden" name="parent_type" value="{$smarty.request.parent_type}">',)),
|
||||
|
||||
'maxColumns' => '2',
|
||||
'widths' => array(
|
||||
array('label' => '10', 'field' => '30'),
|
||||
array('label' => '10', 'field' => '30')
|
||||
),
|
||||
'includes' =>
|
||||
array (
|
||||
array('file' => 'include/javascript/popup_parent_helper.js'),
|
||||
array('file' => 'include/jsolait/init.js'),
|
||||
array('file' => 'include/jsolait/lib/urllib.js'),
|
||||
array('file' => 'include/javascript/jsclass_base.js'),
|
||||
array('file' => 'include/javascript/jsclass_async.js'),
|
||||
array('file' => 'modules/EcmFkBooks/ecmfkbooks.js'),
|
||||
),
|
||||
),
|
||||
'panels' =>array (
|
||||
'default' =>
|
||||
array (
|
||||
|
||||
array (
|
||||
|
||||
array('name'=>'uploadfile',
|
||||
'customCode' => '<input type="hidden" name="escaped_ecmfkbook_name"><input name="uploadfile" type="file" size="30" maxlength="" onchange="setvalue(this);" value="{$fields.filename.value}">{$fields.filename.value}',
|
||||
'displayParams'=>array('required'=>true),
|
||||
),
|
||||
'status_id',
|
||||
),
|
||||
|
||||
array (
|
||||
'ecmfkbook_name',
|
||||
array('name'=>'revision',
|
||||
'customCode' => '<input name="revision" type="text" value="{$fields.revision.value}">'
|
||||
),
|
||||
),
|
||||
|
||||
array (
|
||||
array (
|
||||
'name' => 'template_type',
|
||||
'label' => 'LBL_DET_TEMPLATE_TYPE',
|
||||
),
|
||||
array (
|
||||
'name' => 'is_template',
|
||||
'label' => 'LBL_DET_IS_TEMPLATE',
|
||||
),
|
||||
),
|
||||
|
||||
array (
|
||||
array('name'=>'active_date','displayParams'=>array('required'=>true)),
|
||||
'category_id',
|
||||
),
|
||||
|
||||
array (
|
||||
'exp_date',
|
||||
'subcategory_id',
|
||||
),
|
||||
|
||||
|
||||
array (
|
||||
array('name'=>'description', 'displayParams'=>array('rows'=>10, 'cols'=>120)),
|
||||
),
|
||||
),
|
||||
)
|
||||
|
||||
);
|
||||
?>
|
||||
89
modules/EcmFkBooks/metadata/searchdefs.php
Executable file
89
modules/EcmFkBooks/metadata/searchdefs.php
Executable file
@@ -0,0 +1,89 @@
|
||||
<?php
|
||||
|
||||
/* * *******************************************************************************
|
||||
* SugarCRM is a customer relationship management program developed by
|
||||
* SugarCRM, Inc. Copyright (C) 2004-2010 SugarCRM Inc.
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify it under
|
||||
* the terms of the GNU Affero General Public License version 3 as published by the
|
||||
* Free Software Foundation with the addition of the following permission added
|
||||
* to Section 15 as permitted in Section 7(a): FOR ANY PART OF THE COVERED WORK
|
||||
* IN WHICH THE COPYRIGHT IS OWNED BY SUGARCRM, SUGARCRM DISCLAIMS THE WARRANTY
|
||||
* OF NON INFRINGEMENT OF THIRD PARTY RIGHTS.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful, but WITHOUT
|
||||
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
|
||||
* FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more
|
||||
* details.
|
||||
*
|
||||
* You should have received a copy of the GNU Affero General Public License along with
|
||||
* this program; if not, see http://www.gnu.org/licenses or write to the Free
|
||||
* Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
|
||||
* 02110-1301 USA.
|
||||
*
|
||||
* You can contact SugarCRM, Inc. headquarters at 10050 North Wolfe Road,
|
||||
* SW2-130, Cupertino, CA 95014, USA. or at email address contact@sugarcrm.com.
|
||||
*
|
||||
* The interactive user interfaces in modified source and object code versions
|
||||
* of this program must display Appropriate Legal Notices, as required under
|
||||
* Section 5 of the GNU Affero General Public License version 3.
|
||||
*
|
||||
* In accordance with Section 7(b) of the GNU Affero General Public License version 3,
|
||||
* these Appropriate Legal Notices must retain the display of the "Powered by
|
||||
* SugarCRM" logo. If the display of the logo is not reasonably feasible for
|
||||
* technical reasons, the Appropriate Legal Notices must display the words
|
||||
*
|
||||
* "Powered by SugarCRM".
|
||||
* ****************************************************************************** */
|
||||
|
||||
$searchdefs['EcmFkBooks'] = array(
|
||||
'templateMeta' => array(
|
||||
'maxColumns' => '2',
|
||||
'widths' => array(
|
||||
'label' => '10',
|
||||
'field' => '30',
|
||||
),
|
||||
),
|
||||
'layout' => array(
|
||||
'basic_search' => array(
|
||||
// 'id',
|
||||
'date_entered',
|
||||
'date_modified',
|
||||
'date_book',
|
||||
'date_document',
|
||||
// 'modified_user_id',
|
||||
// 'created_by',
|
||||
// 'description',
|
||||
'deleted',
|
||||
// 'book_date',
|
||||
// 'book_name',
|
||||
// 'book_number',
|
||||
// 'book_amount',
|
||||
// 'book_acc_ma',
|
||||
// 'book_acc_wn',
|
||||
// 'book_position',
|
||||
// 'book_symbol',
|
||||
// 'book_identifier',
|
||||
),
|
||||
'advanced_search' => array(
|
||||
// 'id',
|
||||
'date_entered',
|
||||
'date_modified',
|
||||
'date_book',
|
||||
'date_document',
|
||||
// 'modified_user_id',
|
||||
// 'created_by',
|
||||
// 'description',
|
||||
'deleted',
|
||||
// 'book_date',
|
||||
'book_name',
|
||||
'book_number',
|
||||
// 'book_amount',
|
||||
// 'book_acc_ma',
|
||||
// 'book_acc_wn',
|
||||
// 'book_position',
|
||||
'book_symbol',
|
||||
'book_identifier',
|
||||
),
|
||||
),
|
||||
);
|
||||
66
modules/EcmFkBooks/metadata/studio.php
Executable file
66
modules/EcmFkBooks/metadata/studio.php
Executable file
@@ -0,0 +1,66 @@
|
||||
<?php
|
||||
|
||||
if (!defined('sugarEntry') || !sugarEntry)
|
||||
die('Not A Valid Entry Point');
|
||||
|
||||
/* * *******************************************************************************
|
||||
* SugarCRM is a customer relationship management program developed by
|
||||
* SugarCRM, Inc. Copyright (C) 2004-2010 SugarCRM Inc.
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify it under
|
||||
* the terms of the GNU Affero General Public License version 3 as published by the
|
||||
* Free Software Foundation with the addition of the following permission added
|
||||
* to Section 15 as permitted in Section 7(a): FOR ANY PART OF THE COVERED WORK
|
||||
* IN WHICH THE COPYRIGHT IS OWNED BY SUGARCRM, SUGARCRM DISCLAIMS THE WARRANTY
|
||||
* OF NON INFRINGEMENT OF THIRD PARTY RIGHTS.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful, but WITHOUT
|
||||
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
|
||||
* FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more
|
||||
* details.
|
||||
*
|
||||
* You should have received a copy of the GNU Affero General Public License along with
|
||||
* this program; if not, see http://www.gnu.org/licenses or write to the Free
|
||||
* Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
|
||||
* 02110-1301 USA.
|
||||
*
|
||||
* You can contact SugarCRM, Inc. headquarters at 10050 North Wolfe Road,
|
||||
* SW2-130, Cupertino, CA 95014, USA. or at email address contact@sugarcrm.com.
|
||||
*
|
||||
* The interactive user interfaces in modified source and object code versions
|
||||
* of this program must display Appropriate Legal Notices, as required under
|
||||
* Section 5 of the GNU Affero General Public License version 3.
|
||||
*
|
||||
* In accordance with Section 7(b) of the GNU Affero General Public License version 3,
|
||||
* these Appropriate Legal Notices must retain the display of the "Powered by
|
||||
* SugarCRM" logo. If the display of the logo is not reasonably feasible for
|
||||
* technical reasons, the Appropriate Legal Notices must display the words
|
||||
*
|
||||
* "Powered by SugarCRM".
|
||||
* ****************************************************************************** */
|
||||
|
||||
$GLOBALS['studioDefs']['EcmFkBooks'] = array(
|
||||
'LBL_DETAILVIEW' => array(
|
||||
'template' => 'xtpl',
|
||||
'template_file' => 'modules/EcmFkBooks/DetailView.html',
|
||||
'php_file' => 'modules/EcmFkBooks/DetailView.php',
|
||||
'type' => 'DetailView',
|
||||
),
|
||||
'LBL_EDITVIEW' => array(
|
||||
'template' => 'xtpl',
|
||||
'template_file' => 'modules/EcmFkBooks/EditView.html',
|
||||
'php_file' => 'modules/EcmFkBooks/EditView.php',
|
||||
'type' => 'EditView',
|
||||
),
|
||||
'LBL_LISTVIEW' => array(
|
||||
'template' => 'listview',
|
||||
'meta_file' => 'modules/EcmFkBooks/listviewdefs.php',
|
||||
'type' => 'ListView',
|
||||
),
|
||||
'LBL_SEARCHFORM' => array(
|
||||
'template' => 'xtpl',
|
||||
'template_file' => 'modules/EcmFkBooks/SearchForm.html',
|
||||
'php_file' => 'modules/EcmFkBooks/ListView.php',
|
||||
'type' => 'SearchForm',
|
||||
),
|
||||
);
|
||||
55
modules/EcmFkBooks/metadata/subpaneldefs.php
Executable file
55
modules/EcmFkBooks/metadata/subpaneldefs.php
Executable file
@@ -0,0 +1,55 @@
|
||||
<?php
|
||||
if(!defined('sugarEntry') || !sugarEntry) die('Not A Valid Entry Point');
|
||||
/*********************************************************************************
|
||||
* SugarCRM is a customer relationship management program developed by
|
||||
* SugarCRM, Inc. Copyright (C) 2004-2010 SugarCRM Inc.
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify it under
|
||||
* the terms of the GNU Affero General Public License version 3 as published by the
|
||||
* Free Software Foundation with the addition of the following permission added
|
||||
* to Section 15 as permitted in Section 7(a): FOR ANY PART OF THE COVERED WORK
|
||||
* IN WHICH THE COPYRIGHT IS OWNED BY SUGARCRM, SUGARCRM DISCLAIMS THE WARRANTY
|
||||
* OF NON INFRINGEMENT OF THIRD PARTY RIGHTS.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful, but WITHOUT
|
||||
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
|
||||
* FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more
|
||||
* details.
|
||||
*
|
||||
* You should have received a copy of the GNU Affero General Public License along with
|
||||
* this program; if not, see http://www.gnu.org/licenses or write to the Free
|
||||
* Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
|
||||
* 02110-1301 USA.
|
||||
*
|
||||
* You can contact SugarCRM, Inc. headquarters at 10050 North Wolfe Road,
|
||||
* SW2-130, Cupertino, CA 95014, USA. or at email address contact@sugarcrm.com.
|
||||
*
|
||||
* The interactive user interfaces in modified source and object code versions
|
||||
* of this program must display Appropriate Legal Notices, as required under
|
||||
* Section 5 of the GNU Affero General Public License version 3.
|
||||
*
|
||||
* In accordance with Section 7(b) of the GNU Affero General Public License version 3,
|
||||
* these Appropriate Legal Notices must retain the display of the "Powered by
|
||||
* SugarCRM" logo. If the display of the logo is not reasonably feasible for
|
||||
* technical reasons, the Appropriate Legal Notices must display the words
|
||||
* "Powered by SugarCRM".
|
||||
********************************************************************************/
|
||||
|
||||
|
||||
|
||||
$layout_defs['EcmFkBooks'] = array(
|
||||
// list of what Subpanels to show in the DetailView
|
||||
'subpanel_setup' => array(
|
||||
'therevisions' => array(
|
||||
'order' => 10,
|
||||
'sort_order' => 'desc',
|
||||
'sort_by' => 'revision',
|
||||
'module' => 'EcmFkBookRevisions',
|
||||
'subpanel_name' => 'default',
|
||||
'title_key' => 'LBL_DOC_REV_HEADER',
|
||||
'get_subpanel_data' => 'revisions',
|
||||
'fill_in_additional_fields'=>true,
|
||||
),
|
||||
),
|
||||
);
|
||||
?>
|
||||
90
modules/EcmFkBooks/metadata/subpanels/ForContractType.php
Executable file
90
modules/EcmFkBooks/metadata/subpanels/ForContractType.php
Executable file
@@ -0,0 +1,90 @@
|
||||
<?php
|
||||
if(!defined('sugarEntry') || !sugarEntry) die('Not A Valid Entry Point');
|
||||
/*********************************************************************************
|
||||
* SugarCRM is a customer relationship management program developed by
|
||||
* SugarCRM, Inc. Copyright (C) 2004-2010 SugarCRM Inc.
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify it under
|
||||
* the terms of the GNU Affero General Public License version 3 as published by the
|
||||
* Free Software Foundation with the addition of the following permission added
|
||||
* to Section 15 as permitted in Section 7(a): FOR ANY PART OF THE COVERED WORK
|
||||
* IN WHICH THE COPYRIGHT IS OWNED BY SUGARCRM, SUGARCRM DISCLAIMS THE WARRANTY
|
||||
* OF NON INFRINGEMENT OF THIRD PARTY RIGHTS.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful, but WITHOUT
|
||||
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
|
||||
* FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more
|
||||
* details.
|
||||
*
|
||||
* You should have received a copy of the GNU Affero General Public License along with
|
||||
* this program; if not, see http://www.gnu.org/licenses or write to the Free
|
||||
* Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
|
||||
* 02110-1301 USA.
|
||||
*
|
||||
* You can contact SugarCRM, Inc. headquarters at 10050 North Wolfe Road,
|
||||
* SW2-130, Cupertino, CA 95014, USA. or at email address contact@sugarcrm.com.
|
||||
*
|
||||
* The interactive user interfaces in modified source and object code versions
|
||||
* of this program must display Appropriate Legal Notices, as required under
|
||||
* Section 5 of the GNU Affero General Public License version 3.
|
||||
*
|
||||
* In accordance with Section 7(b) of the GNU Affero General Public License version 3,
|
||||
* these Appropriate Legal Notices must retain the display of the "Powered by
|
||||
* SugarCRM" logo. If the display of the logo is not reasonably feasible for
|
||||
* technical reasons, the Appropriate Legal Notices must display the words
|
||||
* "Powered by SugarCRM".
|
||||
********************************************************************************/
|
||||
|
||||
|
||||
$subpanel_layout = array(
|
||||
'top_buttons' => array(
|
||||
array('widget_class' => 'SubPanelTopCreateButton'),
|
||||
array('widget_class' => 'SubPanelTopSelectButton', 'popup_module' => 'EcmFkBooks','field_to_name_array'=>array('ecmfkbook_revision_id'=>'REL_ATTRIBUTE_document_revision_id')),
|
||||
),
|
||||
|
||||
'where' => '',
|
||||
|
||||
|
||||
|
||||
'list_fields'=> array(
|
||||
'ecmfkbook_name'=> array(
|
||||
'name' => 'ecmfkbook_name',
|
||||
'vname' => 'LBL_LIST_DOCUMENT_NAME',
|
||||
'widget_class' => 'SubPanelDetailViewLink',
|
||||
'width' => '30%',
|
||||
),
|
||||
'is_template'=>array(
|
||||
'name' => 'is_template',
|
||||
'vname' => 'LBL_LIST_IS_TEMPLATE',
|
||||
'width' => '5%',
|
||||
'widget_type'=>'checkbox',
|
||||
),
|
||||
'template_type'=>array(
|
||||
'name' => 'template_types',
|
||||
'vname' => 'LBL_LIST_TEMPLATE_TYPE',
|
||||
'width' => '15%',
|
||||
),
|
||||
'latest_revision'=>array(
|
||||
'name' => 'latest_revision',
|
||||
'vname' => 'LBL_LATEST_REVISION',
|
||||
'width' => '10%',
|
||||
'sortable' => false
|
||||
),
|
||||
'edit_button'=>array(
|
||||
'vname' => 'LBL_EDIT_BUTTON',
|
||||
'widget_class' => 'SubPanelEditButton',
|
||||
'module' => 'EcmFkBooks',
|
||||
'width' => '5%',
|
||||
),
|
||||
'remove_button'=>array(
|
||||
'vname' => 'LBL_REMOVE',
|
||||
'widget_class' => 'SubPanelRemoveButton',
|
||||
'module' => 'EcmFkBooks',
|
||||
'width' => '5%',
|
||||
),
|
||||
'ecmfkbook_revision_id'=>array(
|
||||
'usage'=>'query_only'
|
||||
),
|
||||
),
|
||||
);
|
||||
?>
|
||||
110
modules/EcmFkBooks/metadata/subpanels/default.php
Executable file
110
modules/EcmFkBooks/metadata/subpanels/default.php
Executable file
@@ -0,0 +1,110 @@
|
||||
<?php
|
||||
if(!defined('sugarEntry') || !sugarEntry) die('Not A Valid Entry Point');
|
||||
/*********************************************************************************
|
||||
* SugarCRM is a customer relationship management program developed by
|
||||
* SugarCRM, Inc. Copyright (C) 2004-2010 SugarCRM Inc.
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify it under
|
||||
* the terms of the GNU Affero General Public License version 3 as published by the
|
||||
* Free Software Foundation with the addition of the following permission added
|
||||
* to Section 15 as permitted in Section 7(a): FOR ANY PART OF THE COVERED WORK
|
||||
* IN WHICH THE COPYRIGHT IS OWNED BY SUGARCRM, SUGARCRM DISCLAIMS THE WARRANTY
|
||||
* OF NON INFRINGEMENT OF THIRD PARTY RIGHTS.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful, but WITHOUT
|
||||
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
|
||||
* FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more
|
||||
* details.
|
||||
*
|
||||
* You should have received a copy of the GNU Affero General Public License along with
|
||||
* this program; if not, see http://www.gnu.org/licenses or write to the Free
|
||||
* Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
|
||||
* 02110-1301 USA.
|
||||
*
|
||||
* You can contact SugarCRM, Inc. headquarters at 10050 North Wolfe Road,
|
||||
* SW2-130, Cupertino, CA 95014, USA. or at email address contact@sugarcrm.com.
|
||||
*
|
||||
* The interactive user interfaces in modified source and object code versions
|
||||
* of this program must display Appropriate Legal Notices, as required under
|
||||
* Section 5 of the GNU Affero General Public License version 3.
|
||||
*
|
||||
* In accordance with Section 7(b) of the GNU Affero General Public License version 3,
|
||||
* these Appropriate Legal Notices must retain the display of the "Powered by
|
||||
* SugarCRM" logo. If the display of the logo is not reasonably feasible for
|
||||
* technical reasons, the Appropriate Legal Notices must display the words
|
||||
* "Powered by SugarCRM".
|
||||
********************************************************************************/
|
||||
|
||||
|
||||
$subpanel_layout = array(
|
||||
'top_buttons' => array(
|
||||
array('widget_class' => 'SubPanelTopCreateButton'),
|
||||
array('widget_class' => 'SubPanelTopSelectButton', 'popup_module' => 'EcmFkBooks','field_to_name_array'=>array('ecmfkbook_revision_id'=>'REL_ATTRIBUTE_document_revision_id')),
|
||||
),
|
||||
|
||||
'where' => '',
|
||||
|
||||
|
||||
|
||||
'list_fields'=> array(
|
||||
'object_image'=>array(
|
||||
'vname' => 'LBL_OBJECT_IMAGE',
|
||||
'widget_class' => 'SubPanelIcon',
|
||||
'width' => '2%',
|
||||
'image2'=>'attachment',
|
||||
'image2_url_field'=>array('id_field'=>'selected_revision_id','filename_field'=>'selected_revision_filename'),
|
||||
'attachment_image_only'=>true,
|
||||
|
||||
),
|
||||
'ecmfkbook_name'=> array(
|
||||
'name' => 'ecmfkbook_name',
|
||||
'vname' => 'LBL_LIST_DOCUMENT_NAME',
|
||||
'widget_class' => 'SubPanelDetailViewLink',
|
||||
'width' => '30%',
|
||||
),
|
||||
'is_template'=>array(
|
||||
'name' => 'is_template',
|
||||
'vname' => 'LBL_LIST_IS_TEMPLATE',
|
||||
'width' => '5%',
|
||||
'widget_type'=>'checkbox',
|
||||
),
|
||||
'template_type'=>array(
|
||||
'name' => 'template_types',
|
||||
'vname' => 'LBL_LIST_TEMPLATE_TYPE',
|
||||
'width' => '15%',
|
||||
),
|
||||
'selected_revision_name'=>array(
|
||||
'name' => 'selected_revision_name',
|
||||
'vname' => 'LBL_LIST_SELECTED_REVISION',
|
||||
'width' => '10%',
|
||||
),
|
||||
'latest_revision_name'=>array(
|
||||
'name' => 'latest_revision_name',
|
||||
'vname' => 'LBL_LIST_LATEST_REVISION',
|
||||
'width' => '10%',
|
||||
),
|
||||
'get_latest'=>array(
|
||||
'widget_class' => 'SubPanelGetLatestButton',
|
||||
'module' => 'EcmFkBooks',
|
||||
'width' => '5%',
|
||||
),
|
||||
'load_signed'=>array(
|
||||
'widget_class' => 'SubPanelLoadSignedButton',
|
||||
'module' => 'EcmFkBooks',
|
||||
'width' => '5%',
|
||||
),
|
||||
'edit_button'=>array(
|
||||
'vname' => 'LBL_EDIT_BUTTON',
|
||||
'widget_class' => 'SubPanelEditButton',
|
||||
'module' => 'EcmFkBooks',
|
||||
'width' => '5%',
|
||||
),
|
||||
'remove_button'=>array(
|
||||
'vname' => 'LBL_REMOVE',
|
||||
'widget_class' => 'SubPanelRemoveButton',
|
||||
'module' => 'EcmFkBooks',
|
||||
'width' => '5%',
|
||||
),
|
||||
),
|
||||
);
|
||||
?>
|
||||
Reference in New Issue
Block a user