2 if(!defined('sugarEntry') || !sugarEntry) die('Not A Valid Entry Point');
3 /*********************************************************************************
4 * SugarCRM is a customer relationship management program developed by
5 * SugarCRM, Inc. Copyright (C) 2004-2011 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 ********************************************************************************/
41 $layout_defs['Contacts'] = array(
42 // list of what Subpanels to show in the DetailView
43 'subpanel_setup' => array(
45 'activities' => array(
47 'sort_order' => 'desc',
48 'sort_by' => 'date_start',
49 'title_key' => 'LBL_ACTIVITIES_SUBPANEL_TITLE',
50 'type' => 'collection',
51 'subpanel_name' => 'activities', //this values is not associated with a physical file.
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'),
60 'collection_list' => array(
63 'subpanel_name' => 'ForActivities',
64 'get_subpanel_data' => 'tasks',
66 'tasks_parent' => array(
68 'subpanel_name' => 'ForActivities',
69 'get_subpanel_data' => 'tasks_parent',
72 'module' => 'Meetings',
73 'subpanel_name' => 'ForActivities',
74 'get_subpanel_data' => 'meetings',
78 'subpanel_name' => 'ForActivities',
79 'get_subpanel_data' => 'calls',
86 'sort_order' => 'desc',
87 'sort_by' => 'date_entered',
88 'title_key' => 'LBL_HISTORY_SUBPANEL_TITLE',
89 'type' => 'collection',
90 'subpanel_name' => 'history', //this values is not associated with a physical file.
93 'top_buttons' => array(
94 array('widget_class' => 'SubPanelTopCreateNoteButton'),
95 array('widget_class' => 'SubPanelTopArchiveEmailButton'),
96 array('widget_class' => 'SubPanelTopSummaryButton'),
99 'collection_list' => array(
102 'subpanel_name' => 'ForHistory',
103 'get_subpanel_data' => 'tasks',
105 'tasks_parent' => array(
107 'subpanel_name' => 'ForHistory',
108 'get_subpanel_data' => 'tasks_parent',
111 'module' => 'Meetings',
112 'subpanel_name' => 'ForHistory',
113 'get_subpanel_data' => 'meetings',
117 'subpanel_name' => 'ForHistory',
118 'get_subpanel_data' => 'calls',
122 'subpanel_name' => 'ForHistory',
123 'get_subpanel_data' => 'notes',
126 'module' => 'Emails',
127 'subpanel_name' => 'ForHistory',
128 'get_subpanel_data' => 'emails',
130 'linkedemails' => array(
131 'module' => 'Emails',
132 'subpanel_name' => 'ForUnlinkedEmailHistory',
133 'get_subpanel_data' => 'function:get_unlinked_email_query',
134 'generate_select'=>true,
135 'function_parameters' => array('return_as_array'=>'true'),
142 'sort_order' => 'asc',
143 'sort_by' => 'last_name, first_name',
144 'subpanel_name' => 'default',
145 'get_subpanel_data' => 'leads',
146 'add_subpanel_data' => 'lead_id',
147 'title_key' => 'LBL_LEADS_SUBPANEL_TITLE',
148 'top_buttons' => array(
149 array('widget_class' => 'SubPanelTopCreateLeadNameButton'),
150 array('widget_class' => 'SubPanelTopSelectButton',
151 'popup_module' => 'Opportunities',
152 'mode' => 'MultiSelect',
156 'opportunities' => array(
158 'module' => 'Opportunities',
159 'sort_order' => 'desc',
160 'sort_by' => 'date_closed',
161 'subpanel_name' => 'default',
162 'get_subpanel_data' => 'opportunities',
163 'add_subpanel_data' => 'opportunity_id',
164 'title_key' => 'LBL_OPPORTUNITIES_SUBPANEL_TITLE',
165 'top_buttons' => array(
166 array('widget_class' => 'SubPanelTopButtonQuickCreate'),
167 array('widget_class' => 'SubPanelTopSelectButton', 'mode'=>'MultiSelect')
172 'sort_order' => 'desc',
173 'sort_by' => 'case_number',
175 'subpanel_name' => 'default',
176 'get_subpanel_data' => 'cases',
177 'add_subpanel_data' => 'case_id',
178 'title_key' => 'LBL_CASES_SUBPANEL_TITLE',
179 'top_buttons' => array(
180 array('widget_class' => 'SubPanelTopButtonQuickCreate'),
181 array('widget_class' => 'SubPanelTopSelectButton', 'mode'=>'MultiSelect')
187 'sort_order' => 'desc',
188 'sort_by' => 'bug_number',
189 'subpanel_name' => 'default',
190 'get_subpanel_data' => 'bugs',
191 'add_subpanel_data' => 'bug_id',
192 'title_key' => 'LBL_BUGS_SUBPANEL_TITLE',
193 'top_buttons' => array(
194 array('widget_class' => 'SubPanelTopButtonQuickCreate'),
195 array('widget_class' => 'SubPanelTopSelectButton', 'mode'=>'MultiSelect')
200 'module' => 'Contacts',
201 'sort_order' => 'asc',
202 'sort_by' => 'last_name, first_name',
203 'subpanel_name' => 'ForContacts',
204 'get_subpanel_data' => 'direct_reports',
205 'add_subpanel_data' => 'contact_id',
206 'title_key' => 'LBL_DIRECT_REPORTS_SUBPANEL_TITLE',
207 'top_buttons' => array(
208 array('widget_class' => 'SubPanelTopButtonQuickCreate'),
209 array('widget_class' => 'SubPanelTopSelectButton', 'mode'=>'MultiSelect')
214 'module' => 'Project',
215 'sort_order' => 'asc',
217 'get_subpanel_data' => 'project',
218 'subpanel_name' => 'default',
219 'title_key' => 'LBL_PROJECTS_SUBPANEL_TITLE',
220 'top_buttons' => array(
221 array('widget_class' => 'SubPanelTopButtonQuickCreate'),
222 array('widget_class' => 'SubPanelTopSelectButton', 'mode'=>'MultiSelect'),
225 'campaigns' => array(
227 'module' => 'CampaignLog',
228 'sort_order' => 'desc',
229 'sort_by' => 'activity_date',
230 'get_subpanel_data'=>'campaigns',
231 'subpanel_name' => 'ForTargets',
232 'title_key' => 'LBL_CAMPAIGN_LIST_SUBPANEL_TITLE',