]> CyberLeo.Net >> Repos - Github/sugarcrm.git/blob - tests/modules/UpgradeWizard/SugarMerge/siupgrade_metadata_files/custom/modules/Opportunities/metadata/detailviewdefs.php
Release 6.2.0
[Github/sugarcrm.git] / tests / modules / UpgradeWizard / SugarMerge / siupgrade_metadata_files / custom / modules / Opportunities / metadata / detailviewdefs.php
1 <?php
2 /*********************************************************************************
3  * SugarCRM Community Edition is a customer relationship management program developed by
4  * SugarCRM, Inc. Copyright (C) 2004-2011 SugarCRM Inc.
5  * 
6  * This program is free software; you can redistribute it and/or modify it under
7  * the terms of the GNU Affero General Public License version 3 as published by the
8  * Free Software Foundation with the addition of the following permission added
9  * to Section 15 as permitted in Section 7(a): FOR ANY PART OF THE COVERED WORK
10  * IN WHICH THE COPYRIGHT IS OWNED BY SUGARCRM, SUGARCRM DISCLAIMS THE WARRANTY
11  * OF NON INFRINGEMENT OF THIRD PARTY RIGHTS.
12  * 
13  * This program is distributed in the hope that it will be useful, but WITHOUT
14  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
15  * FOR A PARTICULAR PURPOSE.  See the GNU Affero General Public License for more
16  * details.
17  * 
18  * You should have received a copy of the GNU Affero General Public License along with
19  * this program; if not, see http://www.gnu.org/licenses or write to the Free
20  * Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
21  * 02110-1301 USA.
22  * 
23  * You can contact SugarCRM, Inc. headquarters at 10050 North Wolfe Road,
24  * SW2-130, Cupertino, CA 95014, USA. or at email address contact@sugarcrm.com.
25  * 
26  * The interactive user interfaces in modified source and object code versions
27  * of this program must display Appropriate Legal Notices, as required under
28  * Section 5 of the GNU Affero General Public License version 3.
29  * 
30  * In accordance with Section 7(b) of the GNU Affero General Public License version 3,
31  * these Appropriate Legal Notices must retain the display of the "Powered by
32  * SugarCRM" logo. If the display of the logo is not reasonably feasible for
33  * technical reasons, the Appropriate Legal Notices must display the words
34  * "Powered by SugarCRM".
35  ********************************************************************************/
36
37  $viewdefs = array (
38   'Opportunities' => 
39   array (
40     'DetailView' => 
41     array (
42       'templateMeta' => 
43       array (
44         'form' => 
45         array (
46           'buttons' => 
47           array (
48             0 => 'EDIT',
49             1 => 'DUPLICATE',
50             2 => 'DELETE',
51             3 => 
52             array (
53               'customCode' => '<input title="{$APP.LBL_DUP_MERGE}" accesskey="M" class="button" onclick="this.form.return_module.value=\'Opportunities\';this.form.return_action.value=\'DetailView\';this.form.return_id.value=\'{$fields.id.value}\'; this.form.action.value=\'Step1\'; this.form.module.value=\'MergeRecords\';" name="button" value="{$APP.LBL_DUP_MERGE}" type="submit">',
54             ),
55             4 => 
56             array (
57               'customCode' => '<input title="Close Wizard" accesskey="Z" class="button" onclick="this.form.return_module.value=\'Opportunities\';this.form.return_action.value=\'DetailView\';this.form.return_id.value=\'{$fields.id.value}\'; this.form.action.value=\'OpportunityWizard\'; this.form.module.value=\'Opportunities\';" name="button" value="Close Wizard" type="submit">',
58             ),
59           ),
60         ),
61         'maxColumns' => '2',
62         'widths' => 
63         array (
64           0 => 
65           array (
66             'label' => '10',
67             'field' => '30',
68           ),
69           1 => 
70           array (
71             'label' => '10',
72             'field' => '30',
73           ),
74         ),
75       ),
76       'panels' => 
77       array (
78         'default' => 
79         array (
80           0 => 
81           array (
82             0 => 
83             array (
84               'name' => 'name',
85               'label' => 'LBL_OPPORTUNITY_NAME',
86             ),
87             1 => 
88             array (
89               'name' => 'amount',
90               'label' => '{$MOD.LBL_AMOUNT} ({$CURRENCY})',
91             ),
92           ),
93           1 => 
94           array (
95             0 => 
96             array (
97               'name' => 'account_name',
98               'label' => 'LBL_ACCOUNT_NAME',
99             ),
100             1 => 
101             array (
102               'name' => 'date_closed',
103               'label' => 'LBL_DATE_CLOSED',
104             ),
105           ),
106           '1.5' => 
107           array (
108             0 => 
109             array (
110               'name' => NULL,
111               'displayParams' => 
112               array (
113               ),
114             ),
115             1 => 
116             array (
117               'name' => 'discount_code_c',
118               'label' => 'LBL_DISCOUNT_CODE',
119             ),
120           ),
121           2 => 
122           array (
123             0 => 
124             array (
125               'name' => 'opportunity_type',
126               'label' => 'LBL_TYPE',
127             ),
128             1 => 
129             array (
130               'name' => 'users',
131               'label' => 'LBL_USERS_1',
132             ),
133           ),
134           3 => 
135           array (
136             0 => 
137             array (
138               'name' => 'email_client',
139               'label' => 'LBL_EMAIL_CLIENT',
140             ),
141             1 => 
142             array (
143               'name' => 'additional_support_cases_c',
144               'label' => 'Additional_Support_Cases__c',
145             ),
146           ),
147           4 => 
148           array (
149             0 => 
150             array (
151               'name' => 'processed_by_moofcart_c',
152               'label' => 'LBL_PROCESSED_BY_MOOFCART',
153             ),
154             1 => 
155             array (
156               'name' => 'additional_training_credits_c',
157               'label' => 'Learning_Credits__c',
158             ),
159           ),
160           5 => 
161           array (
162             0 => 
163             array (
164               'name' => 'trial_name_c',
165               'label' => 'Trial URL',
166             ),
167             1 => 
168             array (
169               'name' => 'sales_stage',
170               'label' => 'LBL_SALES_STAGE',
171             ),
172           ),
173           6 => 
174           array (
175             0 => 
176             array (
177               'name' => 'trial_expiration_c',
178               'label' => 'Trial Expiration',
179               'customCode' => '{php} global $timedate; $this->assign("jmo_trialExpirationDB", $timeDate->to_db($this->_tpl_vars["fields"]["trial_expiration_c"]["value"])); {/php} {$fields.trial_expiration_c.value}{if $fields.trial_extended_c.value eq 0 && !empty($fields.trial_name_c.value) && strtotime("now") < $jmo_trialExpirationDB|date_format:"%s"} &nbsp; <button type="submit" onClick="document.location=\'/scripts/7daytrials/trials.php?opportunity_id={$fields.id.value}\';">Extend Trial</button>{/if}',
180             ),
181             1 => 
182             array (
183               'name' => 'probability',
184               'label' => 'LBL_PROBABILITY',
185             ),
186           ),
187           7 => 
188           array (
189             0 => 
190             array (
191               'name' => 'campaign_name',
192               'label' => 'LBL_CAMPAIGN',
193             ),
194             1 => 'score_c',
195           ),
196           8 => 
197           array (
198             0 => 
199             array (
200               'name' => 'lead_source',
201               'label' => 'LBL_LEAD_SOURCE',
202             ),
203             1 => NULL,
204           ),
205           9 => 
206           array (
207             0 => 
208             array (
209               'name' => 'current_solution',
210               'label' => 'LBL_CURRENT_SOLUTION',
211             ),
212             1 => 
213             array (
214               'name' => 'Term_c',
215               'label' => 'Term__c',
216             ),
217           ),
218           10 => 
219           array (
220             0 => 
221             array (
222               'name' => 'competitor_1',
223               'label' => 'LBL_COMPETITOR_1',
224             ),
225             1 => 
226             array (
227               'name' => 'Revenue_Type_c',
228               'label' => 'Revenue_Type__c',
229             ),
230           ),
231           11 => 
232           array (
233             0 => 
234             array (
235               'name' => 'competitor_2',
236               'label' => 'LBL_COMPETITOR_2',
237             ),
238             1 => 
239             array (
240               'name' => 'renewal_date_c',
241               'label' => 'Renewal_Date_c',
242             ),
243           ),
244           12 => 
245           array (
246             0 => 
247             array (
248               'name' => 'competitor_3',
249               'label' => 'LBL_COMPETITOR_3',
250             ),
251             1 => 
252             array (
253               'name' => 'order_number',
254               'label' => 'LBL_ORDER_NUMBER',
255               'customCode' => '<a href="http://www.sugarcrm.com/sugarshop/admin/order.php?orderid={$fields.order_number.value}">{$fields.order_number.value}</a>',
256             ),
257           ),
258           13 => 
259           array (
260             0 => 
261             array (
262               'name' => 'competitor_expiration_c',
263               'label' => 'LBL_COMPETITOR_EXPIRATION',
264             ),
265             1 => 
266             array (
267               'name' => 'order_type_c',
268               'label' => 'LBL_ORDER_TYPE_C',
269             ),
270           ),
271           14 => 
272           array (
273             0 => NULL,
274             1 => 
275             array (
276               'name' => 'next_step',
277               'label' => 'LBL_NEXT_STEP',
278             ),
279           ),
280           15 => 
281           array (
282             0 => 
283             array (
284               'name' => 'demo_c',
285               'label' => 'Demo_1',
286             ),
287             1 => 
288             array (
289               'name' => 'next_step_due_date',
290               'label' => 'LBL_NEXT_STEP_DUE_DATE',
291             ),
292           ),
293           16 => 
294           array (
295             0 => 
296             array (
297               'name' => 'demo_date_c',
298               'label' => 'Demo Date',
299             ),
300             1 => 
301             array (
302               'name' => 'top20deal_c',
303               'label' => 'LBL_TOP20DEAL',
304             ),
305           ),
306           17 => 
307           array (
308             0 => 
309             array (
310               'name' => 'evaluation',
311               'label' => 'LBL_EVALUATION',
312             ),
313             1 => 
314             array (
315               'name' => 'closed_lost_reason_c',
316               'label' => 'LBL_CLOSED_LOST_REASON_C',
317             ),
318           ),
319           18 => 
320           array (
321             0 => 
322             array (
323               'name' => 'evaluation_start_date',
324               'label' => 'LBL_EVALUATION_START_DATE',
325             ),
326             1 => 
327             array (
328               'name' => 'closed_lost_reason_detail_c',
329               'label' => 'LBL_CLOSED_LOST_REASON_DETAIL',
330             ),
331           ),
332           19 => 
333           array (
334             0 => 
335             array (
336               'name' => 'Evaluation_Close_Date_c',
337               'label' => 'Evaluation_Close_Date__c',
338             ),
339             1 => 
340             array (
341               'name' => 'primary_reason_competitor_c',
342               'label' => 'LBL_PRIMARY_REASON_COMPETITOR',
343             ),
344           ),
345           20 => 
346           array (
347             0 => 
348             array (
349             ),
350             1 => 
351             array (
352               'name' => 'closed_lost_description',
353               'label' => 'LBL_CLOSED_LOST_DESCRIPTION',
354             ),
355           ),
356           21 => 
357           array (
358             0 => 
359             array (
360               'name' => 'partner_assigned_to_c',
361               'label' => 'Partner_Assigned_To_c',
362               'customCode' => '{assign var=partner_assigned_to_key value=$fields.partner_assigned_to_c.value}<a href="index.php?module=Accounts&action=DetailView&record={$partner_assigned_to_key}">{$APP_LIST_STRINGS.partner_assigned_to.$partner_assigned_to_key}</a>',
363             ),
364             1 => 
365             array (
366               'name' => 'accepted_by_partner_c',
367               'label' => 'LBL_ACCEPTED_BY_PARTNER',
368             ),
369           ),
370           22 => 
371           array (
372             0 => 
373             array (
374               'name' => 'team_name',
375               'label' => 'LBL_TEAM',
376             ),
377             1 => 
378             array (
379               'name' => 'partner_contact_c',
380               'label' => 'LBL_PARTNER_CONTACT',
381             ),
382           ),
383           23 => 
384           array (
385             0 => 
386             array (
387               'name' => 'assigned_user_name',
388               'label' => 'LBL_ASSIGNED_TO_NAME',
389             ),
390             1 => 
391             array (
392               'name' => 'date_modified',
393               'label' => 'LBL_DATE_MODIFIED',
394               'customCode' => '{$fields.date_modified.value} {$APP.LBL_BY} {$fields.modified_by_name.value}',
395             ),
396           ),
397           24 => 
398           array (
399             0 => 
400             array (
401               'name' => 'associated_rep_c',
402               'label' => 'Associated_Rep_c',
403             ),
404             1 => 
405             array (
406               'name' => 'date_entered',
407               'customCode' => '{$fields.date_entered.value} {$APP.LBL_BY} {$fields.created_by_name.value}',
408               'label' => 'LBL_DATE_ENTERED',
409             ),
410           ),
411           25 => 
412           array (
413             0 => 
414             array (
415               'name' => 'description',
416               'nl2br' => true,
417               'label' => 'LBL_DESCRIPTION',
418             ),
419           ),
420         ),
421       ),
422     ),
423   ),
424 );
425 ?>