@@ -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 | } |
@@ -1,5 +1,5 @@ discard block |
||
1 | 1 | <?php |
2 | -if(!defined('sugarEntry') || !sugarEntry) die('Not A Valid Entry Point'); |
|
2 | +if (!defined('sugarEntry') || !sugarEntry) die('Not A Valid Entry Point'); |
|
3 | 3 | |
4 | 4 | /********************************************************************************* |
5 | 5 | * SugarCRM Community Edition is a customer relationship management program developed by |
@@ -49,10 +49,10 @@ discard block |
||
49 | 49 | */ |
50 | 50 | public function preDisplay() |
51 | 51 | { |
52 | - if($_REQUEST['module'] != 'Calls' && isset($_REQUEST['status']) && empty($_REQUEST['status'])) { |
|
52 | + if ($_REQUEST['module'] != 'Calls' && isset($_REQUEST['status']) && empty($_REQUEST['status'])) { |
|
53 | 53 | $this->bean->status = ''; |
54 | 54 | } //if |
55 | - if(!empty($_REQUEST['status']) && ($_REQUEST['status'] == 'Held')) { |
|
55 | + if (!empty($_REQUEST['status']) && ($_REQUEST['status'] == 'Held')) { |
|
56 | 56 | $this->bean->status = 'Held'; |
57 | 57 | } |
58 | 58 | parent::preDisplay(); |
@@ -81,7 +81,7 @@ discard block |
||
81 | 81 | $this->ss->assign('remindersDefaultValuesDataJson', Reminder::loadRemindersDefaultValuesDataJson()); |
82 | 82 | $this->ss->assign('remindersDisabled', json_encode(false)); |
83 | 83 | |
84 | - if($this->ev->isDuplicate){ |
|
84 | + if ($this->ev->isDuplicate) { |
|
85 | 85 | $this->bean->status = $this->bean->getDefaultStatus(); |
86 | 86 | } //if |
87 | 87 | parent::display(); |
@@ -1,5 +1,7 @@ |
||
1 | 1 | <?php |
2 | -if(!defined('sugarEntry') || !sugarEntry) die('Not A Valid Entry Point'); |
|
2 | +if(!defined('sugarEntry') || !sugarEntry) { |
|
3 | + die('Not A Valid Entry Point'); |
|
4 | +} |
|
3 | 5 | /********************************************************************************* |
4 | 6 | * SugarCRM Community Edition is a customer relationship management program developed by |
5 | 7 | * SugarCRM, Inc. Copyright (C) 2004-2013 SugarCRM Inc. |
@@ -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 |
@@ -1,5 +1,5 @@ discard block |
||
1 | 1 | <?php |
2 | -if(!defined('sugarEntry') || !sugarEntry) die('Not A Valid Entry Point'); |
|
2 | +if (!defined('sugarEntry') || !sugarEntry) die('Not A Valid Entry Point'); |
|
3 | 3 | /********************************************************************************* |
4 | 4 | * SugarCRM Community Edition is a customer relationship management program developed by |
5 | 5 | * SugarCRM, Inc. Copyright (C) 2004-2013 SugarCRM Inc. |
@@ -76,15 +76,15 @@ discard block |
||
76 | 76 | |
77 | 77 | // Stick the form header out there. |
78 | 78 | echo get_form_header($mod_strings['LBL_INVITEE'], $button, false); |
79 | -$xtpl=new XTemplate ('modules/Emails/SubPanelViewRecipients.html'); |
|
79 | +$xtpl = new XTemplate('modules/Emails/SubPanelViewRecipients.html'); |
|
80 | 80 | $xtpl->assign("MOD", $mod_strings); |
81 | 81 | $xtpl->assign("APP", $app_strings); |
82 | 82 | $xtpl->assign("RETURN_URL", "&return_module=$currentModule&return_action=DetailView&return_id=$focus->id"); |
83 | 83 | $xtpl->assign("EMAIL_ID", $focus->id); |
84 | -$xtpl->assign("DELETE_INLINE_PNG", SugarThemeRegistry::current()->getImage('delete_inline','align="absmiddle" border="0"',null,null,'.gif',$app_strings['LNK_REMOVE'])); |
|
85 | -$xtpl->assign("EDIT_INLINE_PNG", SugarThemeRegistry::current()->getImage('edit_inline','align="absmiddle" border="0"', null,null,'.gif',$app_strings['LNK_EDIT'])); |
|
84 | +$xtpl->assign("DELETE_INLINE_PNG", SugarThemeRegistry::current()->getImage('delete_inline', 'align="absmiddle" border="0"', null, null, '.gif', $app_strings['LNK_REMOVE'])); |
|
85 | +$xtpl->assign("EDIT_INLINE_PNG", SugarThemeRegistry::current()->getImage('edit_inline', 'align="absmiddle" border="0"', null, null, '.gif', $app_strings['LNK_EDIT'])); |
|
86 | 86 | $oddRow = true; |
87 | -foreach($focus_users_list as $user) |
|
87 | +foreach ($focus_users_list as $user) |
|
88 | 88 | { |
89 | 89 | $user_fields = array( |
90 | 90 | 'USER_NAME' => $user->user_name, |
@@ -96,7 +96,7 @@ discard block |
||
96 | 96 | |
97 | 97 | $xtpl->assign("USER", $user_fields); |
98 | 98 | |
99 | - if($oddRow) |
|
99 | + if ($oddRow) |
|
100 | 100 | { |
101 | 101 | //todo move to themes |
102 | 102 | $xtpl->assign("ROW_COLOR", 'oddListRow'); |
@@ -118,7 +118,7 @@ discard block |
||
118 | 118 | $oddRow = true; |
119 | 119 | print count($focus_contacts_list); |
120 | 120 | |
121 | -foreach($focus_contacts_list as $contact) |
|
121 | +foreach ($focus_contacts_list as $contact) |
|
122 | 122 | { |
123 | 123 | $contact_fields = array( |
124 | 124 | 'FIRST_NAME' => $contact->first_name, |
@@ -131,7 +131,7 @@ discard block |
||
131 | 131 | |
132 | 132 | $xtpl->assign("CONTACT", $contact_fields); |
133 | 133 | |
134 | - if($oddRow) |
|
134 | + if ($oddRow) |
|
135 | 135 | { |
136 | 136 | //todo move to themes |
137 | 137 | $xtpl->assign("ROW_COLOR", 'oddListRow'); |
@@ -1,5 +1,7 @@ discard block |
||
1 | 1 | <?php |
2 | -if(!defined('sugarEntry') || !sugarEntry) die('Not A Valid Entry Point'); |
|
2 | +if(!defined('sugarEntry') || !sugarEntry) { |
|
3 | + die('Not A Valid Entry Point'); |
|
4 | +} |
|
3 | 5 | /********************************************************************************* |
4 | 6 | * SugarCRM Community Edition is a customer relationship management program developed by |
5 | 7 | * SugarCRM, Inc. Copyright (C) 2004-2013 SugarCRM Inc. |
@@ -63,14 +65,19 @@ discard block |
||
63 | 65 | |
64 | 66 | $button = "<table cellspacing='0' cellpadding='1' border='0'><form border='0' action='index.php' method='post' name='form' id='form'>\n"; |
65 | 67 | $button .= "<input type='hidden' name='module' value='Contacts'>\n"; |
66 | -if ($currentModule == 'Accounts') $button .= "<input type='hidden' name='account_id' value='$focus->id'>\n<input type='hidden' name='account_name' value='$focus->name'>\n"; |
|
68 | +if ($currentModule == 'Accounts') { |
|
69 | + $button .= "<input type='hidden' name='account_id' value='$focus->id'>\n<input type='hidden' name='account_name' value='$focus->name'>\n"; |
|
70 | +} |
|
67 | 71 | $button .= "<input type='hidden' name='return_module' value='".$currentModule."'>\n"; |
68 | 72 | $button .= "<input type='hidden' name='return_action' value='".$action."'>\n"; |
69 | 73 | $button .= "<input type='hidden' name='return_id' value='".$focus->id."'>\n"; |
70 | 74 | $button .= "<input type='hidden' name='action'>\n"; |
71 | 75 | $button .= "<tr><td> </td>"; |
72 | -if ($focus->parent_type == "Accounts") $button .= "<td><input title='".$app_strings['LBL_SELECT_CONTACT_BUTTON_TITLE']."' type='button' class='button' value='".$app_strings['LBL_SELECT_CONTACT_BUTTON_LABEL']."' name='button' LANGUAGE=javascript onclick='window.open(\"index.php?module=Contacts&action=Popup&html=Popup_picker&form=DetailView&form_submit=true&query=true&account_id=$focus->parent_id&account_name=".urlencode($focus->parent_name)."\",\"new\",\"width=600,height=400,resizable=1,scrollbars=1\");'></td>\n"; |
|
73 | -else $button .= "<td><input title='".$app_strings['LBL_SELECT_CONTACT_BUTTON_TITLE']."' type='button' class='button' value='".$app_strings['LBL_SELECT_CONTACT_BUTTON_LABEL']."' name='button' LANGUAGE=javascript onclick='window.open(\"index.php?module=Contacts&action=Popup&html=Popup_picker&form=DetailView&form_submit=true\",\"new\",\"width=600,height=400,resizable=1,scrollbars=1\");'></td>\n"; |
|
76 | +if ($focus->parent_type == "Accounts") { |
|
77 | + $button .= "<td><input title='".$app_strings['LBL_SELECT_CONTACT_BUTTON_TITLE']."' type='button' class='button' value='".$app_strings['LBL_SELECT_CONTACT_BUTTON_LABEL']."' name='button' LANGUAGE=javascript onclick='window.open(\"index.php?module=Contacts&action=Popup&html=Popup_picker&form=DetailView&form_submit=true&query=true&account_id=$focus->parent_id&account_name=".urlencode($focus->parent_name)."\",\"new\",\"width=600,height=400,resizable=1,scrollbars=1\");'></td>\n"; |
|
78 | +} else { |
|
79 | + $button .= "<td><input title='".$app_strings['LBL_SELECT_CONTACT_BUTTON_TITLE']."' type='button' class='button' value='".$app_strings['LBL_SELECT_CONTACT_BUTTON_LABEL']."' name='button' LANGUAGE=javascript onclick='window.open(\"index.php?module=Contacts&action=Popup&html=Popup_picker&form=DetailView&form_submit=true\",\"new\",\"width=600,height=400,resizable=1,scrollbars=1\");'></td>\n"; |
|
80 | +} |
|
74 | 81 | $button .= "<td><input title='".$app_strings['LBL_SELECT_USER_BUTTON_TITLE']."' type='button' class='button' value='".$app_strings['LBL_SELECT_USER_BUTTON_LABEL']."' name='button' LANGUAGE=javascript onclick='window.open(\"index.php?module=Users&action=Popup&html=Popup_picker&form=DetailView&form_submit=true\",\"new\",\"width=600,height=400,resizable=1,scrollbars=1\");'></td>\n"; |
75 | 82 | $button .= "</tr></form></table>\n"; |
76 | 83 | |
@@ -100,8 +107,7 @@ discard block |
||
100 | 107 | { |
101 | 108 | //todo move to themes |
102 | 109 | $xtpl->assign("ROW_COLOR", 'oddListRow'); |
103 | - } |
|
104 | - else |
|
110 | + } else |
|
105 | 111 | { |
106 | 112 | //todo move to themes |
107 | 113 | $xtpl->assign("ROW_COLOR", 'evenListRow'); |
@@ -135,8 +141,7 @@ discard block |
||
135 | 141 | { |
136 | 142 | //todo move to themes |
137 | 143 | $xtpl->assign("ROW_COLOR", 'oddListRow'); |
138 | - } |
|
139 | - else |
|
144 | + } else |
|
140 | 145 | { |
141 | 146 | //todo move to themes |
142 | 147 | $xtpl->assign("ROW_COLOR", 'evenListRow'); |
@@ -1,5 +1,5 @@ discard block |
||
1 | 1 | <?php |
2 | -if(!defined('sugarEntry') || !sugarEntry) die('Not A Valid Entry Point'); |
|
2 | +if (!defined('sugarEntry') || !sugarEntry) die('Not A Valid Entry Point'); |
|
3 | 3 | /********************************************************************************* |
4 | 4 | * SugarCRM Community Edition is a customer relationship management program developed by |
5 | 5 | * SugarCRM, Inc. Copyright (C) 2004-2013 SugarCRM Inc. |
@@ -42,7 +42,7 @@ discard block |
||
42 | 42 | |
43 | 43 | |
44 | 44 | |
45 | - global $json,$current_user; |
|
45 | + global $json, $current_user; |
|
46 | 46 | |
47 | 47 | |
48 | 48 | if ($_REQUEST['object_type'] == "Meeting") |
@@ -1,5 +1,7 @@ discard block |
||
1 | 1 | <?php |
2 | -if(!defined('sugarEntry') || !sugarEntry) die('Not A Valid Entry Point'); |
|
2 | +if(!defined('sugarEntry') || !sugarEntry) { |
|
3 | + die('Not A Valid Entry Point'); |
|
4 | +} |
|
3 | 5 | /********************************************************************************* |
4 | 6 | * SugarCRM Community Edition is a customer relationship management program developed by |
5 | 7 | * SugarCRM, Inc. Copyright (C) 2004-2013 SugarCRM Inc. |
@@ -50,8 +52,7 @@ discard block |
||
50 | 52 | $focus = new Meeting(); |
51 | 53 | $focus->id = $_REQUEST['object_id']; |
52 | 54 | $test = $focus->set_accept_status($current_user, $_REQUEST['accept_status']); |
53 | - } |
|
54 | - else if ($_REQUEST['object_type'] == "Call") |
|
55 | + } else if ($_REQUEST['object_type'] == "Call") |
|
55 | 56 | { |
56 | 57 | $focus = new Call(); |
57 | 58 | $focus->id = $_REQUEST['object_id']; |
@@ -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 |
@@ -1,5 +1,5 @@ discard block |
||
1 | 1 | <?php |
2 | -if ( !defined('sugarEntry') || !sugarEntry) die('Not A Valid Entry Point'); |
|
2 | +if (!defined('sugarEntry') || !sugarEntry) die('Not A Valid Entry Point'); |
|
3 | 3 | /********************************************************************************* |
4 | 4 | * SugarCRM Community Edition is a customer relationship management program developed by |
5 | 5 | * SugarCRM, Inc. Copyright (C) 2004-2013 SugarCRM Inc. |
@@ -68,13 +68,13 @@ discard block |
||
68 | 68 | public function __construct() |
69 | 69 | { |
70 | 70 | $max_time = 0; |
71 | - if(isset($GLOBALS['app_list_strings']['reminder_time_options'])){ |
|
72 | - foreach($GLOBALS['app_list_strings']['reminder_time_options'] as $seconds => $value ) { |
|
73 | - if ( $seconds > $max_time ) { |
|
71 | + if (isset($GLOBALS['app_list_strings']['reminder_time_options'])) { |
|
72 | + foreach ($GLOBALS['app_list_strings']['reminder_time_options'] as $seconds => $value) { |
|
73 | + if ($seconds > $max_time) { |
|
74 | 74 | $max_time = $seconds; |
75 | 75 | } |
76 | 76 | } |
77 | - }else{ |
|
77 | + } else { |
|
78 | 78 | $max_time = 8400; |
79 | 79 | } |
80 | 80 | $this->now = $GLOBALS['timedate']->nowDb(); |
@@ -94,22 +94,22 @@ discard block |
||
94 | 94 | Reminder::sendEmailReminders($this, $admin); |
95 | 95 | |
96 | 96 | $meetings = $this->getMeetingsForRemind(); |
97 | - foreach($meetings as $id ) { |
|
98 | - $recipients = $this->getRecipients($id,'Meetings'); |
|
97 | + foreach ($meetings as $id) { |
|
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 | } |
105 | 105 | } |
106 | 106 | |
107 | 107 | $calls = $this->getCallsForRemind(); |
108 | - foreach($calls as $id ) { |
|
109 | - $recipients = $this->getRecipients($id,'Calls'); |
|
108 | + foreach ($calls as $id) { |
|
109 | + $recipients = $this->getRecipients($id, 'Calls'); |
|
110 | 110 | $bean = new Call(); |
111 | 111 | $bean->retrieve($id); |
112 | - if ( $this->sendReminders($bean, $admin, $recipients) ) { |
|
112 | + if ($this->sendReminders($bean, $admin, $recipients)) { |
|
113 | 113 | $bean->email_reminder_sent = 1; |
114 | 114 | $bean->save(); |
115 | 115 | } |
@@ -128,17 +128,17 @@ discard block |
||
128 | 128 | public function sendReminders(SugarBean $bean, Administration $admin, $recipients) |
129 | 129 | { |
130 | 130 | |
131 | - if ( empty($_SESSION['authenticated_user_language']) ) { |
|
131 | + if (empty($_SESSION['authenticated_user_language'])) { |
|
132 | 132 | $current_language = $GLOBALS['sugar_config']['default_language']; |
133 | - }else{ |
|
133 | + } else { |
|
134 | 134 | $current_language = $_SESSION['authenticated_user_language']; |
135 | 135 | } |
136 | 136 | |
137 | - if ( !empty($bean->created_by) ) { |
|
137 | + if (!empty($bean->created_by)) { |
|
138 | 138 | $user_id = $bean->created_by; |
139 | - }else if ( !empty($bean->assigned_user_id) ) { |
|
139 | + } else if (!empty($bean->assigned_user_id)) { |
|
140 | 140 | $user_id = $bean->assigned_user_id; |
141 | - }else { |
|
141 | + } else { |
|
142 | 142 | $user_id = $GLOBALS['current_user']->id; |
143 | 143 | } |
144 | 144 | $user = new User(); |
@@ -149,7 +149,7 @@ discard block |
||
149 | 149 | $mail = new SugarPHPMailer(); |
150 | 150 | $mail->setMailerForSystem(); |
151 | 151 | |
152 | - if(empty($admin->settings['notify_send_from_assigning_user'])) |
|
152 | + if (empty($admin->settings['notify_send_from_assigning_user'])) |
|
153 | 153 | { |
154 | 154 | $from_address = $admin->settings['notify_fromaddress']; |
155 | 155 | $from_name = $admin->settings['notify_fromname'] ? "" : $admin->settings['notify_fromname']; |
@@ -168,23 +168,23 @@ discard block |
||
168 | 168 | |
169 | 169 | $template_name = $GLOBALS['beanList'][$bean->module_dir].'Reminder'; |
170 | 170 | $xtpl->parse($template_name); |
171 | - $xtpl->parse($template_name . "_Subject"); |
|
171 | + $xtpl->parse($template_name."_Subject"); |
|
172 | 172 | |
173 | 173 | $mail->Body = from_html(trim($xtpl->text($template_name))); |
174 | - $mail->Subject = from_html($xtpl->text($template_name . "_Subject")); |
|
174 | + $mail->Subject = from_html($xtpl->text($template_name."_Subject")); |
|
175 | 175 | |
176 | 176 | $oe = new OutboundEmail(); |
177 | 177 | $oe = $oe->getSystemMailerSettings(); |
178 | - if ( empty($oe->mail_smtpserver) ) { |
|
178 | + if (empty($oe->mail_smtpserver)) { |
|
179 | 179 | $GLOBALS['log']->fatal("Email Reminder: error sending email, system smtp server is not set"); |
180 | 180 | return; |
181 | 181 | } |
182 | 182 | |
183 | - foreach($recipients as $r ) { |
|
183 | + foreach ($recipients as $r) { |
|
184 | 184 | $mail->ClearAddresses(); |
185 | - $mail->AddAddress($r['email'],$GLOBALS['locale']->translateCharsetMIME(trim($r['name']), 'UTF-8', $OBCharset)); |
|
185 | + $mail->AddAddress($r['email'], $GLOBALS['locale']->translateCharsetMIME(trim($r['name']), 'UTF-8', $OBCharset)); |
|
186 | 186 | $mail->prepForOutbound(); |
187 | - if ( !$mail->Send() ) { |
|
187 | + if (!$mail->Send()) { |
|
188 | 188 | $GLOBALS['log']->fatal("Email Reminder: error sending e-mail (method: {$mail->Mailer}), (error: {$mail->ErrorInfo})"); |
189 | 189 | } |
190 | 190 | } |
@@ -205,9 +205,9 @@ discard block |
||
205 | 205 | $object = strtoupper($bean->object_name); |
206 | 206 | |
207 | 207 | $xtpl->assign("{$object}_SUBJECT", $bean->name); |
208 | - $date = $GLOBALS['timedate']->fromUser($bean->date_start,$GLOBALS['current_user']); |
|
208 | + $date = $GLOBALS['timedate']->fromUser($bean->date_start, $GLOBALS['current_user']); |
|
209 | 209 | $xtpl->assign("{$object}_STARTDATE", $GLOBALS['timedate']->asUser($date, $user)." ".TimeDate::userTimezoneSuffix($date, $user)); |
210 | - if ( isset($bean->location) ) { |
|
210 | + if (isset($bean->location)) { |
|
211 | 211 | $xtpl->assign("{$object}_LOCATION", $bean->location); |
212 | 212 | } |
213 | 213 | $xtpl->assign("{$object}_CREATED_BY", $user->full_name); |
@@ -234,10 +234,10 @@ discard block |
||
234 | 234 | "; |
235 | 235 | $re = $db->query($query); |
236 | 236 | $meetings = array(); |
237 | - while($row = $db->fetchByAssoc($re) ) { |
|
238 | - $remind_ts = $GLOBALS['timedate']->fromDb($db->fromConvert($row['date_start'],'datetime'))->modify("-{$row['email_reminder_time']} seconds")->ts; |
|
237 | + while ($row = $db->fetchByAssoc($re)) { |
|
238 | + $remind_ts = $GLOBALS['timedate']->fromDb($db->fromConvert($row['date_start'], 'datetime'))->modify("-{$row['email_reminder_time']} seconds")->ts; |
|
239 | 239 | $now_ts = $GLOBALS['timedate']->getNow()->ts; |
240 | - if ( $now_ts >= $remind_ts ) { |
|
240 | + if ($now_ts >= $remind_ts) { |
|
241 | 241 | $meetings[] = $row['id']; |
242 | 242 | } |
243 | 243 | } |
@@ -262,10 +262,10 @@ discard block |
||
262 | 262 | "; |
263 | 263 | $re = $db->query($query); |
264 | 264 | $calls = array(); |
265 | - while($row = $db->fetchByAssoc($re) ) { |
|
266 | - $remind_ts = $GLOBALS['timedate']->fromDb($db->fromConvert($row['date_start'],'datetime'))->modify("-{$row['email_reminder_time']} seconds")->ts; |
|
265 | + while ($row = $db->fetchByAssoc($re)) { |
|
266 | + $remind_ts = $GLOBALS['timedate']->fromDb($db->fromConvert($row['date_start'], 'datetime'))->modify("-{$row['email_reminder_time']} seconds")->ts; |
|
267 | 267 | $now_ts = $GLOBALS['timedate']->getNow()->ts; |
268 | - if ( $now_ts >= $remind_ts ) { |
|
268 | + if ($now_ts >= $remind_ts) { |
|
269 | 269 | $calls[] = $row['id']; |
270 | 270 | } |
271 | 271 | } |
@@ -282,7 +282,7 @@ discard block |
||
282 | 282 | { |
283 | 283 | global $db; |
284 | 284 | |
285 | - switch($module ) { |
|
285 | + switch ($module) { |
|
286 | 286 | case "Meetings": |
287 | 287 | $field_part = "meeting"; |
288 | 288 | break; |
@@ -298,10 +298,10 @@ discard block |
||
298 | 298 | $query = "SELECT user_id FROM {$field_part}s_users WHERE {$field_part}_id = '{$id}' AND accept_status != 'decline' AND deleted = 0 |
299 | 299 | "; |
300 | 300 | $re = $db->query($query); |
301 | - while($row = $db->fetchByAssoc($re) ) { |
|
301 | + while ($row = $db->fetchByAssoc($re)) { |
|
302 | 302 | $user = new User(); |
303 | 303 | $user->retrieve($row['user_id']); |
304 | - if ( !empty($user->email1) ) { |
|
304 | + if (!empty($user->email1)) { |
|
305 | 305 | $arr = array( |
306 | 306 | 'type' => 'Users', |
307 | 307 | 'name' => $user->full_name, |
@@ -313,10 +313,10 @@ discard block |
||
313 | 313 | // fetch contacts |
314 | 314 | $query = "SELECT contact_id FROM {$field_part}s_contacts WHERE {$field_part}_id = '{$id}' AND accept_status != 'decline' AND deleted = 0"; |
315 | 315 | $re = $db->query($query); |
316 | - while($row = $db->fetchByAssoc($re) ) { |
|
316 | + while ($row = $db->fetchByAssoc($re)) { |
|
317 | 317 | $contact = new Contact(); |
318 | 318 | $contact->retrieve($row['contact_id']); |
319 | - if ( !empty($contact->email1) ) { |
|
319 | + if (!empty($contact->email1)) { |
|
320 | 320 | $arr = array( |
321 | 321 | 'type' => 'Contacts', |
322 | 322 | 'name' => $contact->full_name, |
@@ -328,10 +328,10 @@ discard block |
||
328 | 328 | // fetch leads |
329 | 329 | $query = "SELECT lead_id FROM {$field_part}s_leads WHERE {$field_part}_id = '{$id}' AND accept_status != 'decline' AND deleted = 0"; |
330 | 330 | $re = $db->query($query); |
331 | - while($row = $db->fetchByAssoc($re) ) { |
|
331 | + while ($row = $db->fetchByAssoc($re)) { |
|
332 | 332 | $lead = new Lead(); |
333 | 333 | $lead->retrieve($row['lead_id']); |
334 | - if ( !empty($lead->email1) ) { |
|
334 | + if (!empty($lead->email1)) { |
|
335 | 335 | $arr = array( |
336 | 336 | 'type' => 'Leads', |
337 | 337 | 'name' => $lead->full_name, |
@@ -1,5 +1,7 @@ discard block |
||
1 | 1 | <?php |
2 | -if ( !defined('sugarEntry') || !sugarEntry) die('Not A Valid Entry Point'); |
|
2 | +if ( !defined('sugarEntry') || !sugarEntry) { |
|
3 | + die('Not A Valid Entry Point'); |
|
4 | +} |
|
3 | 5 | /********************************************************************************* |
4 | 6 | * SugarCRM Community Edition is a customer relationship management program developed by |
5 | 7 | * SugarCRM, Inc. Copyright (C) 2004-2013 SugarCRM Inc. |
@@ -74,7 +76,7 @@ discard block |
||
74 | 76 | $max_time = $seconds; |
75 | 77 | } |
76 | 78 | } |
77 | - }else{ |
|
79 | + } else{ |
|
78 | 80 | $max_time = 8400; |
79 | 81 | } |
80 | 82 | $this->now = $GLOBALS['timedate']->nowDb(); |
@@ -130,15 +132,15 @@ discard block |
||
130 | 132 | |
131 | 133 | if ( empty($_SESSION['authenticated_user_language']) ) { |
132 | 134 | $current_language = $GLOBALS['sugar_config']['default_language']; |
133 | - }else{ |
|
135 | + } else{ |
|
134 | 136 | $current_language = $_SESSION['authenticated_user_language']; |
135 | 137 | } |
136 | 138 | |
137 | 139 | if ( !empty($bean->created_by) ) { |
138 | 140 | $user_id = $bean->created_by; |
139 | - }else if ( !empty($bean->assigned_user_id) ) { |
|
141 | + } else if ( !empty($bean->assigned_user_id) ) { |
|
140 | 142 | $user_id = $bean->assigned_user_id; |
141 | - }else { |
|
143 | + } else { |
|
142 | 144 | $user_id = $GLOBALS['current_user']->id; |
143 | 145 | } |
144 | 146 | $user = new User(); |
@@ -153,8 +155,7 @@ discard block |
||
153 | 155 | { |
154 | 156 | $from_address = $admin->settings['notify_fromaddress']; |
155 | 157 | $from_name = $admin->settings['notify_fromname'] ? "" : $admin->settings['notify_fromname']; |
156 | - } |
|
157 | - else |
|
158 | + } else |
|
158 | 159 | { |
159 | 160 | $from_address = $user->emailAddress->getReplyToAddress($user); |
160 | 161 | $from_name = $user->full_name; |
@@ -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 |
@@ -1,5 +1,5 @@ discard block |
||
1 | 1 | <?php |
2 | -if(!defined('sugarEntry') || !sugarEntry) die('Not A Valid Entry Point'); |
|
2 | +if (!defined('sugarEntry') || !sugarEntry) die('Not A Valid Entry Point'); |
|
3 | 3 | /********************************************************************************* |
4 | 4 | * SugarCRM Community Edition is a customer relationship management program developed by |
5 | 5 | * SugarCRM, Inc. Copyright (C) 2004-2013 SugarCRM Inc. |
@@ -41,46 +41,46 @@ discard block |
||
41 | 41 | |
42 | 42 | function additionalDetailsLead($fields) { |
43 | 43 | static $mod_strings; |
44 | - if(empty($mod_strings)) { |
|
44 | + if (empty($mod_strings)) { |
|
45 | 45 | global $current_language; |
46 | 46 | $mod_strings = return_module_language($current_language, 'Leads'); |
47 | 47 | } |
48 | 48 | |
49 | 49 | $overlib_string = ''; |
50 | - if(!empty($fields['ID'])) { |
|
51 | - $overlib_string .= '<input type="hidden" value="'. $fields['ID']; |
|
50 | + if (!empty($fields['ID'])) { |
|
51 | + $overlib_string .= '<input type="hidden" value="'.$fields['ID']; |
|
52 | 52 | $overlib_string .= '">'; |
53 | 53 | } |
54 | 54 | |
55 | - $overlib_string .= '<h2><img src="index.php?entryPoint=getImage&themeName=' . SugarThemeRegistry::current()->name .'&imageName=Leads.gif"/> '.$mod_strings['LBL_CONTACT'].'</h2>'; |
|
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 | - if(!empty($fields['PRIMARY_ADDRESS_STREET']) || !empty($fields['PRIMARY_ADDRESS_CITY']) || |
|
57 | + if (!empty($fields['PRIMARY_ADDRESS_STREET']) || !empty($fields['PRIMARY_ADDRESS_CITY']) || |
|
58 | 58 | !empty($fields['PRIMARY_ADDRESS_STATE']) || !empty($fields['PRIMARY_ADDRESS_POSTALCODE']) || |
59 | 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)) |
|
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 | 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>'; |
|
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']}>") . |
|
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 | 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 .= '...'; |
|
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 | 84 | } |
85 | 85 | |
86 | 86 | return array('fieldToAddTo' => 'NAME', |
@@ -1,5 +1,7 @@ discard block |
||
1 | 1 | <?php |
2 | -if(!defined('sugarEntry') || !sugarEntry) die('Not A Valid Entry Point'); |
|
2 | +if(!defined('sugarEntry') || !sugarEntry) { |
|
3 | + die('Not A Valid Entry Point'); |
|
4 | +} |
|
3 | 5 | /********************************************************************************* |
4 | 6 | * SugarCRM Community Edition is a customer relationship management program developed by |
5 | 7 | * SugarCRM, Inc. Copyright (C) 2004-2013 SugarCRM Inc. |
@@ -56,31 +58,54 @@ discard block |
||
56 | 58 | |
57 | 59 | if(!empty($fields['PRIMARY_ADDRESS_STREET']) || !empty($fields['PRIMARY_ADDRESS_CITY']) || |
58 | 60 | !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>'; |
|
61 | + !empty($fields['PRIMARY_ADDRESS_COUNTRY'])) { |
|
62 | + $overlib_string .= '<b>' . $mod_strings['LBL_PRIMARY_ADDRESS'] . '</b><br>'; |
|
63 | + } |
|
64 | + if(!empty($fields['PRIMARY_ADDRESS_STREET'])) { |
|
65 | + $overlib_string .= $fields['PRIMARY_ADDRESS_STREET'] . '<br>'; |
|
66 | + } |
|
67 | + if(!empty($fields['PRIMARY_ADDRESS_CITY'])) { |
|
68 | + $overlib_string .= $fields['PRIMARY_ADDRESS_CITY'] . ', '; |
|
69 | + } |
|
70 | + if(!empty($fields['PRIMARY_ADDRESS_STATE'])) { |
|
71 | + $overlib_string .= $fields['PRIMARY_ADDRESS_STATE'] . ' '; |
|
72 | + } |
|
73 | + if(!empty($fields['PRIMARY_ADDRESS_POSTALCODE'])) { |
|
74 | + $overlib_string .= $fields['PRIMARY_ADDRESS_POSTALCODE'] . ' '; |
|
75 | + } |
|
76 | + if(!empty($fields['PRIMARY_ADDRESS_COUNTRY'])) { |
|
77 | + $overlib_string .= $fields['PRIMARY_ADDRESS_COUNTRY'] . '<br>'; |
|
78 | + } |
|
79 | + if(strlen($overlib_string) > 0 && !(strrpos($overlib_string, '<br>') == strlen($overlib_string) - 4)) { |
|
80 | + $overlib_string .= '<br>'; |
|
81 | + } |
|
82 | + if(!empty($fields['PHONE_MOBILE'])) { |
|
83 | + $overlib_string .= '<b>'. $mod_strings['LBL_MOBILE_PHONE'] . '</b> <span class="phone">' . $fields['PHONE_MOBILE'] . '</span><br>'; |
|
84 | + } |
|
85 | + if(!empty($fields['PHONE_HOME'])) { |
|
86 | + $overlib_string .= '<b>'. $mod_strings['LBL_HOME_PHONE'] . '</b> <span class="phone">' . $fields['PHONE_HOME'] . '</span><br>'; |
|
87 | + } |
|
88 | + if(!empty($fields['PHONE_OTHER'])) { |
|
89 | + $overlib_string .= '<b>'. $mod_strings['LBL_OTHER_PHONE'] . '</b> <span class="phone">' . $fields['PHONE_OTHER'] . '</span><br>'; |
|
90 | + } |
|
91 | + if(!empty($fields['LEAD_SOURCE'])) { |
|
92 | + $overlib_string .= '<b>'. $mod_strings['LBL_LEAD_SOURCE'] . '</b> ' . $fields['LEAD_SOURCE'] . '<br>'; |
|
93 | + } |
|
72 | 94 | |
73 | - if(!empty($fields['EMAIL2'])) |
|
74 | - $overlib_string .= '<b>'. $mod_strings['LBL_OTHER_EMAIL_ADDRESS'] . '</b> ' . |
|
95 | + if(!empty($fields['EMAIL2'])) { |
|
96 | + $overlib_string .= '<b>'. $mod_strings['LBL_OTHER_EMAIL_ADDRESS'] . '</b> ' . |
|
75 | 97 | "<a href=index.php?module=Emails&action=Compose&contact_id={$fields['ID']}&" . |
76 | 98 | "parent_type=Contacts&parent_id={$fields['ID']}&to_addrs_ids={$fields['ID']}&to_addrs_names" . |
77 | 99 | "={$fields['FIRST_NAME']} {$fields['LAST_NAME']}&to_addrs_emails={$fields['EMAIL2']}&" . |
78 | 100 | "to_email_addrs=" . urlencode("{$fields['FIRST_NAME']} {$fields['LAST_NAME']} <{$fields['EMAIL2']}>") . |
79 | 101 | "&return_module=Contacts&return_action=ListView'>{$fields['EMAIL2']}</a><br>"; |
102 | + } |
|
80 | 103 | |
81 | 104 | if(!empty($fields['DESCRIPTION'])) { |
82 | 105 | $overlib_string .= '<b>'. $mod_strings['LBL_DESCRIPTION'] . '</b> ' . substr($fields['DESCRIPTION'], 0, 300); |
83 | - if(strlen($fields['DESCRIPTION']) > 300) $overlib_string .= '...'; |
|
106 | + if(strlen($fields['DESCRIPTION']) > 300) { |
|
107 | + $overlib_string .= '...'; |
|
108 | + } |
|
84 | 109 | } |
85 | 110 | |
86 | 111 | return array('fieldToAddTo' => 'NAME', |
@@ -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 ( |
@@ -58,41 +58,41 @@ discard block |
||
58 | 58 | array('label' => '10', 'field' => '30'), |
59 | 59 | ), |
60 | 60 | ), |
61 | - 'panels' =>array ( |
|
62 | - 'LNK_NEW_CONTACT' => array ( |
|
63 | - array ( |
|
64 | - array ( |
|
61 | + 'panels' =>array( |
|
62 | + 'LNK_NEW_CONTACT' => array( |
|
63 | + array( |
|
64 | + array( |
|
65 | 65 | 'name' => 'first_name', |
66 | 66 | 'customCode' => '{html_options name="Contactssalutation" options=$fields.salutation.options selected=$fields.salutation.value} <input name="Contactsfirst_name" size="25" maxlength="25" type="text" value="{$fields.first_name.value}">', |
67 | 67 | ), |
68 | 68 | 'title', |
69 | 69 | ), |
70 | - array ( |
|
70 | + array( |
|
71 | 71 | |
72 | 72 | 'last_name', |
73 | 73 | 'department', |
74 | 74 | ), |
75 | - array ( |
|
75 | + array( |
|
76 | 76 | array('name' => 'primary_address_street', 'label' => 'LBL_PRIMARY_ADDRESS'), |
77 | 77 | 'phone_work', |
78 | 78 | ), |
79 | - array ( |
|
79 | + array( |
|
80 | 80 | array('name'=>'primary_address_city', 'label' => 'LBL_CITY'), |
81 | 81 | 'phone_mobile', |
82 | 82 | ), |
83 | - array ( |
|
83 | + array( |
|
84 | 84 | array('name'=>'primary_address_state', 'label' => 'LBL_STATE'), |
85 | 85 | 'phone_other', |
86 | 86 | ), |
87 | - array ( |
|
87 | + array( |
|
88 | 88 | array('name'=>'primary_address_postalcode', 'label' => 'LBL_POSTAL_CODE'), |
89 | 89 | 'phone_fax', |
90 | 90 | ), |
91 | - array ( |
|
91 | + array( |
|
92 | 92 | array('name'=>'primary_address_country', 'label' => 'LBL_COUNTRY'), |
93 | 93 | 'lead_source', |
94 | 94 | ), |
95 | - array ( |
|
95 | + array( |
|
96 | 96 | 'email1' |
97 | 97 | ), |
98 | 98 | array( |
@@ -123,13 +123,13 @@ discard block |
||
123 | 123 | array('label' => '10', 'field' => '30'), |
124 | 124 | ), |
125 | 125 | ), |
126 | - 'panels' =>array ( |
|
127 | - 'LNK_NEW_ACCOUNT' => array ( |
|
128 | - array ( |
|
126 | + 'panels' =>array( |
|
127 | + 'LNK_NEW_ACCOUNT' => array( |
|
128 | + array( |
|
129 | 129 | 'name', |
130 | 130 | 'phone_office', |
131 | 131 | ), |
132 | - array ( |
|
132 | + array( |
|
133 | 133 | 'website', |
134 | 134 | ), |
135 | 135 | array( |
@@ -152,21 +152,21 @@ discard block |
||
152 | 152 | array('label' => '10', 'field' => '30'), |
153 | 153 | ), |
154 | 154 | ), |
155 | - 'panels' =>array ( |
|
156 | - 'LNK_NEW_OPPORTUNITY' => array ( |
|
157 | - array ( |
|
155 | + 'panels' =>array( |
|
156 | + 'LNK_NEW_OPPORTUNITY' => array( |
|
157 | + array( |
|
158 | 158 | 'name', |
159 | 159 | 'currency_id' |
160 | 160 | ), |
161 | - array ( |
|
161 | + array( |
|
162 | 162 | 'sales_stage', |
163 | 163 | 'amount' |
164 | 164 | ), |
165 | - array ( |
|
165 | + array( |
|
166 | 166 | 'date_closed', |
167 | 167 | '' |
168 | 168 | ), |
169 | - array ( |
|
169 | + array( |
|
170 | 170 | 'description' |
171 | 171 | ), |
172 | 172 | ) |
@@ -191,13 +191,13 @@ discard block |
||
191 | 191 | array('label' => '10', 'field' => '30'), |
192 | 192 | ), |
193 | 193 | ), |
194 | - 'panels' =>array ( |
|
195 | - 'LNK_NEW_NOTE' => array ( |
|
196 | - array ( |
|
194 | + 'panels' =>array( |
|
195 | + 'LNK_NEW_NOTE' => array( |
|
196 | + array( |
|
197 | 197 | array('name'=>'name', 'displayParams'=>array('size'=>90)), |
198 | 198 | ), |
199 | - array ( |
|
200 | - array('name' => 'description', 'displayParams' => array('rows'=>10, 'cols'=>90) ), |
|
199 | + array( |
|
200 | + array('name' => 'description', 'displayParams' => array('rows'=>10, 'cols'=>90)), |
|
201 | 201 | ), |
202 | 202 | ) |
203 | 203 | ), |
@@ -223,14 +223,14 @@ discard block |
||
223 | 223 | array('label' => '10', 'field' => '30'), |
224 | 224 | ), |
225 | 225 | ), |
226 | - 'panels' =>array ( |
|
227 | - 'LNK_NEW_CALL' => array ( |
|
228 | - array ( |
|
226 | + 'panels' =>array( |
|
227 | + 'LNK_NEW_CALL' => array( |
|
228 | + array( |
|
229 | 229 | array('name'=>'name', 'displayParams'=>array('size'=>90)), |
230 | 230 | ), |
231 | - array ( |
|
231 | + array( |
|
232 | 232 | 'date_start', |
233 | - array ( |
|
233 | + array( |
|
234 | 234 | 'name' => 'duration_hours', |
235 | 235 | 'label' => 'LBL_DURATION', |
236 | 236 | 'customCode' => '{literal} |
@@ -249,13 +249,13 @@ discard block |
||
249 | 249 | {html_options name="Callsduration_minutes" options=$minutes_values selected=$fields.duration_minutes.value} |
250 | 250 | <span class="dateFormat">{sugar_translate label="LBL_HOURS_MINUTES" module="Calls"}', |
251 | 251 | 'displayParams' => |
252 | - array ( |
|
252 | + array( |
|
253 | 253 | 'required' => true, |
254 | 254 | ), |
255 | 255 | ), |
256 | 256 | ), |
257 | - array ( |
|
258 | - array('name' => 'description', 'displayParams' => array('rows'=>10, 'cols'=>90) ), |
|
257 | + array( |
|
258 | + array('name' => 'description', 'displayParams' => array('rows'=>10, 'cols'=>90)), |
|
259 | 259 | ), |
260 | 260 | ) |
261 | 261 | ), |
@@ -282,14 +282,14 @@ discard block |
||
282 | 282 | array('label' => '10', 'field' => '30'), |
283 | 283 | ), |
284 | 284 | ), |
285 | - 'panels' =>array ( |
|
286 | - 'LNK_NEW_MEETING' => array ( |
|
287 | - array ( |
|
285 | + 'panels' =>array( |
|
286 | + 'LNK_NEW_MEETING' => array( |
|
287 | + array( |
|
288 | 288 | array('name'=>'name', 'displayParams'=>array('size'=>90)), |
289 | 289 | ), |
290 | - array ( |
|
290 | + array( |
|
291 | 291 | 'date_start', |
292 | - array ( |
|
292 | + array( |
|
293 | 293 | 'name' => 'duration_hours', |
294 | 294 | 'label' => 'LBL_DURATION', |
295 | 295 | 'customCode' => '{literal} |
@@ -308,13 +308,13 @@ discard block |
||
308 | 308 | {html_options name="Meetingsduration_minutes" options=$minutes_values selected=$fields.duration_minutes.value} |
309 | 309 | <span class="dateFormat">{sugar_translate label="LBL_HOURS_MINUTES" module="Calls"}', |
310 | 310 | 'displayParams' => |
311 | - array ( |
|
311 | + array( |
|
312 | 312 | 'required' => true, |
313 | 313 | ), |
314 | 314 | ), |
315 | 315 | ), |
316 | - array ( |
|
317 | - array('name' => 'description', 'displayParams' => array('rows'=>10, 'cols'=>90) ), |
|
316 | + array( |
|
317 | + array('name' => 'description', 'displayParams' => array('rows'=>10, 'cols'=>90)), |
|
318 | 318 | ), |
319 | 319 | ) |
320 | 320 | ), |
@@ -339,17 +339,17 @@ discard block |
||
339 | 339 | array('label' => '10', 'field' => '30'), |
340 | 340 | ), |
341 | 341 | ), |
342 | - 'panels' =>array ( |
|
343 | - 'LNK_NEW_TASK' => array ( |
|
344 | - array ( |
|
342 | + 'panels' =>array( |
|
343 | + 'LNK_NEW_TASK' => array( |
|
344 | + array( |
|
345 | 345 | array('name'=>'name', 'displayParams'=>array('size'=>90)), |
346 | 346 | ), |
347 | - array ( |
|
347 | + array( |
|
348 | 348 | 'status', 'priority' |
349 | 349 | ), |
350 | 350 | |
351 | - array ( |
|
352 | - array('name' => 'description', 'displayParams' => array('rows'=>10, 'cols'=>90) ), |
|
351 | + array( |
|
352 | + array('name' => 'description', 'displayParams' => array('rows'=>10, 'cols'=>90)), |
|
353 | 353 | ), |
354 | 354 | ) |
355 | 355 | ), |
@@ -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,35 +1,35 @@ discard block |
||
1 | 1 | <?php |
2 | 2 | $viewdefs ['Leads'] = |
3 | -array ( |
|
3 | +array( |
|
4 | 4 | 'EditView' => |
5 | - array ( |
|
5 | + array( |
|
6 | 6 | 'templateMeta' => |
7 | - array ( |
|
7 | + array( |
|
8 | 8 | 'form' => |
9 | - array ( |
|
9 | + array( |
|
10 | 10 | 'hidden' => |
11 | - array ( |
|
11 | + array( |
|
12 | 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 | 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 | 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 | 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 | - array ( |
|
18 | + array( |
|
19 | 19 | 0 => 'SAVE', |
20 | 20 | 1 => 'CANCEL', |
21 | 21 | ), |
22 | 22 | ), |
23 | 23 | 'maxColumns' => '2', |
24 | 24 | 'widths' => |
25 | - array ( |
|
25 | + array( |
|
26 | 26 | 0 => |
27 | - array ( |
|
27 | + array( |
|
28 | 28 | 'label' => '10', |
29 | 29 | 'field' => '30', |
30 | 30 | ), |
31 | 31 | 1 => |
32 | - array ( |
|
32 | + array( |
|
33 | 33 | 'label' => '10', |
34 | 34 | 'field' => '30', |
35 | 35 | ), |
@@ -37,55 +37,55 @@ discard block |
||
37 | 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 | 38 | 'useTabs' => false, |
39 | 39 | 'tabDefs' => |
40 | - array ( |
|
40 | + array( |
|
41 | 41 | 'LBL_CONTACT_INFORMATION' => |
42 | - array ( |
|
42 | + array( |
|
43 | 43 | 'newTab' => false, |
44 | 44 | 'panelDefault' => 'expanded', |
45 | 45 | ), |
46 | 46 | 'LBL_PANEL_ADVANCED' => |
47 | - array ( |
|
47 | + array( |
|
48 | 48 | 'newTab' => false, |
49 | 49 | 'panelDefault' => 'expanded', |
50 | 50 | ), |
51 | 51 | 'LBL_PANEL_ASSIGNMENT' => |
52 | - array ( |
|
52 | + array( |
|
53 | 53 | 'newTab' => false, |
54 | 54 | 'panelDefault' => 'expanded', |
55 | 55 | ), |
56 | 56 | ), |
57 | 57 | ), |
58 | 58 | 'panels' => |
59 | - array ( |
|
59 | + array( |
|
60 | 60 | 'LBL_CONTACT_INFORMATION' => |
61 | - array ( |
|
61 | + array( |
|
62 | 62 | 0 => |
63 | - array ( |
|
63 | + array( |
|
64 | 64 | 0 => |
65 | - array ( |
|
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 | - array ( |
|
71 | + array( |
|
72 | 72 | 0 => 'last_name', |
73 | 73 | 1 => 'phone_work', |
74 | 74 | ), |
75 | 75 | 2 => |
76 | - array ( |
|
76 | + array( |
|
77 | 77 | 0 => 'title', |
78 | 78 | 1 => 'phone_mobile', |
79 | 79 | ), |
80 | 80 | 3 => |
81 | - array ( |
|
81 | + array( |
|
82 | 82 | 0 => 'department', |
83 | 83 | 1 => 'phone_fax', |
84 | 84 | ), |
85 | 85 | 4 => |
86 | - array ( |
|
86 | + array( |
|
87 | 87 | 0 => |
88 | - array ( |
|
88 | + array( |
|
89 | 89 | 'name' => 'account_name', |
90 | 90 | 'type' => 'varchar', |
91 | 91 | 'validateDependency' => false, |
@@ -94,14 +94,14 @@ discard block |
||
94 | 94 | 1 => 'website', |
95 | 95 | ), |
96 | 96 | 5 => |
97 | - array ( |
|
97 | + array( |
|
98 | 98 | 0 => |
99 | - array ( |
|
99 | + array( |
|
100 | 100 | 'name' => 'primary_address_street', |
101 | 101 | 'hideLabel' => true, |
102 | 102 | 'type' => 'address', |
103 | 103 | 'displayParams' => |
104 | - array ( |
|
104 | + array( |
|
105 | 105 | 'key' => 'primary', |
106 | 106 | 'rows' => 2, |
107 | 107 | 'cols' => 30, |
@@ -109,12 +109,12 @@ discard block |
||
109 | 109 | ), |
110 | 110 | ), |
111 | 111 | 1 => |
112 | - array ( |
|
112 | + array( |
|
113 | 113 | 'name' => 'alt_address_street', |
114 | 114 | 'hideLabel' => true, |
115 | 115 | 'type' => 'address', |
116 | 116 | 'displayParams' => |
117 | - array ( |
|
117 | + array( |
|
118 | 118 | 'key' => 'alt', |
119 | 119 | 'copy' => 'primary', |
120 | 120 | 'rows' => 2, |
@@ -124,48 +124,48 @@ discard block |
||
124 | 124 | ), |
125 | 125 | ), |
126 | 126 | 6 => |
127 | - array ( |
|
127 | + array( |
|
128 | 128 | 0 => 'email1', |
129 | 129 | ), |
130 | 130 | 7 => |
131 | - array ( |
|
131 | + array( |
|
132 | 132 | 0 => 'description', |
133 | 133 | ), |
134 | 134 | ), |
135 | 135 | 'LBL_PANEL_ADVANCED' => |
136 | - array ( |
|
136 | + array( |
|
137 | 137 | 0 => |
138 | - array ( |
|
138 | + array( |
|
139 | 139 | 0 => 'status', |
140 | 140 | 1 => 'lead_source', |
141 | 141 | ), |
142 | 142 | 1 => |
143 | - array ( |
|
143 | + array( |
|
144 | 144 | 0 => |
145 | - array ( |
|
145 | + array( |
|
146 | 146 | 'name' => 'status_description', |
147 | 147 | ), |
148 | 148 | 1 => |
149 | - array ( |
|
149 | + array( |
|
150 | 150 | 'name' => 'lead_source_description', |
151 | 151 | ), |
152 | 152 | ), |
153 | 153 | 2 => |
154 | - array ( |
|
154 | + array( |
|
155 | 155 | 0 => 'opportunity_amount', |
156 | 156 | 1 => 'refered_by', |
157 | 157 | ), |
158 | 158 | 3 => |
159 | - array ( |
|
159 | + array( |
|
160 | 160 | 0 => 'campaign_name', |
161 | 161 | ), |
162 | 162 | ), |
163 | 163 | 'LBL_PANEL_ASSIGNMENT' => |
164 | - array ( |
|
164 | + array( |
|
165 | 165 | 0 => |
166 | - array ( |
|
166 | + array( |
|
167 | 167 | 0 => |
168 | - array ( |
|
168 | + array( |
|
169 | 169 | 'name' => 'assigned_user_name', |
170 | 170 | 'label' => 'LBL_ASSIGNED_TO', |
171 | 171 | ), |
@@ -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 | ?> |
@@ -1,26 +1,26 @@ discard block |
||
1 | 1 | <?php |
2 | 2 | $viewdefs ['Leads'] = |
3 | -array ( |
|
3 | +array( |
|
4 | 4 | 'DetailView' => |
5 | - array ( |
|
5 | + array( |
|
6 | 6 | 'templateMeta' => |
7 | - array ( |
|
7 | + array( |
|
8 | 8 | 'form' => |
9 | - array ( |
|
9 | + array( |
|
10 | 10 | 'buttons' => |
11 | - array ( |
|
11 | + array( |
|
12 | 12 | 0 => 'EDIT', |
13 | 13 | 1 => 'DUPLICATE', |
14 | 14 | 2 => 'DELETE', |
15 | 15 | 3 => |
16 | - array ( |
|
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 | - array ( |
|
19 | + array( |
|
20 | 20 | 'type' => 'button', |
21 | 21 | 'value' => '{$MOD.LBL_CONVERTLEAD}', |
22 | 22 | 'htmlOptions' => |
23 | - array ( |
|
23 | + array( |
|
24 | 24 | 'title' => '{$MOD.LBL_CONVERTLEAD_TITLE}', |
25 | 25 | 'accessKey' => '{$MOD.LBL_CONVERTLEAD_BUTTON_KEY}', |
26 | 26 | 'class' => 'button', |
@@ -33,14 +33,14 @@ discard block |
||
33 | 33 | ), |
34 | 34 | 4 => 'FIND_DUPLICATES', |
35 | 35 | 5 => |
36 | - array ( |
|
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 | - array ( |
|
39 | + array( |
|
40 | 40 | 'type' => 'submit', |
41 | 41 | 'value' => '{$APP.LBL_MANAGE_SUBSCRIPTIONS}', |
42 | 42 | 'htmlOptions' => |
43 | - array ( |
|
43 | + array( |
|
44 | 44 | 'title' => '{$APP.LBL_MANAGE_SUBSCRIPTIONS}', |
45 | 45 | 'class' => 'button', |
46 | 46 | 'id' => 'manage_subscriptions_button', |
@@ -50,7 +50,7 @@ discard block |
||
50 | 50 | ), |
51 | 51 | ), |
52 | 52 | 'AOS_GENLET' => |
53 | - array ( |
|
53 | + array( |
|
54 | 54 | 'customCode' => '<input type="button" class="button" onClick="showPopup();" value="{$APP.LBL_GENERATE_LETTER}">', |
55 | 55 | ), |
56 | 56 | ), |
@@ -58,154 +58,154 @@ discard block |
||
58 | 58 | ), |
59 | 59 | 'maxColumns' => '2', |
60 | 60 | 'widths' => |
61 | - array ( |
|
61 | + array( |
|
62 | 62 | 0 => |
63 | - array ( |
|
63 | + array( |
|
64 | 64 | 'label' => '10', |
65 | 65 | 'field' => '30', |
66 | 66 | ), |
67 | 67 | 1 => |
68 | - array ( |
|
68 | + array( |
|
69 | 69 | 'label' => '10', |
70 | 70 | 'field' => '30', |
71 | 71 | ), |
72 | 72 | ), |
73 | 73 | 'includes' => |
74 | - array ( |
|
74 | + array( |
|
75 | 75 | 0 => |
76 | - array ( |
|
76 | + array( |
|
77 | 77 | 'file' => 'modules/Leads/Lead.js', |
78 | 78 | ), |
79 | 79 | ), |
80 | 80 | 'useTabs' => true, |
81 | 81 | 'tabDefs' => |
82 | - array ( |
|
82 | + array( |
|
83 | 83 | 'LBL_CONTACT_INFORMATION' => |
84 | - array ( |
|
84 | + array( |
|
85 | 85 | 'newTab' => true, |
86 | 86 | 'panelDefault' => 'expanded', |
87 | 87 | ), |
88 | 88 | 'LBL_PANEL_ADVANCED' => |
89 | - array ( |
|
89 | + array( |
|
90 | 90 | 'newTab' => true, |
91 | 91 | 'panelDefault' => 'expanded', |
92 | 92 | ), |
93 | 93 | 'LBL_PANEL_ASSIGNMENT' => |
94 | - array ( |
|
94 | + array( |
|
95 | 95 | 'newTab' => true, |
96 | 96 | 'panelDefault' => 'expanded', |
97 | 97 | ), |
98 | 98 | ), |
99 | 99 | ), |
100 | 100 | 'panels' => |
101 | - array ( |
|
101 | + array( |
|
102 | 102 | 'LBL_CONTACT_INFORMATION' => |
103 | - array ( |
|
103 | + array( |
|
104 | 104 | 0 => |
105 | - array ( |
|
105 | + array( |
|
106 | 106 | 0 => |
107 | - array ( |
|
107 | + array( |
|
108 | 108 | 'name' => 'full_name', |
109 | 109 | 'label' => 'LBL_NAME', |
110 | 110 | ), |
111 | 111 | 1 => 'phone_work', |
112 | 112 | ), |
113 | 113 | 1 => |
114 | - array ( |
|
114 | + array( |
|
115 | 115 | 0 => 'title', |
116 | 116 | 1 => 'phone_mobile', |
117 | 117 | ), |
118 | 118 | 2 => |
119 | - array ( |
|
119 | + array( |
|
120 | 120 | 0 => 'department', |
121 | 121 | 1 => 'phone_fax', |
122 | 122 | ), |
123 | 123 | 3 => |
124 | - array ( |
|
124 | + array( |
|
125 | 125 | 0 => |
126 | - array ( |
|
126 | + array( |
|
127 | 127 | 'name' => 'account_name', |
128 | 128 | ), |
129 | 129 | 1 => 'website', |
130 | 130 | ), |
131 | 131 | 4 => |
132 | - array ( |
|
132 | + array( |
|
133 | 133 | 0 => |
134 | - array ( |
|
134 | + array( |
|
135 | 135 | 'name' => 'primary_address_street', |
136 | 136 | 'label' => 'LBL_PRIMARY_ADDRESS', |
137 | 137 | 'type' => 'address', |
138 | 138 | 'displayParams' => |
139 | - array ( |
|
139 | + array( |
|
140 | 140 | 'key' => 'primary', |
141 | 141 | ), |
142 | 142 | ), |
143 | 143 | 1 => |
144 | - array ( |
|
144 | + array( |
|
145 | 145 | 'name' => 'alt_address_street', |
146 | 146 | 'label' => 'LBL_ALTERNATE_ADDRESS', |
147 | 147 | 'type' => 'address', |
148 | 148 | 'displayParams' => |
149 | - array ( |
|
149 | + array( |
|
150 | 150 | 'key' => 'alt', |
151 | 151 | ), |
152 | 152 | ), |
153 | 153 | ), |
154 | 154 | 5 => |
155 | - array ( |
|
155 | + array( |
|
156 | 156 | 0 => 'email1', |
157 | 157 | ), |
158 | 158 | 6 => |
159 | - array ( |
|
159 | + array( |
|
160 | 160 | 0 => 'description', |
161 | 161 | ), |
162 | 162 | 7 => |
163 | - array ( |
|
163 | + array( |
|
164 | 164 | 0 => |
165 | - array ( |
|
165 | + array( |
|
166 | 166 | 'name' => 'assigned_user_name', |
167 | 167 | 'label' => 'LBL_ASSIGNED_TO', |
168 | 168 | ), |
169 | 169 | ), |
170 | 170 | ), |
171 | 171 | 'LBL_PANEL_ADVANCED' => |
172 | - array ( |
|
172 | + array( |
|
173 | 173 | 0 => |
174 | - array ( |
|
174 | + array( |
|
175 | 175 | 0 => 'status', |
176 | 176 | 1 => 'lead_source', |
177 | 177 | ), |
178 | 178 | 1 => |
179 | - array ( |
|
179 | + array( |
|
180 | 180 | 0 => 'status_description', |
181 | 181 | 1 => 'lead_source_description', |
182 | 182 | ), |
183 | 183 | 2 => |
184 | - array ( |
|
184 | + array( |
|
185 | 185 | 0 => 'opportunity_amount', |
186 | 186 | 1 => 'refered_by', |
187 | 187 | ), |
188 | 188 | 3 => |
189 | - array ( |
|
189 | + array( |
|
190 | 190 | 0 => |
191 | - array ( |
|
191 | + array( |
|
192 | 192 | 'name' => 'campaign_name', |
193 | 193 | 'label' => 'LBL_CAMPAIGN', |
194 | 194 | ), |
195 | 195 | ), |
196 | 196 | ), |
197 | 197 | 'LBL_PANEL_ASSIGNMENT' => |
198 | - array ( |
|
198 | + array( |
|
199 | 199 | 0 => |
200 | - array ( |
|
200 | + array( |
|
201 | 201 | 0 => |
202 | - array ( |
|
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 | 206 | ), |
207 | 207 | 1 => |
208 | - array ( |
|
208 | + array( |
|
209 | 209 | 'name' => 'date_entered', |
210 | 210 | 'customCode' => '{$fields.date_entered.value} {$APP.LBL_BY} {$fields.created_by_name.value}', |
211 | 211 | ), |
@@ -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 |
@@ -1,5 +1,5 @@ discard block |
||
1 | 1 | <?php |
2 | -if(!defined('sugarEntry') || !sugarEntry) die('Not A Valid Entry Point'); |
|
2 | +if (!defined('sugarEntry') || !sugarEntry) die('Not A Valid Entry Point'); |
|
3 | 3 | /********************************************************************************* |
4 | 4 | * SugarCRM Community Edition is a customer relationship management program developed by |
5 | 5 | * SugarCRM, Inc. Copyright (C) 2004-2013 SugarCRM Inc. |
@@ -46,15 +46,15 @@ discard block |
||
46 | 46 | ********************************************************************************/ |
47 | 47 | |
48 | 48 | $viewdefs ['Leads'] = |
49 | -array ( |
|
49 | +array( |
|
50 | 50 | 'QuickCreate' => |
51 | - array ( |
|
51 | + array( |
|
52 | 52 | 'templateMeta' => |
53 | - array ( |
|
53 | + array( |
|
54 | 54 | 'form' => |
55 | - array ( |
|
55 | + array( |
|
56 | 56 | 'hidden' => |
57 | - array ( |
|
57 | + array( |
|
58 | 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 | 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 | 60 | 2 => '<input type="hidden" name="opportunity_id" value="{if isset($smarty.request.opportunity_id)}{$smarty.request.opportunity_id}{else}{$bean->opportunity_id}{/if}">', |
@@ -63,14 +63,14 @@ discard block |
||
63 | 63 | ), |
64 | 64 | 'maxColumns' => '2', |
65 | 65 | 'widths' => |
66 | - array ( |
|
66 | + array( |
|
67 | 67 | 0 => |
68 | - array ( |
|
68 | + array( |
|
69 | 69 | 'label' => '10', |
70 | 70 | 'field' => '30', |
71 | 71 | ), |
72 | 72 | 1 => |
73 | - array ( |
|
73 | + array( |
|
74 | 74 | 'label' => '10', |
75 | 75 | 'field' => '30', |
76 | 76 | ), |
@@ -79,94 +79,94 @@ discard block |
||
79 | 79 | 'useTabs' => false, |
80 | 80 | ), |
81 | 81 | 'panels' => |
82 | - array ( |
|
82 | + array( |
|
83 | 83 | 'lbl_contact_information' => |
84 | - array ( |
|
84 | + array( |
|
85 | 85 | 0 => |
86 | - array ( |
|
86 | + array( |
|
87 | 87 | 0 => |
88 | - array ( |
|
88 | + array( |
|
89 | 89 | 'name' => 'first_name', |
90 | 90 | ), |
91 | 91 | 1 => |
92 | - array ( |
|
92 | + array( |
|
93 | 93 | 'name' => 'status', |
94 | 94 | ), |
95 | 95 | ), |
96 | 96 | 1 => |
97 | - array ( |
|
97 | + array( |
|
98 | 98 | 0 => |
99 | - array ( |
|
99 | + array( |
|
100 | 100 | 'name' => 'last_name', |
101 | 101 | 'displayParams' => |
102 | - array ( |
|
102 | + array( |
|
103 | 103 | 'required' => true, |
104 | 104 | ), |
105 | 105 | ), |
106 | 106 | 1 => |
107 | - array ( |
|
107 | + array( |
|
108 | 108 | 'name' => 'phone_work', |
109 | 109 | ), |
110 | 110 | ), |
111 | 111 | 2 => |
112 | - array ( |
|
112 | + array( |
|
113 | 113 | 0 => |
114 | - array ( |
|
114 | + array( |
|
115 | 115 | 'name' => 'title', |
116 | 116 | ), |
117 | 117 | 1 => |
118 | - array ( |
|
118 | + array( |
|
119 | 119 | 'name' => 'phone_mobile', |
120 | 120 | ), |
121 | 121 | ), |
122 | 122 | 3 => |
123 | - array ( |
|
123 | + array( |
|
124 | 124 | 0 => |
125 | - array ( |
|
125 | + array( |
|
126 | 126 | 'name' => 'department', |
127 | 127 | ), |
128 | 128 | 1 => |
129 | - array ( |
|
129 | + array( |
|
130 | 130 | 'name' => 'phone_fax', |
131 | 131 | ), |
132 | 132 | ), |
133 | 133 | 4 => |
134 | - array ( |
|
134 | + array( |
|
135 | 135 | 0 => |
136 | - array ( |
|
136 | + array( |
|
137 | 137 | 'name' => 'account_name', |
138 | 138 | ), |
139 | 139 | 1 => |
140 | - array ( |
|
140 | + array( |
|
141 | 141 | 'name' => 'do_not_call', |
142 | 142 | ), |
143 | 143 | ), |
144 | 144 | 5 => |
145 | - array ( |
|
145 | + array( |
|
146 | 146 | 0 => |
147 | - array ( |
|
147 | + array( |
|
148 | 148 | 'name' => 'email1', |
149 | 149 | ), |
150 | 150 | ), |
151 | 151 | 6 => |
152 | - array ( |
|
152 | + array( |
|
153 | 153 | 0 => |
154 | - array ( |
|
154 | + array( |
|
155 | 155 | 'name' => 'lead_source', |
156 | 156 | ), |
157 | 157 | 1 => |
158 | - array ( |
|
158 | + array( |
|
159 | 159 | 'name' => 'refered_by', |
160 | 160 | ), |
161 | 161 | ), |
162 | 162 | 7 => |
163 | - array ( |
|
163 | + array( |
|
164 | 164 | 0 => |
165 | - array ( |
|
165 | + array( |
|
166 | 166 | 'name' => 'assigned_user_name', |
167 | 167 | ), |
168 | 168 | 1 => |
169 | - array ( |
|
169 | + array( |
|
170 | 170 | 'name' => 'team_name', |
171 | 171 | ), |
172 | 172 | ), |
@@ -1,5 +1,7 @@ |
||
1 | 1 | <?php |
2 | -if(!defined('sugarEntry') || !sugarEntry) die('Not A Valid Entry Point'); |
|
2 | +if(!defined('sugarEntry') || !sugarEntry) { |
|
3 | + die('Not A Valid Entry Point'); |
|
4 | +} |
|
3 | 5 | /********************************************************************************* |
4 | 6 | * SugarCRM Community Edition is a customer relationship management program developed by |
5 | 7 | * SugarCRM, Inc. Copyright (C) 2004-2013 SugarCRM Inc. |