@@ -43,41 +43,41 @@ |
||
43 | 43 | |
44 | 44 | |
45 | 45 | $listViewDefs['Cases'] = array( |
46 | - 'CASE_NUMBER' => array( |
|
47 | - 'width' => '5', |
|
48 | - 'label' => 'LBL_LIST_NUMBER', |
|
46 | + 'CASE_NUMBER' => array( |
|
47 | + 'width' => '5', |
|
48 | + 'label' => 'LBL_LIST_NUMBER', |
|
49 | 49 | 'default' => true), |
50 | - 'NAME' => array( |
|
51 | - 'width' => '25', |
|
52 | - 'label' => 'LBL_LIST_SUBJECT', |
|
53 | - 'link' => true, |
|
50 | + 'NAME' => array( |
|
51 | + 'width' => '25', |
|
52 | + 'label' => 'LBL_LIST_SUBJECT', |
|
53 | + 'link' => true, |
|
54 | 54 | 'default' => true), |
55 | - 'ACCOUNT_NAME' => array( |
|
56 | - 'width' => '20', |
|
57 | - 'label' => 'LBL_LIST_ACCOUNT_NAME', |
|
58 | - 'module' => 'Accounts', |
|
59 | - 'id' => 'ACCOUNT_ID', |
|
60 | - 'link' => true, |
|
55 | + 'ACCOUNT_NAME' => array( |
|
56 | + 'width' => '20', |
|
57 | + 'label' => 'LBL_LIST_ACCOUNT_NAME', |
|
58 | + 'module' => 'Accounts', |
|
59 | + 'id' => 'ACCOUNT_ID', |
|
60 | + 'link' => true, |
|
61 | 61 | 'default' => true, |
62 | 62 | 'ACLTag' => 'ACCOUNT', |
63 | 63 | 'related_fields' => array('account_id')), |
64 | - 'PRIORITY' => array( |
|
65 | - 'width' => '10', |
|
66 | - 'label' => 'LBL_LIST_PRIORITY', |
|
64 | + 'PRIORITY' => array( |
|
65 | + 'width' => '10', |
|
66 | + 'label' => 'LBL_LIST_PRIORITY', |
|
67 | 67 | 'default' => true), |
68 | - 'STATUS' => array( |
|
69 | - 'width' => '10', |
|
70 | - 'label' => 'LBL_LIST_STATUS', |
|
68 | + 'STATUS' => array( |
|
69 | + 'width' => '10', |
|
70 | + 'label' => 'LBL_LIST_STATUS', |
|
71 | 71 | 'default' => true), |
72 | - 'ASSIGNED_USER_NAME' => array( |
|
73 | - 'width' => '10', |
|
74 | - 'label' => 'LBL_ASSIGNED_TO_NAME', |
|
75 | - 'module' => 'Employees', |
|
72 | + 'ASSIGNED_USER_NAME' => array( |
|
73 | + 'width' => '10', |
|
74 | + 'label' => 'LBL_ASSIGNED_TO_NAME', |
|
75 | + 'module' => 'Employees', |
|
76 | 76 | 'id' => 'ASSIGNED_USER_ID', |
77 | 77 | 'default' => true), |
78 | - 'DATE_ENTERED' => array ( |
|
79 | - 'width' => '10', |
|
80 | - 'label' => 'LBL_DATE_ENTERED', |
|
81 | - 'default' => true), |
|
78 | + 'DATE_ENTERED' => array ( |
|
79 | + 'width' => '10', |
|
80 | + 'label' => 'LBL_DATE_ENTERED', |
|
81 | + 'default' => true), |
|
82 | 82 | ); |
83 | 83 | ?> |
@@ -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. |
@@ -101,7 +101,7 @@ discard block |
||
101 | 101 | 'label' => 'LBL_LIST_STATUS', |
102 | 102 | 'link' => false, |
103 | 103 | 'default' => false), |
104 | - 'DATE_ENTERED' => array ( |
|
104 | + 'DATE_ENTERED' => array( |
|
105 | 105 | 'width' => '10', |
106 | 106 | 'label' => 'LBL_DATE_ENTERED', |
107 | 107 | 'default' => true), |
@@ -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. |
@@ -46,27 +46,27 @@ |
||
46 | 46 | * Contributor(s): ______________________________________.. |
47 | 47 | ********************************************************************************/ |
48 | 48 | $fields_array['Opportunity'] = array ('column_fields' => Array("id" |
49 | - , "name" |
|
50 | - , "opportunity_type" |
|
51 | - , "lead_source" |
|
52 | - , "amount" |
|
53 | - , "currency_id" |
|
54 | - , "amount_usdollar" |
|
55 | - , "date_entered" |
|
56 | - , "date_modified" |
|
57 | - , "modified_user_id" |
|
58 | - , "assigned_user_id" |
|
59 | - , "created_by" |
|
60 | - , "date_closed" |
|
61 | - , "next_step" |
|
62 | - , "sales_stage" |
|
63 | - , "probability" |
|
64 | - , "description" |
|
65 | - ,"campaign_id" |
|
66 | - ), |
|
49 | + , "name" |
|
50 | + , "opportunity_type" |
|
51 | + , "lead_source" |
|
52 | + , "amount" |
|
53 | + , "currency_id" |
|
54 | + , "amount_usdollar" |
|
55 | + , "date_entered" |
|
56 | + , "date_modified" |
|
57 | + , "modified_user_id" |
|
58 | + , "assigned_user_id" |
|
59 | + , "created_by" |
|
60 | + , "date_closed" |
|
61 | + , "next_step" |
|
62 | + , "sales_stage" |
|
63 | + , "probability" |
|
64 | + , "description" |
|
65 | + ,"campaign_id" |
|
66 | + ), |
|
67 | 67 | 'list_fields' => Array('id', 'name', 'account_id', 'sales_stage', 'account_name', 'date_closed', 'amount', 'assigned_user_name', 'assigned_user_id','sales_stage','probability','lead_source','opportunity_type' |
68 | - , "amount_usdollar" |
|
69 | - ), |
|
68 | + , "amount_usdollar" |
|
69 | + ), |
|
70 | 70 | 'required_fields' => Array('name'=>1, 'date_closed'=>2, 'amount'=>3, 'sales_stage'=>4, 'account_name'=>5), |
71 | 71 | ); |
72 | 72 | ?> |
73 | 73 | \ 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. |
@@ -45,7 +45,7 @@ discard block |
||
45 | 45 | * All Rights Reserved. |
46 | 46 | * Contributor(s): ______________________________________.. |
47 | 47 | ********************************************************************************/ |
48 | -$fields_array['Opportunity'] = array ('column_fields' => Array("id" |
|
48 | +$fields_array['Opportunity'] = array('column_fields' => Array("id" |
|
49 | 49 | , "name" |
50 | 50 | , "opportunity_type" |
51 | 51 | , "lead_source" |
@@ -64,7 +64,7 @@ discard block |
||
64 | 64 | , "description" |
65 | 65 | ,"campaign_id" |
66 | 66 | ), |
67 | - 'list_fields' => Array('id', 'name', 'account_id', 'sales_stage', 'account_name', 'date_closed', 'amount', 'assigned_user_name', 'assigned_user_id','sales_stage','probability','lead_source','opportunity_type' |
|
67 | + 'list_fields' => Array('id', 'name', 'account_id', 'sales_stage', 'account_name', 'date_closed', 'amount', 'assigned_user_name', 'assigned_user_id', 'sales_stage', 'probability', 'lead_source', 'opportunity_type' |
|
68 | 68 | , "amount_usdollar" |
69 | 69 | ), |
70 | 70 | 'required_fields' => Array('name'=>1, 'date_closed'=>2, 'amount'=>3, 'sales_stage'=>4, 'account_name'=>5), |
@@ -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. |
@@ -319,7 +319,7 @@ |
||
319 | 319 | array( |
320 | 320 | 'name' => 'emails', |
321 | 321 | 'type' => 'link', |
322 | - 'relationship' => 'emails_opportunities_rel',/* reldef in emails */ |
|
322 | + 'relationship' => 'emails_opportunities_rel', /* reldef in emails */ |
|
323 | 323 | 'source' => 'non-db', |
324 | 324 | 'vname' => 'LBL_EMAILS', |
325 | 325 | ), |
@@ -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. |
@@ -71,12 +71,12 @@ discard block |
||
71 | 71 | /// SETUP PARENT POPUP |
72 | 72 | |
73 | 73 | $popup_request_data = array( |
74 | - 'call_back_function' => 'set_return_and_save', |
|
75 | - 'form_name' => 'DetailView', |
|
76 | - 'field_to_name_array' => array( |
|
77 | - 'id' => 'opportunity_id', |
|
78 | - ), |
|
79 | - ); |
|
74 | + 'call_back_function' => 'set_return_and_save', |
|
75 | + 'form_name' => 'DetailView', |
|
76 | + 'field_to_name_array' => array( |
|
77 | + 'id' => 'opportunity_id', |
|
78 | + ), |
|
79 | + ); |
|
80 | 80 | |
81 | 81 | $json = getJSONobj(); |
82 | 82 | $encoded_popup_request_data = $json->encode($popup_request_data); |
@@ -94,14 +94,14 @@ discard block |
||
94 | 94 | $button .= "<input type='hidden' name='return_id' value='".$focus->id."'>\n"; |
95 | 95 | $button .= "<input type='hidden' name='action'>\n"; |
96 | 96 | $button .= "<input title='".$app_strings['LBL_SELECT_BUTTON_TITLE'] |
97 | - ."' accessyKey='".$app_strings['LBL_SELECT_BUTTON_KEY'] |
|
98 | - ."' type='button' class='button' value=' " |
|
99 | - .$app_strings['LBL_SELECT_BUTTON_LABEL'] |
|
100 | - ." ' name='button' onclick='open_popup(\"Opportunities\", 600, 400, \"\", false, true, {$encoded_popup_request_data});'>\n"; |
|
97 | + ."' accessyKey='".$app_strings['LBL_SELECT_BUTTON_KEY'] |
|
98 | + ."' type='button' class='button' value=' " |
|
99 | + .$app_strings['LBL_SELECT_BUTTON_LABEL'] |
|
100 | + ." ' name='button' onclick='open_popup(\"Opportunities\", 600, 400, \"\", false, true, {$encoded_popup_request_data});'>\n"; |
|
101 | 101 | $button .= "</form>\n"; |
102 | 102 | $header_text = ''; |
103 | 103 | if(is_admin($current_user) && $_REQUEST['module'] != 'DynamicLayout' && !empty($_SESSION['editinplace'])){ |
104 | - $header_text = " <a href='index.php?action=index&module=DynamicLayout&from_action=SubPanelView&from_module=Opportunities&record=". $_REQUEST['record']."'>".SugarThemeRegistry::current()->getImage("EditLayout","border='0' align='bottom'",null,null,'.gif',$mod_strings['LBL_EDITLAYOUT'])."</a>"; |
|
104 | + $header_text = " <a href='index.php?action=index&module=DynamicLayout&from_action=SubPanelView&from_module=Opportunities&record=". $_REQUEST['record']."'>".SugarThemeRegistry::current()->getImage("EditLayout","border='0' align='bottom'",null,null,'.gif',$mod_strings['LBL_EDITLAYOUT'])."</a>"; |
|
105 | 105 | } |
106 | 106 | $ListView = new ListView(); |
107 | 107 | $ListView->initNewXTemplate('modules/Opportunities/SubPanelViewProjects.html',$current_module_strings); |
@@ -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. |
@@ -100,14 +100,14 @@ discard block |
||
100 | 100 | ." ' name='button' onclick='open_popup(\"Opportunities\", 600, 400, \"\", false, true, {$encoded_popup_request_data});'>\n"; |
101 | 101 | $button .= "</form>\n"; |
102 | 102 | $header_text = ''; |
103 | -if(is_admin($current_user) && $_REQUEST['module'] != 'DynamicLayout' && !empty($_SESSION['editinplace'])){ |
|
104 | - $header_text = " <a href='index.php?action=index&module=DynamicLayout&from_action=SubPanelView&from_module=Opportunities&record=". $_REQUEST['record']."'>".SugarThemeRegistry::current()->getImage("EditLayout","border='0' align='bottom'",null,null,'.gif',$mod_strings['LBL_EDITLAYOUT'])."</a>"; |
|
103 | +if (is_admin($current_user) && $_REQUEST['module'] != 'DynamicLayout' && !empty($_SESSION['editinplace'])) { |
|
104 | + $header_text = " <a href='index.php?action=index&module=DynamicLayout&from_action=SubPanelView&from_module=Opportunities&record=".$_REQUEST['record']."'>".SugarThemeRegistry::current()->getImage("EditLayout", "border='0' align='bottom'", null, null, '.gif', $mod_strings['LBL_EDITLAYOUT'])."</a>"; |
|
105 | 105 | } |
106 | 106 | $ListView = new ListView(); |
107 | -$ListView->initNewXTemplate('modules/Opportunities/SubPanelViewProjects.html',$current_module_strings); |
|
107 | +$ListView->initNewXTemplate('modules/Opportunities/SubPanelViewProjects.html', $current_module_strings); |
|
108 | 108 | $ListView->xTemplateAssign("RETURN_URL", "&return_module=".$currentModule."&return_action=DetailView&return_id={$_REQUEST['record']}"); |
109 | -$ListView->xTemplateAssign("REMOVE_INLINE_PNG", SugarThemeRegistry::current()->getImage('delete_inline','align="absmiddle" border="0"',null,null,'.gif',$app_strings['LNK_REMOVE'])); |
|
110 | -$ListView->setHeaderTitle($project_module_strings['LBL_OPPORTUNITY_SUBPANEL_TITLE']. $header_text ); |
|
109 | +$ListView->xTemplateAssign("REMOVE_INLINE_PNG", SugarThemeRegistry::current()->getImage('delete_inline', 'align="absmiddle" border="0"', null, null, '.gif', $app_strings['LNK_REMOVE'])); |
|
110 | +$ListView->setHeaderTitle($project_module_strings['LBL_OPPORTUNITY_SUBPANEL_TITLE'].$header_text); |
|
111 | 111 | $ListView->setHeaderText($button); |
112 | 112 | $ListView->processListView($focus_list, "main", "OPPORTUNITY"); |
113 | 113 |
@@ -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. |
@@ -40,11 +40,11 @@ |
||
40 | 40 | |
41 | 41 | |
42 | 42 | function perform_save(&$focus){ |
43 | - //US DOLLAR |
|
44 | - if(isset($focus->amount) && !number_empty($focus->amount)){ |
|
45 | - $currency = new Currency(); |
|
46 | - $currency->retrieve($focus->currency_id); |
|
47 | - $focus->amount_usdollar = $currency->convertToDollar(unformat_number($focus->amount)); |
|
48 | - } |
|
43 | + //US DOLLAR |
|
44 | + if(isset($focus->amount) && !number_empty($focus->amount)){ |
|
45 | + $currency = new Currency(); |
|
46 | + $currency->retrieve($focus->currency_id); |
|
47 | + $focus->amount_usdollar = $currency->convertToDollar(unformat_number($focus->amount)); |
|
48 | + } |
|
49 | 49 | } |
50 | 50 | ?> |
51 | 51 | \ 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. |
@@ -39,9 +39,9 @@ discard block |
||
39 | 39 | ********************************************************************************/ |
40 | 40 | |
41 | 41 | |
42 | -function perform_save(&$focus){ |
|
42 | +function perform_save(&$focus) { |
|
43 | 43 | //US DOLLAR |
44 | - if(isset($focus->amount) && !number_empty($focus->amount)){ |
|
44 | + if (isset($focus->amount) && !number_empty($focus->amount)) { |
|
45 | 45 | $currency = new Currency(); |
46 | 46 | $currency->retrieve($focus->currency_id); |
47 | 47 | $focus->amount_usdollar = $currency->convertToDollar(unformat_number($focus->amount)); |
@@ -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. |
@@ -71,8 +71,8 @@ discard block |
||
71 | 71 | $button .= "<input type='hidden' name='module' value='Opportunities'>\n"; |
72 | 72 | if ($currentModule == 'Accounts') $button .= "<input type='hidden' name='account_id' value='$focus->id'>\n<input type='hidden' name='account_name' value=\"".urlencode($focus->name)."\">\n"; |
73 | 73 | if ($currentModule == 'Contacts') { |
74 | - $button .= "<input type='hidden' name='account_id' value='$focus->account_id'>\n<input type='hidden' name='account_name' value=\"".urlencode($focus->account_name)."\">\n"; |
|
75 | - $button .= "<input type='hidden' name='contact_id' value='$focus->id'>\n"; |
|
74 | + $button .= "<input type='hidden' name='account_id' value='$focus->account_id'>\n<input type='hidden' name='account_name' value=\"".urlencode($focus->account_name)."\">\n"; |
|
75 | + $button .= "<input type='hidden' name='contact_id' value='$focus->id'>\n"; |
|
76 | 76 | } |
77 | 77 | $button .= "<input type='hidden' name='return_module' value='".$currentModule."'>\n"; |
78 | 78 | $button .= "<input type='hidden' name='return_action' value='".$action."'>\n"; |
@@ -82,60 +82,60 @@ discard block |
||
82 | 82 | $button .= "<input title='".$app_strings['LBL_NEW_BUTTON_TITLE']."' accessyKey='".$app_strings['LBL_NEW_BUTTON_KEY']."' class='button' onclick=\"this.form.action.value='EditView'\" type='submit' name='New' value=' ".$app_strings['LBL_NEW_BUTTON_LABEL']." '>\n"; |
83 | 83 | if ($currentModule == 'Accounts') |
84 | 84 | { |
85 | - /////////////////////////////////////// |
|
86 | - /// |
|
87 | - /// SETUP PARENT POPUP |
|
85 | + /////////////////////////////////////// |
|
86 | + /// |
|
87 | + /// SETUP PARENT POPUP |
|
88 | 88 | |
89 | - $popup_request_data = array( |
|
90 | - 'call_back_function' => 'set_return_and_save', |
|
91 | - 'form_name' => 'DetailView', |
|
92 | - 'field_to_name_array' => array( |
|
93 | - 'id' => 'opportunity_id', |
|
94 | - ), |
|
95 | - ); |
|
89 | + $popup_request_data = array( |
|
90 | + 'call_back_function' => 'set_return_and_save', |
|
91 | + 'form_name' => 'DetailView', |
|
92 | + 'field_to_name_array' => array( |
|
93 | + 'id' => 'opportunity_id', |
|
94 | + ), |
|
95 | + ); |
|
96 | 96 | |
97 | - $json = getJSONobj(); |
|
98 | - $encoded_popup_request_data = $json->encode($popup_request_data); |
|
97 | + $json = getJSONobj(); |
|
98 | + $encoded_popup_request_data = $json->encode($popup_request_data); |
|
99 | 99 | |
100 | - // |
|
101 | - /////////////////////////////////////// |
|
100 | + // |
|
101 | + /////////////////////////////////////// |
|
102 | 102 | |
103 | - $button .= "<input title='".$app_strings['LBL_SELECT_BUTTON_TITLE'] |
|
104 | - ."' accessyKey='".$app_strings['LBL_SELECT_BUTTON_KEY'] |
|
105 | - ."' type='button' class='button' value=' ".$app_strings['LBL_SELECT_BUTTON_LABEL'] |
|
106 | - ." ' name='button' onclick='open_popup(\"Opportunities\", 600, 400, \"\", false, true, {$encoded_popup_request_data});'>\n"; |
|
103 | + $button .= "<input title='".$app_strings['LBL_SELECT_BUTTON_TITLE'] |
|
104 | + ."' accessyKey='".$app_strings['LBL_SELECT_BUTTON_KEY'] |
|
105 | + ."' type='button' class='button' value=' ".$app_strings['LBL_SELECT_BUTTON_LABEL'] |
|
106 | + ." ' name='button' onclick='open_popup(\"Opportunities\", 600, 400, \"\", false, true, {$encoded_popup_request_data});'>\n"; |
|
107 | 107 | // ." ' name='button' onclick='window.open(\"index.php?module=Opportunities&action=Popup&html=Popup_picker&form=DetailView&form_submit=true\",\"new\",\"width=600,height=400,resizable=1,scrollbars=1\");'>\n"; |
108 | 108 | } |
109 | 109 | else |
110 | 110 | { |
111 | - /////////////////////////////////////// |
|
112 | - /// |
|
113 | - /// SETUP PARENT POPUP |
|
111 | + /////////////////////////////////////// |
|
112 | + /// |
|
113 | + /// SETUP PARENT POPUP |
|
114 | 114 | |
115 | - $popup_request_data = array( |
|
116 | - 'call_back_function' => 'set_return_and_save', |
|
117 | - 'form_name' => 'DetailView', |
|
118 | - 'field_to_name_array' => array( |
|
119 | - 'id' => 'opportunity_id', |
|
120 | - ), |
|
121 | - ); |
|
115 | + $popup_request_data = array( |
|
116 | + 'call_back_function' => 'set_return_and_save', |
|
117 | + 'form_name' => 'DetailView', |
|
118 | + 'field_to_name_array' => array( |
|
119 | + 'id' => 'opportunity_id', |
|
120 | + ), |
|
121 | + ); |
|
122 | 122 | |
123 | - $json = getJSONobj(); |
|
124 | - $encoded_popup_request_data = $json->encode($popup_request_data); |
|
123 | + $json = getJSONobj(); |
|
124 | + $encoded_popup_request_data = $json->encode($popup_request_data); |
|
125 | 125 | |
126 | - // |
|
127 | - /////////////////////////////////////// |
|
126 | + // |
|
127 | + /////////////////////////////////////// |
|
128 | 128 | |
129 | - $button .= "<input title='".$app_strings['LBL_SELECT_BUTTON_TITLE'] |
|
130 | - ."' accessyKey='".$app_strings['LBL_SELECT_BUTTON_KEY'] |
|
131 | - ."' type='button' class='button' value=' ".$app_strings['LBL_SELECT_BUTTON_LABEL'] |
|
132 | - ." ' name='button' onclick='open_popup(\"Opportunities\", 600, 400, \"\", false, true, {$encoded_popup_request_data});'>\n"; |
|
129 | + $button .= "<input title='".$app_strings['LBL_SELECT_BUTTON_TITLE'] |
|
130 | + ."' accessyKey='".$app_strings['LBL_SELECT_BUTTON_KEY'] |
|
131 | + ."' type='button' class='button' value=' ".$app_strings['LBL_SELECT_BUTTON_LABEL'] |
|
132 | + ." ' name='button' onclick='open_popup(\"Opportunities\", 600, 400, \"\", false, true, {$encoded_popup_request_data});'>\n"; |
|
133 | 133 | // ." ' name='button' onclick='window.open(\"index.php?module=Opportunities&action=Popup&html=Popup_picker&form=ContactDetailView&form_submit=true&query=true&account_id=$focus->account_id&account_name=$focus->account_name\",\"new\",\"width=600,height=400,resizable=1,scrollbars=1\");'>\n"; |
134 | 134 | } |
135 | 135 | $button .= "</form>\n"; |
136 | 136 | $header_text = ''; |
137 | 137 | if(is_admin($current_user) && $_REQUEST['module'] != 'DynamicLayout' && !empty($_SESSION['editinplace'])){ |
138 | - $header_text = " <a href='index.php?action=index&module=DynamicLayout&from_action=SubPanelView&from_module=Opportunities&record=". $_REQUEST['record']."'>".SugarThemeRegistry::current()->getImage("EditLayout","border='0' align='bottom'",null,null,'.gif',$mod_strings['LBL_EDITLAYOUT'])."</a>"; |
|
138 | + $header_text = " <a href='index.php?action=index&module=DynamicLayout&from_action=SubPanelView&from_module=Opportunities&record=". $_REQUEST['record']."'>".SugarThemeRegistry::current()->getImage("EditLayout","border='0' align='bottom'",null,null,'.gif',$mod_strings['LBL_EDITLAYOUT'])."</a>"; |
|
139 | 139 | } |
140 | 140 | $ListView = new ListView(); |
141 | 141 | $ListView->initNewXTemplate( 'modules/Opportunities/SubPanelView.html',$current_module_strings); |
@@ -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. |
@@ -134,14 +134,14 @@ discard block |
||
134 | 134 | } |
135 | 135 | $button .= "</form>\n"; |
136 | 136 | $header_text = ''; |
137 | -if(is_admin($current_user) && $_REQUEST['module'] != 'DynamicLayout' && !empty($_SESSION['editinplace'])){ |
|
138 | - $header_text = " <a href='index.php?action=index&module=DynamicLayout&from_action=SubPanelView&from_module=Opportunities&record=". $_REQUEST['record']."'>".SugarThemeRegistry::current()->getImage("EditLayout","border='0' align='bottom'",null,null,'.gif',$mod_strings['LBL_EDITLAYOUT'])."</a>"; |
|
137 | +if (is_admin($current_user) && $_REQUEST['module'] != 'DynamicLayout' && !empty($_SESSION['editinplace'])) { |
|
138 | + $header_text = " <a href='index.php?action=index&module=DynamicLayout&from_action=SubPanelView&from_module=Opportunities&record=".$_REQUEST['record']."'>".SugarThemeRegistry::current()->getImage("EditLayout", "border='0' align='bottom'", null, null, '.gif', $mod_strings['LBL_EDITLAYOUT'])."</a>"; |
|
139 | 139 | } |
140 | 140 | $ListView = new ListView(); |
141 | -$ListView->initNewXTemplate( 'modules/Opportunities/SubPanelView.html',$current_module_strings); |
|
141 | +$ListView->initNewXTemplate('modules/Opportunities/SubPanelView.html', $current_module_strings); |
|
142 | 142 | $ListView->xTemplateAssign("RETURN_URL", "&return_module=".$currentModule."&return_action=DetailView&return_id={$_REQUEST['record']}"); |
143 | -$ListView->xTemplateAssign("EDIT_INLINE_PNG", SugarThemeRegistry::current()->getImage('edit_inline','align="absmiddle" border="0"',null,null,'.gif',$app_strings['LNK_EDIT'])); |
|
144 | -$ListView->setHeaderTitle($current_module_strings['LBL_MODULE_NAME']. $header_text ); |
|
143 | +$ListView->xTemplateAssign("EDIT_INLINE_PNG", SugarThemeRegistry::current()->getImage('edit_inline', 'align="absmiddle" border="0"', null, null, '.gif', $app_strings['LNK_EDIT'])); |
|
144 | +$ListView->setHeaderTitle($current_module_strings['LBL_MODULE_NAME'].$header_text); |
|
145 | 145 | $ListView->setHeaderText($button); |
146 | 146 | $ListView->processListView($focus_list, "main", "OPPORTUNITY"); |
147 | 147 |
@@ -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. |
@@ -69,7 +71,9 @@ discard block |
||
69 | 71 | |
70 | 72 | $button = "<form action='index.php' method='post' name='form' id='form'>\n"; |
71 | 73 | $button .= "<input type='hidden' name='module' value='Opportunities'>\n"; |
72 | -if ($currentModule == 'Accounts') $button .= "<input type='hidden' name='account_id' value='$focus->id'>\n<input type='hidden' name='account_name' value=\"".urlencode($focus->name)."\">\n"; |
|
74 | +if ($currentModule == 'Accounts') { |
|
75 | + $button .= "<input type='hidden' name='account_id' value='$focus->id'>\n<input type='hidden' name='account_name' value=\"".urlencode($focus->name)."\">\n"; |
|
76 | +} |
|
73 | 77 | if ($currentModule == 'Contacts') { |
74 | 78 | $button .= "<input type='hidden' name='account_id' value='$focus->account_id'>\n<input type='hidden' name='account_name' value=\"".urlencode($focus->account_name)."\">\n"; |
75 | 79 | $button .= "<input type='hidden' name='contact_id' value='$focus->id'>\n"; |
@@ -105,8 +109,7 @@ discard block |
||
105 | 109 | ."' type='button' class='button' value=' ".$app_strings['LBL_SELECT_BUTTON_LABEL'] |
106 | 110 | ." ' name='button' onclick='open_popup(\"Opportunities\", 600, 400, \"\", false, true, {$encoded_popup_request_data});'>\n"; |
107 | 111 | // ." ' name='button' onclick='window.open(\"index.php?module=Opportunities&action=Popup&html=Popup_picker&form=DetailView&form_submit=true\",\"new\",\"width=600,height=400,resizable=1,scrollbars=1\");'>\n"; |
108 | -} |
|
109 | -else |
|
112 | +} else |
|
110 | 113 | { |
111 | 114 | /////////////////////////////////////// |
112 | 115 | /// |
@@ -41,26 +41,26 @@ |
||
41 | 41 | |
42 | 42 | |
43 | 43 | function additionalDetailsOpportunity($fields) { |
44 | - global $current_language; |
|
45 | - $mod_strings = return_module_language($current_language, 'Opportunities'); |
|
46 | - $overlib_string = ''; |
|
44 | + global $current_language; |
|
45 | + $mod_strings = return_module_language($current_language, 'Opportunities'); |
|
46 | + $overlib_string = ''; |
|
47 | 47 | |
48 | - if(!empty($fields['LEAD_SOURCE'])) $overlib_string .= '<b>'. $mod_strings['LBL_LEAD_SOURCE'] . '</b> ' . $fields['LEAD_SOURCE'] . '<br>'; |
|
49 | - if(!empty($fields['PROBABILITY'])) $overlib_string .= '<b>'. $mod_strings['LBL_PROBABILITY'] . '</b> ' . $fields['PROBABILITY'] . '<br>'; |
|
50 | - if(!empty($fields['NEXT_STEP'])) $overlib_string .= '<b>'. $mod_strings['LBL_NEXT_STEP'] . '</b> ' . $fields['NEXT_STEP'] . '<br>'; |
|
51 | - if(!empty($fields['OPPORTUNITY_TYPE'])) $overlib_string .= '<b>'. $mod_strings['LBL_TYPE'] . '</b> ' . $fields['OPPORTUNITY_TYPE'] . '<br>'; |
|
48 | + if(!empty($fields['LEAD_SOURCE'])) $overlib_string .= '<b>'. $mod_strings['LBL_LEAD_SOURCE'] . '</b> ' . $fields['LEAD_SOURCE'] . '<br>'; |
|
49 | + if(!empty($fields['PROBABILITY'])) $overlib_string .= '<b>'. $mod_strings['LBL_PROBABILITY'] . '</b> ' . $fields['PROBABILITY'] . '<br>'; |
|
50 | + if(!empty($fields['NEXT_STEP'])) $overlib_string .= '<b>'. $mod_strings['LBL_NEXT_STEP'] . '</b> ' . $fields['NEXT_STEP'] . '<br>'; |
|
51 | + if(!empty($fields['OPPORTUNITY_TYPE'])) $overlib_string .= '<b>'. $mod_strings['LBL_TYPE'] . '</b> ' . $fields['OPPORTUNITY_TYPE'] . '<br>'; |
|
52 | 52 | |
53 | - if(!empty($fields['DESCRIPTION'])) { |
|
54 | - $overlib_string .= '<b>'. $mod_strings['LBL_DESCRIPTION'] . '</b> '; |
|
55 | - $overlib_string .= substr($fields['DESCRIPTION'], 0, 300); |
|
56 | - if(strlen($fields['DESCRIPTION']) > 300) $overlib_string .= '...'; |
|
57 | - } |
|
53 | + if(!empty($fields['DESCRIPTION'])) { |
|
54 | + $overlib_string .= '<b>'. $mod_strings['LBL_DESCRIPTION'] . '</b> '; |
|
55 | + $overlib_string .= substr($fields['DESCRIPTION'], 0, 300); |
|
56 | + if(strlen($fields['DESCRIPTION']) > 300) $overlib_string .= '...'; |
|
57 | + } |
|
58 | 58 | |
59 | - return array('fieldToAddTo' => 'NAME', |
|
60 | - 'string' => $overlib_string, |
|
61 | - 'editLink' => "index.php?action=EditView&module=Opportunities&return_module=Opportunities&record={$fields['ID']}", |
|
62 | - 'viewLink' => "index.php?action=DetailView&module=Opportunities&return_module=Opportunities&record={$fields['ID']}"); |
|
59 | + return array('fieldToAddTo' => 'NAME', |
|
60 | + 'string' => $overlib_string, |
|
61 | + 'editLink' => "index.php?action=EditView&module=Opportunities&return_module=Opportunities&record={$fields['ID']}", |
|
62 | + 'viewLink' => "index.php?action=DetailView&module=Opportunities&return_module=Opportunities&record={$fields['ID']}"); |
|
63 | 63 | } |
64 | 64 | |
65 | - ?> |
|
65 | + ?> |
|
66 | 66 |
@@ -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. |
@@ -45,15 +45,15 @@ discard block |
||
45 | 45 | $mod_strings = return_module_language($current_language, 'Opportunities'); |
46 | 46 | $overlib_string = ''; |
47 | 47 | |
48 | - if(!empty($fields['LEAD_SOURCE'])) $overlib_string .= '<b>'. $mod_strings['LBL_LEAD_SOURCE'] . '</b> ' . $fields['LEAD_SOURCE'] . '<br>'; |
|
49 | - if(!empty($fields['PROBABILITY'])) $overlib_string .= '<b>'. $mod_strings['LBL_PROBABILITY'] . '</b> ' . $fields['PROBABILITY'] . '<br>'; |
|
50 | - if(!empty($fields['NEXT_STEP'])) $overlib_string .= '<b>'. $mod_strings['LBL_NEXT_STEP'] . '</b> ' . $fields['NEXT_STEP'] . '<br>'; |
|
51 | - if(!empty($fields['OPPORTUNITY_TYPE'])) $overlib_string .= '<b>'. $mod_strings['LBL_TYPE'] . '</b> ' . $fields['OPPORTUNITY_TYPE'] . '<br>'; |
|
48 | + if (!empty($fields['LEAD_SOURCE'])) $overlib_string .= '<b>'.$mod_strings['LBL_LEAD_SOURCE'].'</b> '.$fields['LEAD_SOURCE'].'<br>'; |
|
49 | + if (!empty($fields['PROBABILITY'])) $overlib_string .= '<b>'.$mod_strings['LBL_PROBABILITY'].'</b> '.$fields['PROBABILITY'].'<br>'; |
|
50 | + if (!empty($fields['NEXT_STEP'])) $overlib_string .= '<b>'.$mod_strings['LBL_NEXT_STEP'].'</b> '.$fields['NEXT_STEP'].'<br>'; |
|
51 | + if (!empty($fields['OPPORTUNITY_TYPE'])) $overlib_string .= '<b>'.$mod_strings['LBL_TYPE'].'</b> '.$fields['OPPORTUNITY_TYPE'].'<br>'; |
|
52 | 52 | |
53 | - if(!empty($fields['DESCRIPTION'])) { |
|
54 | - $overlib_string .= '<b>'. $mod_strings['LBL_DESCRIPTION'] . '</b> '; |
|
53 | + if (!empty($fields['DESCRIPTION'])) { |
|
54 | + $overlib_string .= '<b>'.$mod_strings['LBL_DESCRIPTION'].'</b> '; |
|
55 | 55 | $overlib_string .= substr($fields['DESCRIPTION'], 0, 300); |
56 | - if(strlen($fields['DESCRIPTION']) > 300) $overlib_string .= '...'; |
|
56 | + if (strlen($fields['DESCRIPTION']) > 300) $overlib_string .= '...'; |
|
57 | 57 | } |
58 | 58 | |
59 | 59 | 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. |
@@ -45,15 +47,25 @@ discard block |
||
45 | 47 | $mod_strings = return_module_language($current_language, 'Opportunities'); |
46 | 48 | $overlib_string = ''; |
47 | 49 | |
48 | - if(!empty($fields['LEAD_SOURCE'])) $overlib_string .= '<b>'. $mod_strings['LBL_LEAD_SOURCE'] . '</b> ' . $fields['LEAD_SOURCE'] . '<br>'; |
|
49 | - if(!empty($fields['PROBABILITY'])) $overlib_string .= '<b>'. $mod_strings['LBL_PROBABILITY'] . '</b> ' . $fields['PROBABILITY'] . '<br>'; |
|
50 | - if(!empty($fields['NEXT_STEP'])) $overlib_string .= '<b>'. $mod_strings['LBL_NEXT_STEP'] . '</b> ' . $fields['NEXT_STEP'] . '<br>'; |
|
51 | - if(!empty($fields['OPPORTUNITY_TYPE'])) $overlib_string .= '<b>'. $mod_strings['LBL_TYPE'] . '</b> ' . $fields['OPPORTUNITY_TYPE'] . '<br>'; |
|
50 | + if(!empty($fields['LEAD_SOURCE'])) { |
|
51 | + $overlib_string .= '<b>'. $mod_strings['LBL_LEAD_SOURCE'] . '</b> ' . $fields['LEAD_SOURCE'] . '<br>'; |
|
52 | + } |
|
53 | + if(!empty($fields['PROBABILITY'])) { |
|
54 | + $overlib_string .= '<b>'. $mod_strings['LBL_PROBABILITY'] . '</b> ' . $fields['PROBABILITY'] . '<br>'; |
|
55 | + } |
|
56 | + if(!empty($fields['NEXT_STEP'])) { |
|
57 | + $overlib_string .= '<b>'. $mod_strings['LBL_NEXT_STEP'] . '</b> ' . $fields['NEXT_STEP'] . '<br>'; |
|
58 | + } |
|
59 | + if(!empty($fields['OPPORTUNITY_TYPE'])) { |
|
60 | + $overlib_string .= '<b>'. $mod_strings['LBL_TYPE'] . '</b> ' . $fields['OPPORTUNITY_TYPE'] . '<br>'; |
|
61 | + } |
|
52 | 62 | |
53 | 63 | if(!empty($fields['DESCRIPTION'])) { |
54 | 64 | $overlib_string .= '<b>'. $mod_strings['LBL_DESCRIPTION'] . '</b> '; |
55 | 65 | $overlib_string .= substr($fields['DESCRIPTION'], 0, 300); |
56 | - if(strlen($fields['DESCRIPTION']) > 300) $overlib_string .= '...'; |
|
66 | + if(strlen($fields['DESCRIPTION']) > 300) { |
|
67 | + $overlib_string .= '...'; |
|
68 | + } |
|
57 | 69 | } |
58 | 70 | |
59 | 71 | return array('fieldToAddTo' => 'NAME', |
@@ -40,25 +40,25 @@ |
||
40 | 40 | |
41 | 41 | // created: 2005-10-19 11:16:08 |
42 | 42 | $acldefs['Opportunities'] = array ( |
43 | - 'forms' => |
|
44 | - array ( |
|
43 | + 'forms' => |
|
44 | + array ( |
|
45 | 45 | 'by_name' => |
46 | 46 | array ( |
47 | - 'btn1' => |
|
48 | - array ( |
|
47 | + 'btn1' => |
|
48 | + array ( |
|
49 | 49 | 'display_option' => 'disabled', |
50 | 50 | 'action_option' => 'list', |
51 | 51 | 'app_action' => 'EditView', |
52 | 52 | 'module' => 'Accounts', |
53 | - ), |
|
53 | + ), |
|
54 | + ), |
|
54 | 55 | ), |
55 | - ), |
|
56 | - 'form_names' => |
|
57 | - array ( |
|
56 | + 'form_names' => |
|
57 | + array ( |
|
58 | 58 | 'by_id' => 'by_id', |
59 | 59 | 'by_name' => 'by_name', |
60 | 60 | 'DetailView' => 'DetailView', |
61 | 61 | 'EditView' => 'EditView', |
62 | - ), |
|
62 | + ), |
|
63 | 63 | ); |
64 | 64 | ?> |
@@ -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. |
@@ -39,13 +39,13 @@ discard block |
||
39 | 39 | ********************************************************************************/ |
40 | 40 | |
41 | 41 | // created: 2005-10-19 11:16:08 |
42 | -$acldefs['Opportunities'] = array ( |
|
42 | +$acldefs['Opportunities'] = array( |
|
43 | 43 | 'forms' => |
44 | - array ( |
|
44 | + array( |
|
45 | 45 | 'by_name' => |
46 | - array ( |
|
46 | + array( |
|
47 | 47 | 'btn1' => |
48 | - array ( |
|
48 | + array( |
|
49 | 49 | 'display_option' => 'disabled', |
50 | 50 | 'action_option' => 'list', |
51 | 51 | 'app_action' => 'EditView', |
@@ -54,7 +54,7 @@ discard block |
||
54 | 54 | ), |
55 | 55 | ), |
56 | 56 | 'form_names' => |
57 | - array ( |
|
57 | + array( |
|
58 | 58 | 'by_id' => 'by_id', |
59 | 59 | 'by_name' => 'by_name', |
60 | 60 | 'DetailView' => 'DetailView', |
@@ -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. |
@@ -45,43 +45,43 @@ |
||
45 | 45 | ), |
46 | 46 | 'javascript' => '{$PROBABILITY_SCRIPT}', |
47 | 47 | ), |
48 | - 'panels' =>array ( |
|
49 | - 'default' => |
|
50 | - array ( |
|
48 | + 'panels' =>array ( |
|
49 | + 'default' => |
|
50 | + array ( |
|
51 | 51 | |
52 | 52 | array ( |
53 | - array('name'=>'name'), |
|
54 | - 'account_name', |
|
53 | + array('name'=>'name'), |
|
54 | + 'account_name', |
|
55 | 55 | ), |
56 | 56 | array( |
57 | - array('name'=>'currency_id','label'=>'LBL_CURRENCY'), |
|
58 | - array('name'=>'date_closed'), |
|
57 | + array('name'=>'currency_id','label'=>'LBL_CURRENCY'), |
|
58 | + array('name'=>'date_closed'), |
|
59 | 59 | ), |
60 | 60 | array ( |
61 | - array( 'name'=>'amount'), |
|
62 | - 'opportunity_type', |
|
61 | + array( 'name'=>'amount'), |
|
62 | + 'opportunity_type', |
|
63 | 63 | ), |
64 | 64 | array ( |
65 | - 'sales_stage', |
|
66 | - 'lead_source', |
|
65 | + 'sales_stage', |
|
66 | + 'lead_source', |
|
67 | 67 | ), |
68 | 68 | array ( |
69 | - 'probability', |
|
70 | - 'campaign_name', |
|
69 | + 'probability', |
|
70 | + 'campaign_name', |
|
71 | 71 | ), |
72 | 72 | array ( |
73 | - 'next_step', |
|
73 | + 'next_step', |
|
74 | 74 | ), |
75 | 75 | array ( |
76 | - 'description', |
|
76 | + 'description', |
|
77 | + ), |
|
77 | 78 | ), |
78 | - ), |
|
79 | 79 | |
80 | - 'LBL_PANEL_ASSIGNMENT' => array( |
|
80 | + 'LBL_PANEL_ASSIGNMENT' => array( |
|
81 | 81 | array( |
82 | - 'assigned_user_name', |
|
82 | + 'assigned_user_name', |
|
83 | + ), |
|
83 | 84 | ), |
84 | - ), |
|
85 | 85 | ) |
86 | 86 | |
87 | 87 |
@@ -45,34 +45,34 @@ |
||
45 | 45 | ), |
46 | 46 | 'javascript' => '{$PROBABILITY_SCRIPT}', |
47 | 47 | ), |
48 | - 'panels' =>array ( |
|
48 | + 'panels' =>array( |
|
49 | 49 | 'default' => |
50 | - array ( |
|
50 | + array( |
|
51 | 51 | |
52 | - array ( |
|
52 | + array( |
|
53 | 53 | array('name'=>'name'), |
54 | 54 | 'account_name', |
55 | 55 | ), |
56 | 56 | array( |
57 | - array('name'=>'currency_id','label'=>'LBL_CURRENCY'), |
|
57 | + array('name'=>'currency_id', 'label'=>'LBL_CURRENCY'), |
|
58 | 58 | array('name'=>'date_closed'), |
59 | 59 | ), |
60 | - array ( |
|
61 | - array( 'name'=>'amount'), |
|
60 | + array( |
|
61 | + array('name'=>'amount'), |
|
62 | 62 | 'opportunity_type', |
63 | 63 | ), |
64 | - array ( |
|
64 | + array( |
|
65 | 65 | 'sales_stage', |
66 | 66 | 'lead_source', |
67 | 67 | ), |
68 | - array ( |
|
68 | + array( |
|
69 | 69 | 'probability', |
70 | 70 | 'campaign_name', |
71 | 71 | ), |
72 | - array ( |
|
72 | + array( |
|
73 | 73 | 'next_step', |
74 | 74 | ), |
75 | - array ( |
|
75 | + array( |
|
76 | 76 | 'description', |
77 | 77 | ), |
78 | 78 | ), |