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.
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.
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
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
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.
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.
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 ********************************************************************************/
40 $layout_defs['Accounts'] = array(
41 // list of what Subpanels to show in the DetailView
42 'subpanel_setup' => array(
44 'activities' => array(
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 'header_definition_from_subpanel'=> 'meetings',
52 'module'=>'Activities',
54 'top_buttons' => array(
55 array('widget_class' => 'SubPanelTopCreateTaskButton'),
56 array('widget_class' => 'SubPanelTopScheduleMeetingButton'),
57 array('widget_class' => 'SubPanelTopScheduleCallButton'),
58 array('widget_class' => 'SubPanelTopComposeEmailButton'),
61 'collection_list' => array(
64 'subpanel_name' => 'ForActivities',
65 'get_subpanel_data' => 'tasks',
68 'module' => 'Meetings',
69 'subpanel_name' => 'ForActivities',
70 'get_subpanel_data' => 'meetings',
74 'subpanel_name' => 'ForActivities',
75 'get_subpanel_data' => 'calls',
81 'sort_order' => 'desc',
82 'sort_by' => 'date_entered',
83 'title_key' => 'LBL_HISTORY_SUBPANEL_TITLE',
84 'type' => 'collection',
85 'subpanel_name' => 'history', //this values is not associated with a physical file.
86 'header_definition_from_subpanel'=> 'meetings',
89 'top_buttons' => array(
90 array('widget_class' => 'SubPanelTopCreateNoteButton'),
91 array('widget_class' => 'SubPanelTopArchiveEmailButton'),
92 array('widget_class' => 'SubPanelTopSummaryButton'),
95 'collection_list' => array(
98 'subpanel_name' => 'ForHistory',
99 'get_subpanel_data' => 'tasks',
102 'module' => 'Meetings',
103 'subpanel_name' => 'ForHistory',
104 'get_subpanel_data' => 'meetings',
108 'subpanel_name' => 'ForHistory',
109 'get_subpanel_data' => 'calls',
113 'subpanel_name' => 'ForHistory',
114 'get_subpanel_data' => 'notes',
117 'module' => 'Emails',
118 'subpanel_name' => 'ForUnlinkedEmailHistory',
119 'get_subpanel_data' => 'function:get_emails_by_assign_or_link',
120 'function_parameters' => array('import_function_file' => 'include/utils.php', 'link' => 'contacts'),
121 'generate_select'=>true,
122 'get_distinct_data'=> true,
126 'documents' => array(
128 'module' => 'Documents',
129 'subpanel_name' => 'default',
130 'sort_order' => 'asc',
132 'title_key' => 'LBL_DOCUMENTS_SUBPANEL_TITLE',
133 'get_subpanel_data' => 'documents',
138 'widget_class' => 'SubPanelTopButtonQuickCreate',
142 'widget_class' => 'SubPanelTopSelectButton',
143 'mode' => 'MultiSelect',
149 'module' => 'Contacts',
150 'sort_order' => 'asc',
151 'sort_by' => 'last_name, first_name',
152 'subpanel_name' => 'ForAccounts',
153 'get_subpanel_data' => 'contacts',
154 'add_subpanel_data' => 'contact_id',
155 'title_key' => 'LBL_CONTACTS_SUBPANEL_TITLE',
156 'top_buttons' => array(
157 array('widget_class' => 'SubPanelTopCreateAccountNameButton'),
158 array('widget_class' => 'SubPanelTopSelectButton', 'mode'=>'MultiSelect')
162 'opportunities' => array(
164 'module' => 'Opportunities',
165 'subpanel_name' => 'ForAccounts',
166 'sort_order' => 'desc',
167 'sort_by' => 'date_closed',
168 'get_subpanel_data' => 'opportunities',
169 'add_subpanel_data' => 'opportunity_id',
170 'title_key' => 'LBL_OPPORTUNITIES_SUBPANEL_TITLE',
171 'top_buttons' => array(
172 array('widget_class' => 'SubPanelTopButtonQuickCreate')
178 'sort_order' => 'asc',
179 'sort_by' => 'last_name, first_name',
180 'subpanel_name' => 'default',
181 'get_subpanel_data' => 'leads',
182 'add_subpanel_data' => 'lead_id',
183 'title_key' => 'LBL_LEADS_SUBPANEL_TITLE',
184 'top_buttons' => array(
185 array('widget_class' => 'SubPanelTopCreateLeadNameButton'),
186 array('widget_class' => 'SubPanelTopSelectButton',
187 'popup_module' => 'Opportunities',
188 'mode' => 'MultiSelect',
195 'sort_order' => 'desc',
196 'sort_by' => 'case_number',
198 'subpanel_name' => 'ForAccounts',
199 'get_subpanel_data' => 'cases',
200 'add_subpanel_data' => 'case_id',
201 'title_key' => 'LBL_CASES_SUBPANEL_TITLE',
202 'top_buttons' => array(
203 array('widget_class' => 'SubPanelTopButtonQuickCreate'),
204 array('widget_class' => 'SubPanelTopSelectButton', 'mode'=>'MultiSelect')
209 'sort_order' => 'asc',
211 'module' => 'Accounts',
212 'subpanel_name' => 'default',
213 'get_subpanel_data' => 'members',
214 'add_subpanel_data' => 'member_id',
215 'title_key' => 'LBL_MEMBER_ORG_SUBPANEL_TITLE',
216 'top_buttons' => array(
217 array('widget_class' => 'SubPanelTopButtonQuickCreate'),
218 array('widget_class' => 'SubPanelTopSelectAccountButton', 'mode'=>'MultiSelect')
223 'sort_order' => 'desc',
224 'sort_by' => 'bug_number',
226 'subpanel_name' => 'default',
227 'get_subpanel_data' => 'bugs',
228 'add_subpanel_data' => 'bug_id',
229 'title_key' => 'LBL_BUGS_SUBPANEL_TITLE',
230 'top_buttons' => array(
231 array('widget_class' => 'SubPanelTopButtonQuickCreate'),
232 array('widget_class' => 'SubPanelTopSelectButton', 'mode'=>'MultiSelect')
237 'sort_order' => 'asc',
239 'module' => 'Project',
240 'subpanel_name' => 'default',
241 'get_subpanel_data' => 'project',
242 'add_subpanel_data' => 'project_id',
243 'title_key' => 'LBL_PROJECTS_SUBPANEL_TITLE',
244 'top_buttons' => array(
245 array('widget_class' => 'SubPanelTopButtonQuickCreate'),
246 array('widget_class' => 'SubPanelTopSelectButton', 'mode'=>'MultiSelect'),
249 'campaigns' => array(
251 'module' => 'CampaignLog',
252 'sort_order' => 'desc',
253 'sort_by' => 'activity_date',
254 'get_subpanel_data'=>'campaigns',
255 'subpanel_name' => 'ForTargets',
256 'title_key' => 'LBL_CAMPAIGNS',