@@ -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,16 +43,16 @@ discard block |
||
43 | 43 | |
44 | 44 | function additionalDetailsProject($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, 'Project'); |
49 | 49 | } |
50 | 50 | |
51 | 51 | $overlib_string = ''; |
52 | 52 | |
53 | - if(!empty($fields['DESCRIPTION'])) { |
|
54 | - $overlib_string .= '<b>'. $mod_strings['LBL_DESCRIPTION'] . '</b> ' . substr($fields['DESCRIPTION'], 0, 300); |
|
55 | - if(strlen($fields['DESCRIPTION']) > 300) $overlib_string .= '...'; |
|
53 | + if (!empty($fields['DESCRIPTION'])) { |
|
54 | + $overlib_string .= '<b>'.$mod_strings['LBL_DESCRIPTION'].'</b> '.substr($fields['DESCRIPTION'], 0, 300); |
|
55 | + if (strlen($fields['DESCRIPTION']) > 300) $overlib_string .= '...'; |
|
56 | 56 | } |
57 | 57 | |
58 | 58 | return array('fieldToAddTo' => 'NAME', |
@@ -1,22 +1,22 @@ discard block |
||
1 | 1 | <?php |
2 | -$dashletData['ProjectDashlet']['searchFields'] = array ( |
|
2 | +$dashletData['ProjectDashlet']['searchFields'] = array( |
|
3 | 3 | 'date_entered' => |
4 | - array ( |
|
4 | + array( |
|
5 | 5 | 'default' => '', |
6 | 6 | ), |
7 | 7 | 'date_modified' => |
8 | - array ( |
|
8 | + array( |
|
9 | 9 | 'default' => '', |
10 | 10 | ), |
11 | 11 | 'assigned_user_id' => |
12 | - array ( |
|
12 | + array( |
|
13 | 13 | 'type' => 'assigned_user_name', |
14 | 14 | 'default' => 'Administrator', |
15 | 15 | ), |
16 | 16 | ); |
17 | -$dashletData['ProjectDashlet']['columns'] = array ( |
|
17 | +$dashletData['ProjectDashlet']['columns'] = array( |
|
18 | 18 | 'name' => |
19 | - array ( |
|
19 | + array( |
|
20 | 20 | 'width' => '30%', |
21 | 21 | 'label' => 'LBL_LIST_NAME', |
22 | 22 | 'link' => true, |
@@ -24,7 +24,7 @@ discard block |
||
24 | 24 | 'name' => 'name', |
25 | 25 | ), |
26 | 26 | 'status' => |
27 | - array ( |
|
27 | + array( |
|
28 | 28 | 'type' => 'enum', |
29 | 29 | 'default' => true, |
30 | 30 | 'label' => 'LBL_STATUS', |
@@ -32,7 +32,7 @@ discard block |
||
32 | 32 | 'name' => 'status', |
33 | 33 | ), |
34 | 34 | 'estimated_start_date' => |
35 | - array ( |
|
35 | + array( |
|
36 | 36 | 'type' => 'date', |
37 | 37 | 'label' => 'LBL_DATE_START', |
38 | 38 | 'width' => '10%', |
@@ -40,14 +40,14 @@ discard block |
||
40 | 40 | 'name' => 'estimated_start_date', |
41 | 41 | ), |
42 | 42 | 'assigned_user_name' => |
43 | - array ( |
|
43 | + array( |
|
44 | 44 | 'width' => '8%', |
45 | 45 | 'label' => 'LBL_LIST_ASSIGNED_USER', |
46 | 46 | 'name' => 'assigned_user_name', |
47 | 47 | 'default' => true, |
48 | 48 | ), |
49 | 49 | 'estimated_end_date' => |
50 | - array ( |
|
50 | + array( |
|
51 | 51 | 'type' => 'date', |
52 | 52 | 'label' => 'LBL_DATE_END', |
53 | 53 | 'width' => '10%', |
@@ -55,21 +55,21 @@ discard block |
||
55 | 55 | 'name' => 'estimated_end_date', |
56 | 56 | ), |
57 | 57 | 'date_modified' => |
58 | - array ( |
|
58 | + array( |
|
59 | 59 | 'width' => '15%', |
60 | 60 | 'label' => 'LBL_DATE_MODIFIED', |
61 | 61 | 'name' => 'date_modified', |
62 | 62 | 'default' => false, |
63 | 63 | ), |
64 | 64 | 'date_entered' => |
65 | - array ( |
|
65 | + array( |
|
66 | 66 | 'width' => '15%', |
67 | 67 | 'label' => 'LBL_DATE_ENTERED', |
68 | 68 | 'default' => false, |
69 | 69 | 'name' => 'date_entered', |
70 | 70 | ), |
71 | 71 | 'created_by' => |
72 | - array ( |
|
72 | + array( |
|
73 | 73 | 'width' => '8%', |
74 | 74 | 'label' => 'LBL_CREATED', |
75 | 75 | 'name' => 'created_by', |
@@ -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 | ), |
@@ -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,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,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,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', |
@@ -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,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,20 +39,20 @@ discard block |
||
39 | 39 | ********************************************************************************/ |
40 | 40 | |
41 | 41 | // created: 2005-11-04 15:39:46 |
42 | -$acldefs['ProjectTask'] = array ( |
|
42 | +$acldefs['ProjectTask'] = array( |
|
43 | 43 | 'forms' => |
44 | - array ( |
|
44 | + array( |
|
45 | 45 | 'by_name' => |
46 | - array ( |
|
46 | + array( |
|
47 | 47 | 'change_project' => |
48 | - array ( |
|
48 | + array( |
|
49 | 49 | 'display_option' => 'disabled', |
50 | 50 | 'action_option' => 'list', |
51 | 51 | 'app_action' => 'EditView', |
52 | 52 | 'module' => 'Project', |
53 | 53 | ), |
54 | 54 | 'change_parent' => |
55 | - array ( |
|
55 | + array( |
|
56 | 56 | 'display_option' => 'disabled', |
57 | 57 | 'action_option' => 'list', |
58 | 58 | 'app_action' => 'EditView', |
@@ -61,7 +61,7 @@ discard block |
||
61 | 61 | ), |
62 | 62 | ), |
63 | 63 | 'form_names' => |
64 | - array ( |
|
64 | + array( |
|
65 | 65 | 'by_id' => 'by_id', |
66 | 66 | 'by_name' => 'by_name', |
67 | 67 | 'DetailView' => 'DetailView', |