@@ -44,46 +44,46 @@ |
||
44 | 44 | |
45 | 45 | class CallsViewEdit extends ViewEdit |
46 | 46 | { |
47 | - /** |
|
48 | - * @see SugarView::preDisplay() |
|
49 | - */ |
|
50 | - public function preDisplay() |
|
51 | - { |
|
52 | - if($_REQUEST['module'] != 'Calls' && isset($_REQUEST['status']) && empty($_REQUEST['status'])) { |
|
53 | - $this->bean->status = ''; |
|
54 | - } //if |
|
47 | + /** |
|
48 | + * @see SugarView::preDisplay() |
|
49 | + */ |
|
50 | + public function preDisplay() |
|
51 | + { |
|
52 | + if($_REQUEST['module'] != 'Calls' && isset($_REQUEST['status']) && empty($_REQUEST['status'])) { |
|
53 | + $this->bean->status = ''; |
|
54 | + } //if |
|
55 | 55 | if(!empty($_REQUEST['status']) && ($_REQUEST['status'] == 'Held')) { |
56 | - $this->bean->status = 'Held'; |
|
57 | - } |
|
58 | - parent::preDisplay(); |
|
59 | - } |
|
56 | + $this->bean->status = 'Held'; |
|
57 | + } |
|
58 | + parent::preDisplay(); |
|
59 | + } |
|
60 | 60 | |
61 | - /** |
|
62 | - * @see SugarView::display() |
|
63 | - */ |
|
64 | - public function display() |
|
65 | - { |
|
66 | - global $json; |
|
61 | + /** |
|
62 | + * @see SugarView::display() |
|
63 | + */ |
|
64 | + public function display() |
|
65 | + { |
|
66 | + global $json; |
|
67 | 67 | $json = getJSONobj(); |
68 | 68 | $json_config = new json_config(); |
69 | - if (isset($this->bean->json_id) && !empty ($this->bean->json_id)) { |
|
70 | - $javascript = $json_config->get_static_json_server(false, true, 'Calls', $this->bean->json_id); |
|
69 | + if (isset($this->bean->json_id) && !empty ($this->bean->json_id)) { |
|
70 | + $javascript = $json_config->get_static_json_server(false, true, 'Calls', $this->bean->json_id); |
|
71 | 71 | |
72 | - } else { |
|
73 | - $this->bean->json_id = $this->bean->id; |
|
74 | - $javascript = $json_config->get_static_json_server(false, true, 'Calls', $this->bean->id); |
|
72 | + } else { |
|
73 | + $this->bean->json_id = $this->bean->id; |
|
74 | + $javascript = $json_config->get_static_json_server(false, true, 'Calls', $this->bean->id); |
|
75 | 75 | |
76 | - } |
|
77 | - $this->ss->assign('JSON_CONFIG_JAVASCRIPT', $javascript); |
|
76 | + } |
|
77 | + $this->ss->assign('JSON_CONFIG_JAVASCRIPT', $javascript); |
|
78 | 78 | |
79 | - $this->ss->assign('remindersData', Reminder::loadRemindersData('Calls', $this->bean->id, $this->ev->isDuplicate)); |
|
80 | - $this->ss->assign('remindersDataJson', Reminder::loadRemindersDataJson('Calls', $this->bean->id, $this->ev->isDuplicate)); |
|
81 | - $this->ss->assign('remindersDefaultValuesDataJson', Reminder::loadRemindersDefaultValuesDataJson()); |
|
82 | - $this->ss->assign('remindersDisabled', json_encode(false)); |
|
79 | + $this->ss->assign('remindersData', Reminder::loadRemindersData('Calls', $this->bean->id, $this->ev->isDuplicate)); |
|
80 | + $this->ss->assign('remindersDataJson', Reminder::loadRemindersDataJson('Calls', $this->bean->id, $this->ev->isDuplicate)); |
|
81 | + $this->ss->assign('remindersDefaultValuesDataJson', Reminder::loadRemindersDefaultValuesDataJson()); |
|
82 | + $this->ss->assign('remindersDisabled', json_encode(false)); |
|
83 | 83 | |
84 | - if($this->ev->isDuplicate){ |
|
85 | - $this->bean->status = $this->bean->getDefaultStatus(); |
|
86 | - } //if |
|
87 | - parent::display(); |
|
88 | - } |
|
84 | + if($this->ev->isDuplicate){ |
|
85 | + $this->bean->status = $this->bean->getDefaultStatus(); |
|
86 | + } //if |
|
87 | + parent::display(); |
|
88 | + } |
|
89 | 89 | } |
@@ -86,29 +86,29 @@ discard block |
||
86 | 86 | $oddRow = true; |
87 | 87 | foreach($focus_users_list as $user) |
88 | 88 | { |
89 | - $user_fields = array( |
|
90 | - 'USER_NAME' => $user->user_name, |
|
91 | - 'FULL_NAME' => $user->first_name." ".$user->last_name, |
|
92 | - 'ID' => $user->id, |
|
93 | - 'EMAIL' => $user->email1, |
|
94 | - 'PHONE_WORK' => $user->phone_work |
|
95 | - ); |
|
89 | + $user_fields = array( |
|
90 | + 'USER_NAME' => $user->user_name, |
|
91 | + 'FULL_NAME' => $user->first_name." ".$user->last_name, |
|
92 | + 'ID' => $user->id, |
|
93 | + 'EMAIL' => $user->email1, |
|
94 | + 'PHONE_WORK' => $user->phone_work |
|
95 | + ); |
|
96 | 96 | |
97 | - $xtpl->assign("USER", $user_fields); |
|
97 | + $xtpl->assign("USER", $user_fields); |
|
98 | 98 | |
99 | - if($oddRow) |
|
99 | + if($oddRow) |
|
100 | 100 | { |
101 | 101 | //todo move to themes |
102 | - $xtpl->assign("ROW_COLOR", 'oddListRow'); |
|
102 | + $xtpl->assign("ROW_COLOR", 'oddListRow'); |
|
103 | 103 | } |
104 | 104 | else |
105 | 105 | { |
106 | 106 | //todo move to themes |
107 | - $xtpl->assign("ROW_COLOR", 'evenListRow'); |
|
107 | + $xtpl->assign("ROW_COLOR", 'evenListRow'); |
|
108 | 108 | } |
109 | 109 | $oddRow = !$oddRow; |
110 | 110 | |
111 | - $xtpl->parse("users.row"); |
|
111 | + $xtpl->parse("users.row"); |
|
112 | 112 | // Put the rows in. |
113 | 113 | } |
114 | 114 | |
@@ -120,30 +120,30 @@ discard block |
||
120 | 120 | |
121 | 121 | foreach($focus_contacts_list as $contact) |
122 | 122 | { |
123 | - $contact_fields = array( |
|
124 | - 'FIRST_NAME' => $contact->first_name, |
|
125 | - 'LAST_NAME' => $contact->last_name, |
|
126 | - 'ACCOUNT_NAME' => $contact->account_name, |
|
127 | - 'ID' => $contact->id, |
|
128 | - 'EMAIL' => $contact->email1, |
|
129 | - 'PHONE_WORK' => $contact->phone_work |
|
130 | - ); |
|
131 | - |
|
132 | - $xtpl->assign("CONTACT", $contact_fields); |
|
133 | - |
|
134 | - if($oddRow) |
|
123 | + $contact_fields = array( |
|
124 | + 'FIRST_NAME' => $contact->first_name, |
|
125 | + 'LAST_NAME' => $contact->last_name, |
|
126 | + 'ACCOUNT_NAME' => $contact->account_name, |
|
127 | + 'ID' => $contact->id, |
|
128 | + 'EMAIL' => $contact->email1, |
|
129 | + 'PHONE_WORK' => $contact->phone_work |
|
130 | + ); |
|
131 | + |
|
132 | + $xtpl->assign("CONTACT", $contact_fields); |
|
133 | + |
|
134 | + if($oddRow) |
|
135 | 135 | { |
136 | 136 | //todo move to themes |
137 | - $xtpl->assign("ROW_COLOR", 'oddListRow'); |
|
137 | + $xtpl->assign("ROW_COLOR", 'oddListRow'); |
|
138 | 138 | } |
139 | 139 | else |
140 | 140 | { |
141 | 141 | //todo move to themes |
142 | - $xtpl->assign("ROW_COLOR", 'evenListRow'); |
|
142 | + $xtpl->assign("ROW_COLOR", 'evenListRow'); |
|
143 | 143 | } |
144 | 144 | $oddRow = !$oddRow; |
145 | 145 | |
146 | - $xtpl->parse("contacts.row"); |
|
146 | + $xtpl->parse("contacts.row"); |
|
147 | 147 | // Put the rows in. |
148 | 148 | } |
149 | 149 |
@@ -98,7 +98,7 @@ discard block |
||
98 | 98 | $recipients = $this->getRecipients($id,'Meetings'); |
99 | 99 | $bean = new Meeting(); |
100 | 100 | $bean->retrieve($id); |
101 | - if ( $this->sendReminders($bean, $admin, $recipients) ) { |
|
101 | + if ( $this->sendReminders($bean, $admin, $recipients) ) { |
|
102 | 102 | $bean->email_reminder_sent = 1; |
103 | 103 | $bean->save(); |
104 | 104 | } |
@@ -198,7 +198,7 @@ discard block |
||
198 | 198 | * @param SugarBean $bean |
199 | 199 | * @param User $user |
200 | 200 | * @return XTemplate |
201 | - */ |
|
201 | + */ |
|
202 | 202 | protected function setReminderBody(XTemplate $xtpl, SugarBean $bean, User $user) |
203 | 203 | { |
204 | 204 |
@@ -40,13 +40,13 @@ discard block |
||
40 | 40 | |
41 | 41 | |
42 | 42 | function additionalDetailsLead($fields) { |
43 | - static $mod_strings; |
|
44 | - if(empty($mod_strings)) { |
|
45 | - global $current_language; |
|
46 | - $mod_strings = return_module_language($current_language, 'Leads'); |
|
47 | - } |
|
43 | + static $mod_strings; |
|
44 | + if(empty($mod_strings)) { |
|
45 | + global $current_language; |
|
46 | + $mod_strings = return_module_language($current_language, 'Leads'); |
|
47 | + } |
|
48 | 48 | |
49 | - $overlib_string = ''; |
|
49 | + $overlib_string = ''; |
|
50 | 50 | if(!empty($fields['ID'])) { |
51 | 51 | $overlib_string .= '<input type="hidden" value="'. $fields['ID']; |
52 | 52 | $overlib_string .= '">'; |
@@ -55,39 +55,39 @@ discard block |
||
55 | 55 | $overlib_string .= '<h2><img src="index.php?entryPoint=getImage&themeName=' . SugarThemeRegistry::current()->name .'&imageName=Leads.gif"/> '.$mod_strings['LBL_CONTACT'].'</h2>'; |
56 | 56 | |
57 | 57 | if(!empty($fields['PRIMARY_ADDRESS_STREET']) || !empty($fields['PRIMARY_ADDRESS_CITY']) || |
58 | - !empty($fields['PRIMARY_ADDRESS_STATE']) || !empty($fields['PRIMARY_ADDRESS_POSTALCODE']) || |
|
59 | - !empty($fields['PRIMARY_ADDRESS_COUNTRY'])) |
|
60 | - $overlib_string .= '<b>' . $mod_strings['LBL_PRIMARY_ADDRESS'] . '</b><br>'; |
|
61 | - if(!empty($fields['PRIMARY_ADDRESS_STREET'])) $overlib_string .= $fields['PRIMARY_ADDRESS_STREET'] . '<br>'; |
|
62 | - if(!empty($fields['PRIMARY_ADDRESS_CITY'])) $overlib_string .= $fields['PRIMARY_ADDRESS_CITY'] . ', '; |
|
63 | - if(!empty($fields['PRIMARY_ADDRESS_STATE'])) $overlib_string .= $fields['PRIMARY_ADDRESS_STATE'] . ' '; |
|
64 | - if(!empty($fields['PRIMARY_ADDRESS_POSTALCODE'])) $overlib_string .= $fields['PRIMARY_ADDRESS_POSTALCODE'] . ' '; |
|
65 | - if(!empty($fields['PRIMARY_ADDRESS_COUNTRY'])) $overlib_string .= $fields['PRIMARY_ADDRESS_COUNTRY'] . '<br>'; |
|
66 | - if(strlen($overlib_string) > 0 && !(strrpos($overlib_string, '<br>') == strlen($overlib_string) - 4)) |
|
67 | - $overlib_string .= '<br>'; |
|
68 | - if(!empty($fields['PHONE_MOBILE'])) $overlib_string .= '<b>'. $mod_strings['LBL_MOBILE_PHONE'] . '</b> <span class="phone">' . $fields['PHONE_MOBILE'] . '</span><br>'; |
|
69 | - if(!empty($fields['PHONE_HOME'])) $overlib_string .= '<b>'. $mod_strings['LBL_HOME_PHONE'] . '</b> <span class="phone">' . $fields['PHONE_HOME'] . '</span><br>'; |
|
70 | - if(!empty($fields['PHONE_OTHER'])) $overlib_string .= '<b>'. $mod_strings['LBL_OTHER_PHONE'] . '</b> <span class="phone">' . $fields['PHONE_OTHER'] . '</span><br>'; |
|
71 | - if(!empty($fields['LEAD_SOURCE'])) $overlib_string .= '<b>'. $mod_strings['LBL_LEAD_SOURCE'] . '</b> ' . $fields['LEAD_SOURCE'] . '<br>'; |
|
58 | + !empty($fields['PRIMARY_ADDRESS_STATE']) || !empty($fields['PRIMARY_ADDRESS_POSTALCODE']) || |
|
59 | + !empty($fields['PRIMARY_ADDRESS_COUNTRY'])) |
|
60 | + $overlib_string .= '<b>' . $mod_strings['LBL_PRIMARY_ADDRESS'] . '</b><br>'; |
|
61 | + if(!empty($fields['PRIMARY_ADDRESS_STREET'])) $overlib_string .= $fields['PRIMARY_ADDRESS_STREET'] . '<br>'; |
|
62 | + if(!empty($fields['PRIMARY_ADDRESS_CITY'])) $overlib_string .= $fields['PRIMARY_ADDRESS_CITY'] . ', '; |
|
63 | + if(!empty($fields['PRIMARY_ADDRESS_STATE'])) $overlib_string .= $fields['PRIMARY_ADDRESS_STATE'] . ' '; |
|
64 | + if(!empty($fields['PRIMARY_ADDRESS_POSTALCODE'])) $overlib_string .= $fields['PRIMARY_ADDRESS_POSTALCODE'] . ' '; |
|
65 | + if(!empty($fields['PRIMARY_ADDRESS_COUNTRY'])) $overlib_string .= $fields['PRIMARY_ADDRESS_COUNTRY'] . '<br>'; |
|
66 | + if(strlen($overlib_string) > 0 && !(strrpos($overlib_string, '<br>') == strlen($overlib_string) - 4)) |
|
67 | + $overlib_string .= '<br>'; |
|
68 | + if(!empty($fields['PHONE_MOBILE'])) $overlib_string .= '<b>'. $mod_strings['LBL_MOBILE_PHONE'] . '</b> <span class="phone">' . $fields['PHONE_MOBILE'] . '</span><br>'; |
|
69 | + if(!empty($fields['PHONE_HOME'])) $overlib_string .= '<b>'. $mod_strings['LBL_HOME_PHONE'] . '</b> <span class="phone">' . $fields['PHONE_HOME'] . '</span><br>'; |
|
70 | + if(!empty($fields['PHONE_OTHER'])) $overlib_string .= '<b>'. $mod_strings['LBL_OTHER_PHONE'] . '</b> <span class="phone">' . $fields['PHONE_OTHER'] . '</span><br>'; |
|
71 | + if(!empty($fields['LEAD_SOURCE'])) $overlib_string .= '<b>'. $mod_strings['LBL_LEAD_SOURCE'] . '</b> ' . $fields['LEAD_SOURCE'] . '<br>'; |
|
72 | 72 | |
73 | - if(!empty($fields['EMAIL2'])) |
|
74 | - $overlib_string .= '<b>'. $mod_strings['LBL_OTHER_EMAIL_ADDRESS'] . '</b> ' . |
|
75 | - "<a href=index.php?module=Emails&action=Compose&contact_id={$fields['ID']}&" . |
|
76 | - "parent_type=Contacts&parent_id={$fields['ID']}&to_addrs_ids={$fields['ID']}&to_addrs_names" . |
|
77 | - "={$fields['FIRST_NAME']} {$fields['LAST_NAME']}&to_addrs_emails={$fields['EMAIL2']}&" . |
|
78 | - "to_email_addrs=" . urlencode("{$fields['FIRST_NAME']} {$fields['LAST_NAME']} <{$fields['EMAIL2']}>") . |
|
79 | - "&return_module=Contacts&return_action=ListView'>{$fields['EMAIL2']}</a><br>"; |
|
73 | + if(!empty($fields['EMAIL2'])) |
|
74 | + $overlib_string .= '<b>'. $mod_strings['LBL_OTHER_EMAIL_ADDRESS'] . '</b> ' . |
|
75 | + "<a href=index.php?module=Emails&action=Compose&contact_id={$fields['ID']}&" . |
|
76 | + "parent_type=Contacts&parent_id={$fields['ID']}&to_addrs_ids={$fields['ID']}&to_addrs_names" . |
|
77 | + "={$fields['FIRST_NAME']} {$fields['LAST_NAME']}&to_addrs_emails={$fields['EMAIL2']}&" . |
|
78 | + "to_email_addrs=" . urlencode("{$fields['FIRST_NAME']} {$fields['LAST_NAME']} <{$fields['EMAIL2']}>") . |
|
79 | + "&return_module=Contacts&return_action=ListView'>{$fields['EMAIL2']}</a><br>"; |
|
80 | 80 | |
81 | - if(!empty($fields['DESCRIPTION'])) { |
|
82 | - $overlib_string .= '<b>'. $mod_strings['LBL_DESCRIPTION'] . '</b> ' . substr($fields['DESCRIPTION'], 0, 300); |
|
83 | - if(strlen($fields['DESCRIPTION']) > 300) $overlib_string .= '...'; |
|
84 | - } |
|
81 | + if(!empty($fields['DESCRIPTION'])) { |
|
82 | + $overlib_string .= '<b>'. $mod_strings['LBL_DESCRIPTION'] . '</b> ' . substr($fields['DESCRIPTION'], 0, 300); |
|
83 | + if(strlen($fields['DESCRIPTION']) > 300) $overlib_string .= '...'; |
|
84 | + } |
|
85 | 85 | |
86 | - return array('fieldToAddTo' => 'NAME', |
|
87 | - 'string' => $overlib_string, |
|
88 | - 'editLink' => "index.php?action=EditView&module=Leads&return_module=Leads&record={$fields['ID']}", |
|
89 | - 'viewLink' => "index.php?action=DetailView&module=Leads&return_module=Leads&record={$fields['ID']}"); |
|
86 | + return array('fieldToAddTo' => 'NAME', |
|
87 | + 'string' => $overlib_string, |
|
88 | + 'editLink' => "index.php?action=EditView&module=Leads&return_module=Leads&record={$fields['ID']}", |
|
89 | + 'viewLink' => "index.php?action=DetailView&module=Leads&return_module=Leads&record={$fields['ID']}"); |
|
90 | 90 | } |
91 | 91 | |
92 | - ?> |
|
92 | + ?> |
|
93 | 93 |
@@ -46,13 +46,13 @@ discard block |
||
46 | 46 | 'form'=>array( |
47 | 47 | 'hidden'=>array( |
48 | 48 | '<input type="hidden" name="opportunity_id" value="{$smarty.request.opportunity_id}">', |
49 | - '<input type="hidden" name="case_id" value="{$smarty.request.case_id}">', |
|
50 | - '<input type="hidden" name="bug_id" value="{$smarty.request.bug_id}">', |
|
51 | - '<input type="hidden" name="email_id" value="{$smarty.request.email_id}">', |
|
52 | - '<input type="hidden" name="inbound_email_id" value="{$smarty.request.inbound_email_id}">' |
|
49 | + '<input type="hidden" name="case_id" value="{$smarty.request.case_id}">', |
|
50 | + '<input type="hidden" name="bug_id" value="{$smarty.request.bug_id}">', |
|
51 | + '<input type="hidden" name="email_id" value="{$smarty.request.email_id}">', |
|
52 | + '<input type="hidden" name="inbound_email_id" value="{$smarty.request.inbound_email_id}">' |
|
53 | 53 | ) |
54 | 54 | ), |
55 | - 'maxColumns' => '2', |
|
55 | + 'maxColumns' => '2', |
|
56 | 56 | 'widths' => array( |
57 | 57 | array('label' => '10', 'field' => '30'), |
58 | 58 | array('label' => '10', 'field' => '30'), |
@@ -105,7 +105,7 @@ discard block |
||
105 | 105 | 'copyData' => true, |
106 | 106 | 'required' => true, |
107 | 107 | 'select' => "account_name", |
108 | - 'default_action' => 'create', |
|
108 | + 'default_action' => 'create', |
|
109 | 109 | 'relationship' => 'accounts_contacts', |
110 | 110 | 'templateMeta' => array( |
111 | 111 | 'form'=>array( |
@@ -229,7 +229,7 @@ discard block |
||
229 | 229 | array('name'=>'name', 'displayParams'=>array('size'=>90)), |
230 | 230 | ), |
231 | 231 | array ( |
232 | - 'date_start', |
|
232 | + 'date_start', |
|
233 | 233 | array ( |
234 | 234 | 'name' => 'duration_hours', |
235 | 235 | 'label' => 'LBL_DURATION', |
@@ -250,7 +250,7 @@ discard block |
||
250 | 250 | <span class="dateFormat">{sugar_translate label="LBL_HOURS_MINUTES" module="Calls"}', |
251 | 251 | 'displayParams' => |
252 | 252 | array ( |
253 | - 'required' => true, |
|
253 | + 'required' => true, |
|
254 | 254 | ), |
255 | 255 | ), |
256 | 256 | ), |
@@ -288,8 +288,8 @@ discard block |
||
288 | 288 | array('name'=>'name', 'displayParams'=>array('size'=>90)), |
289 | 289 | ), |
290 | 290 | array ( |
291 | - 'date_start', |
|
292 | - array ( |
|
291 | + 'date_start', |
|
292 | + array ( |
|
293 | 293 | 'name' => 'duration_hours', |
294 | 294 | 'label' => 'LBL_DURATION', |
295 | 295 | 'customCode' => '{literal} |
@@ -309,7 +309,7 @@ discard block |
||
309 | 309 | <span class="dateFormat">{sugar_translate label="LBL_HOURS_MINUTES" module="Calls"}', |
310 | 310 | 'displayParams' => |
311 | 311 | array ( |
312 | - 'required' => true, |
|
312 | + 'required' => true, |
|
313 | 313 | ), |
314 | 314 | ), |
315 | 315 | ), |
@@ -344,8 +344,8 @@ discard block |
||
344 | 344 | array ( |
345 | 345 | array('name'=>'name', 'displayParams'=>array('size'=>90)), |
346 | 346 | ), |
347 | - array ( |
|
348 | - 'status', 'priority' |
|
347 | + array ( |
|
348 | + 'status', 'priority' |
|
349 | 349 | ), |
350 | 350 | |
351 | 351 | array ( |
@@ -1,177 +1,177 @@ |
||
1 | 1 | <?php |
2 | 2 | $viewdefs ['Leads'] = |
3 | 3 | array ( |
4 | - 'EditView' => |
|
5 | - array ( |
|
4 | + 'EditView' => |
|
5 | + array ( |
|
6 | 6 | 'templateMeta' => |
7 | 7 | array ( |
8 | - 'form' => |
|
9 | - array ( |
|
8 | + 'form' => |
|
9 | + array ( |
|
10 | 10 | 'hidden' => |
11 | 11 | array ( |
12 | - 0 => '<input type="hidden" name="prospect_id" value="{if isset($smarty.request.prospect_id)}{$smarty.request.prospect_id}{else}{$bean->prospect_id}{/if}">', |
|
13 | - 1 => '<input type="hidden" name="account_id" value="{if isset($smarty.request.account_id)}{$smarty.request.account_id}{else}{$bean->account_id}{/if}">', |
|
14 | - 2 => '<input type="hidden" name="contact_id" value="{if isset($smarty.request.contact_id)}{$smarty.request.contact_id}{else}{$bean->contact_id}{/if}">', |
|
15 | - 3 => '<input type="hidden" name="opportunity_id" value="{if isset($smarty.request.opportunity_id)}{$smarty.request.opportunity_id}{else}{$bean->opportunity_id}{/if}">', |
|
12 | + 0 => '<input type="hidden" name="prospect_id" value="{if isset($smarty.request.prospect_id)}{$smarty.request.prospect_id}{else}{$bean->prospect_id}{/if}">', |
|
13 | + 1 => '<input type="hidden" name="account_id" value="{if isset($smarty.request.account_id)}{$smarty.request.account_id}{else}{$bean->account_id}{/if}">', |
|
14 | + 2 => '<input type="hidden" name="contact_id" value="{if isset($smarty.request.contact_id)}{$smarty.request.contact_id}{else}{$bean->contact_id}{/if}">', |
|
15 | + 3 => '<input type="hidden" name="opportunity_id" value="{if isset($smarty.request.opportunity_id)}{$smarty.request.opportunity_id}{else}{$bean->opportunity_id}{/if}">', |
|
16 | 16 | ), |
17 | 17 | 'buttons' => |
18 | 18 | array ( |
19 | - 0 => 'SAVE', |
|
20 | - 1 => 'CANCEL', |
|
19 | + 0 => 'SAVE', |
|
20 | + 1 => 'CANCEL', |
|
21 | 21 | ), |
22 | - ), |
|
23 | - 'maxColumns' => '2', |
|
24 | - 'widths' => |
|
25 | - array ( |
|
22 | + ), |
|
23 | + 'maxColumns' => '2', |
|
24 | + 'widths' => |
|
25 | + array ( |
|
26 | 26 | 0 => |
27 | 27 | array ( |
28 | - 'label' => '10', |
|
29 | - 'field' => '30', |
|
28 | + 'label' => '10', |
|
29 | + 'field' => '30', |
|
30 | 30 | ), |
31 | 31 | 1 => |
32 | 32 | array ( |
33 | - 'label' => '10', |
|
34 | - 'field' => '30', |
|
33 | + 'label' => '10', |
|
34 | + 'field' => '30', |
|
35 | 35 | ), |
36 | - ), |
|
37 | - 'javascript' => '<script type="text/javascript" language="Javascript">function copyAddressRight(form) {ldelim} form.alt_address_street.value = form.primary_address_street.value;form.alt_address_city.value = form.primary_address_city.value;form.alt_address_state.value = form.primary_address_state.value;form.alt_address_postalcode.value = form.primary_address_postalcode.value;form.alt_address_country.value = form.primary_address_country.value;return true; {rdelim} function copyAddressLeft(form) {ldelim} form.primary_address_street.value =form.alt_address_street.value;form.primary_address_city.value = form.alt_address_city.value;form.primary_address_state.value = form.alt_address_state.value;form.primary_address_postalcode.value =form.alt_address_postalcode.value;form.primary_address_country.value = form.alt_address_country.value;return true; {rdelim} </script>', |
|
38 | - 'useTabs' => false, |
|
39 | - 'tabDefs' => |
|
40 | - array ( |
|
36 | + ), |
|
37 | + 'javascript' => '<script type="text/javascript" language="Javascript">function copyAddressRight(form) {ldelim} form.alt_address_street.value = form.primary_address_street.value;form.alt_address_city.value = form.primary_address_city.value;form.alt_address_state.value = form.primary_address_state.value;form.alt_address_postalcode.value = form.primary_address_postalcode.value;form.alt_address_country.value = form.primary_address_country.value;return true; {rdelim} function copyAddressLeft(form) {ldelim} form.primary_address_street.value =form.alt_address_street.value;form.primary_address_city.value = form.alt_address_city.value;form.primary_address_state.value = form.alt_address_state.value;form.primary_address_postalcode.value =form.alt_address_postalcode.value;form.primary_address_country.value = form.alt_address_country.value;return true; {rdelim} </script>', |
|
38 | + 'useTabs' => false, |
|
39 | + 'tabDefs' => |
|
40 | + array ( |
|
41 | 41 | 'LBL_CONTACT_INFORMATION' => |
42 | 42 | array ( |
43 | - 'newTab' => false, |
|
44 | - 'panelDefault' => 'expanded', |
|
43 | + 'newTab' => false, |
|
44 | + 'panelDefault' => 'expanded', |
|
45 | 45 | ), |
46 | 46 | 'LBL_PANEL_ADVANCED' => |
47 | 47 | array ( |
48 | - 'newTab' => false, |
|
49 | - 'panelDefault' => 'expanded', |
|
48 | + 'newTab' => false, |
|
49 | + 'panelDefault' => 'expanded', |
|
50 | 50 | ), |
51 | 51 | 'LBL_PANEL_ASSIGNMENT' => |
52 | 52 | array ( |
53 | - 'newTab' => false, |
|
54 | - 'panelDefault' => 'expanded', |
|
53 | + 'newTab' => false, |
|
54 | + 'panelDefault' => 'expanded', |
|
55 | + ), |
|
55 | 56 | ), |
56 | - ), |
|
57 | 57 | ), |
58 | 58 | 'panels' => |
59 | 59 | array ( |
60 | - 'LBL_CONTACT_INFORMATION' => |
|
61 | - array ( |
|
60 | + 'LBL_CONTACT_INFORMATION' => |
|
61 | + array ( |
|
62 | 62 | 0 => |
63 | 63 | array ( |
64 | - 0 => |
|
65 | - array ( |
|
64 | + 0 => |
|
65 | + array ( |
|
66 | 66 | 'name' => 'first_name', |
67 | 67 | 'customCode' => '{html_options name="salutation" id="salutation" options=$fields.salutation.options selected=$fields.salutation.value} <input name="first_name" id="first_name" size="25" maxlength="25" type="text" value="{$fields.first_name.value}">', |
68 | - ), |
|
68 | + ), |
|
69 | 69 | ), |
70 | 70 | 1 => |
71 | 71 | array ( |
72 | - 0 => 'last_name', |
|
73 | - 1 => 'phone_work', |
|
72 | + 0 => 'last_name', |
|
73 | + 1 => 'phone_work', |
|
74 | 74 | ), |
75 | 75 | 2 => |
76 | 76 | array ( |
77 | - 0 => 'title', |
|
78 | - 1 => 'phone_mobile', |
|
77 | + 0 => 'title', |
|
78 | + 1 => 'phone_mobile', |
|
79 | 79 | ), |
80 | 80 | 3 => |
81 | 81 | array ( |
82 | - 0 => 'department', |
|
83 | - 1 => 'phone_fax', |
|
82 | + 0 => 'department', |
|
83 | + 1 => 'phone_fax', |
|
84 | 84 | ), |
85 | 85 | 4 => |
86 | 86 | array ( |
87 | - 0 => |
|
88 | - array ( |
|
87 | + 0 => |
|
88 | + array ( |
|
89 | 89 | 'name' => 'account_name', |
90 | 90 | 'type' => 'varchar', |
91 | 91 | 'validateDependency' => false, |
92 | 92 | 'customCode' => '<input name="account_name" id="EditView_account_name" {if ($fields.converted.value == 1)}disabled="true"{/if} size="30" maxlength="255" type="text" value="{$fields.account_name.value}">', |
93 | - ), |
|
94 | - 1 => 'website', |
|
93 | + ), |
|
94 | + 1 => 'website', |
|
95 | 95 | ), |
96 | 96 | 5 => |
97 | 97 | array ( |
98 | - 0 => |
|
99 | - array ( |
|
98 | + 0 => |
|
99 | + array ( |
|
100 | 100 | 'name' => 'primary_address_street', |
101 | 101 | 'hideLabel' => true, |
102 | 102 | 'type' => 'address', |
103 | 103 | 'displayParams' => |
104 | 104 | array ( |
105 | - 'key' => 'primary', |
|
106 | - 'rows' => 2, |
|
107 | - 'cols' => 30, |
|
108 | - 'maxlength' => 150, |
|
105 | + 'key' => 'primary', |
|
106 | + 'rows' => 2, |
|
107 | + 'cols' => 30, |
|
108 | + 'maxlength' => 150, |
|
109 | 109 | ), |
110 | - ), |
|
111 | - 1 => |
|
112 | - array ( |
|
110 | + ), |
|
111 | + 1 => |
|
112 | + array ( |
|
113 | 113 | 'name' => 'alt_address_street', |
114 | 114 | 'hideLabel' => true, |
115 | 115 | 'type' => 'address', |
116 | 116 | 'displayParams' => |
117 | 117 | array ( |
118 | - 'key' => 'alt', |
|
119 | - 'copy' => 'primary', |
|
120 | - 'rows' => 2, |
|
121 | - 'cols' => 30, |
|
122 | - 'maxlength' => 150, |
|
118 | + 'key' => 'alt', |
|
119 | + 'copy' => 'primary', |
|
120 | + 'rows' => 2, |
|
121 | + 'cols' => 30, |
|
122 | + 'maxlength' => 150, |
|
123 | + ), |
|
123 | 124 | ), |
124 | - ), |
|
125 | 125 | ), |
126 | 126 | 6 => |
127 | 127 | array ( |
128 | - 0 => 'email1', |
|
128 | + 0 => 'email1', |
|
129 | 129 | ), |
130 | 130 | 7 => |
131 | 131 | array ( |
132 | - 0 => 'description', |
|
132 | + 0 => 'description', |
|
133 | + ), |
|
133 | 134 | ), |
134 | - ), |
|
135 | - 'LBL_PANEL_ADVANCED' => |
|
136 | - array ( |
|
135 | + 'LBL_PANEL_ADVANCED' => |
|
136 | + array ( |
|
137 | 137 | 0 => |
138 | 138 | array ( |
139 | - 0 => 'status', |
|
140 | - 1 => 'lead_source', |
|
139 | + 0 => 'status', |
|
140 | + 1 => 'lead_source', |
|
141 | 141 | ), |
142 | 142 | 1 => |
143 | 143 | array ( |
144 | - 0 => |
|
145 | - array ( |
|
144 | + 0 => |
|
145 | + array ( |
|
146 | 146 | 'name' => 'status_description', |
147 | - ), |
|
148 | - 1 => |
|
149 | - array ( |
|
147 | + ), |
|
148 | + 1 => |
|
149 | + array ( |
|
150 | 150 | 'name' => 'lead_source_description', |
151 | - ), |
|
151 | + ), |
|
152 | 152 | ), |
153 | 153 | 2 => |
154 | 154 | array ( |
155 | - 0 => 'opportunity_amount', |
|
156 | - 1 => 'refered_by', |
|
155 | + 0 => 'opportunity_amount', |
|
156 | + 1 => 'refered_by', |
|
157 | 157 | ), |
158 | 158 | 3 => |
159 | 159 | array ( |
160 | - 0 => 'campaign_name', |
|
160 | + 0 => 'campaign_name', |
|
161 | 161 | ), |
162 | - ), |
|
163 | - 'LBL_PANEL_ASSIGNMENT' => |
|
164 | - array ( |
|
162 | + ), |
|
163 | + 'LBL_PANEL_ASSIGNMENT' => |
|
164 | + array ( |
|
165 | 165 | 0 => |
166 | 166 | array ( |
167 | - 0 => |
|
168 | - array ( |
|
167 | + 0 => |
|
168 | + array ( |
|
169 | 169 | 'name' => 'assigned_user_name', |
170 | 170 | 'label' => 'LBL_ASSIGNED_TO', |
171 | - ), |
|
171 | + ), |
|
172 | + ), |
|
172 | 173 | ), |
173 | - ), |
|
174 | 174 | ), |
175 | - ), |
|
175 | + ), |
|
176 | 176 | ); |
177 | 177 | ?> |
@@ -1,217 +1,217 @@ |
||
1 | 1 | <?php |
2 | 2 | $viewdefs ['Leads'] = |
3 | 3 | array ( |
4 | - 'DetailView' => |
|
5 | - array ( |
|
4 | + 'DetailView' => |
|
5 | + array ( |
|
6 | 6 | 'templateMeta' => |
7 | 7 | array ( |
8 | - 'form' => |
|
9 | - array ( |
|
8 | + 'form' => |
|
9 | + array ( |
|
10 | 10 | 'buttons' => |
11 | 11 | array ( |
12 | - 0 => 'EDIT', |
|
13 | - 1 => 'DUPLICATE', |
|
14 | - 2 => 'DELETE', |
|
15 | - 3 => |
|
16 | - array ( |
|
12 | + 0 => 'EDIT', |
|
13 | + 1 => 'DUPLICATE', |
|
14 | + 2 => 'DELETE', |
|
15 | + 3 => |
|
16 | + array ( |
|
17 | 17 | 'customCode' => '{if $bean->aclAccess("edit") && !$DISABLE_CONVERT_ACTION}<input title="{$MOD.LBL_CONVERTLEAD_TITLE}" accessKey="{$MOD.LBL_CONVERTLEAD_BUTTON_KEY}" type="button" class="button" onClick="document.location=\'index.php?module=Leads&action=ConvertLead&record={$fields.id.value}\'" name="convert" value="{$MOD.LBL_CONVERTLEAD}">{/if}', |
18 | 18 | 'sugar_html' => |
19 | 19 | array ( |
20 | - 'type' => 'button', |
|
21 | - 'value' => '{$MOD.LBL_CONVERTLEAD}', |
|
22 | - 'htmlOptions' => |
|
23 | - array ( |
|
20 | + 'type' => 'button', |
|
21 | + 'value' => '{$MOD.LBL_CONVERTLEAD}', |
|
22 | + 'htmlOptions' => |
|
23 | + array ( |
|
24 | 24 | 'title' => '{$MOD.LBL_CONVERTLEAD_TITLE}', |
25 | 25 | 'accessKey' => '{$MOD.LBL_CONVERTLEAD_BUTTON_KEY}', |
26 | 26 | 'class' => 'button', |
27 | 27 | 'onClick' => 'document.location=\'index.php?module=Leads&action=ConvertLead&record={$fields.id.value}\'', |
28 | 28 | 'name' => 'convert', |
29 | 29 | 'id' => 'convert_lead_button', |
30 | - ), |
|
31 | - 'template' => '{if $bean->aclAccess("edit") && !$DISABLE_CONVERT_ACTION}[CONTENT]{/if}', |
|
30 | + ), |
|
31 | + 'template' => '{if $bean->aclAccess("edit") && !$DISABLE_CONVERT_ACTION}[CONTENT]{/if}', |
|
32 | 32 | ), |
33 | - ), |
|
34 | - 4 => 'FIND_DUPLICATES', |
|
35 | - 5 => |
|
36 | - array ( |
|
33 | + ), |
|
34 | + 4 => 'FIND_DUPLICATES', |
|
35 | + 5 => |
|
36 | + array ( |
|
37 | 37 | 'customCode' => '<input title="{$APP.LBL_MANAGE_SUBSCRIPTIONS}" class="button" onclick="this.form.return_module.value=\'Leads\'; this.form.return_action.value=\'DetailView\';this.form.return_id.value=\'{$fields.id.value}\'; this.form.action.value=\'Subscriptions\'; this.form.module.value=\'Campaigns\'; this.form.module_tab.value=\'Leads\';" type="submit" name="Manage Subscriptions" value="{$APP.LBL_MANAGE_SUBSCRIPTIONS}">', |
38 | 38 | 'sugar_html' => |
39 | 39 | array ( |
40 | - 'type' => 'submit', |
|
41 | - 'value' => '{$APP.LBL_MANAGE_SUBSCRIPTIONS}', |
|
42 | - 'htmlOptions' => |
|
43 | - array ( |
|
40 | + 'type' => 'submit', |
|
41 | + 'value' => '{$APP.LBL_MANAGE_SUBSCRIPTIONS}', |
|
42 | + 'htmlOptions' => |
|
43 | + array ( |
|
44 | 44 | 'title' => '{$APP.LBL_MANAGE_SUBSCRIPTIONS}', |
45 | 45 | 'class' => 'button', |
46 | 46 | 'id' => 'manage_subscriptions_button', |
47 | 47 | 'onclick' => 'this.form.return_module.value=\'Leads\'; this.form.return_action.value=\'DetailView\';this.form.return_id.value=\'{$fields.id.value}\'; this.form.action.value=\'Subscriptions\'; this.form.module.value=\'Campaigns\'; this.form.module_tab.value=\'Leads\';', |
48 | 48 | 'name' => '{$APP.LBL_MANAGE_SUBSCRIPTIONS}', |
49 | - ), |
|
49 | + ), |
|
50 | + ), |
|
50 | 51 | ), |
51 | - ), |
|
52 | - 'AOS_GENLET' => |
|
53 | - array ( |
|
52 | + 'AOS_GENLET' => |
|
53 | + array ( |
|
54 | 54 | 'customCode' => '<input type="button" class="button" onClick="showPopup();" value="{$APP.LBL_GENERATE_LETTER}">', |
55 | - ), |
|
55 | + ), |
|
56 | 56 | ), |
57 | 57 | 'headerTpl' => 'modules/Leads/tpls/DetailViewHeader.tpl', |
58 | - ), |
|
59 | - 'maxColumns' => '2', |
|
60 | - 'widths' => |
|
61 | - array ( |
|
58 | + ), |
|
59 | + 'maxColumns' => '2', |
|
60 | + 'widths' => |
|
61 | + array ( |
|
62 | 62 | 0 => |
63 | 63 | array ( |
64 | - 'label' => '10', |
|
65 | - 'field' => '30', |
|
64 | + 'label' => '10', |
|
65 | + 'field' => '30', |
|
66 | 66 | ), |
67 | 67 | 1 => |
68 | 68 | array ( |
69 | - 'label' => '10', |
|
70 | - 'field' => '30', |
|
69 | + 'label' => '10', |
|
70 | + 'field' => '30', |
|
71 | + ), |
|
71 | 72 | ), |
72 | - ), |
|
73 | - 'includes' => |
|
74 | - array ( |
|
73 | + 'includes' => |
|
74 | + array ( |
|
75 | 75 | 0 => |
76 | 76 | array ( |
77 | - 'file' => 'modules/Leads/Lead.js', |
|
77 | + 'file' => 'modules/Leads/Lead.js', |
|
78 | + ), |
|
78 | 79 | ), |
79 | - ), |
|
80 | - 'useTabs' => true, |
|
81 | - 'tabDefs' => |
|
82 | - array ( |
|
80 | + 'useTabs' => true, |
|
81 | + 'tabDefs' => |
|
82 | + array ( |
|
83 | 83 | 'LBL_CONTACT_INFORMATION' => |
84 | 84 | array ( |
85 | - 'newTab' => true, |
|
86 | - 'panelDefault' => 'expanded', |
|
85 | + 'newTab' => true, |
|
86 | + 'panelDefault' => 'expanded', |
|
87 | 87 | ), |
88 | 88 | 'LBL_PANEL_ADVANCED' => |
89 | 89 | array ( |
90 | - 'newTab' => true, |
|
91 | - 'panelDefault' => 'expanded', |
|
90 | + 'newTab' => true, |
|
91 | + 'panelDefault' => 'expanded', |
|
92 | 92 | ), |
93 | 93 | 'LBL_PANEL_ASSIGNMENT' => |
94 | 94 | array ( |
95 | - 'newTab' => true, |
|
96 | - 'panelDefault' => 'expanded', |
|
95 | + 'newTab' => true, |
|
96 | + 'panelDefault' => 'expanded', |
|
97 | + ), |
|
97 | 98 | ), |
98 | - ), |
|
99 | 99 | ), |
100 | 100 | 'panels' => |
101 | 101 | array ( |
102 | - 'LBL_CONTACT_INFORMATION' => |
|
103 | - array ( |
|
102 | + 'LBL_CONTACT_INFORMATION' => |
|
103 | + array ( |
|
104 | 104 | 0 => |
105 | 105 | array ( |
106 | - 0 => |
|
107 | - array ( |
|
106 | + 0 => |
|
107 | + array ( |
|
108 | 108 | 'name' => 'full_name', |
109 | 109 | 'label' => 'LBL_NAME', |
110 | - ), |
|
111 | - 1 => 'phone_work', |
|
110 | + ), |
|
111 | + 1 => 'phone_work', |
|
112 | 112 | ), |
113 | 113 | 1 => |
114 | 114 | array ( |
115 | - 0 => 'title', |
|
116 | - 1 => 'phone_mobile', |
|
115 | + 0 => 'title', |
|
116 | + 1 => 'phone_mobile', |
|
117 | 117 | ), |
118 | 118 | 2 => |
119 | 119 | array ( |
120 | - 0 => 'department', |
|
121 | - 1 => 'phone_fax', |
|
120 | + 0 => 'department', |
|
121 | + 1 => 'phone_fax', |
|
122 | 122 | ), |
123 | 123 | 3 => |
124 | 124 | array ( |
125 | - 0 => |
|
126 | - array ( |
|
125 | + 0 => |
|
126 | + array ( |
|
127 | 127 | 'name' => 'account_name', |
128 | - ), |
|
129 | - 1 => 'website', |
|
128 | + ), |
|
129 | + 1 => 'website', |
|
130 | 130 | ), |
131 | 131 | 4 => |
132 | 132 | array ( |
133 | - 0 => |
|
134 | - array ( |
|
133 | + 0 => |
|
134 | + array ( |
|
135 | 135 | 'name' => 'primary_address_street', |
136 | 136 | 'label' => 'LBL_PRIMARY_ADDRESS', |
137 | 137 | 'type' => 'address', |
138 | 138 | 'displayParams' => |
139 | 139 | array ( |
140 | - 'key' => 'primary', |
|
140 | + 'key' => 'primary', |
|
141 | + ), |
|
141 | 142 | ), |
142 | - ), |
|
143 | - 1 => |
|
144 | - array ( |
|
143 | + 1 => |
|
144 | + array ( |
|
145 | 145 | 'name' => 'alt_address_street', |
146 | 146 | 'label' => 'LBL_ALTERNATE_ADDRESS', |
147 | 147 | 'type' => 'address', |
148 | 148 | 'displayParams' => |
149 | 149 | array ( |
150 | - 'key' => 'alt', |
|
150 | + 'key' => 'alt', |
|
151 | + ), |
|
151 | 152 | ), |
152 | - ), |
|
153 | 153 | ), |
154 | 154 | 5 => |
155 | 155 | array ( |
156 | - 0 => 'email1', |
|
156 | + 0 => 'email1', |
|
157 | 157 | ), |
158 | 158 | 6 => |
159 | 159 | array ( |
160 | - 0 => 'description', |
|
160 | + 0 => 'description', |
|
161 | 161 | ), |
162 | 162 | 7 => |
163 | 163 | array ( |
164 | - 0 => |
|
165 | - array ( |
|
164 | + 0 => |
|
165 | + array ( |
|
166 | 166 | 'name' => 'assigned_user_name', |
167 | 167 | 'label' => 'LBL_ASSIGNED_TO', |
168 | - ), |
|
168 | + ), |
|
169 | + ), |
|
169 | 170 | ), |
170 | - ), |
|
171 | - 'LBL_PANEL_ADVANCED' => |
|
172 | - array ( |
|
171 | + 'LBL_PANEL_ADVANCED' => |
|
172 | + array ( |
|
173 | 173 | 0 => |
174 | 174 | array ( |
175 | - 0 => 'status', |
|
176 | - 1 => 'lead_source', |
|
175 | + 0 => 'status', |
|
176 | + 1 => 'lead_source', |
|
177 | 177 | ), |
178 | 178 | 1 => |
179 | 179 | array ( |
180 | - 0 => 'status_description', |
|
181 | - 1 => 'lead_source_description', |
|
180 | + 0 => 'status_description', |
|
181 | + 1 => 'lead_source_description', |
|
182 | 182 | ), |
183 | 183 | 2 => |
184 | 184 | array ( |
185 | - 0 => 'opportunity_amount', |
|
186 | - 1 => 'refered_by', |
|
185 | + 0 => 'opportunity_amount', |
|
186 | + 1 => 'refered_by', |
|
187 | 187 | ), |
188 | 188 | 3 => |
189 | 189 | array ( |
190 | - 0 => |
|
191 | - array ( |
|
190 | + 0 => |
|
191 | + array ( |
|
192 | 192 | 'name' => 'campaign_name', |
193 | 193 | 'label' => 'LBL_CAMPAIGN', |
194 | - ), |
|
194 | + ), |
|
195 | + ), |
|
195 | 196 | ), |
196 | - ), |
|
197 | - 'LBL_PANEL_ASSIGNMENT' => |
|
198 | - array ( |
|
197 | + 'LBL_PANEL_ASSIGNMENT' => |
|
198 | + array ( |
|
199 | 199 | 0 => |
200 | 200 | array ( |
201 | - 0 => |
|
202 | - array ( |
|
201 | + 0 => |
|
202 | + array ( |
|
203 | 203 | 'name' => 'date_modified', |
204 | 204 | 'label' => 'LBL_DATE_MODIFIED', |
205 | 205 | 'customCode' => '{$fields.date_modified.value} {$APP.LBL_BY} {$fields.modified_by_name.value}', |
206 | - ), |
|
207 | - 1 => |
|
208 | - array ( |
|
206 | + ), |
|
207 | + 1 => |
|
208 | + array ( |
|
209 | 209 | 'name' => 'date_entered', |
210 | 210 | 'customCode' => '{$fields.date_entered.value} {$APP.LBL_BY} {$fields.created_by_name.value}', |
211 | - ), |
|
211 | + ), |
|
212 | 212 | ), |
213 | - ), |
|
213 | + ), |
|
214 | + ), |
|
214 | 215 | ), |
215 | - ), |
|
216 | 216 | ); |
217 | 217 | ?> |
@@ -47,131 +47,131 @@ |
||
47 | 47 | |
48 | 48 | $viewdefs ['Leads'] = |
49 | 49 | array ( |
50 | - 'QuickCreate' => |
|
51 | - array ( |
|
50 | + 'QuickCreate' => |
|
51 | + array ( |
|
52 | 52 | 'templateMeta' => |
53 | 53 | array ( |
54 | - 'form' => |
|
55 | - array ( |
|
54 | + 'form' => |
|
55 | + array ( |
|
56 | 56 | 'hidden' => |
57 | 57 | array ( |
58 | - 0 => '<input type="hidden" name="prospect_id" value="{if isset($smarty.request.prospect_id)}{$smarty.request.prospect_id}{else}{$bean->prospect_id}{/if}">', |
|
59 | - 1 => '<input type="hidden" name="contact_id" value="{if isset($smarty.request.contact_id)}{$smarty.request.contact_id}{else}{$bean->contact_id}{/if}">', |
|
60 | - 2 => '<input type="hidden" name="opportunity_id" value="{if isset($smarty.request.opportunity_id)}{$smarty.request.opportunity_id}{else}{$bean->opportunity_id}{/if}">', |
|
61 | - 3 => '<input type="hidden" name="account_id" value="{if isset($smarty.request.account_id)}{$smarty.request.account_id}{else}{$bean->account_id}{/if}">', |
|
58 | + 0 => '<input type="hidden" name="prospect_id" value="{if isset($smarty.request.prospect_id)}{$smarty.request.prospect_id}{else}{$bean->prospect_id}{/if}">', |
|
59 | + 1 => '<input type="hidden" name="contact_id" value="{if isset($smarty.request.contact_id)}{$smarty.request.contact_id}{else}{$bean->contact_id}{/if}">', |
|
60 | + 2 => '<input type="hidden" name="opportunity_id" value="{if isset($smarty.request.opportunity_id)}{$smarty.request.opportunity_id}{else}{$bean->opportunity_id}{/if}">', |
|
61 | + 3 => '<input type="hidden" name="account_id" value="{if isset($smarty.request.account_id)}{$smarty.request.account_id}{else}{$bean->account_id}{/if}">', |
|
62 | + ), |
|
62 | 63 | ), |
63 | - ), |
|
64 | - 'maxColumns' => '2', |
|
65 | - 'widths' => |
|
66 | - array ( |
|
64 | + 'maxColumns' => '2', |
|
65 | + 'widths' => |
|
66 | + array ( |
|
67 | 67 | 0 => |
68 | 68 | array ( |
69 | - 'label' => '10', |
|
70 | - 'field' => '30', |
|
69 | + 'label' => '10', |
|
70 | + 'field' => '30', |
|
71 | 71 | ), |
72 | 72 | 1 => |
73 | 73 | array ( |
74 | - 'label' => '10', |
|
75 | - 'field' => '30', |
|
74 | + 'label' => '10', |
|
75 | + 'field' => '30', |
|
76 | + ), |
|
76 | 77 | ), |
77 | - ), |
|
78 | - 'javascript' => '<script type="text/javascript" language="Javascript">function copyAddressRight(form) {ldelim} form.alt_address_street.value = form.primary_address_street.value;form.alt_address_city.value = form.primary_address_city.value;form.alt_address_state.value = form.primary_address_state.value;form.alt_address_postalcode.value = form.primary_address_postalcode.value;form.alt_address_country.value = form.primary_address_country.value;return true; {rdelim} function copyAddressLeft(form) {ldelim} form.primary_address_street.value =form.alt_address_street.value;form.primary_address_city.value = form.alt_address_city.value;form.primary_address_state.value = form.alt_address_state.value;form.primary_address_postalcode.value =form.alt_address_postalcode.value;form.primary_address_country.value = form.alt_address_country.value;return true; {rdelim} </script>', |
|
79 | - 'useTabs' => false, |
|
78 | + 'javascript' => '<script type="text/javascript" language="Javascript">function copyAddressRight(form) {ldelim} form.alt_address_street.value = form.primary_address_street.value;form.alt_address_city.value = form.primary_address_city.value;form.alt_address_state.value = form.primary_address_state.value;form.alt_address_postalcode.value = form.primary_address_postalcode.value;form.alt_address_country.value = form.primary_address_country.value;return true; {rdelim} function copyAddressLeft(form) {ldelim} form.primary_address_street.value =form.alt_address_street.value;form.primary_address_city.value = form.alt_address_city.value;form.primary_address_state.value = form.alt_address_state.value;form.primary_address_postalcode.value =form.alt_address_postalcode.value;form.primary_address_country.value = form.alt_address_country.value;return true; {rdelim} </script>', |
|
79 | + 'useTabs' => false, |
|
80 | 80 | ), |
81 | 81 | 'panels' => |
82 | 82 | array ( |
83 | - 'lbl_contact_information' => |
|
84 | - array ( |
|
83 | + 'lbl_contact_information' => |
|
84 | + array ( |
|
85 | 85 | 0 => |
86 | 86 | array ( |
87 | - 0 => |
|
88 | - array ( |
|
87 | + 0 => |
|
88 | + array ( |
|
89 | 89 | 'name' => 'first_name', |
90 | - ), |
|
91 | - 1 => |
|
92 | - array ( |
|
90 | + ), |
|
91 | + 1 => |
|
92 | + array ( |
|
93 | 93 | 'name' => 'status', |
94 | - ), |
|
94 | + ), |
|
95 | 95 | ), |
96 | 96 | 1 => |
97 | 97 | array ( |
98 | - 0 => |
|
99 | - array ( |
|
98 | + 0 => |
|
99 | + array ( |
|
100 | 100 | 'name' => 'last_name', |
101 | 101 | 'displayParams' => |
102 | 102 | array ( |
103 | - 'required' => true, |
|
103 | + 'required' => true, |
|
104 | + ), |
|
104 | 105 | ), |
105 | - ), |
|
106 | - 1 => |
|
107 | - array ( |
|
106 | + 1 => |
|
107 | + array ( |
|
108 | 108 | 'name' => 'phone_work', |
109 | - ), |
|
109 | + ), |
|
110 | 110 | ), |
111 | 111 | 2 => |
112 | 112 | array ( |
113 | - 0 => |
|
114 | - array ( |
|
113 | + 0 => |
|
114 | + array ( |
|
115 | 115 | 'name' => 'title', |
116 | - ), |
|
117 | - 1 => |
|
118 | - array ( |
|
116 | + ), |
|
117 | + 1 => |
|
118 | + array ( |
|
119 | 119 | 'name' => 'phone_mobile', |
120 | - ), |
|
120 | + ), |
|
121 | 121 | ), |
122 | 122 | 3 => |
123 | 123 | array ( |
124 | - 0 => |
|
125 | - array ( |
|
124 | + 0 => |
|
125 | + array ( |
|
126 | 126 | 'name' => 'department', |
127 | - ), |
|
128 | - 1 => |
|
129 | - array ( |
|
127 | + ), |
|
128 | + 1 => |
|
129 | + array ( |
|
130 | 130 | 'name' => 'phone_fax', |
131 | - ), |
|
131 | + ), |
|
132 | 132 | ), |
133 | 133 | 4 => |
134 | 134 | array ( |
135 | - 0 => |
|
136 | - array ( |
|
135 | + 0 => |
|
136 | + array ( |
|
137 | 137 | 'name' => 'account_name', |
138 | - ), |
|
139 | - 1 => |
|
140 | - array ( |
|
138 | + ), |
|
139 | + 1 => |
|
140 | + array ( |
|
141 | 141 | 'name' => 'do_not_call', |
142 | - ), |
|
142 | + ), |
|
143 | 143 | ), |
144 | 144 | 5 => |
145 | 145 | array ( |
146 | - 0 => |
|
147 | - array ( |
|
146 | + 0 => |
|
147 | + array ( |
|
148 | 148 | 'name' => 'email1', |
149 | - ), |
|
149 | + ), |
|
150 | 150 | ), |
151 | 151 | 6 => |
152 | 152 | array ( |
153 | - 0 => |
|
154 | - array ( |
|
153 | + 0 => |
|
154 | + array ( |
|
155 | 155 | 'name' => 'lead_source', |
156 | - ), |
|
157 | - 1 => |
|
158 | - array ( |
|
156 | + ), |
|
157 | + 1 => |
|
158 | + array ( |
|
159 | 159 | 'name' => 'refered_by', |
160 | - ), |
|
160 | + ), |
|
161 | 161 | ), |
162 | 162 | 7 => |
163 | 163 | array ( |
164 | - 0 => |
|
165 | - array ( |
|
164 | + 0 => |
|
165 | + array ( |
|
166 | 166 | 'name' => 'assigned_user_name', |
167 | - ), |
|
168 | - 1 => |
|
169 | - array ( |
|
167 | + ), |
|
168 | + 1 => |
|
169 | + array ( |
|
170 | 170 | 'name' => 'team_name', |
171 | - ), |
|
171 | + ), |
|
172 | 172 | ), |
173 | - ), |
|
173 | + ), |
|
174 | + ), |
|
174 | 175 | ), |
175 | - ), |
|
176 | 176 | ); |
177 | 177 | ?> |
178 | 178 | \ No newline at end of file |
@@ -43,8 +43,8 @@ discard block |
||
43 | 43 | |
44 | 44 | $listViewDefs ['Leads'] = |
45 | 45 | array ( |
46 | - 'NAME' => |
|
47 | - array ( |
|
46 | + 'NAME' => |
|
47 | + array ( |
|
48 | 48 | 'width' => '10%', |
49 | 49 | 'label' => 'LBL_LIST_NAME', |
50 | 50 | 'link' => true, |
@@ -52,180 +52,180 @@ discard block |
||
52 | 52 | 'default' => true, |
53 | 53 | 'related_fields' => |
54 | 54 | array ( |
55 | - 0 => 'first_name', |
|
56 | - 1 => 'last_name', |
|
57 | - 2 => 'salutation', |
|
55 | + 0 => 'first_name', |
|
56 | + 1 => 'last_name', |
|
57 | + 2 => 'salutation', |
|
58 | + ), |
|
58 | 59 | ), |
59 | - ), |
|
60 | - 'STATUS' => |
|
61 | - array ( |
|
60 | + 'STATUS' => |
|
61 | + array ( |
|
62 | 62 | 'width' => '7%', |
63 | 63 | 'label' => 'LBL_LIST_STATUS', |
64 | 64 | 'default' => true, |
65 | - ), |
|
66 | - 'ACCOUNT_NAME' => |
|
67 | - array ( |
|
65 | + ), |
|
66 | + 'ACCOUNT_NAME' => |
|
67 | + array ( |
|
68 | 68 | 'width' => '15%', |
69 | 69 | 'label' => 'LBL_LIST_ACCOUNT_NAME', |
70 | 70 | 'default' => true, |
71 | 71 | 'related_fields' => |
72 | 72 | array ( |
73 | - 0 => 'account_id', |
|
73 | + 0 => 'account_id', |
|
74 | + ), |
|
74 | 75 | ), |
75 | - ), |
|
76 | - 'PHONE_WORK' => |
|
77 | - array ( |
|
76 | + 'PHONE_WORK' => |
|
77 | + array ( |
|
78 | 78 | 'width' => '15%', |
79 | 79 | 'label' => 'LBL_LIST_PHONE', |
80 | 80 | 'default' => true, |
81 | - ), |
|
82 | - 'EMAIL1' => |
|
83 | - array ( |
|
81 | + ), |
|
82 | + 'EMAIL1' => |
|
83 | + array ( |
|
84 | 84 | 'width' => '16%', |
85 | 85 | 'label' => 'LBL_LIST_EMAIL_ADDRESS', |
86 | 86 | 'sortable' => false, |
87 | 87 | 'customCode' => '{$EMAIL1_LINK}{$EMAIL1}</a>', |
88 | 88 | 'default' => true, |
89 | - ), |
|
90 | - 'ASSIGNED_USER_NAME' => |
|
91 | - array ( |
|
89 | + ), |
|
90 | + 'ASSIGNED_USER_NAME' => |
|
91 | + array ( |
|
92 | 92 | 'width' => '5%', |
93 | 93 | 'label' => 'LBL_LIST_ASSIGNED_USER', |
94 | 94 | 'module' => 'Employees', |
95 | 95 | 'id' => 'ASSIGNED_USER_ID', |
96 | 96 | 'default' => true, |
97 | - ), |
|
98 | - 'TITLE' => |
|
99 | - array ( |
|
97 | + ), |
|
98 | + 'TITLE' => |
|
99 | + array ( |
|
100 | 100 | 'width' => '10%', |
101 | 101 | 'label' => 'LBL_TITLE', |
102 | 102 | 'default' => false, |
103 | - ), |
|
104 | - 'REFERED_BY' => |
|
105 | - array ( |
|
103 | + ), |
|
104 | + 'REFERED_BY' => |
|
105 | + array ( |
|
106 | 106 | 'width' => '10%', |
107 | 107 | 'label' => 'LBL_REFERED_BY', |
108 | 108 | 'default' => false, |
109 | - ), |
|
110 | - 'LEAD_SOURCE' => |
|
111 | - array ( |
|
109 | + ), |
|
110 | + 'LEAD_SOURCE' => |
|
111 | + array ( |
|
112 | 112 | 'width' => '10%', |
113 | 113 | 'label' => 'LBL_LEAD_SOURCE', |
114 | 114 | 'default' => false, |
115 | - ), |
|
116 | - 'DEPARTMENT' => |
|
117 | - array ( |
|
115 | + ), |
|
116 | + 'DEPARTMENT' => |
|
117 | + array ( |
|
118 | 118 | 'width' => '10%', |
119 | 119 | 'label' => 'LBL_DEPARTMENT', |
120 | 120 | 'default' => false, |
121 | - ), |
|
122 | - 'DO_NOT_CALL' => |
|
123 | - array ( |
|
121 | + ), |
|
122 | + 'DO_NOT_CALL' => |
|
123 | + array ( |
|
124 | 124 | 'width' => '10%', |
125 | 125 | 'label' => 'LBL_DO_NOT_CALL', |
126 | 126 | 'default' => false, |
127 | - ), |
|
128 | - 'PHONE_HOME' => |
|
129 | - array ( |
|
127 | + ), |
|
128 | + 'PHONE_HOME' => |
|
129 | + array ( |
|
130 | 130 | 'width' => '10%', |
131 | 131 | 'label' => 'LBL_HOME_PHONE', |
132 | 132 | 'default' => false, |
133 | - ), |
|
134 | - 'PHONE_MOBILE' => |
|
135 | - array ( |
|
133 | + ), |
|
134 | + 'PHONE_MOBILE' => |
|
135 | + array ( |
|
136 | 136 | 'width' => '10%', |
137 | 137 | 'label' => 'LBL_MOBILE_PHONE', |
138 | 138 | 'default' => false, |
139 | - ), |
|
140 | - 'PHONE_OTHER' => |
|
141 | - array ( |
|
139 | + ), |
|
140 | + 'PHONE_OTHER' => |
|
141 | + array ( |
|
142 | 142 | 'width' => '10%', |
143 | 143 | 'label' => 'LBL_OTHER_PHONE', |
144 | 144 | 'default' => false, |
145 | - ), |
|
146 | - 'PHONE_FAX' => |
|
147 | - array ( |
|
145 | + ), |
|
146 | + 'PHONE_FAX' => |
|
147 | + array ( |
|
148 | 148 | 'width' => '10%', |
149 | 149 | 'label' => 'LBL_FAX_PHONE', |
150 | 150 | 'default' => false, |
151 | - ), |
|
152 | - 'PRIMARY_ADDRESS_COUNTRY' => |
|
153 | - array ( |
|
151 | + ), |
|
152 | + 'PRIMARY_ADDRESS_COUNTRY' => |
|
153 | + array ( |
|
154 | 154 | 'width' => '10%', |
155 | 155 | 'label' => 'LBL_PRIMARY_ADDRESS_COUNTRY', |
156 | 156 | 'default' => false, |
157 | - ), |
|
158 | - 'PRIMARY_ADDRESS_STREET' => |
|
159 | - array ( |
|
157 | + ), |
|
158 | + 'PRIMARY_ADDRESS_STREET' => |
|
159 | + array ( |
|
160 | 160 | 'width' => '10%', |
161 | 161 | 'label' => 'LBL_PRIMARY_ADDRESS_STREET', |
162 | 162 | 'default' => false, |
163 | - ), |
|
164 | - 'PRIMARY_ADDRESS_CITY' => |
|
165 | - array ( |
|
163 | + ), |
|
164 | + 'PRIMARY_ADDRESS_CITY' => |
|
165 | + array ( |
|
166 | 166 | 'width' => '10%', |
167 | 167 | 'label' => 'LBL_PRIMARY_ADDRESS_CITY', |
168 | 168 | 'default' => false, |
169 | - ), |
|
170 | - 'PRIMARY_ADDRESS_STATE' => |
|
171 | - array ( |
|
169 | + ), |
|
170 | + 'PRIMARY_ADDRESS_STATE' => |
|
171 | + array ( |
|
172 | 172 | 'width' => '10%', |
173 | 173 | 'label' => 'LBL_PRIMARY_ADDRESS_STATE', |
174 | 174 | 'default' => false, |
175 | - ), |
|
176 | - 'PRIMARY_ADDRESS_POSTALCODE' => |
|
177 | - array ( |
|
175 | + ), |
|
176 | + 'PRIMARY_ADDRESS_POSTALCODE' => |
|
177 | + array ( |
|
178 | 178 | 'width' => '10%', |
179 | 179 | 'label' => 'LBL_PRIMARY_ADDRESS_POSTALCODE', |
180 | 180 | 'default' => false, |
181 | - ), |
|
182 | - 'ALT_ADDRESS_COUNTRY' => |
|
183 | - array ( |
|
181 | + ), |
|
182 | + 'ALT_ADDRESS_COUNTRY' => |
|
183 | + array ( |
|
184 | 184 | 'width' => '10%', |
185 | 185 | 'label' => 'LBL_ALT_ADDRESS_COUNTRY', |
186 | 186 | 'default' => false, |
187 | - ), |
|
188 | - 'ALT_ADDRESS_STREET' => |
|
189 | - array ( |
|
187 | + ), |
|
188 | + 'ALT_ADDRESS_STREET' => |
|
189 | + array ( |
|
190 | 190 | 'width' => '10%', |
191 | 191 | 'label' => 'LBL_ALT_ADDRESS_STREET', |
192 | 192 | 'default' => false, |
193 | - ), |
|
194 | - 'ALT_ADDRESS_CITY' => |
|
195 | - array ( |
|
193 | + ), |
|
194 | + 'ALT_ADDRESS_CITY' => |
|
195 | + array ( |
|
196 | 196 | 'width' => '10%', |
197 | 197 | 'label' => 'LBL_ALT_ADDRESS_CITY', |
198 | 198 | 'default' => false, |
199 | - ), |
|
200 | - 'ALT_ADDRESS_STATE' => |
|
201 | - array ( |
|
199 | + ), |
|
200 | + 'ALT_ADDRESS_STATE' => |
|
201 | + array ( |
|
202 | 202 | 'width' => '10%', |
203 | 203 | 'label' => 'LBL_ALT_ADDRESS_STATE', |
204 | 204 | 'default' => false, |
205 | - ), |
|
206 | - 'ALT_ADDRESS_POSTALCODE' => |
|
207 | - array ( |
|
205 | + ), |
|
206 | + 'ALT_ADDRESS_POSTALCODE' => |
|
207 | + array ( |
|
208 | 208 | 'width' => '10%', |
209 | 209 | 'label' => 'LBL_ALT_ADDRESS_POSTALCODE', |
210 | 210 | 'default' => false, |
211 | - ), |
|
212 | - 'CREATED_BY' => |
|
213 | - array ( |
|
211 | + ), |
|
212 | + 'CREATED_BY' => |
|
213 | + array ( |
|
214 | 214 | 'width' => '10%', |
215 | 215 | 'label' => 'LBL_CREATED', |
216 | 216 | 'default' => false, |
217 | - ), |
|
218 | - 'MODIFIED_BY_NAME' => |
|
219 | - array ( |
|
217 | + ), |
|
218 | + 'MODIFIED_BY_NAME' => |
|
219 | + array ( |
|
220 | 220 | 'width' => '5%', |
221 | 221 | 'label' => 'LBL_MODIFIED', |
222 | 222 | 'default' => false, |
223 | - ), |
|
224 | - 'DATE_ENTERED' => |
|
225 | - array ( |
|
223 | + ), |
|
224 | + 'DATE_ENTERED' => |
|
225 | + array ( |
|
226 | 226 | 'width' => '10%', |
227 | 227 | 'label' => 'LBL_DATE_ENTERED', |
228 | 228 | 'default' => true, |
229 | - ), |
|
229 | + ), |
|
230 | 230 | ); |
231 | 231 | ?> |
232 | 232 | \ No newline at end of file |