@@ -20,12 +20,12 @@ |
||
20 | 20 | |
21 | 21 | // current section |
22 | 22 | $this_section = SECTION_DASHBOARD; |
23 | -unset($_SESSION['this_section']);//for hmtl editor repository |
|
23 | +unset($_SESSION['this_section']); //for hmtl editor repository |
|
24 | 24 | |
25 | 25 | // get actions |
26 | 26 | $actions = array('listing', 'store_user_block', 'disable_block'); |
27 | 27 | $action = 'listing'; |
28 | -if (isset($_GET['action']) && in_array($_GET['action'],$actions)) { |
|
28 | +if (isset($_GET['action']) && in_array($_GET['action'], $actions)) { |
|
29 | 29 | $action = $_GET['action']; |
30 | 30 | } |
31 | 31 |
@@ -13,7 +13,7 @@ discard block |
||
13 | 13 | // menu actions for dashboard views |
14 | 14 | $views = array('blocks', 'list'); |
15 | 15 | |
16 | -if(isset($_GET['view']) && in_array($_GET['view'], $views)){ |
|
16 | +if (isset($_GET['view']) && in_array($_GET['view'], $views)) { |
|
17 | 17 | $dashboard_view = $_GET['view']; |
18 | 18 | } |
19 | 19 | |
@@ -21,16 +21,16 @@ discard block |
||
21 | 21 | |
22 | 22 | if (isset($dashboard_view) && $dashboard_view == 'list') { |
23 | 23 | $link_blocks_view = '<a href="'.api_get_self().'?view=blocks">'. |
24 | - Display::return_icon('blocks.png',get_lang('DashboardBlocks'),'',ICON_SIZE_MEDIUM).'</a>'; |
|
24 | + Display::return_icon('blocks.png', get_lang('DashboardBlocks'), '', ICON_SIZE_MEDIUM).'</a>'; |
|
25 | 25 | } else { |
26 | 26 | $link_list_view = '<a href="'.api_get_self().'?view=list">'. |
27 | - Display::return_icon('edit.png',get_lang('EditBlocks'),'',ICON_SIZE_MEDIUM).'</a>'; |
|
27 | + Display::return_icon('edit.png', get_lang('EditBlocks'), '', ICON_SIZE_MEDIUM).'</a>'; |
|
28 | 28 | } |
29 | 29 | |
30 | 30 | $configuration_link = null; |
31 | 31 | if (api_is_platform_admin()) { |
32 | 32 | $configuration_link = '<a href="'.api_get_path(WEB_CODE_PATH).'admin/settings.php?category=Plugins">' |
33 | - .Display::return_icon('settings.png',get_lang('ConfigureDashboardPlugin'),'',ICON_SIZE_MEDIUM).'</a>'; |
|
33 | + .Display::return_icon('settings.png', get_lang('ConfigureDashboardPlugin'), '', ICON_SIZE_MEDIUM).'</a>'; |
|
34 | 34 | } |
35 | 35 | |
36 | 36 | echo '<div class="actions">'; |
@@ -56,7 +56,7 @@ discard block |
||
56 | 56 | if (count($columns) > 0) { |
57 | 57 | $columns_name = array_keys($columns); |
58 | 58 | // blocks for column 1 |
59 | - if (in_array('column_1',$columns_name)) { |
|
59 | + if (in_array('column_1', $columns_name)) { |
|
60 | 60 | echo '<div id="column1" class="col-md-6">'; |
61 | 61 | foreach ($columns['column_1'] as $content) { |
62 | 62 | echo $content; |
@@ -68,7 +68,7 @@ discard block |
||
68 | 68 | echo '</div>'; |
69 | 69 | } |
70 | 70 | // blocks for column 2 |
71 | - if (in_array('column_2',$columns_name)) { |
|
71 | + if (in_array('column_2', $columns_name)) { |
|
72 | 72 | // blocks for column 1 |
73 | 73 | echo '<div id="column2" class="col-md-6">'; |
74 | 74 | foreach ($columns['column_2'] as $content) { |
@@ -23,19 +23,19 @@ discard block |
||
23 | 23 | |
24 | 24 | switch ($action) { |
25 | 25 | case 'add': |
26 | - $interbreadcrumb[]=array('url' => 'index.php','name' => get_lang('Timeline')); |
|
27 | - $interbreadcrumb[]=array('url' => '#','name' => get_lang('Add')); |
|
26 | + $interbreadcrumb[] = array('url' => 'index.php', 'name' => get_lang('Timeline')); |
|
27 | + $interbreadcrumb[] = array('url' => '#', 'name' => get_lang('Add')); |
|
28 | 28 | break; |
29 | 29 | case 'edit': |
30 | - $interbreadcrumb[]=array('url' => 'index.php','name' => get_lang('Timeline')); |
|
31 | - $interbreadcrumb[]=array('url' => '#','name' => get_lang('Edit')); |
|
30 | + $interbreadcrumb[] = array('url' => 'index.php', 'name' => get_lang('Timeline')); |
|
31 | + $interbreadcrumb[] = array('url' => '#', 'name' => get_lang('Edit')); |
|
32 | 32 | break; |
33 | 33 | case 'add_item': |
34 | - $interbreadcrumb[]=array('url' => 'index.php','name' => get_lang('Timeline')); |
|
35 | - $interbreadcrumb[]=array('url' => '#','name' => get_lang('TimelineItem')); |
|
34 | + $interbreadcrumb[] = array('url' => 'index.php', 'name' => get_lang('Timeline')); |
|
35 | + $interbreadcrumb[] = array('url' => '#', 'name' => get_lang('TimelineItem')); |
|
36 | 36 | break; |
37 | 37 | default: |
38 | - $interbreadcrumb[]=array('url' => '#','name' => get_lang('Timeline')); |
|
38 | + $interbreadcrumb[] = array('url' => '#', 'name' => get_lang('Timeline')); |
|
39 | 39 | } |
40 | 40 | |
41 | 41 | //jqgrid will use this URL to do the selects |
@@ -46,8 +46,8 @@ discard block |
||
46 | 46 | |
47 | 47 | //Column config |
48 | 48 | $column_model = array( |
49 | - array('name'=>'name', 'index'=>'name', 'width'=>'120', 'align'=>'left'), |
|
50 | - array('name'=>'actions', 'index'=>'actions', 'width'=>'100', 'align'=>'left', 'sortable'=>'false') |
|
49 | + array('name'=>'name', 'index'=>'name', 'width'=>'120', 'align'=>'left'), |
|
50 | + array('name'=>'actions', 'index'=>'actions', 'width'=>'100', 'align'=>'left', 'sortable'=>'false') |
|
51 | 51 | ); |
52 | 52 | //Autowidth |
53 | 53 | $extra_params['autowidth'] = 'true'; |
@@ -55,11 +55,11 @@ discard block |
||
55 | 55 | $extra_params['height'] = 'auto'; |
56 | 56 | |
57 | 57 | //With this function we can add actions to the jgrid (edit, delete, etc) |
58 | -$htmlHeadXtra[] =' |
|
58 | +$htmlHeadXtra[] = ' |
|
59 | 59 | <script> |
60 | 60 | $(function() { |
61 | 61 | // grid definition see the $timeline->display() function |
62 | - '.Display::grid_js('timelines', $url,$columns,$column_model,$extra_params, array(), null,true).' |
|
62 | + '.Display::grid_js('timelines', $url, $columns, $column_model, $extra_params, array(), null, true).' |
|
63 | 63 | }); |
64 | 64 | </script>'; |
65 | 65 | |
@@ -80,12 +80,12 @@ discard block |
||
80 | 80 | $values = $form->exportValues(); |
81 | 81 | $res = $timeline->save($values); |
82 | 82 | if ($res) { |
83 | - $message = Display::return_message(get_lang('ItemAdded'),'success'); |
|
83 | + $message = Display::return_message(get_lang('ItemAdded'), 'success'); |
|
84 | 84 | } |
85 | 85 | } |
86 | 86 | $content = $timeline->listing(); |
87 | 87 | } else { |
88 | - $actions .= '<a href="'.api_get_self().'">'.Display::return_icon('back.png',get_lang('Back'),'',ICON_SIZE_MEDIUM).'</a>'; |
|
88 | + $actions .= '<a href="'.api_get_self().'">'.Display::return_icon('back.png', get_lang('Back'), '', ICON_SIZE_MEDIUM).'</a>'; |
|
89 | 89 | $form->addElement('hidden', 'sec_token'); |
90 | 90 | $form->setConstants(array('sec_token' => $token)); |
91 | 91 | $content = $form->return_form(); |
@@ -106,7 +106,7 @@ discard block |
||
106 | 106 | } |
107 | 107 | $timeline->display(); |
108 | 108 | } else { |
109 | - $actions = '<a href="'.api_get_self().'">'.Display::return_icon('back.png',get_lang('Back'),'',ICON_SIZE_MEDIUM).'</a>'; |
|
109 | + $actions = '<a href="'.api_get_self().'">'.Display::return_icon('back.png', get_lang('Back'), '', ICON_SIZE_MEDIUM).'</a>'; |
|
110 | 110 | $form->addElement('hidden', 'sec_token'); |
111 | 111 | $form->setConstants(array('sec_token' => $token)); |
112 | 112 | $content = $form->return_form(); |
@@ -128,7 +128,7 @@ discard block |
||
128 | 128 | } |
129 | 129 | $timeline->display(); |
130 | 130 | } else { |
131 | - $actions = '<a href="'.api_get_self().'">'.Display::return_icon('back.png',get_lang('Back'),'',ICON_SIZE_MEDIUM).'</a>'; |
|
131 | + $actions = '<a href="'.api_get_self().'">'.Display::return_icon('back.png', get_lang('Back'), '', ICON_SIZE_MEDIUM).'</a>'; |
|
132 | 132 | $form->addElement('hidden', 'sec_token'); |
133 | 133 | $form->setConstants(array('sec_token' => $token)); |
134 | 134 | $content = $form->return_form(); |
@@ -6,8 +6,8 @@ discard block |
||
6 | 6 | */ |
7 | 7 | require_once '../inc/global.inc.php'; |
8 | 8 | |
9 | -$interbreadcrumb[]=array('url' => 'index.php','name' => get_lang('Timeline')); |
|
10 | -$interbreadcrumb[]=array('url' => 'index.php','name' => get_lang('Listing')); |
|
9 | +$interbreadcrumb[] = array('url' => 'index.php', 'name' => get_lang('Timeline')); |
|
10 | +$interbreadcrumb[] = array('url' => 'index.php', 'name' => get_lang('Listing')); |
|
11 | 11 | |
12 | 12 | $timeline = new Timeline(); |
13 | 13 | if (empty($_GET['id'])) { |
@@ -15,7 +15,7 @@ discard block |
||
15 | 15 | } |
16 | 16 | $url = $timeline->get_url($_GET['id']); |
17 | 17 | $item = $timeline->get($_GET['id']); |
18 | -$interbreadcrumb[]=array('url' => '#','name' => $item['headline']); |
|
18 | +$interbreadcrumb[] = array('url' => '#', 'name' => $item['headline']); |
|
19 | 19 | |
20 | 20 | $htmlHeadXtra[] = api_get_css(api_get_path(WEB_LIBRARY_PATH).'javascript/timeline/timeline.css'); |
21 | 21 | $htmlHeadXtra[] = api_get_js('timeline/timeline-min.js'); |
@@ -15,7 +15,7 @@ discard block |
||
15 | 15 | session_cache_limiter('public'); |
16 | 16 | |
17 | 17 | require_once '../inc/global.inc.php'; |
18 | -$this_section=SECTION_COURSES; |
|
18 | +$this_section = SECTION_COURSES; |
|
19 | 19 | |
20 | 20 | // IMPORTANT to avoid caching of documents |
21 | 21 | header('Expires: Wed, 01 Jan 1990 00:00:00 GMT'); |
@@ -32,7 +32,7 @@ discard block |
||
32 | 32 | $doc_url = str_replace(' ', '+', $doc_url); |
33 | 33 | $doc_url = str_replace('/..', '', $doc_url); //echo $doc_url; |
34 | 34 | |
35 | -if (! isset($_course)) { |
|
35 | +if (!isset($_course)) { |
|
36 | 36 | api_not_allowed(true); |
37 | 37 | } |
38 | 38 | $full_file_name = api_get_path(SYS_COURSE_PATH).api_get_course_path().'/upload/blog/'.$doc_url; |
@@ -40,7 +40,7 @@ discard block |
||
40 | 40 | //if the rewrite rule asks for a directory, we redirect to the course view |
41 | 41 | if (is_dir($full_file_name)) { |
42 | 42 | //remove last slash if present |
43 | - while ($doc_url{$dul = strlen($doc_url)-1}=='/') $doc_url = substr($doc_url,0,$dul); |
|
43 | + while ($doc_url{$dul = strlen($doc_url) - 1} == '/') $doc_url = substr($doc_url, 0, $dul); |
|
44 | 44 | //create the path |
45 | 45 | $document_explorer = api_get_path(WEB_COURSE_PATH).api_get_course_path(); // home course path |
46 | 46 | //redirect |
@@ -48,7 +48,7 @@ discard block |
||
48 | 48 | exit; |
49 | 49 | } |
50 | 50 | |
51 | -$tbl_blogs_attachment = Database::get_course_table(TABLE_BLOGS_ATTACHMENT); |
|
51 | +$tbl_blogs_attachment = Database::get_course_table(TABLE_BLOGS_ATTACHMENT); |
|
52 | 52 | $course_id = api_get_course_int_id(); |
53 | 53 | |
54 | 54 | // launch event |
@@ -9,15 +9,15 @@ discard block |
||
9 | 9 | api_block_anonymous_users(); |
10 | 10 | GradebookUtils::block_students(); |
11 | 11 | |
12 | -$interbreadcrumb[] = array ( |
|
12 | +$interbreadcrumb[] = array( |
|
13 | 13 | 'url' => $_SESSION['gradebook_dest'].'?', |
14 | 14 | 'name' => get_lang('Gradebook' |
15 | 15 | )); |
16 | -$interbreadcrumb[] = array ( |
|
16 | +$interbreadcrumb[] = array( |
|
17 | 17 | 'url' => $_SESSION['gradebook_dest'].'?selectcat='.Security::remove_XSS($_GET['selectcat']), |
18 | 18 | 'name' => get_lang('Details' |
19 | 19 | )); |
20 | -$interbreadcrumb[] = array ( |
|
20 | +$interbreadcrumb[] = array( |
|
21 | 21 | 'url' => 'gradebook_showlog_eval.php?visiblelog='.Security::remove_XSS($_GET['visiblelog']).'&selectcat='.Security::remove_XSS($_GET['selectcat']), |
22 | 22 | 'name' => get_lang('GradebookQualifyLog') |
23 | 23 | ); |
@@ -28,7 +28,7 @@ discard block |
||
28 | 28 | |
29 | 29 | $t_linkeval_log = Database :: get_main_table(TABLE_MAIN_GRADEBOOK_LINKEVAL_LOG); |
30 | 30 | $t_user = Database :: get_main_table(TABLE_MAIN_USER); |
31 | -$visible_log=Security::remove_XSS($_GET['visiblelog']); |
|
31 | +$visible_log = Security::remove_XSS($_GET['visiblelog']); |
|
32 | 32 | |
33 | 33 | $evaledit = Evaluation :: load($visible_log); |
34 | 34 | $sql = "SELECT le.name,le.description,le.weight,le.visible,le.type,le.created_at,us.username |
@@ -42,9 +42,9 @@ discard block |
||
42 | 42 | $list_info[] = $row; |
43 | 43 | } |
44 | 44 | |
45 | -foreach($list_info as $key => $info_log) { |
|
46 | - $list_info[$key][5]=($info_log[5]) ? api_convert_and_format_date($info_log[5]) : 'N/A'; |
|
47 | - $list_info[$key][3]=($info_log[3]==1) ? get_lang('GradebookVisible') : get_lang('GradebookInvisible'); |
|
45 | +foreach ($list_info as $key => $info_log) { |
|
46 | + $list_info[$key][5] = ($info_log[5]) ? api_convert_and_format_date($info_log[5]) : 'N/A'; |
|
47 | + $list_info[$key][3] = ($info_log[3] == 1) ? get_lang('GradebookVisible') : get_lang('GradebookInvisible'); |
|
48 | 48 | } |
49 | 49 | |
50 | 50 | $parameters = array( |
@@ -62,7 +62,7 @@ discard block |
||
62 | 62 | $cat->setGenerateCertificates(false); |
63 | 63 | } |
64 | 64 | |
65 | - if ($values['hid_parent_id'] == 0 ) { |
|
65 | + if ($values['hid_parent_id'] == 0) { |
|
66 | 66 | $cat->set_certificate_min_score($values['certif_min_score']); |
67 | 67 | } |
68 | 68 | |
@@ -81,12 +81,12 @@ discard block |
||
81 | 81 | } |
82 | 82 | |
83 | 83 | $cat->save(); |
84 | - header('Location: '.Security::remove_XSS($_SESSION['gradebook_dest']).'?editcat=&selectcat=' . $cat->get_parent_id().'&'.api_get_cidreq()); |
|
84 | + header('Location: '.Security::remove_XSS($_SESSION['gradebook_dest']).'?editcat=&selectcat='.$cat->get_parent_id().'&'.api_get_cidreq()); |
|
85 | 85 | exit; |
86 | 86 | } |
87 | 87 | $selectcat = isset($_GET['selectcat']) ? Security::remove_XSS($_GET['selectcat']) : ''; |
88 | 88 | $interbreadcrumb[] = array( |
89 | - 'url' => Security::remove_XSS($_SESSION['gradebook_dest']) . '?selectcat=' . $selectcat . '&' . api_get_cidreq(), |
|
89 | + 'url' => Security::remove_XSS($_SESSION['gradebook_dest']).'?selectcat='.$selectcat.'&'.api_get_cidreq(), |
|
90 | 90 | 'name' => get_lang('Gradebook') |
91 | 91 | ); |
92 | 92 | $this_section = SECTION_COURSES; |
@@ -20,7 +20,7 @@ discard block |
||
20 | 20 | null, |
21 | 21 | 'edit_eval_form', |
22 | 22 | null, |
23 | - api_get_self() . '?editeval=' . Security::remove_XSS($_GET['editeval']) |
|
23 | + api_get_self().'?editeval='.Security::remove_XSS($_GET['editeval']) |
|
24 | 24 | ); |
25 | 25 | if ($form->validate()) { |
26 | 26 | $values = $form->exportValues(); |
@@ -45,11 +45,11 @@ discard block |
||
45 | 45 | } |
46 | 46 | $eval->set_visible($visible); |
47 | 47 | $eval->save(); |
48 | - header('Location: '.$_SESSION['gradebook_dest'].'?editeval=&selectcat=' . $eval->get_category_id()); |
|
48 | + header('Location: '.$_SESSION['gradebook_dest'].'?editeval=&selectcat='.$eval->get_category_id()); |
|
49 | 49 | exit; |
50 | 50 | } |
51 | -$selectcat_inter=isset($_GET['selectcat'])?Security::remove_XSS($_GET['selectcat']):''; |
|
52 | -$interbreadcrumb[] = array ( |
|
51 | +$selectcat_inter = isset($_GET['selectcat']) ? Security::remove_XSS($_GET['selectcat']) : ''; |
|
52 | +$interbreadcrumb[] = array( |
|
53 | 53 | 'url' => $_SESSION['gradebook_dest'].'?selectcat='.$selectcat_inter, |
54 | 54 | 'name' => get_lang('Gradebook' |
55 | 55 | )); |
@@ -6,7 +6,7 @@ discard block |
||
6 | 6 | * @package chamilo.gradebook |
7 | 7 | */ |
8 | 8 | require_once '../inc/global.inc.php'; |
9 | -$current_course_tool = TOOL_GRADEBOOK; |
|
9 | +$current_course_tool = TOOL_GRADEBOOK; |
|
10 | 10 | |
11 | 11 | if (!api_is_student_boss()) { |
12 | 12 | api_protect_course_script(true); |
@@ -16,9 +16,9 @@ discard block |
||
16 | 16 | ini_set('max_execution_time', 0); |
17 | 17 | |
18 | 18 | //extra javascript functions for in html head: |
19 | -$htmlHeadXtra[] ="<script> |
|
19 | +$htmlHeadXtra[] = "<script> |
|
20 | 20 | function confirmation() { |
21 | - if (confirm(\" " . trim(get_lang('AreYouSureToDelete')) . " ?\")) { |
|
21 | + if (confirm(\" " . trim(get_lang('AreYouSureToDelete'))." ?\")) { |
|
22 | 22 | return true; |
23 | 23 | } else { |
24 | 24 | return false; |
@@ -31,7 +31,7 @@ discard block |
||
31 | 31 | api_not_allowed(true); |
32 | 32 | } |
33 | 33 | |
34 | -$cat_id = isset($_GET['cat_id']) ? (int)$_GET['cat_id'] : null; |
|
34 | +$cat_id = isset($_GET['cat_id']) ? (int) $_GET['cat_id'] : null; |
|
35 | 35 | $action = isset($_GET['action']) && $_GET['action'] ? $_GET['action'] : null; |
36 | 36 | $filterOfficialCode = isset($_POST['filter']) ? Security::remove_XSS($_POST['filter']) : null; |
37 | 37 | $filterOfficialCodeGet = isset($_GET['filter']) ? Security::remove_XSS($_GET['filter']) : null; |
@@ -72,8 +72,8 @@ discard block |
||
72 | 72 | |
73 | 73 | $course_code = api_get_course_id(); |
74 | 74 | |
75 | -$interbreadcrumb[] = array('url' => Security::remove_XSS($_SESSION['gradebook_dest']).'?', 'name' => get_lang('Gradebook')); |
|
76 | -$interbreadcrumb[] = array('url' => '#','name' => get_lang('GradebookListOfStudentsCertificates')); |
|
75 | +$interbreadcrumb[] = array('url' => Security::remove_XSS($_SESSION['gradebook_dest']).'?', 'name' => get_lang('Gradebook')); |
|
76 | +$interbreadcrumb[] = array('url' => '#', 'name' => get_lang('GradebookListOfStudentsCertificates')); |
|
77 | 77 | |
78 | 78 | $this_section = SECTION_COURSES; |
79 | 79 | |
@@ -85,7 +85,7 @@ discard block |
||
85 | 85 | $certificate = new Certificate($_GET['certificate_id']); |
86 | 86 | $result = $certificate->delete(true); |
87 | 87 | Security::clear_token(); |
88 | - if ($result ==true) { |
|
88 | + if ($result == true) { |
|
89 | 89 | Display::display_confirmation_message(get_lang('CertificateRemoved')); |
90 | 90 | } else { |
91 | 91 | Display::display_error_message(get_lang('CertificateNotRemoved')); |
@@ -104,9 +104,9 @@ discard block |
||
104 | 104 | |
105 | 105 | //with this fix the teacher only can view 1 gradebook |
106 | 106 | if (api_is_platform_admin()) { |
107 | - $stud_id= (api_is_allowed_to_edit() ? null : api_get_user_id()); |
|
107 | + $stud_id = (api_is_allowed_to_edit() ? null : api_get_user_id()); |
|
108 | 108 | } else { |
109 | - $stud_id= api_get_user_id(); |
|
109 | + $stud_id = api_get_user_id(); |
|
110 | 110 | } |
111 | 111 | |
112 | 112 | $total_weight = $cats[0]->get_weight(); |
@@ -115,7 +115,7 @@ discard block |
||
115 | 115 | $alleval = $cats[0]->get_evaluations($stud_id); |
116 | 116 | $alllink = $cats[0]->get_links($stud_id); |
117 | 117 | |
118 | - $datagen = new GradebookDataGenerator ($allcat,$alleval, $alllink); |
|
118 | + $datagen = new GradebookDataGenerator($allcat, $alleval, $alllink); |
|
119 | 119 | |
120 | 120 | $total_resource_weight = 0; |
121 | 121 | if (!empty($datagen)) { |
@@ -132,7 +132,7 @@ discard block |
||
132 | 132 | $newarray[] = array_slice($data, 1); |
133 | 133 | } |
134 | 134 | |
135 | - foreach($newarray as $item) { |
|
135 | + foreach ($newarray as $item) { |
|
136 | 136 | $total_resource_weight = $total_resource_weight + $item['2']; |
137 | 137 | } |
138 | 138 | } |
@@ -150,7 +150,7 @@ discard block |
||
150 | 150 | if ($filter === 'true') { |
151 | 151 | echo '<br />'; |
152 | 152 | $options = UserManager::getOfficialCodeGrouped(); |
153 | - $options =array_merge(array('all' => get_lang('All')), $options); |
|
153 | + $options = array_merge(array('all' => get_lang('All')), $options); |
|
154 | 154 | $form = new FormValidator( |
155 | 155 | 'official_code_filter', |
156 | 156 | 'POST', |
@@ -196,7 +196,7 @@ discard block |
||
196 | 196 | |
197 | 197 | echo $filterForm; |
198 | 198 | |
199 | -if (count($certificate_list) == 0 ) { |
|
199 | +if (count($certificate_list) == 0) { |
|
200 | 200 | echo Display::display_warning_message(get_lang('NoResultsAvailable')); |
201 | 201 | } else { |
202 | 202 | |
@@ -219,7 +219,7 @@ discard block |
||
219 | 219 | $certificates = Display::url(get_lang('Certificate'), $url, array('target'=>'_blank', 'class' => 'btn btn-default')); |
220 | 220 | echo $certificates; |
221 | 221 | echo '<a onclick="return confirmation();" href="gradebook_display_certificate.php?sec_token='.$token.'&cidReq='.$course_code.'&action=delete&cat_id='.$cat_id.'&certificate_id='.$value_certificate['id'].'"> |
222 | - '.Display::return_icon('delete.png',get_lang('Delete')).' |
|
222 | + '.Display::return_icon('delete.png', get_lang('Delete')).' |
|
223 | 223 | </a>'; |
224 | 224 | echo '</td></tr>'; |
225 | 225 | } |