3 * Created on Aug 2, 2007
5 * To change the template for this generated file go to
6 * Window - Preferences - PHPeclipse - PHP - Code Templates
8 /*********************************************************************************
9 * SugarCRM Community Edition is a customer relationship management program developed by
10 * SugarCRM, Inc. Copyright (C) 2004-2012 SugarCRM Inc.
12 * This program is free software; you can redistribute it and/or modify it under
13 * the terms of the GNU Affero General Public License version 3 as published by the
14 * Free Software Foundation with the addition of the following permission added
15 * to Section 15 as permitted in Section 7(a): FOR ANY PART OF THE COVERED WORK
16 * IN WHICH THE COPYRIGHT IS OWNED BY SUGARCRM, SUGARCRM DISCLAIMS THE WARRANTY
17 * OF NON INFRINGEMENT OF THIRD PARTY RIGHTS.
19 * This program is distributed in the hope that it will be useful, but WITHOUT
20 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
21 * FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more
24 * You should have received a copy of the GNU Affero General Public License along with
25 * this program; if not, see http://www.gnu.org/licenses or write to the Free
26 * Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
29 * You can contact SugarCRM, Inc. headquarters at 10050 North Wolfe Road,
30 * SW2-130, Cupertino, CA 95014, USA. or at email address contact@sugarcrm.com.
32 * The interactive user interfaces in modified source and object code versions
33 * of this program must display Appropriate Legal Notices, as required under
34 * Section 5 of the GNU Affero General Public License version 3.
36 * In accordance with Section 7(b) of the GNU Affero General Public License version 3,
37 * these Appropriate Legal Notices must retain the display of the "Powered by
38 * SugarCRM" logo. If the display of the logo is not reasonably feasible for
39 * technical reasons, the Appropriate Legal Notices must display the words
40 * "Powered by SugarCRM".
41 ********************************************************************************/
43 $module_name = '<module_name>';
44 $_object_name = '<_object_name>';
45 $viewdefs[$module_name]['DetailView'] = array(
46 'templateMeta' => array('form' => array('buttons'=>array('EDIT', 'DUPLICATE', 'DELETE', 'FIND_DUPLICATES')),
49 array('label' => '10', 'field' => '30'),
50 array('label' => '10', 'field' => '30')
54 array('name', 'phone_office'),
55 array(array('name'=>'website', 'type'=>'link'), 'phone_fax'),
56 array('ticker_symbol', array('name'=>'phone_alternate', 'label'=>'LBL_OTHER_PHONE')),
57 array('', 'employees'),
58 array('ownership', 'rating'),
60 array($_object_name . '_type', 'annual_revenue'),
62 array('name'=>'date_modified', 'label'=>'LBL_DATE_MODIFIED', 'customCode'=>'{$fields.date_modified.value} {$APP.LBL_BY} {$fields.modified_by_name.value}')),
63 array(array('name'=>'assigned_user_name', 'label'=>'LBL_ASSIGNED_TO_NAME'),
64 array('name'=>'date_entered', 'customCode'=>'{$fields.date_entered.value} {$APP.LBL_BY} {$fields.created_by_name.value}')),
67 'name' => 'billing_address_street',
68 'label'=> 'LBL_BILLING_ADDRESS',
70 'displayParams'=>array('key'=>'billing'),
73 'name' => 'shipping_address_street',
74 'label'=> 'LBL_SHIPPING_ADDRESS',
76 'displayParams'=>array('key'=>'shipping'),