Add php files

This commit is contained in:
2025-05-12 15:44:39 +00:00
parent c951760058
commit 82d5804ac4
9534 changed files with 2638137 additions and 0 deletions

View File

@@ -0,0 +1,54 @@
<?php
if(!defined('sugarEntry') || !sugarEntry) die('Not A Valid Entry Point');
/*********************************************************************************
* SugarCRM Community Edition is a customer relationship management program developed by
* SugarCRM, Inc. Copyright (C) 2004-2013 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".
********************************************************************************/
$module_name = 'EcmActions';
$searchFields[$module_name] =
array (
'name' => array( 'query_type'=>'default'),
'current_user_only'=> array('query_type'=>'default','db_field'=>array('assigned_user_id'),'my_items'=>true, 'vname' => 'LBL_CURRENT_USER_FILTER', 'type' => 'bool'),
'assigned_user_id'=> array('query_type'=>'default'),
//Range Search Support
'range_date_entered' => array ('query_type' => 'default', 'enable_range_search' => true, 'is_date_field' => true),
'start_range_date_entered' => array ('query_type' => 'default', 'enable_range_search' => true, 'is_date_field' => true),
'end_range_date_entered' => array ('query_type' => 'default', 'enable_range_search' => true, 'is_date_field' => true),
'range_date_modified' => array ('query_type' => 'default', 'enable_range_search' => true, 'is_date_field' => true),
'start_range_date_modified' => array ('query_type' => 'default', 'enable_range_search' => true, 'is_date_field' => true),
'end_range_date_modified' => array ('query_type' => 'default', 'enable_range_search' => true, 'is_date_field' => true),
//Range Search Support
);
?>

View File

@@ -0,0 +1,115 @@
<?php
$module_name = 'EcmActions';
$viewdefs [$module_name] = array (
'DetailView' => array (
'templateMeta' => array (
'form' => array (
'buttons' => array (
0 => 'EDIT',
//1 => 'DUPLICATE',
1 => 'DELETE',
// 3 => 'FIND_DUPLICATES'
)
),
'maxColumns' => '2',
'widths' => array (
0 => array (
'label' => '10',
'field' => '30'
),
1 => array (
'label' => '10',
'field' => '30'
)
),
'useTabs' => false,
'tabDefs' => array (
'DEFAULT' => array (
'newTab' => false,
'panelDefault' => 'expanded'
),
'LBL_EDITVIEW_PANEL1' => array (
'newTab' => false,
'panelDefault' => 'expanded'
)
),
'includes' => array (
0 => array (
'file' => 'modules/EcmActions/js/DetailViewDocumentReady.js'
)
)
),
'panels' => array (
'default' => array (
0 => array (
0 => array (
'name' => 'name',
'label' => 'LBL_NAME',
'displayParams' => array (
'size' => 40
)
),
1 => array (
'name' => 'indeks',
'label' => 'LBL_INDEKS'
)
),
1 => array (
0 => array (
'name' => 'category',
'label' => 'LBL_CATEGORY'
)
),
2 => array (
0 => array (
'name' => 'time',
'customCode' => '<span id="mojtime">{$fields.time.value}</span>',
'label' => 'LBL_TIME'
)
),
3 => array (
0 => array (
'name' => 'cost_action',
'label' => 'LBL_COST_ACTION'
)
),
4 => array (
0 => array (
'name' => 'cost_hour',
'label' => 'LBL_COST_HOUR'
)
),
5 => array (
0 => array (
'name' => 'cost_other',
'label' => 'LBL_COST_OTHER'
)
),
6 => array (
0 => 'description'
)
),
/*'lbl_editview_panel1' => array (
0 => array (
0 => 'assigned_user_name',
1 => array (
'name' => 'created_by_name',
'label' => 'LBL_CREATED'
)
),
1 => array (
0 => 'date_entered',
1 => 'date_modified'
),
2 => array (
0 => array (
'name' => 'modified_by_name',
'label' => 'LBL_MODIFIED_NAME'
),
1 => ''
)
) */
)
)
);
?>

View File

@@ -0,0 +1,102 @@
<?php
$module_name = 'EcmActions';
$viewdefs [$module_name] = array (
'EditView' => array (
'templateMeta' => array (
'maxColumns' => '2',
'widths' => array (
0 => array (
'label' => '10',
'field' => '30'
),
1 => array (
'label' => '10',
'field' => '30'
)
),
'useTabs' => false,
'tabDefs' => array (
'DEFAULT' => array (
'newTab' => false,
'panelDefault' => 'expanded'
),
'LBL_EDITVIEW_PANEL1' => array (
'newTab' => false,
'panelDefault' => 'expanded'
)
),
'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/EcmActions/js/EditViewDocumentReady.js?s={$SUGAR_VERSION}&c={$JS_CUSTOM_VERSION}"></script>',
'includes' => array (
0 => array (
'file' => 'include/JSON.js'
)
)
),
'panels' => array (
'default' => array (
0 => array (
0 => array (
'name' => 'name',
'label' => 'LBL_NAME',
'tabIndex' => '100',
'displayParams' => array (
'size' => 40
)
),
1 => array (
'name' => 'indeks',
'label' => 'LBL_INDEKS',
'tabindex' => '120',
)
),
1 => array (
0 => array (
'name' => 'category',
'label' => 'LBL_CATEGORY',
'tabIndex' => '101',
)
),
2 => array (
0 => array (
'name' => 'time',
'customCode' => "{include file='modules/EcmActions/tpl/EditViewTime.tpl'}",
'label' => 'LBL_TIME',
'tabIndex' => '105',
)
),
3 => array (
0 => array (
'name' => 'cost_action',
'label' => 'LBL_COST_ACTION',
'tabIndex' => '106',
)
),
4 => array (
0 => array (
'name' => 'cost_hour',
'label' => 'LBL_COST_HOUR',
'tabIndex' => '107',
)
),
5 => array (
0 => array (
'name' => 'cost_other',
'label' => 'LBL_COST_OTHER',
'tabIndex' => '108',
)
),
6 => array (
0 => 'description'
)
)
)
)
);
?>

