]> CyberLeo.Net >> Repos - Github/sugarcrm.git/blob - modules/Employees/metadata/detailviewdefs.php
Release 6.2.0
[Github/sugarcrm.git] / modules / Employees / 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['Employees']['DetailView'] = array(
38 'templateMeta' => array('form' => array('buttons'=>array(
39     array('customCode'=>'{if $DISPLAY_EDIT}<input title="{$APP.LBL_EDIT_BUTTON_TITLE}" accessKey="{$APP.LBL_EDIT_BUTTON_KEY}" class="button" onclick="this.form.return_module.value=\'{$module}\'; this.form.return_action.value=\'DetailView\'; this.form.return_id.value=\'{$id}\'; this.form.action.value=\'EditView\'" type="submit" name="Edit" id="edit_button" value="{$APP.LBL_EDIT_BUTTON_LABEL}">{/if}'), 
40     array('customCode'=>'{if $DISPLAY_DUPLICATE}<input title="{$APP.LBL_DUPLICATE_BUTTON_TITLE}" accessKey="{$APP.LBL_DUPLICATE_BUTTON_KEY}" class="button" onclick="this.form.return_module.value=\'{$module}\'     ; this.form.return_action.value=\'DetailView\'; this.form.return_id.value=\'{$id}\'; this.form.isDuplicate.value=true; this.form.action.value=\'EditView\'" type="submit" name="Duplicate" value="{$APP.LBL_DUPLICATE_BUTTON_LABEL}" id="duplicate_button">{/if}'),
41     
42     array('customCode'=>'{if $DISPLAY_DELETE}<input title="{$APP.LBL_DELETE_BUTTON_LABEL}" accessKey="{$APP.LBL_DELETE_BUTTON_LABEL}" class="button" onclick="if( confirm(\'{$DELETE_WARNING}\') ) {ldelim} this.form.return_module.value=\'{$module}\'; this.form.return_action.value=\'index\'; this.form.return_id.value=\'{$id}\'; this.form.action.value=\'delete\'; this.form.submit();{rdelim}" type="button" name="Delete" value="{$APP.LBL_DELETE_BUTTON_LABEL}" id="delete_button">{/if}'),
43                                                          )
44                         ),
45                         'maxColumns' => '2', 
46                         'widths' => array(
47                                         array('label' => '10', 'field' => '30'), 
48                                         array('label' => '10', 'field' => '30')
49                                         ),
50                         ),
51 'panels' =>array (
52
53   array (
54         'employee_status',
55   ),
56   
57   array (
58     array (
59       'name' => 'first_name',
60       'customCode' => '{$fields.full_name.value}',
61       'label' => 'LBL_NAME',
62     ),
63   ),
64   
65   array (
66     
67     array (
68       'name' => 'title',
69       'label' => 'LBL_TITLE',
70     ),
71     
72     array (
73       'name' => 'phone_work',
74       'label' => 'LBL_OFFICE_PHONE',
75     ),
76   ),
77   
78   array (
79     
80     array (
81       'name' => 'department',
82       'label' => 'LBL_DEPARTMENT',
83     ),
84     
85     array (
86       'name' => 'phone_mobile',
87       'label' => 'LBL_MOBILE_PHONE',
88     ),
89   ),
90   
91   array (
92     
93     array (
94       'name' => 'reports_to_name',
95       'customCode' => '<a href="index.php?module=Employees&action=DetailView&record={$fields.reports_to_id.value}">{$fields.reports_to_name.value}</a>',
96       'label' => 'LBL_REPORTS_TO_NAME',
97     ),
98     
99     array (
100       'name' => 'phone_other',
101       'label' => 'LBL_OTHER',
102     ),
103   ),
104   
105   array (
106     '',
107     array (
108       'name' => 'phone_fax',
109       'label' => 'LBL_FAX',
110     ),
111   ),
112   
113   array (
114     
115     '',
116     
117     array (
118       'name' => 'phone_home',
119       'label' => 'LBL_HOME_PHONE',
120     ),
121   ),
122   
123   array (
124     
125     array (
126       'name' => 'messenger_type',
127       'label' => 'LBL_MESSENGER_TYPE',
128     ),
129   ),
130   
131   array (
132     
133     array (
134       'name' => 'messenger_id',
135       'label' => 'LBL_MESSENGER_ID',
136     ),
137   ),
138   
139   array (
140     
141     array (
142       'name' => 'address_country',
143       'customCode' => '{$fields.address_street.value}<br>{$fields.address_city.value} {$fields.address_state.value}&nbsp;&nbsp;{$fields.address_postalcode.value}<br>{$fields.address_country.value}',
144       'label' => 'LBL_ADDRESS',
145     ),
146   ),
147   
148   array (
149     
150     array (
151       'name' => 'description',
152       'label' => 'LBL_NOTES',
153     ),
154   ),
155   array(
156   array (
157       'name' => 'email1',
158       'label' => 'LBL_EMAIL',
159     ),
160   ),
161
162 )
163
164
165    
166 );
167 ?>