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['Campaigns'] = array(
41 // list of what Subpanels to show in the DetailView
42 'subpanel_setup' => array(
43 'prospectlists' => array(
45 'sort_order' => 'asc',
47 'module' => 'ProspectLists',
48 'get_subpanel_data'=>'prospectlists',
49 'set_subpanel_data'=>'prospectlists',
50 'subpanel_name' => 'default',
51 'title_key' => 'LBL_PROSPECT_LIST_SUBPANEL_TITLE',
53 'tracked_urls' => array(
55 'sort_order' => 'asc',
56 'sort_by' => 'tracker_name',
57 'module' => 'CampaignTrackers',
58 'get_subpanel_data'=>'tracked_urls',
59 'subpanel_name' => 'default',
60 'title_key' => 'LBL_TRACKED_URLS_SUBPANEL_TITLE',
62 'emailmarketing' => array(
64 'sort_order' => 'desc',
65 'sort_by' => 'date_start',
66 'module' => 'EmailMarketing',
67 'get_subpanel_data'=>'emailmarketing',
68 'subpanel_name' => 'default',
69 'title_key' => 'LBL_EMAIL_MARKETING_SUBPANEL_TITLE',
72 //subpanels for the tracking view...
73 'track_queue' => array(
75 'module' => 'EmailMan',
76 'get_subpanel_data'=>'function:get_queue_items',
77 'function_parameters'=>array('EMAIL_MARKETING_ID_VALUE'=>'','distinct'=>'emailman.id', 'group_by'=>'emailman.related_id,emailman.marketing_id'),
78 'subpanel_name' => 'default',
79 'title_key' => 'LBL_MESSAGE_QUEUE_TITLE',
80 'sort_order' => 'desc',
84 'module' => 'CampaignLog',
85 'get_subpanel_data'=>"function:track_log_entries",
86 'function_parameters'=>array(0=>'targeted','EMAIL_MARKETING_ID_VALUE'=>'',/*'distinct'=>'campaign_log.target_id','group_by'=>'campaign_log.target_id, campaign_log.marketing_id'*/),
87 'subpanel_name' => 'default',
88 'title_key' => 'LBL_LOG_ENTRIES_TARGETED_TITLE',
89 'sort_order' => 'desc',
90 'sort_by' => 'campaign_log.id'
94 'module' => 'CampaignLog',
95 'get_subpanel_data'=>"function:track_log_entries",
96 'subpanel_name' => 'default',
97 'function_parameters'=>array(0=>'viewed','EMAIL_MARKETING_ID_VALUE'=>'',/*'group_by'=>'campaign_log.target_id','distinct'=>'campaign_log.target_id'*/),
98 'title_key' => 'LBL_LOG_ENTRIES_VIEWED_TITLE',
99 'sort_order' => 'desc',
100 'sort_by' => 'campaign_log.id'
104 'module' => 'CampaignLog',
105 'get_subpanel_data'=>"function:track_log_entries",
106 'function_parameters'=>array(0=>'link','EMAIL_MARKETING_ID_VALUE'=>'',/*'group_by'=>'campaign_log.target_id','distinct'=>'campaign_log.target_id'*/),
107 'subpanel_name' => 'default',
108 'title_key' => 'LBL_LOG_ENTRIES_LINK_TITLE',
109 'sort_order' => 'desc',
110 'sort_by' => 'campaign_log.id'
114 'module' => 'CampaignLog',
115 'get_subpanel_data'=>"function:track_log_leads",
116 'subpanel_name' => 'default',
117 'title_key' => 'LBL_LOG_ENTRIES_LEAD_TITLE',
118 'sort_order' => 'desc',
119 'sort_by' => 'campaign_log.id',
120 'top_buttons' => array(
121 array('widget_class' => 'SubPanelAddToProspectListButton', 'create' => true),
126 'module' => 'CampaignLog',
127 'get_subpanel_data'=>"function:track_log_entries",
128 'function_parameters'=>array(0=>'contact','EMAIL_MARKETING_ID_VALUE'=>'',/*'group_by'=>'campaign_log.target_id','distinct'=>'campaign_log.target_id'*/),
129 'subpanel_name' => 'default',
130 'title_key' => 'LBL_LOG_ENTRIES_CONTACT_TITLE',
131 'sort_order' => 'desc',
132 'sort_by' => 'campaign_log.id'
134 'invalid_email' => array(
136 'module' => 'CampaignLog',
137 'get_subpanel_data'=>"function:track_log_entries",
138 'function_parameters'=>array(0=>'invalid email','EMAIL_MARKETING_ID_VALUE'=>'',/*'group_by'=>'campaign_log.target_id','distinct'=>'campaign_log.target_id'*/),
139 'subpanel_name' => 'default',
140 'title_key' => 'LBL_LOG_ENTRIES_INVALID_EMAIL_TITLE',
141 'sort_order' => 'desc',
142 'sort_by' => 'campaign_log.id'
144 'send_error' => array(
146 'module' => 'CampaignLog',
147 'get_subpanel_data'=>"function:track_log_entries",
148 'function_parameters'=>array(0=>'send error','EMAIL_MARKETING_ID_VALUE'=>'',/*'group_by'=>'campaign_log.target_id','distinct'=>'campaign_log.target_id'*/),
149 'subpanel_name' => 'default',
150 'title_key' => 'LBL_LOG_ENTRIES_SEND_ERROR_TITLE',
151 'sort_order' => 'desc',
152 'sort_by' => 'campaign_log.id'
156 'module' => 'CampaignLog',
157 'get_subpanel_data'=>"function:track_log_entries",
158 'function_parameters'=>array(0=>'removed','EMAIL_MARKETING_ID_VALUE'=>'',/*'group_by'=>'campaign_log.target_id','distinct'=>'campaign_log.target_id'*/),
159 'subpanel_name' => 'default',
160 'title_key' => 'LBL_LOG_ENTRIES_REMOVED_TITLE',
161 'sort_order' => 'desc',
162 'sort_by' => 'campaign_log.id'
166 'module' => 'CampaignLog',
167 'get_subpanel_data'=>"function:track_log_entries",
168 'function_parameters'=>array(0=>'blocked','EMAIL_MARKETING_ID_VALUE'=>'',/*'group_by'=>'campaign_log.target_id','distinct'=>'campaign_log.target_id'*/),
169 'subpanel_name' => 'default',
170 'title_key' => 'LBL_LOG_ENTRIES_BLOCKEDD_TITLE',
171 'sort_order' => 'desc',
172 'sort_by' => 'campaign_log.id'
176 'sort_order' => 'desc',
178 'module' => 'Accounts',
179 'get_subpanel_data'=>'accounts',
180 'subpanel_name' => 'default',
181 'title_key' => 'LBL_CAMPAIGN_ACCOUNTS_SUBPANEL_TITLE',
182 'top_buttons' => array(),
186 'sort_order' => 'desc',
189 'get_subpanel_data'=>'leads',
190 'subpanel_name' => 'default',
191 'title_key' => 'LBL_CAMPAIGN_LEAD_SUBPANEL_TITLE',
192 'top_buttons' => array(),
194 'opportunities' => array(
196 'sort_order' => 'desc',
198 'module' => 'Opportunities',
199 'get_subpanel_data'=>'opportunities',
200 'subpanel_name' => 'default',
201 'title_key' => 'LBL_OPPORTUNITY_SUBPANEL_TITLE',
202 'top_buttons' => array(),