]> CyberLeo.Net >> Repos - Github/sugarcrm.git/blob - modules/Prospects/metadata/subpaneldefs.php
Release 6.5.0
[Github/sugarcrm.git] / modules / Prospects / metadata / subpaneldefs.php
1 <?php
2 if(!defined('sugarEntry') || !sugarEntry) die('Not A Valid Entry Point');
3 /*********************************************************************************
4  * SugarCRM Community Edition is a customer relationship management program developed by
5  * SugarCRM, Inc. Copyright (C) 2004-2012 SugarCRM Inc.
6  * 
7  * This program is free software; you can redistribute it and/or modify it under
8  * the terms of the GNU Affero General Public License version 3 as published by the
9  * Free Software Foundation with the addition of the following permission added
10  * to Section 15 as permitted in Section 7(a): FOR ANY PART OF THE COVERED WORK
11  * IN WHICH THE COPYRIGHT IS OWNED BY SUGARCRM, SUGARCRM DISCLAIMS THE WARRANTY
12  * OF NON INFRINGEMENT OF THIRD PARTY RIGHTS.
13  * 
14  * This program is distributed in the hope that it will be useful, but WITHOUT
15  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
16  * FOR A PARTICULAR PURPOSE.  See the GNU Affero General Public License for more
17  * details.
18  * 
19  * You should have received a copy of the GNU Affero General Public License along with
20  * this program; if not, see http://www.gnu.org/licenses or write to the Free
21  * Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
22  * 02110-1301 USA.
23  * 
24  * You can contact SugarCRM, Inc. headquarters at 10050 North Wolfe Road,
25  * SW2-130, Cupertino, CA 95014, USA. or at email address contact@sugarcrm.com.
26  * 
27  * The interactive user interfaces in modified source and object code versions
28  * of this program must display Appropriate Legal Notices, as required under
29  * Section 5 of the GNU Affero General Public License version 3.
30  * 
31  * In accordance with Section 7(b) of the GNU Affero General Public License version 3,
32  * these Appropriate Legal Notices must retain the display of the "Powered by
33  * SugarCRM" logo. If the display of the logo is not reasonably feasible for
34  * technical reasons, the Appropriate Legal Notices must display the words
35  * "Powered by SugarCRM".
36  ********************************************************************************/
37
38  
39
40
41 $layout_defs['Prospects'] = array(
42         // list of what Subpanels to show in the DetailView 
43         'subpanel_setup' => array(
44             'activities' => array(
45                         'order' => 10,
46                         'sort_order' => 'desc',
47                         'sort_by' => 'date_start',
48                         'title_key' => 'LBL_ACTIVITIES_SUBPANEL_TITLE',
49                         'type' => 'collection',
50                         'subpanel_name' => 'activities',   //this values is not associated with a physical file.
51                         'module'=>'Activities',
52
53                         'top_buttons' => array(
54                                 array('widget_class' => 'SubPanelTopCreateTaskButton'),
55                                 array('widget_class' => 'SubPanelTopScheduleMeetingButton'),
56                                 array('widget_class' => 'SubPanelTopScheduleCallButton'),
57                                 array('widget_class' => 'SubPanelTopComposeEmailButton'),
58                         ),
59                         'collection_list' => array(     
60                                 'tasks' => array(
61                                         'module' => 'Tasks',
62                                         'subpanel_name' => 'ForActivities',
63                                         'get_subpanel_data' => 'tasks',
64                                 ),
65                 'meetings' => array(
66                     'module' => 'Meetings',
67                     'subpanel_name' => 'ForActivities',
68                     'get_subpanel_data' => 'meetings',
69                 ),
70                                 'calls' => array(
71                                         'module' => 'Calls',
72                                         'subpanel_name' => 'ForActivities',
73                                         'get_subpanel_data' => 'calls',
74                                 ),      
75                         )                       
76                 ),
77
78                 'history' => array(
79                         'order' => 20,
80                         'sort_order' => 'desc',
81                         'sort_by' => 'date_entered',
82                         'title_key' => 'LBL_HISTORY_SUBPANEL_TITLE',
83                         'type' => 'collection',
84                         'subpanel_name' => 'history',   //this values is not associated with a physical file.
85                         'module'=>'History',
86
87                         'top_buttons' => array(
88                         array('widget_class' => 'SubPanelTopCreateNoteButton'),
89                         array('widget_class' => 'SubPanelTopArchiveEmailButton'),
90             array('widget_class' => 'SubPanelTopSummaryButton'),
91                         ),
92
93                         'collection_list' => array(     
94                 'tasks' => array(
95                     'module' => 'Tasks',
96                     'subpanel_name' => 'ForHistory',
97                     'get_subpanel_data' => 'tasks',
98                 ),
99                                 'meetings' => array(
100                                         'module' => 'Meetings',
101                                         'subpanel_name' => 'ForHistory',
102                                         'get_subpanel_data' => 'meetings',
103                                 ),
104                                 'calls' => array(
105                                         'module' => 'Calls',
106                                         'subpanel_name' => 'ForHistory',
107                                         'get_subpanel_data' => 'calls',
108                                 ),      
109                                 'notes' => array(
110                                         'module' => 'Notes',
111                                         'subpanel_name' => 'ForHistory',
112                                         'get_subpanel_data' => 'notes',
113                                 ),      
114                                 'emails' => array(
115                                         'module' => 'Emails',
116                                         'subpanel_name' => 'ForHistory',
117                                         'get_subpanel_data' => 'emails',
118                                 ),      
119                                 'linkedemails' => array(
120                         'module' => 'Emails',
121                         'subpanel_name' => 'ForUnlinkedEmailHistory',
122                         'get_subpanel_data' => 'function:get_unlinked_email_query',
123                         'generate_select'=>true,
124                         'function_parameters' => array('return_as_array'=>'true'),
125                         ),          
126                         )                       
127                 ),
128         'campaigns' => array(
129                         'order' => 30,
130                         'sort_by' => 'activity_date',
131                         'sort_order' => 'desc',
132                         'module' => 'CampaignLog',
133                         'get_subpanel_data'=>'campaigns',
134                         'subpanel_name' => 'ForTargets',
135                         'title_key' => 'LBL_CAMPAIGN_LIST_SUBPANEL_TITLE',
136                         'top_buttons' => array(),
137                 ),
138         ),
139 );
140 ?>