@@ -40,13 +40,13 @@ |
||
40 | 40 | |
41 | 41 | |
42 | 42 | $popupMeta = array('moduleMain' => 'Project', |
43 | - 'varName' => 'PROJECT', |
|
44 | - 'orderBy' => 'name', |
|
45 | - 'whereClauses' => |
|
46 | - array('name' => 'project.name'), |
|
47 | - 'searchInputs' => |
|
48 | - array('name') |
|
49 | - ); |
|
43 | + 'varName' => 'PROJECT', |
|
44 | + 'orderBy' => 'name', |
|
45 | + 'whereClauses' => |
|
46 | + array('name' => 'project.name'), |
|
47 | + 'searchInputs' => |
|
48 | + array('name') |
|
49 | + ); |
|
50 | 50 | |
51 | 51 | |
52 | 52 | ?> |
@@ -1,5 +1,5 @@ |
||
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. |
@@ -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. |
@@ -38,28 +38,28 @@ |
||
38 | 38 | ********************************************************************************/ |
39 | 39 | |
40 | 40 | |
41 | - $searchdefs['Project'] = array( |
|
42 | - 'templateMeta' => array( |
|
43 | - 'maxColumns' => '3', |
|
44 | - 'maxColumnsBasic' => '4', |
|
41 | + $searchdefs['Project'] = array( |
|
42 | + 'templateMeta' => array( |
|
43 | + 'maxColumns' => '3', |
|
44 | + 'maxColumnsBasic' => '4', |
|
45 | 45 | 'widths' => array('label' => '10', 'field' => '30'), |
46 | - ), |
|
46 | + ), |
|
47 | 47 | 'layout' => array( |
48 | - 'basic_search' => array( |
|
49 | - 'name', |
|
50 | - array('name'=>'current_user_only', 'label'=>'LBL_CURRENT_USER_FILTER', 'type'=>'bool'), |
|
48 | + 'basic_search' => array( |
|
49 | + 'name', |
|
50 | + array('name'=>'current_user_only', 'label'=>'LBL_CURRENT_USER_FILTER', 'type'=>'bool'), |
|
51 | 51 | array ('name' => 'favorites_only','label' => 'LBL_FAVORITES_FILTER','type' => 'bool',), |
52 | 52 | |
53 | 53 | |
54 | 54 | ), |
55 | - 'advanced_search' => array( |
|
56 | - 'name', |
|
57 | - 'estimated_start_date', |
|
58 | - 'estimated_end_date', |
|
59 | - 'status', |
|
60 | - 'priority', |
|
55 | + 'advanced_search' => array( |
|
56 | + 'name', |
|
57 | + 'estimated_start_date', |
|
58 | + 'estimated_end_date', |
|
59 | + 'status', |
|
60 | + 'priority', |
|
61 | 61 | |
62 | - ), |
|
63 | - ), |
|
64 | - ); |
|
62 | + ), |
|
63 | + ), |
|
64 | + ); |
|
65 | 65 | ?> |
@@ -48,7 +48,7 @@ |
||
48 | 48 | 'basic_search' => array( |
49 | 49 | 'name', |
50 | 50 | array('name'=>'current_user_only', 'label'=>'LBL_CURRENT_USER_FILTER', 'type'=>'bool'), |
51 | - array ('name' => 'favorites_only','label' => 'LBL_FAVORITES_FILTER','type' => 'bool',), |
|
51 | + array('name' => 'favorites_only', 'label' => 'LBL_FAVORITES_FILTER', 'type' => 'bool',), |
|
52 | 52 | |
53 | 53 | |
54 | 54 | ), |
@@ -38,13 +38,13 @@ |
||
38 | 38 | ********************************************************************************/ |
39 | 39 | |
40 | 40 | |
41 | - $metafiles['Project'] = array( |
|
42 | - 'detailviewdefs' => 'modules/Project/metadata/detailviewdefs.php', |
|
43 | - 'editviewdefs' => 'modules/Project/metadata/editviewdefs.php', |
|
44 | - 'listviewdefs' => 'modules/Project/metadata/listviewdefs.php', |
|
45 | - 'searchdefs' => 'modules/Project/metadata/searchdefs.php', |
|
46 | - 'popupdefs' => 'modules/Project/metadata/popupdefs.php', |
|
47 | - 'searchfields' => 'modules/Project/metadata/SearchFields.php', |
|
41 | + $metafiles['Project'] = array( |
|
42 | + 'detailviewdefs' => 'modules/Project/metadata/detailviewdefs.php', |
|
43 | + 'editviewdefs' => 'modules/Project/metadata/editviewdefs.php', |
|
44 | + 'listviewdefs' => 'modules/Project/metadata/listviewdefs.php', |
|
45 | + 'searchdefs' => 'modules/Project/metadata/searchdefs.php', |
|
46 | + 'popupdefs' => 'modules/Project/metadata/popupdefs.php', |
|
47 | + 'searchfields' => 'modules/Project/metadata/SearchFields.php', |
|
48 | 48 | |
49 | - ); |
|
49 | + ); |
|
50 | 50 | ?> |
@@ -43,48 +43,48 @@ |
||
43 | 43 | |
44 | 44 | $listViewDefs ['Project'] = |
45 | 45 | array ( |
46 | - 'NAME' => |
|
47 | - array ( |
|
46 | + 'NAME' => |
|
47 | + array ( |
|
48 | 48 | 'width' => '25%', |
49 | 49 | 'label' => 'LBL_LIST_NAME', |
50 | 50 | 'link' => true, |
51 | 51 | 'default' => true, |
52 | - ), |
|
53 | - 'PRIORITY' => |
|
54 | - array ( |
|
52 | + ), |
|
53 | + 'PRIORITY' => |
|
54 | + array ( |
|
55 | 55 | 'type' => 'enum', |
56 | 56 | 'label' => 'LBL_PRIORITY', |
57 | 57 | 'width' => '10%', |
58 | 58 | 'default' => true, |
59 | - ), |
|
60 | - 'STATUS' => |
|
61 | - array ( |
|
59 | + ), |
|
60 | + 'STATUS' => |
|
61 | + array ( |
|
62 | 62 | 'width' => '10%', |
63 | 63 | 'label' => 'LBL_STATUS', |
64 | 64 | 'link' => false, |
65 | 65 | 'default' => true, |
66 | - ), |
|
67 | - 'ESTIMATED_START_DATE' => |
|
68 | - array ( |
|
66 | + ), |
|
67 | + 'ESTIMATED_START_DATE' => |
|
68 | + array ( |
|
69 | 69 | 'width' => '10%', |
70 | 70 | 'label' => 'LBL_DATE_START', |
71 | 71 | 'link' => false, |
72 | 72 | 'default' => true, |
73 | - ), |
|
74 | - 'ASSIGNED_USER_NAME' => |
|
75 | - array ( |
|
73 | + ), |
|
74 | + 'ASSIGNED_USER_NAME' => |
|
75 | + array ( |
|
76 | 76 | 'width' => '10%', |
77 | 77 | 'label' => 'LBL_LIST_ASSIGNED_USER_ID', |
78 | 78 | 'module' => 'Employees', |
79 | 79 | 'id' => 'ASSIGNED_USER_ID', |
80 | 80 | 'default' => true, |
81 | - ), |
|
82 | - 'ESTIMATED_END_DATE' => |
|
83 | - array ( |
|
81 | + ), |
|
82 | + 'ESTIMATED_END_DATE' => |
|
83 | + array ( |
|
84 | 84 | 'width' => '10%', |
85 | 85 | 'label' => 'LBL_DATE_END', |
86 | 86 | 'link' => false, |
87 | 87 | 'default' => true, |
88 | - ), |
|
88 | + ), |
|
89 | 89 | ); |
90 | 90 | ?> |
@@ -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,37 +42,37 @@ discard block |
||
42 | 42 | |
43 | 43 | |
44 | 44 | $listViewDefs ['Project'] = |
45 | -array ( |
|
45 | +array( |
|
46 | 46 | 'NAME' => |
47 | - array ( |
|
47 | + array( |
|
48 | 48 | 'width' => '25%', |
49 | 49 | 'label' => 'LBL_LIST_NAME', |
50 | 50 | 'link' => true, |
51 | 51 | 'default' => true, |
52 | 52 | ), |
53 | 53 | 'PRIORITY' => |
54 | - array ( |
|
54 | + array( |
|
55 | 55 | 'type' => 'enum', |
56 | 56 | 'label' => 'LBL_PRIORITY', |
57 | 57 | 'width' => '10%', |
58 | 58 | 'default' => true, |
59 | 59 | ), |
60 | 60 | 'STATUS' => |
61 | - array ( |
|
61 | + array( |
|
62 | 62 | 'width' => '10%', |
63 | 63 | 'label' => 'LBL_STATUS', |
64 | 64 | 'link' => false, |
65 | 65 | 'default' => true, |
66 | 66 | ), |
67 | 67 | 'ESTIMATED_START_DATE' => |
68 | - array ( |
|
68 | + array( |
|
69 | 69 | 'width' => '10%', |
70 | 70 | 'label' => 'LBL_DATE_START', |
71 | 71 | 'link' => false, |
72 | 72 | 'default' => true, |
73 | 73 | ), |
74 | 74 | 'ASSIGNED_USER_NAME' => |
75 | - array ( |
|
75 | + array( |
|
76 | 76 | 'width' => '10%', |
77 | 77 | 'label' => 'LBL_LIST_ASSIGNED_USER_ID', |
78 | 78 | 'module' => 'Employees', |
@@ -80,7 +80,7 @@ discard block |
||
80 | 80 | 'default' => true, |
81 | 81 | ), |
82 | 82 | 'ESTIMATED_END_DATE' => |
83 | - array ( |
|
83 | + array( |
|
84 | 84 | 'width' => '10%', |
85 | 85 | 'label' => 'LBL_DATE_END', |
86 | 86 | 'link' => false, |
@@ -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. |
@@ -49,8 +49,8 @@ |
||
49 | 49 | global $app_strings; |
50 | 50 | |
51 | 51 | $dashletMeta['SugarFeedDashlet'] = array('module' => 'SugarFeed', |
52 | - 'title' => translate('LBL_HOMEPAGE_TITLE', 'SugarFeed'), |
|
53 | - 'description' => 'A customizable view into Sugar_Feed', |
|
54 | - 'icon' => 'themes/default/images/icon_SugarFeed_32.gif', |
|
55 | - 'dynamic_hide' => true, |
|
56 | - 'category' => 'Tools'); |
|
57 | 52 | \ No newline at end of file |
53 | + 'title' => translate('LBL_HOMEPAGE_TITLE', 'SugarFeed'), |
|
54 | + 'description' => 'A customizable view into Sugar_Feed', |
|
55 | + 'icon' => 'themes/default/images/icon_SugarFeed_32.gif', |
|
56 | + 'dynamic_hide' => true, |
|
57 | + 'category' => 'Tools'); |
|
58 | 58 | \ No newline at end of file |
@@ -1,5 +1,5 @@ |
||
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. |
@@ -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. |
@@ -75,29 +75,29 @@ |
||
75 | 75 | /// |
76 | 76 | /// SETUP PARENT POPUP |
77 | 77 | |
78 | - $popup_request_data = array( |
|
79 | - 'call_back_function' => 'set_return', |
|
80 | - 'form_name' => 'projectTypeQuickCreate', |
|
81 | - 'field_to_name_array' => array( |
|
82 | - 'id' => 'parent_id', |
|
83 | - 'name' => 'parent_name', |
|
84 | - ), |
|
85 | - ); |
|
78 | + $popup_request_data = array( |
|
79 | + 'call_back_function' => 'set_return', |
|
80 | + 'form_name' => 'projectTypeQuickCreate', |
|
81 | + 'field_to_name_array' => array( |
|
82 | + 'id' => 'parent_id', |
|
83 | + 'name' => 'parent_name', |
|
84 | + ), |
|
85 | + ); |
|
86 | 86 | |
87 | - $encoded_parent_popup_request_data = $json->encode($popup_request_data); |
|
88 | - $this->ss->assign('encoded_parent_popup_request_data', $encoded_parent_popup_request_data); |
|
87 | + $encoded_parent_popup_request_data = $json->encode($popup_request_data); |
|
88 | + $this->ss->assign('encoded_parent_popup_request_data', $encoded_parent_popup_request_data); |
|
89 | 89 | |
90 | - $popup_request_data = array( |
|
91 | - 'call_back_function' => 'set_return', |
|
92 | - 'form_name' => 'projectTaskQuickCreate', |
|
93 | - 'field_to_name_array' => array( |
|
94 | - 'id' => 'account_id', |
|
95 | - 'name' => 'account_name', |
|
96 | - ), |
|
97 | - ); |
|
90 | + $popup_request_data = array( |
|
91 | + 'call_back_function' => 'set_return', |
|
92 | + 'form_name' => 'projectTaskQuickCreate', |
|
93 | + 'field_to_name_array' => array( |
|
94 | + 'id' => 'account_id', |
|
95 | + 'name' => 'account_name', |
|
96 | + ), |
|
97 | + ); |
|
98 | 98 | |
99 | - $encoded_popup_request_data = $json->encode($popup_request_data); |
|
100 | - $this->ss->assign('encoded_popup_request_data', $encoded_popup_request_data); |
|
99 | + $encoded_popup_request_data = $json->encode($popup_request_data); |
|
100 | + $this->ss->assign('encoded_popup_request_data', $encoded_popup_request_data); |
|
101 | 101 | |
102 | 102 | |
103 | 103 | } |
@@ -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. |
@@ -53,7 +53,7 @@ discard block |
||
53 | 53 | |
54 | 54 | parent::process(); |
55 | 55 | |
56 | - if($this->viaAJAX) { // override for ajax call |
|
56 | + if ($this->viaAJAX) { // override for ajax call |
|
57 | 57 | $this->ss->assign('saveOnclick', "onclick='if(check_form(\"projectTaskQuickCreate\")) return SUGAR.subpanelUtils.inlineSave(this.form.id, \"projecttask\"); else return false;'"); |
58 | 58 | $this->ss->assign('cancelOnclick', "onclick='return SUGAR.subpanelUtils.cancelCreate(\"subpanel_projecttask\")';"); |
59 | 59 | } |
@@ -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. |
@@ -59,19 +59,19 @@ |
||
59 | 59 | $ListView = new ListView(); |
60 | 60 | $seedProjectTask = new ProjectTask(); |
61 | 61 | $where = "project_task.assigned_user_id='{$current_user->id}'" |
62 | - . " AND (project_task.status IS NULL OR (project_task.status!='Completed' AND project_task.status!='Deferred'))" |
|
63 | - . " AND (project_task.date_start IS NULL OR project_task.date_start <= '$today')"; |
|
62 | + . " AND (project_task.status IS NULL OR (project_task.status!='Completed' AND project_task.status!='Deferred'))" |
|
63 | + . " AND (project_task.date_start IS NULL OR project_task.date_start <= '$today')"; |
|
64 | 64 | $ListView->initNewXTemplate('modules/ProjectTask/MyProjectTasks.html', |
65 | - $current_module_strings); |
|
65 | + $current_module_strings); |
|
66 | 66 | $header_text = ''; |
67 | 67 | |
68 | 68 | if(is_admin($current_user) |
69 | - && $_REQUEST['module'] != 'DynamicLayout' |
|
70 | - && !empty($_SESSION['editinplace'])) |
|
69 | + && $_REQUEST['module'] != 'DynamicLayout' |
|
70 | + && !empty($_SESSION['editinplace'])) |
|
71 | 71 | { |
72 | - $header_text = " <a href='index.php?action=index&module=DynamicLayout&from_action=MyTasks&from_module=Tasks'>" |
|
73 | - . SugarThemeRegistry::current()->getImage("EditLayout","border='0' align='bottom'",null,null,'.gif',$mod_strings['LBL_EDITLAYOUT']) |
|
74 | - . '</a>'; |
|
72 | + $header_text = " <a href='index.php?action=index&module=DynamicLayout&from_action=MyTasks&from_module=Tasks'>" |
|
73 | + . SugarThemeRegistry::current()->getImage("EditLayout","border='0' align='bottom'",null,null,'.gif',$mod_strings['LBL_EDITLAYOUT']) |
|
74 | + . '</a>'; |
|
75 | 75 | } |
76 | 76 | $ListView->setHeaderTitle($current_module_strings['LBL_LIST_MY_PROJECT_TASKS'].$header_text); |
77 | 77 | $ListView->setQuery($where, "", "date_due,priority desc", "PROJECT_TASK"); |
@@ -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. |
@@ -65,12 +65,12 @@ discard block |
||
65 | 65 | $current_module_strings); |
66 | 66 | $header_text = ''; |
67 | 67 | |
68 | -if(is_admin($current_user) |
|
68 | +if (is_admin($current_user) |
|
69 | 69 | && $_REQUEST['module'] != 'DynamicLayout' |
70 | 70 | && !empty($_SESSION['editinplace'])) |
71 | 71 | { |
72 | 72 | $header_text = " <a href='index.php?action=index&module=DynamicLayout&from_action=MyTasks&from_module=Tasks'>" |
73 | - . SugarThemeRegistry::current()->getImage("EditLayout","border='0' align='bottom'",null,null,'.gif',$mod_strings['LBL_EDITLAYOUT']) |
|
73 | + . SugarThemeRegistry::current()->getImage("EditLayout", "border='0' align='bottom'", null, null, '.gif', $mod_strings['LBL_EDITLAYOUT']) |
|
74 | 74 | . '</a>'; |
75 | 75 | } |
76 | 76 | $ListView->setHeaderTitle($current_module_strings['LBL_LIST_MY_PROJECT_TASKS'].$header_text); |
@@ -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. |
@@ -42,31 +42,31 @@ |
||
42 | 42 | |
43 | 43 | |
44 | 44 | function additionalDetailsProjectTask($fields) { |
45 | - static $mod_strings; |
|
46 | - if(empty($mod_strings)) { |
|
47 | - global $current_language; |
|
48 | - $mod_strings = return_module_language($current_language, 'ProjectTask'); |
|
49 | - } |
|
45 | + static $mod_strings; |
|
46 | + if(empty($mod_strings)) { |
|
47 | + global $current_language; |
|
48 | + $mod_strings = return_module_language($current_language, 'ProjectTask'); |
|
49 | + } |
|
50 | 50 | |
51 | - $overlib_string = ''; |
|
52 | - if(!empty($fields['PRIORITY'])) $overlib_string .= '<b>' . $mod_strings['LBL_PRIORITY'] . '</b> ' . $fields['PRIORITY'] . '<br>'; |
|
53 | - if(!empty($fields['PERCENT_COMPLETE'])) $overlib_string .= '<b>' . $mod_strings['LBL_PERCENT_COMPLETE'] . '</b> ' . $fields['PERCENT_COMPLETE'] . '%<br>'; |
|
54 | - if(!empty($fields['ESTIMATED_EFFORT'])) $overlib_string .= '<b>' . $mod_strings['LBL_ESTIMATED_EFFORT'] . '</b> ' . $fields['ESTIMATED_EFFORT'] . '<br>'; |
|
55 | - if(!empty($fields['ACTUAL_EFFORT'])) $overlib_string .= '<b>' . $mod_strings['LBL_ACTUAL_EFFORT'] . '</b> ' . $fields['ACTUAL_EFFORT'] . '<br>'; |
|
56 | - if(!empty($fields['TASK_NUMBER'])) $overlib_string .= '<b>' . $mod_strings['LBL_TASK_NUMBER'] . '</b> ' . $fields['TASK_NUMBER'] . '<br>'; |
|
57 | - if(!empty($fields['DATE_START'])) $overlib_string .= '<b>' . $mod_strings['LBL_DATE_START'] . '</b> ' . $fields['DATE_START'] . ' ' . $fields['TIME_START'] . '<br>'; |
|
51 | + $overlib_string = ''; |
|
52 | + if(!empty($fields['PRIORITY'])) $overlib_string .= '<b>' . $mod_strings['LBL_PRIORITY'] . '</b> ' . $fields['PRIORITY'] . '<br>'; |
|
53 | + if(!empty($fields['PERCENT_COMPLETE'])) $overlib_string .= '<b>' . $mod_strings['LBL_PERCENT_COMPLETE'] . '</b> ' . $fields['PERCENT_COMPLETE'] . '%<br>'; |
|
54 | + if(!empty($fields['ESTIMATED_EFFORT'])) $overlib_string .= '<b>' . $mod_strings['LBL_ESTIMATED_EFFORT'] . '</b> ' . $fields['ESTIMATED_EFFORT'] . '<br>'; |
|
55 | + if(!empty($fields['ACTUAL_EFFORT'])) $overlib_string .= '<b>' . $mod_strings['LBL_ACTUAL_EFFORT'] . '</b> ' . $fields['ACTUAL_EFFORT'] . '<br>'; |
|
56 | + if(!empty($fields['TASK_NUMBER'])) $overlib_string .= '<b>' . $mod_strings['LBL_TASK_NUMBER'] . '</b> ' . $fields['TASK_NUMBER'] . '<br>'; |
|
57 | + if(!empty($fields['DATE_START'])) $overlib_string .= '<b>' . $mod_strings['LBL_DATE_START'] . '</b> ' . $fields['DATE_START'] . ' ' . $fields['TIME_START'] . '<br>'; |
|
58 | 58 | |
59 | - if(!empty($fields['DESCRIPTION'])) { |
|
60 | - $overlib_string .= '<b>'. $mod_strings['LBL_DESCRIPTION'] . '</b> ' . substr($fields['DESCRIPTION'], 0, 300); |
|
61 | - if(strlen($fields['DESCRIPTION']) > 300) $overlib_string .= '...'; |
|
62 | - } |
|
59 | + if(!empty($fields['DESCRIPTION'])) { |
|
60 | + $overlib_string .= '<b>'. $mod_strings['LBL_DESCRIPTION'] . '</b> ' . substr($fields['DESCRIPTION'], 0, 300); |
|
61 | + if(strlen($fields['DESCRIPTION']) > 300) $overlib_string .= '...'; |
|
62 | + } |
|
63 | 63 | |
64 | - return array('fieldToAddTo' => 'NAME', |
|
65 | - 'string' => $overlib_string, |
|
66 | - 'editLink' => "index.php?action=EditView&module=ProjectTask&return_module=ProjectTask&record={$fields['ID']}", |
|
67 | - 'viewLink' => "index.php?action=DetailView&module=ProjectTask&return_module=ProjectTask&record={$fields['ID']}"); |
|
64 | + return array('fieldToAddTo' => 'NAME', |
|
65 | + 'string' => $overlib_string, |
|
66 | + 'editLink' => "index.php?action=EditView&module=ProjectTask&return_module=ProjectTask&record={$fields['ID']}", |
|
67 | + 'viewLink' => "index.php?action=DetailView&module=ProjectTask&return_module=ProjectTask&record={$fields['ID']}"); |
|
68 | 68 | } |
69 | 69 | |
70 | - ?> |
|
70 | + ?> |
|
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. |
@@ -43,22 +43,22 @@ discard block |
||
43 | 43 | |
44 | 44 | function additionalDetailsProjectTask($fields) { |
45 | 45 | static $mod_strings; |
46 | - if(empty($mod_strings)) { |
|
46 | + if (empty($mod_strings)) { |
|
47 | 47 | global $current_language; |
48 | 48 | $mod_strings = return_module_language($current_language, 'ProjectTask'); |
49 | 49 | } |
50 | 50 | |
51 | 51 | $overlib_string = ''; |
52 | - if(!empty($fields['PRIORITY'])) $overlib_string .= '<b>' . $mod_strings['LBL_PRIORITY'] . '</b> ' . $fields['PRIORITY'] . '<br>'; |
|
53 | - if(!empty($fields['PERCENT_COMPLETE'])) $overlib_string .= '<b>' . $mod_strings['LBL_PERCENT_COMPLETE'] . '</b> ' . $fields['PERCENT_COMPLETE'] . '%<br>'; |
|
54 | - if(!empty($fields['ESTIMATED_EFFORT'])) $overlib_string .= '<b>' . $mod_strings['LBL_ESTIMATED_EFFORT'] . '</b> ' . $fields['ESTIMATED_EFFORT'] . '<br>'; |
|
55 | - if(!empty($fields['ACTUAL_EFFORT'])) $overlib_string .= '<b>' . $mod_strings['LBL_ACTUAL_EFFORT'] . '</b> ' . $fields['ACTUAL_EFFORT'] . '<br>'; |
|
56 | - if(!empty($fields['TASK_NUMBER'])) $overlib_string .= '<b>' . $mod_strings['LBL_TASK_NUMBER'] . '</b> ' . $fields['TASK_NUMBER'] . '<br>'; |
|
57 | - if(!empty($fields['DATE_START'])) $overlib_string .= '<b>' . $mod_strings['LBL_DATE_START'] . '</b> ' . $fields['DATE_START'] . ' ' . $fields['TIME_START'] . '<br>'; |
|
52 | + if (!empty($fields['PRIORITY'])) $overlib_string .= '<b>'.$mod_strings['LBL_PRIORITY'].'</b> '.$fields['PRIORITY'].'<br>'; |
|
53 | + if (!empty($fields['PERCENT_COMPLETE'])) $overlib_string .= '<b>'.$mod_strings['LBL_PERCENT_COMPLETE'].'</b> '.$fields['PERCENT_COMPLETE'].'%<br>'; |
|
54 | + if (!empty($fields['ESTIMATED_EFFORT'])) $overlib_string .= '<b>'.$mod_strings['LBL_ESTIMATED_EFFORT'].'</b> '.$fields['ESTIMATED_EFFORT'].'<br>'; |
|
55 | + if (!empty($fields['ACTUAL_EFFORT'])) $overlib_string .= '<b>'.$mod_strings['LBL_ACTUAL_EFFORT'].'</b> '.$fields['ACTUAL_EFFORT'].'<br>'; |
|
56 | + if (!empty($fields['TASK_NUMBER'])) $overlib_string .= '<b>'.$mod_strings['LBL_TASK_NUMBER'].'</b> '.$fields['TASK_NUMBER'].'<br>'; |
|
57 | + if (!empty($fields['DATE_START'])) $overlib_string .= '<b>'.$mod_strings['LBL_DATE_START'].'</b> '.$fields['DATE_START'].' '.$fields['TIME_START'].'<br>'; |
|
58 | 58 | |
59 | - if(!empty($fields['DESCRIPTION'])) { |
|
60 | - $overlib_string .= '<b>'. $mod_strings['LBL_DESCRIPTION'] . '</b> ' . substr($fields['DESCRIPTION'], 0, 300); |
|
61 | - if(strlen($fields['DESCRIPTION']) > 300) $overlib_string .= '...'; |
|
59 | + if (!empty($fields['DESCRIPTION'])) { |
|
60 | + $overlib_string .= '<b>'.$mod_strings['LBL_DESCRIPTION'].'</b> '.substr($fields['DESCRIPTION'], 0, 300); |
|
61 | + if (strlen($fields['DESCRIPTION']) > 300) $overlib_string .= '...'; |
|
62 | 62 | } |
63 | 63 | |
64 | 64 | 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. |
@@ -49,16 +51,30 @@ discard block |
||
49 | 51 | } |
50 | 52 | |
51 | 53 | $overlib_string = ''; |
52 | - if(!empty($fields['PRIORITY'])) $overlib_string .= '<b>' . $mod_strings['LBL_PRIORITY'] . '</b> ' . $fields['PRIORITY'] . '<br>'; |
|
53 | - if(!empty($fields['PERCENT_COMPLETE'])) $overlib_string .= '<b>' . $mod_strings['LBL_PERCENT_COMPLETE'] . '</b> ' . $fields['PERCENT_COMPLETE'] . '%<br>'; |
|
54 | - if(!empty($fields['ESTIMATED_EFFORT'])) $overlib_string .= '<b>' . $mod_strings['LBL_ESTIMATED_EFFORT'] . '</b> ' . $fields['ESTIMATED_EFFORT'] . '<br>'; |
|
55 | - if(!empty($fields['ACTUAL_EFFORT'])) $overlib_string .= '<b>' . $mod_strings['LBL_ACTUAL_EFFORT'] . '</b> ' . $fields['ACTUAL_EFFORT'] . '<br>'; |
|
56 | - if(!empty($fields['TASK_NUMBER'])) $overlib_string .= '<b>' . $mod_strings['LBL_TASK_NUMBER'] . '</b> ' . $fields['TASK_NUMBER'] . '<br>'; |
|
57 | - if(!empty($fields['DATE_START'])) $overlib_string .= '<b>' . $mod_strings['LBL_DATE_START'] . '</b> ' . $fields['DATE_START'] . ' ' . $fields['TIME_START'] . '<br>'; |
|
54 | + if(!empty($fields['PRIORITY'])) { |
|
55 | + $overlib_string .= '<b>' . $mod_strings['LBL_PRIORITY'] . '</b> ' . $fields['PRIORITY'] . '<br>'; |
|
56 | + } |
|
57 | + if(!empty($fields['PERCENT_COMPLETE'])) { |
|
58 | + $overlib_string .= '<b>' . $mod_strings['LBL_PERCENT_COMPLETE'] . '</b> ' . $fields['PERCENT_COMPLETE'] . '%<br>'; |
|
59 | + } |
|
60 | + if(!empty($fields['ESTIMATED_EFFORT'])) { |
|
61 | + $overlib_string .= '<b>' . $mod_strings['LBL_ESTIMATED_EFFORT'] . '</b> ' . $fields['ESTIMATED_EFFORT'] . '<br>'; |
|
62 | + } |
|
63 | + if(!empty($fields['ACTUAL_EFFORT'])) { |
|
64 | + $overlib_string .= '<b>' . $mod_strings['LBL_ACTUAL_EFFORT'] . '</b> ' . $fields['ACTUAL_EFFORT'] . '<br>'; |
|
65 | + } |
|
66 | + if(!empty($fields['TASK_NUMBER'])) { |
|
67 | + $overlib_string .= '<b>' . $mod_strings['LBL_TASK_NUMBER'] . '</b> ' . $fields['TASK_NUMBER'] . '<br>'; |
|
68 | + } |
|
69 | + if(!empty($fields['DATE_START'])) { |
|
70 | + $overlib_string .= '<b>' . $mod_strings['LBL_DATE_START'] . '</b> ' . $fields['DATE_START'] . ' ' . $fields['TIME_START'] . '<br>'; |
|
71 | + } |
|
58 | 72 | |
59 | 73 | if(!empty($fields['DESCRIPTION'])) { |
60 | 74 | $overlib_string .= '<b>'. $mod_strings['LBL_DESCRIPTION'] . '</b> ' . substr($fields['DESCRIPTION'], 0, 300); |
61 | - if(strlen($fields['DESCRIPTION']) > 300) $overlib_string .= '...'; |
|
75 | + if(strlen($fields['DESCRIPTION']) > 300) { |
|
76 | + $overlib_string .= '...'; |
|
77 | + } |
|
62 | 78 | } |
63 | 79 | |
64 | 80 | return array('fieldToAddTo' => 'NAME', |
@@ -49,7 +49,7 @@ discard block |
||
49 | 49 | 'sort_by' => 'date_start', |
50 | 50 | 'title_key' => 'LBL_ACTIVITIES_SUBPANEL_TITLE', |
51 | 51 | 'type' => 'collection', |
52 | - 'subpanel_name' => 'activities', //this values is not associated with a physical file. |
|
52 | + 'subpanel_name' => 'activities', //this values is not associated with a physical file. |
|
53 | 53 | 'module' => 'Activities', |
54 | 54 | |
55 | 55 | 'top_buttons' => array( |
@@ -84,7 +84,7 @@ discard block |
||
84 | 84 | 'sort_by' => 'date_entered', |
85 | 85 | 'title_key' => 'LBL_HISTORY_SUBPANEL_TITLE', |
86 | 86 | 'type' => 'collection', |
87 | - 'subpanel_name' => 'history', //this values is not associated with a physical file. |
|
87 | + 'subpanel_name' => 'history', //this values is not associated with a physical file. |
|
88 | 88 | 'module' => 'Activities', |
89 | 89 | |
90 | 90 | 'top_buttons' => array( |
@@ -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. |