@@ -40,9 +40,9 @@ |
||
40 | 40 | require_once('modules/AM_TaskTemplates/AM_TaskTemplates_sugar.php'); |
41 | 41 | class AM_TaskTemplates extends AM_TaskTemplates_sugar { |
42 | 42 | |
43 | - function AM_TaskTemplates(){ |
|
44 | - parent::AM_TaskTemplates_sugar(); |
|
45 | - } |
|
43 | + function AM_TaskTemplates(){ |
|
44 | + parent::AM_TaskTemplates_sugar(); |
|
45 | + } |
|
46 | 46 | |
47 | 47 | } |
48 | 48 | ?> |
49 | 49 | \ No newline at end of file |
@@ -4,11 +4,11 @@ discard block |
||
4 | 4 | |
5 | 5 | class Jjwg_MarkersViewMarker_Detail_Map extends SugarView { |
6 | 6 | |
7 | - function Jjwg_MarkersViewMarker_Detail_Map() { |
|
7 | + function Jjwg_MarkersViewMarker_Detail_Map() { |
|
8 | 8 | parent::SugarView(); |
9 | - } |
|
9 | + } |
|
10 | 10 | |
11 | - function display() { |
|
11 | + function display() { |
|
12 | 12 | |
13 | 13 | $custom_markers_dir = 'themes/default/images/jjwg_Markers/'; |
14 | 14 | |
@@ -131,6 +131,6 @@ discard block |
||
131 | 131 | |
132 | 132 | <?php |
133 | 133 | |
134 | - } |
|
134 | + } |
|
135 | 135 | |
136 | 136 | } |
@@ -4,11 +4,11 @@ discard block |
||
4 | 4 | |
5 | 5 | class Jjwg_MarkersViewMarker_Edit_Map extends SugarView { |
6 | 6 | |
7 | - function Jjwg_MarkersViewMarker_Edit_Map() { |
|
7 | + function Jjwg_MarkersViewMarker_Edit_Map() { |
|
8 | 8 | parent::SugarView(); |
9 | - } |
|
9 | + } |
|
10 | 10 | |
11 | - function display() { |
|
11 | + function display() { |
|
12 | 12 | |
13 | 13 | // Users local settings for decimal seperator and number grouping seperator |
14 | 14 | $dec_sep = $GLOBALS['sugar_config']['default_decimal_seperator']; |
@@ -113,7 +113,7 @@ discard block |
||
113 | 113 | mapTypeId: google.maps.MapTypeId.ROADMAP |
114 | 114 | }); |
115 | 115 | <?php |
116 | - if (!empty($GLOBALS['loc']['image'])) { |
|
116 | + if (!empty($GLOBALS['loc']['image'])) { |
|
117 | 117 | ?> |
118 | 118 | var customImage = new google.maps.MarkerImage('<?php echo $custom_markers_dir; ?>/<?php echo javascript_escape($GLOBALS['loc']['image']); ?>.png', |
119 | 119 | new google.maps.Size(32,37), |
@@ -122,7 +122,7 @@ discard block |
||
122 | 122 | ); |
123 | 123 | var shape = {coord: [1, 1, 1, 37, 32, 37, 32, 1],type: 'poly'}; |
124 | 124 | <?php |
125 | - } // empty image |
|
125 | + } // empty image |
|
126 | 126 | ?> |
127 | 127 | |
128 | 128 | var marker = new google.maps.Marker({ |
@@ -176,6 +176,6 @@ discard block |
||
176 | 176 | |
177 | 177 | <?php |
178 | 178 | |
179 | - } |
|
179 | + } |
|
180 | 180 | |
181 | 181 | } |
@@ -5,39 +5,39 @@ |
||
5 | 5 | |
6 | 6 | class AccountsListViewSmarty extends ListViewSmarty { |
7 | 7 | |
8 | - function AccountsListViewSmarty(){ |
|
8 | + function AccountsListViewSmarty(){ |
|
9 | 9 | |
10 | - parent::ListViewSmarty(); |
|
11 | - $this->targetList = true; |
|
10 | + parent::ListViewSmarty(); |
|
11 | + $this->targetList = true; |
|
12 | 12 | |
13 | - } |
|
13 | + } |
|
14 | 14 | |
15 | - function process($file, $data, $htmlVar) { |
|
16 | - parent::process($file, $data, $htmlVar); |
|
15 | + function process($file, $data, $htmlVar) { |
|
16 | + parent::process($file, $data, $htmlVar); |
|
17 | 17 | |
18 | - if(!ACLController::checkAccess($this->seed->module_dir,'export',true) || !$this->export) { |
|
19 | - $this->ss->assign('exportLink', $this->buildExportLink()); |
|
20 | - } |
|
21 | - } |
|
18 | + if(!ACLController::checkAccess($this->seed->module_dir,'export',true) || !$this->export) { |
|
19 | + $this->ss->assign('exportLink', $this->buildExportLink()); |
|
20 | + } |
|
21 | + } |
|
22 | 22 | |
23 | - function buildExportLink($id = 'export_link'){ |
|
24 | - global $app_strings; |
|
25 | - global $sugar_config; |
|
23 | + function buildExportLink($id = 'export_link'){ |
|
24 | + global $app_strings; |
|
25 | + global $sugar_config; |
|
26 | 26 | |
27 | - $script = ""; |
|
28 | - if(ACLController::checkAccess($this->seed->module_dir,'export',true)) { |
|
29 | - if($this->export) { |
|
30 | - $script = parent::buildExportLink($id); |
|
31 | - } |
|
32 | - } |
|
27 | + $script = ""; |
|
28 | + if(ACLController::checkAccess($this->seed->module_dir,'export',true)) { |
|
29 | + if($this->export) { |
|
30 | + $script = parent::buildExportLink($id); |
|
31 | + } |
|
32 | + } |
|
33 | 33 | |
34 | 34 | $script .= "<a href='javascript:void(0)' id='map_listview_top' " . |
35 | 35 | " onclick=\"return sListView.send_form(true, 'jjwg_Maps', " . |
36 | 36 | "'index.php?entryPoint=jjwg_Maps&display_module={$_REQUEST['module']}', " . |
37 | 37 | "'{$app_strings['LBL_LISTVIEW_NO_SELECTED']}')\">{$app_strings['LBL_MAP']}</a>"; |
38 | 38 | |
39 | - return formLetter::LVSmarty().$script; |
|
40 | - } |
|
39 | + return formLetter::LVSmarty().$script; |
|
40 | + } |
|
41 | 41 | |
42 | 42 | } |
43 | 43 |
@@ -41,63 +41,63 @@ |
||
41 | 41 | class AccountsViewDetail extends ViewDetail { |
42 | 42 | |
43 | 43 | |
44 | - function AccountsViewDetail(){ |
|
45 | - parent::ViewDetail(); |
|
46 | - } |
|
44 | + function AccountsViewDetail(){ |
|
45 | + parent::ViewDetail(); |
|
46 | + } |
|
47 | 47 | |
48 | - /** |
|
49 | - * display |
|
50 | - * Override the display method to support customization for the buttons that display |
|
51 | - * a popup and allow you to copy the account's address into the selected contacts. |
|
52 | - * The custom_code_billing and custom_code_shipping Smarty variables are found in |
|
53 | - * include/SugarFields/Fields/Address/DetailView.tpl (default). If it's a English U.S. |
|
54 | - * locale then it'll use file include/SugarFields/Fields/Address/en_us.DetailView.tpl. |
|
55 | - */ |
|
56 | - function display(){ |
|
48 | + /** |
|
49 | + * display |
|
50 | + * Override the display method to support customization for the buttons that display |
|
51 | + * a popup and allow you to copy the account's address into the selected contacts. |
|
52 | + * The custom_code_billing and custom_code_shipping Smarty variables are found in |
|
53 | + * include/SugarFields/Fields/Address/DetailView.tpl (default). If it's a English U.S. |
|
54 | + * locale then it'll use file include/SugarFields/Fields/Address/en_us.DetailView.tpl. |
|
55 | + */ |
|
56 | + function display(){ |
|
57 | 57 | |
58 | - if(empty($this->bean->id)){ |
|
59 | - global $app_strings; |
|
60 | - sugar_die($app_strings['ERROR_NO_RECORD']); |
|
61 | - } |
|
58 | + if(empty($this->bean->id)){ |
|
59 | + global $app_strings; |
|
60 | + sugar_die($app_strings['ERROR_NO_RECORD']); |
|
61 | + } |
|
62 | 62 | |
63 | - require_once('modules/AOS_PDF_Templates/formLetter.php'); |
|
64 | - formLetter::DVPopupHtml('Accounts'); |
|
63 | + require_once('modules/AOS_PDF_Templates/formLetter.php'); |
|
64 | + formLetter::DVPopupHtml('Accounts'); |
|
65 | 65 | |
66 | - $this->dv->process(); |
|
67 | - global $mod_strings; |
|
68 | - if(ACLController::checkAccess('Contacts', 'edit', true)) { |
|
69 | - $push_billing = '<input class="button" title="' . $mod_strings['LBL_PUSH_CONTACTS_BUTTON_LABEL'] . |
|
70 | - '" type="button" onclick=\'open_contact_popup("Contacts", 600, 600, "&account_name=' . |
|
71 | - $this->bean->name . '&html=change_address' . |
|
72 | - '&primary_address_street=' . str_replace(array("\rn", "\r", "\n"), array('','','<br>'), urlencode($this->bean->billing_address_street)) . |
|
73 | - '&primary_address_city=' . $this->bean->billing_address_city . |
|
74 | - '&primary_address_state=' . $this->bean->billing_address_state . |
|
75 | - '&primary_address_postalcode=' . $this->bean->billing_address_postalcode . |
|
76 | - '&primary_address_country=' . $this->bean->billing_address_country . |
|
77 | - '", true, false);\' value="' . $mod_strings['LBL_PUSH_CONTACTS_BUTTON_TITLE']. '">'; |
|
78 | - $push_shipping = '<input class="button" title="' . $mod_strings['LBL_PUSH_CONTACTS_BUTTON_LABEL'] . |
|
79 | - '" type="button" onclick=\'open_contact_popup("Contacts", 600, 600, "&account_name=' . |
|
80 | - $this->bean->name . '&html=change_address' . |
|
81 | - '&primary_address_street=' . str_replace(array("\rn", "\r", "\n"), array('','','<br>'), urlencode($this->bean->shipping_address_street)) . |
|
82 | - '&primary_address_city=' . $this->bean->shipping_address_city . |
|
83 | - '&primary_address_state=' . $this->bean->shipping_address_state . |
|
84 | - '&primary_address_postalcode=' . $this->bean->shipping_address_postalcode . |
|
85 | - '&primary_address_country=' . $this->bean->shipping_address_country . |
|
86 | - '", true, false);\' value="' . $mod_strings['LBL_PUSH_CONTACTS_BUTTON_TITLE'] . '">'; |
|
87 | - } else { |
|
88 | - $push_billing = ''; |
|
89 | - $push_shipping = ''; |
|
90 | - } |
|
66 | + $this->dv->process(); |
|
67 | + global $mod_strings; |
|
68 | + if(ACLController::checkAccess('Contacts', 'edit', true)) { |
|
69 | + $push_billing = '<input class="button" title="' . $mod_strings['LBL_PUSH_CONTACTS_BUTTON_LABEL'] . |
|
70 | + '" type="button" onclick=\'open_contact_popup("Contacts", 600, 600, "&account_name=' . |
|
71 | + $this->bean->name . '&html=change_address' . |
|
72 | + '&primary_address_street=' . str_replace(array("\rn", "\r", "\n"), array('','','<br>'), urlencode($this->bean->billing_address_street)) . |
|
73 | + '&primary_address_city=' . $this->bean->billing_address_city . |
|
74 | + '&primary_address_state=' . $this->bean->billing_address_state . |
|
75 | + '&primary_address_postalcode=' . $this->bean->billing_address_postalcode . |
|
76 | + '&primary_address_country=' . $this->bean->billing_address_country . |
|
77 | + '", true, false);\' value="' . $mod_strings['LBL_PUSH_CONTACTS_BUTTON_TITLE']. '">'; |
|
78 | + $push_shipping = '<input class="button" title="' . $mod_strings['LBL_PUSH_CONTACTS_BUTTON_LABEL'] . |
|
79 | + '" type="button" onclick=\'open_contact_popup("Contacts", 600, 600, "&account_name=' . |
|
80 | + $this->bean->name . '&html=change_address' . |
|
81 | + '&primary_address_street=' . str_replace(array("\rn", "\r", "\n"), array('','','<br>'), urlencode($this->bean->shipping_address_street)) . |
|
82 | + '&primary_address_city=' . $this->bean->shipping_address_city . |
|
83 | + '&primary_address_state=' . $this->bean->shipping_address_state . |
|
84 | + '&primary_address_postalcode=' . $this->bean->shipping_address_postalcode . |
|
85 | + '&primary_address_country=' . $this->bean->shipping_address_country . |
|
86 | + '", true, false);\' value="' . $mod_strings['LBL_PUSH_CONTACTS_BUTTON_TITLE'] . '">'; |
|
87 | + } else { |
|
88 | + $push_billing = ''; |
|
89 | + $push_shipping = ''; |
|
90 | + } |
|
91 | 91 | |
92 | - $this->ss->assign("custom_code_billing", $push_billing); |
|
93 | - $this->ss->assign("custom_code_shipping", $push_shipping); |
|
92 | + $this->ss->assign("custom_code_billing", $push_billing); |
|
93 | + $this->ss->assign("custom_code_shipping", $push_shipping); |
|
94 | 94 | |
95 | 95 | if(empty($this->bean->id)){ |
96 | - global $app_strings; |
|
97 | - sugar_die($app_strings['ERROR_NO_RECORD']); |
|
98 | - } |
|
99 | - echo $this->dv->display(); |
|
100 | - } |
|
96 | + global $app_strings; |
|
97 | + sugar_die($app_strings['ERROR_NO_RECORD']); |
|
98 | + } |
|
99 | + echo $this->dv->display(); |
|
100 | + } |
|
101 | 101 | } |
102 | 102 | |
103 | 103 | ?> |
@@ -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 | ?> |