View File

@@ -0,0 +1,56 @@
<?php
echo '<script type="text/javascript" src="modules/EcmActions/ListViewDocumentReady.js"></script>';
$module_name = 'EcmActions';
$listViewDefs [$module_name] = array (
'INDEKS' => array (
'type' => 'varchar',
'label' => 'LBL_INDEKS',
'link' => 'true',
'width' => '10%',
'default' => true,
'align' => 'left',
),
'NAME' => array (
'width' => '35%',
'label' => 'LBL_NAME',
'default' => true,
'link' => true,
'align' => 'left',
),
'CATEGORY' => array (
'type' => 'varchar',
'label' => 'LBL_CATEGORY',
'width' => '10%',
'default' => true,
'align' => 'left',
),
'TIME' => array (
'type' => 'varchar',
'label' => 'LBL_TIME',
'width' => '15%',
'default' => true,
'align' => 'right',
),
'COST_ACTION' => array (
'type' => 'float',
'label' => 'LBL_COST_ACTION',
'width' => '10%',
'default' => true,
'align' => 'right',
),
'COST_HOUR' => array (
'type' => 'float',
'label' => 'LBL_COST_HOUR',
'width' => '10%',
'default' => true,
'align' => 'right',
),
'COST_OTHER' => array (
'type' => 'float',
'label' => 'LBL_COST_OTHER',
'width' => '10%',
'default' => true,
'align' => 'right',
)
);
?>

View File

@@ -0,0 +1,60 @@
<?php
/*********************************************************************************
* SugarCRM Community Edition is a customer relationship management program developed by
* SugarCRM, Inc. Copyright (C) 2004-2013 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".
********************************************************************************/
$module_name = 'EcmActions';
$viewdefs[$module_name]['QuickCreate'] = array(
'templateMeta' => array('maxColumns' => '2',
'widths' => array(
array('label' => '10', 'field' => '30'),
array('label' => '10', 'field' => '30')
),
),
'panels' =>array (
'default' =>
array (
array (
'name',
'assigned_user_name',
),
),
),
);
?>

View File

@@ -0,0 +1,67 @@
<?php
$searchdefs ['EcmActions'] = array (
'layout' => array (
'basic_search' => array (
'name' => array (
'name' => 'name',
'default' => true,
'width' => '10%'
),
'indeks' => array (
'type' => 'varchar',
'label' => 'LBL_INDEKS',
'width' => '10%',
'default' => true,
'name' => 'indeks'
),
'category' => array(
'type' => 'enum',
'label' => 'LBL_CATEGORY',
'width' => '10%',
'default' => true,
'name' => 'category'
),
),
'advanced_search' => array (
'name' => array (
'name' => 'name',
'default' => true,
'width' => '10%'
),
'indeks' => array (
'type' => 'varchar',
'label' => 'LBL_INDEKS',
'width' => '10%',
'default' => true,
'name' => 'indeks'
),
'category' => array(
'type' => 'enum',
'label' => 'LBL_CATEGORY',
'width' => '10%',
'default' => true,
'name' => 'category'
),
'assigned_user_id' => array (
'name' => 'assigned_user_id',
'label' => 'LBL_ASSIGNED_TO',
'type' => 'enum',
'function' => array (
'name' => 'get_user_array',
'params' => array (
0 => false
),
),
),
),
),
'templateMeta' => array (
'maxColumns' => '3',
'maxColumnsBasic' => '4',
'widths' => array (
'label' => '10',
'field' => '30'
)
)
);
?>

View File

@@ -0,0 +1,41 @@
<?php
/*********************************************************************************
* SugarCRM Community Edition is a customer relationship management program developed by
* SugarCRM, Inc. Copyright (C) 2004-2013 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".
********************************************************************************/
/**
* This file adds support for studio
*/
?>

View File

@@ -0,0 +1,73 @@
<?php
if(!defined('sugarEntry') || !sugarEntry) die('Not A Valid Entry Point');
/*********************************************************************************
* SugarCRM Community Edition is a customer relationship management program developed by
* SugarCRM, Inc. Copyright (C) 2004-2013 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".
********************************************************************************/
$module_name='EcmActions';
$subpanel_layout = array(
'top_buttons' => array(
array('widget_class' => 'SubPanelTopCreateButton'),
array('widget_class' => 'SubPanelTopSelectButton', 'popup_module' => $module_name),
),
'where' => '',
'list_fields' => array(
'name'=>array(
'vname' => 'LBL_NAME',
'widget_class' => 'SubPanelDetailViewLink',
'width' => '45%',
),
'date_modified'=>array(
'vname' => 'LBL_DATE_MODIFIED',
'width' => '45%',
),
'edit_button'=>array(
'vname' => 'LBL_EDIT_BUTTON',
'widget_class' => 'SubPanelEditButton',
'module' => $module_name,
'width' => '4%',
),
'remove_button'=>array(
'vname' => 'LBL_REMOVE',
'widget_class' => 'SubPanelRemoveButton',
'module' => $module_name,
'width' => '5%',
),
),
);
?>