Completed
Push — 1.11.x ( ac8a66...46c8b4 )
by José
126:29 queued 89:25
created
main/admin/dashboard_add_courses_to_user.php 1 patch
Spacing   +19 added lines, -19 removed lines patch added patch discarded remove patch
@@ -21,7 +21,7 @@  discard block
 block discarded – undo
21 21
 
22 22
 // setting breadcrumbs
23 23
 $interbreadcrumb[] = array('url' => 'index.php', 'name' => get_lang('PlatformAdmin'));
24
-$interbreadcrumb[] = array('url' => 'user_list.php','name' => get_lang('UserList'));
24
+$interbreadcrumb[] = array('url' => 'user_list.php', 'name' => get_lang('UserList'));
25 25
 
26 26
 // Database Table Definitions
27 27
 $tbl_course = Database::get_main_table(TABLE_MAIN_COURSE);
@@ -36,15 +36,15 @@  discard block
 block discarded – undo
36 36
 
37 37
 // setting the name of the tool
38 38
 if (UserManager::is_admin($user_id)) {
39
-	$tool_name= get_lang('AssignCoursesToPlatformAdministrator');
39
+	$tool_name = get_lang('AssignCoursesToPlatformAdministrator');
40 40
 } else if ($user_info['status'] == SESSIONADMIN) {
41
-	$tool_name= get_lang('AssignCoursesToSessionsAdministrator');
41
+	$tool_name = get_lang('AssignCoursesToSessionsAdministrator');
42 42
 } else {
43
-	$tool_name= get_lang('AssignCoursesToHumanResourcesManager');
43
+	$tool_name = get_lang('AssignCoursesToHumanResourcesManager');
44 44
 }
45 45
 
46 46
 $add_type = 'multiple';
47
-if(isset($_GET['add_type']) && $_GET['add_type']!='') {
47
+if (isset($_GET['add_type']) && $_GET['add_type'] != '') {
48 48
 	$add_type = Security::remove_XSS($_REQUEST['add_type']);
49 49
 }
50 50
 
@@ -54,7 +54,7 @@  discard block
 block discarded – undo
54 54
 
55 55
 function search_courses($needle, $type)
56 56
 {
57
-    global $tbl_course, $tbl_course_rel_access_url,$user_id;
57
+    global $tbl_course, $tbl_course_rel_access_url, $user_id;
58 58
 
59 59
     $xajax_response = new xajaxResponse();
60 60
     $return = '';
@@ -69,7 +69,7 @@  discard block
 block discarded – undo
69 69
         }
70 70
         $without_assigned_courses = '';
71 71
         if (count($assigned_courses_code) > 0) {
72
-            $without_assigned_courses = " AND c.code NOT IN(".implode(',',$assigned_courses_code).")";
72
+            $without_assigned_courses = " AND c.code NOT IN(".implode(',', $assigned_courses_code).")";
73 73
         }
74 74
 
75 75
         if (api_is_multiple_url_enabled()) {
@@ -88,14 +88,14 @@  discard block
 block discarded – undo
88 88
                 		$without_assigned_courses ";
89 89
         }
90 90
 
91
-		$rs	= Database::query($sql);
91
+		$rs = Database::query($sql);
92 92
 
93 93
 		$return .= '<select id="origin" name="NoAssignedCoursesList[]" multiple="multiple" size="20" >';
94 94
 		while ($course = Database :: fetch_array($rs)) {
95
-			$return .= '<option value="'.$course['code'].'" title="'.htmlspecialchars($course['title'],ENT_QUOTES).'">'.$course['title'].' ('.$course['code'].')</option>';
95
+			$return .= '<option value="'.$course['code'].'" title="'.htmlspecialchars($course['title'], ENT_QUOTES).'">'.$course['title'].' ('.$course['code'].')</option>';
96 96
 		}
97 97
 		$return .= '</select>';
98
-		$xajax_response -> addAssign('ajax_list_courses_multiple','innerHTML',api_utf8_encode($return));
98
+		$xajax_response -> addAssign('ajax_list_courses_multiple', 'innerHTML', api_utf8_encode($return));
99 99
 	}
100 100
 	return $xajax_response;
101 101
 }
@@ -153,7 +153,7 @@  discard block
 block discarded – undo
153 153
 }
154 154
 </script>';
155 155
 
156
-$formSent=0;
156
+$formSent = 0;
157 157
 $errorMsg = $firstLetterCourse = '';
158 158
 $UserList = array();
159 159
 
@@ -161,7 +161,7 @@  discard block
 block discarded – undo
161 161
 if (isset($_POST['formSent']) && intval($_POST['formSent']) == 1) {
162 162
     $courses_list = isset($_POST['CoursesList']) ? $_POST['CoursesList'] : [];
163 163
     $affected_rows = CourseManager::subscribeCoursesToDrhManager($user_id, $courses_list);
164
-    if ($affected_rows)	{
164
+    if ($affected_rows) {
165 165
         $msg = get_lang('AssignedCoursesHaveBeenUpdatedSuccessfully');
166 166
     }
167 167
 }
@@ -213,20 +213,20 @@  discard block
 block discarded – undo
213 213
             ORDER BY c.title";
214 214
 
215 215
 } else {
216
-	$sql= " SELECT c.code, c.title
216
+	$sql = " SELECT c.code, c.title
217 217
 	        FROM $tbl_course c
218 218
             WHERE  c.code LIKE '$needle' $without_assigned_courses
219 219
             ORDER BY c.title";
220 220
 }
221 221
 
222 222
 
223
-$result	= Database::query($sql);
223
+$result = Database::query($sql);
224 224
 
225 225
 ?>
226 226
 <form name="formulaire" method="post" action="<?php echo api_get_self(); ?>?user=<?php echo $user_id ?>" style="margin:0px;">
227 227
 <input type="hidden" name="formSent" value="1" />
228 228
 <?php
229
-if(!empty($msg)) {
229
+if (!empty($msg)) {
230 230
 	Display::display_normal_message($msg); //main API
231 231
 }
232 232
 ?>
@@ -238,7 +238,7 @@  discard block
 block discarded – undo
238 238
         <div id="ajax_list_courses_multiple">
239 239
 	<select id="origin" name="NoAssignedCoursesList[]" multiple="multiple" size="20" style="width:340px;">
240 240
 	<?php while ($enreg = Database::fetch_array($result)) { ?>
241
-            <option value="<?php echo $enreg['code']; ?>" <?php echo 'title="'.htmlspecialchars($enreg['title'],ENT_QUOTES).'"';?>><?php echo $enreg['title'].' ('.$enreg['code'].')'; ?></option>
241
+            <option value="<?php echo $enreg['code']; ?>" <?php echo 'title="'.htmlspecialchars($enreg['title'], ENT_QUOTES).'"'; ?>><?php echo $enreg['title'].' ('.$enreg['code'].')'; ?></option>
242 242
 	<?php } ?>
243 243
 	</select>
244 244
         </div>
@@ -246,8 +246,8 @@  discard block
 block discarded – undo
246 246
     </div>
247 247
     <div class="col-md-4">
248 248
         <div class="code-course">
249
-        <?php if($add_type == 'multiple') { ?>
250
-        <p><?php echo get_lang('FirstLetterCourse');?> :</p>
249
+        <?php if ($add_type == 'multiple') { ?>
250
+        <p><?php echo get_lang('FirstLetterCourse'); ?> :</p>
251 251
         <select name="firstLetterCourse" class="selectpicker form-control" onchange = "xajax_search_courses(this.value,'multiple')">
252 252
             <option value="%">--</option>
253 253
             <?php  echo Display :: get_alphabet_options($firstLetter); ?>
@@ -286,7 +286,7 @@  discard block
 block discarded – undo
286 286
             if (is_array($assigned_courses_to_hrm)) {
287 287
                 foreach ($assigned_courses_to_hrm as $enreg) {
288 288
             ?>
289
-                <option value="<?php echo $enreg['code']; ?>" <?php echo 'title="' . htmlspecialchars($enreg['title'], ENT_QUOTES) . '"'; ?>><?php echo $enreg['title'] . ' (' . $enreg['code'] . ')'; ?></option>
289
+                <option value="<?php echo $enreg['code']; ?>" <?php echo 'title="'.htmlspecialchars($enreg['title'], ENT_QUOTES).'"'; ?>><?php echo $enreg['title'].' ('.$enreg['code'].')'; ?></option>
290 290
             <?php
291 291
                     }
292 292
                 }
Please login to merge, or discard this patch.
main/admin/usergroup_import.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -23,8 +23,8 @@  discard block
 block discarded – undo
23 23
             // 2. Check whether class doesn't exist yet.
24 24
             if ($usergroup->usergroup_exists($class['name'])) {
25 25
                 $class['line'] = $index + 2;
26
-                $class['error'] = get_lang('ClassNameExists') .
27
-                    ': <strong>' .$class['name'] . '</strong>';
26
+                $class['error'] = get_lang('ClassNameExists').
27
+                    ': <strong>'.$class['name'].'</strong>';
28 28
                 $errors[] = $class;
29 29
             }
30 30
         }
@@ -102,7 +102,7 @@  discard block
 block discarded – undo
102 102
     'radio',
103 103
     'file_type',
104 104
     '',
105
-    'CSV (<a href="example_class.csv" target="_blank">' . get_lang('ExampleCSVFile') . '</a>)',
105
+    'CSV (<a href="example_class.csv" target="_blank">'.get_lang('ExampleCSVFile').'</a>)',
106 106
     'csv'
107 107
 );
108 108
 $form->addGroup($group, '', get_lang('FileType'), null);
@@ -113,12 +113,12 @@  discard block
 block discarded – undo
113 113
     $errors = validate_data($classes);
114 114
     if (count($errors) == 0) {
115 115
         $number_of_added_classes = save_data($classes);
116
-        Display::display_normal_message($number_of_added_classes . ' ' . get_lang('Added'));
116
+        Display::display_normal_message($number_of_added_classes.' '.get_lang('Added'));
117 117
     } else {
118 118
         $error_message = get_lang('ErrorsWhenImportingFile');
119 119
         $error_message .= '<ul>';
120 120
         foreach ($errors as $index => $error_class) {
121
-            $error_message .= '<li>' . $error_class['error'] . ' (' . get_lang('Line') . ' ' . $error_class['line'] . ')';
121
+            $error_message .= '<li>'.$error_class['error'].' ('.get_lang('Line').' '.$error_class['line'].')';
122 122
             $error_message .= '</li>';
123 123
         }
124 124
         $error_message .= '</ul>';
@@ -129,7 +129,7 @@  discard block
 block discarded – undo
129 129
 
130 130
 $form->display();
131 131
 ?>
132
-<p><?php echo get_lang('CSVMustLookLike') . ' (' . get_lang('MandatoryFields') . ')'; ?> :</p>
132
+<p><?php echo get_lang('CSVMustLookLike').' ('.get_lang('MandatoryFields').')'; ?> :</p>
133 133
 
134 134
 <pre>
135 135
 <b>name;description;</b>users
Please login to merge, or discard this patch.
main/admin/skills_gradebook.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -25,9 +25,9 @@  discard block
 block discarded – undo
25 25
 // setting breadcrumbs
26 26
 
27 27
 $tool_name = get_lang('SkillsAndGradebooks');
28
-$interbreadcrumb[]=array('url' => 'index.php','name' => get_lang('PlatformAdmin'));
28
+$interbreadcrumb[] = array('url' => 'index.php', 'name' => get_lang('PlatformAdmin'));
29 29
 if ($action == 'add_skill') {
30
-    $interbreadcrumb[]=array('url' => 'skills_gradebook.php','name' => get_lang('SkillsAndGradebooks'));
30
+    $interbreadcrumb[] = array('url' => 'skills_gradebook.php', 'name' => get_lang('SkillsAndGradebooks'));
31 31
     $tool_name = get_lang('Add');
32 32
 }
33 33
 
@@ -86,9 +86,9 @@  discard block
 block discarded – undo
86 86
 $action_links = 'function action_formatter(cellvalue, options, rowObject) {
87 87
                         //certificates
88 88
                         if (rowObject[4] == 1) {
89
-                            return \'<a href="?action=add_skill&id=\'+options.rowId+\'">'.Display::return_icon('add.png', get_lang('AddSkill'),'',ICON_SIZE_SMALL).'</a>'.'\';
89
+                            return \'<a href="?action=add_skill&id=\'+options.rowId+\'">'.Display::return_icon('add.png', get_lang('AddSkill'), '', ICON_SIZE_SMALL).'</a>'.'\';
90 90
                         } else {
91
-                            return \''.Display::return_icon('add_na.png', get_lang('YourGradebookFirstNeedsACertificateInOrderToBeLinkedToASkill'),'',ICON_SIZE_SMALL).''.'\';
91
+                            return \''.Display::return_icon('add_na.png', get_lang('YourGradebookFirstNeedsACertificateInOrderToBeLinkedToASkill'), '', ICON_SIZE_SMALL).''.'\';
92 92
                         }
93 93
                  }';
94 94
 ?>
@@ -96,7 +96,7 @@  discard block
 block discarded – undo
96 96
 $(function() {
97 97
 <?php
98 98
     // grid definition see the $career->display() function
99
-    echo Display::grid_js('gradebooks', $url, $columns, $column_model, $extra_params, array(), $action_links,true);
99
+    echo Display::grid_js('gradebooks', $url, $columns, $column_model, $extra_params, array(), $action_links, true);
100 100
 ?>
101 101
 });
102 102
 </script>
@@ -111,7 +111,7 @@  discard block
 block discarded – undo
111 111
         $id = isset($_REQUEST['id']) ? $_REQUEST['id'] : null;
112 112
         $gradebook_info = $gradebook->get($id);
113 113
         $url  = api_get_self().'?action='.$action.'&id='.$id;
114
-        $form =  $gradebook->show_skill_form($id, $url, $gradebook_info['name']);
114
+        $form = $gradebook->show_skill_form($id, $url, $gradebook_info['name']);
115 115
         if ($form->validate()) {
116 116
             $values = $form->exportValues();
117 117
             $res    = $gradebook->update_skills_to_gradebook($values['id'], $values['skill']);
Please login to merge, or discard this patch.
main/admin/inactive_user_list.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -23,7 +23,7 @@
 block discarded – undo
23 23
 Display :: display_header($tool_name);
24 24
 
25 25
 //On sélectionne les user élèves
26
-$sql = "SELECT user_id FROM ".$table_user." user WHERE user.status= '5' ORDER by lastname " ;
26
+$sql = "SELECT user_id FROM ".$table_user." user WHERE user.status= '5' ORDER by lastname ";
27 27
 $result = Database::query($sql);
28 28
 
29 29
 while ($row = Database::fetch_array($result)) {
Please login to merge, or discard this patch.
main/admin/skills_import.php 1 patch
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -161,7 +161,7 @@  discard block
 block discarded – undo
161 161
 api_protect_admin_script(true);
162 162
 
163 163
 $tool_name = get_lang('ImportSkillsListCSV');
164
-$interbreadcrumb[] = array ("url" => 'index.php', "name" => get_lang('PlatformAdmin'));
164
+$interbreadcrumb[] = array("url" => 'index.php', "name" => get_lang('PlatformAdmin'));
165 165
 
166 166
 set_time_limit(0);
167 167
 $extra_fields = UserManager::get_extra_fields(0, 0, 5, 'ASC', true);
@@ -172,13 +172,13 @@  discard block
 block discarded – undo
172 172
     $file_type = $_POST['file_type'];
173 173
     Security::clear_token();
174 174
     $tok = Security::get_token();
175
-    $allowed_file_mimetype = array('csv','xml');
175
+    $allowed_file_mimetype = array('csv', 'xml');
176 176
     $error_kind_file = false;
177 177
     $error_message = '';
178 178
 
179
-    $ext_import_file = substr($_FILES['import_file']['name'], (strrpos($_FILES['import_file']['name'],'.')+1));
179
+    $ext_import_file = substr($_FILES['import_file']['name'], (strrpos($_FILES['import_file']['name'], '.') + 1));
180 180
 
181
-    if (in_array($ext_import_file,$allowed_file_mimetype)) {
181
+    if (in_array($ext_import_file, $allowed_file_mimetype)) {
182 182
         if (strcmp($file_type, 'csv') === 0 && $ext_import_file == $allowed_file_mimetype[0]) {
183 183
             $skills	= parse_csv_data($_FILES['import_file']['tmp_name']);
184 184
             $errors = validate_data($skills);
@@ -238,7 +238,7 @@  discard block
 block discarded – undo
238 238
     }
239 239
 }
240 240
 
241
-$interbreadcrumb[] = array ("url" => 'skill_list.php', "name" => get_lang('ManageSkills'));
241
+$interbreadcrumb[] = array("url" => 'skill_list.php', "name" => get_lang('ManageSkills'));
242 242
 
243 243
 Display :: display_header($tool_name);
244 244
 
@@ -251,7 +251,7 @@  discard block
 block discarded – undo
251 251
 
252 252
 $toolbar = Display::toolbarButton(
253 253
     get_lang('ManageSkills'),
254
-    api_get_path(WEB_CODE_PATH) . 'admin/skill_list.php',
254
+    api_get_path(WEB_CODE_PATH).'admin/skill_list.php',
255 255
     'list',
256 256
     'success',
257 257
     ['title' => get_lang('CreateSkill')]
@@ -259,7 +259,7 @@  discard block
 block discarded – undo
259 259
 $toolbar .= '&nbsp;&nbsp;';
260 260
 $toolbar .= Display::toolbarButton(
261 261
     get_lang('SkillsWheel'),
262
-    api_get_path(WEB_CODE_PATH) . 'admin/skills_wheel.php',
262
+    api_get_path(WEB_CODE_PATH).'admin/skills_wheel.php',
263 263
     'bullseye',
264 264
     'primary',
265 265
     ['title' => get_lang('CreateSkill')]
@@ -267,7 +267,7 @@  discard block
 block discarded – undo
267 267
 $toolbar .= '&nbsp;&nbsp;';
268 268
 $toolbar .= Display::toolbarButton(
269 269
     get_lang('BadgesManagement'),
270
-    api_get_path(WEB_CODE_PATH) . 'admin/skill_badge_list.php',
270
+    api_get_path(WEB_CODE_PATH).'admin/skill_badge_list.php',
271 271
     'shield',
272 272
     'warning',
273 273
     ['title' => get_lang('BadgesManagement')]
@@ -276,7 +276,7 @@  discard block
 block discarded – undo
276 276
 
277 277
 echo $toolbar;
278 278
 
279
-$form = new FormValidator('user_import','post','skills_import.php');
279
+$form = new FormValidator('user_import', 'post', 'skills_import.php');
280 280
 $form->addElement('header', '', $tool_name);
281 281
 $form->addElement('hidden', 'formSent');
282 282
 $form->addElement('file', 'import_file', get_lang('ImportFileLocation'));
Please login to merge, or discard this patch.
main/admin/event_type.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -52,7 +52,7 @@  discard block
 block discarded – undo
52 52
 
53 53
 $languages = api_get_languages();
54 54
 
55
-$ajaxPath = api_get_path(WEB_CODE_PATH) . 'inc/ajax/events.ajax.php';
55
+$ajaxPath = api_get_path(WEB_CODE_PATH).'inc/ajax/events.ajax.php';
56 56
 
57 57
 $action_array = array(
58 58
     array(
@@ -328,7 +328,7 @@  discard block
 block discarded – undo
328 328
         <select class="col-md-6" multiple="1" id="eventList" onchange="confirmMessage(this.name); return false;" name="eventList">
329 329
         <?php
330 330
         foreach ($event_config as $key => $config) {
331
-            echo '<option value="' . $key . '">' . $config['name_lang_var'] . '</option>';
331
+            echo '<option value="'.$key.'">'.$config['name_lang_var'].'</option>';
332 332
         }
333 333
         ?>
334 334
         </select>
Please login to merge, or discard this patch.
main/admin/course_list.php 1 patch
Spacing   +13 added lines, -13 removed lines patch added patch discarded remove patch
@@ -26,7 +26,7 @@  discard block
 block discarded – undo
26 26
         api_is_multiple_url_enabled() && api_get_current_access_url_id() != -1
27 27
     ) {
28 28
         $access_url_rel_course_table = Database :: get_main_table(TABLE_MAIN_ACCESS_URL_REL_COURSE);
29
-        $sql.= " INNER JOIN $access_url_rel_course_table url_rel_course
29
+        $sql .= " INNER JOIN $access_url_rel_course_table url_rel_course
30 30
                  ON (c.id = url_rel_course.c_id)";
31 31
     }
32 32
 
@@ -62,7 +62,7 @@  discard block
 block discarded – undo
62 62
     if ((api_is_platform_admin() || api_is_session_admin()) &&
63 63
         api_is_multiple_url_enabled() && api_get_current_access_url_id() != -1
64 64
     ) {
65
-        $sql.= " AND url_rel_course.access_url_id = ".api_get_current_access_url_id();
65
+        $sql .= " AND url_rel_course.access_url_id = ".api_get_current_access_url_id();
66 66
     }
67 67
 
68 68
     $res = Database::query($sql);
@@ -101,7 +101,7 @@  discard block
 block discarded – undo
101 101
         api_is_multiple_url_enabled() && api_get_current_access_url_id() != -1
102 102
     ) {
103 103
         $access_url_rel_course_table = Database :: get_main_table(TABLE_MAIN_ACCESS_URL_REL_COURSE);
104
-        $sql.= " INNER JOIN $access_url_rel_course_table url_rel_course
104
+        $sql .= " INNER JOIN $access_url_rel_course_table url_rel_course
105 105
                  ON (course.id = url_rel_course.c_id)";
106 106
     }
107 107
 
@@ -136,7 +136,7 @@  discard block
 block discarded – undo
136 136
     if ((api_is_platform_admin() || api_is_session_admin()) &&
137 137
         api_is_multiple_url_enabled() && api_get_current_access_url_id() != -1
138 138
     ) {
139
-        $sql.= " AND url_rel_course.access_url_id=".api_get_current_access_url_id();
139
+        $sql .= " AND url_rel_course.access_url_id=".api_get_current_access_url_id();
140 140
     }
141 141
 
142 142
     $sql .= " ORDER BY col$column $direction ";
@@ -206,13 +206,13 @@  discard block
 block discarded – undo
206 206
 
207 207
     if (isset($_GET['session_id']) && !empty($_GET['session_id'])) {
208 208
         $sessionId = intval($_GET['session_id']);
209
-        $sql.= " WHERE s.id = ".$sessionId;
209
+        $sql .= " WHERE s.id = ".$sessionId;
210 210
     }
211 211
 
212 212
     $sql .= " ORDER BY col$column $direction ";
213 213
     $sql .= " LIMIT $from,$number_of_items";
214 214
     $res = Database::query($sql);
215
-    $courses = array ();
215
+    $courses = array();
216 216
     while ($course = Database::fetch_array($res)) {
217 217
         // Place colour icons in front of courses.
218 218
         $show_visual_code = $course['visual_code'] != $course[2] ? Display::label($course['visual_code'], 'info') : null;
@@ -254,7 +254,7 @@  discard block
 block discarded – undo
254 254
  */
255 255
 function get_course_visibility_icon($v) {
256 256
     $style = 'margin-bottom:0;margin-right:5px;';
257
-    switch($v) {
257
+    switch ($v) {
258 258
         case 0:
259 259
             return Display::return_icon('bullet_red.png', get_lang('CourseVisibilityClosed'), array('style' => $style));
260 260
             break;
@@ -341,7 +341,7 @@  discard block
 block discarded – undo
341 341
     $form->setDefaults($defaults);
342 342
     $content .= $form->returnForm();
343 343
 } else {
344
-    $interbreadcrumb[] = array ('url' => 'index.php', "name" => get_lang('PlatformAdmin'));
344
+    $interbreadcrumb[] = array('url' => 'index.php', "name" => get_lang('PlatformAdmin'));
345 345
     $tool_name = get_lang('CourseList');
346 346
     if (isset($_GET['delete_course'])) {
347 347
         CourseManager::delete_course($_GET['delete_course']);
@@ -353,7 +353,7 @@  discard block
 block discarded – undo
353 353
     $form = new FormValidator('search_simple', 'get', '', '', array(), FormValidator::LAYOUT_INLINE);
354 354
     $form->addElement('text', 'keyword', null, array('id' => 'course-search-keyword'));
355 355
     $form->addButtonSearch(get_lang('SearchCourse'));
356
-    $advanced = '<a class="btn btn-default" href="'.  api_get_path(WEB_CODE_PATH).'admin/course_list.php?search=advanced"><em class="fa fa-search"></em> '.get_lang('AdvancedSearch').'</a>';
356
+    $advanced = '<a class="btn btn-default" href="'.api_get_path(WEB_CODE_PATH).'admin/course_list.php?search=advanced"><em class="fa fa-search"></em> '.get_lang('AdvancedSearch').'</a>';
357 357
 
358 358
     // Create a filter by session
359 359
     $sessionFilter = new FormValidator('course_filter', 'get', '', '', array(), FormValidator::LAYOUT_INLINE);
@@ -374,10 +374,10 @@  discard block
 block discarded – undo
374 374
     $courseListUrl = api_get_self();
375 375
     $actions .= '<div class="row">';
376 376
     $actions .= '<div class="col-md-2">';
377
-    $actions .= '<a href="course_add.php">'.Display::return_icon('new_course.png', get_lang('AddCourse'),'',ICON_SIZE_MEDIUM).'</a> ';
377
+    $actions .= '<a href="course_add.php">'.Display::return_icon('new_course.png', get_lang('AddCourse'), '', ICON_SIZE_MEDIUM).'</a> ';
378 378
     if (api_get_setting('course_validation') === 'true') {
379 379
         $actions .= '<a href="course_request_review.php">'.
380
-            Display::return_icon('course_request_pending.png', get_lang('ReviewCourseRequests'),'',ICON_SIZE_MEDIUM).'</a>';
380
+            Display::return_icon('course_request_pending.png', get_lang('ReviewCourseRequests'), '', ICON_SIZE_MEDIUM).'</a>';
381 381
     }
382 382
     $actions .= '</div>';
383 383
     $actions .= '<div class="col-md-4">';
@@ -415,10 +415,10 @@  discard block
 block discarded – undo
415 415
         $table = new SortableTable('courses', 'get_number_of_courses', 'get_course_data', 2, 20, 'ASC', 'course-list');
416 416
     }
417 417
 
418
-    $parameters=array();
418
+    $parameters = array();
419 419
 
420 420
     if (isset ($_GET['keyword'])) {
421
-        $parameters = array ('keyword' => Security::remove_XSS($_GET['keyword']));
421
+        $parameters = array('keyword' => Security::remove_XSS($_GET['keyword']));
422 422
     } elseif (isset ($_GET['keyword_code'])) {
423 423
         $parameters['keyword_code'] = Security::remove_XSS($_GET['keyword_code']);
424 424
         $parameters['keyword_title'] = Security::remove_XSS($_GET['keyword_title']);
Please login to merge, or discard this patch.
main/admin/ldap_form_add_users_group.php 1 patch
Spacing   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -9,7 +9,7 @@  discard block
 block discarded – undo
9 9
 /**
10 10
  * This form is included by ldap_import_students.php and ldap_import_students_to_session.php
11 11
  */
12
-$nbre=0;
12
+$nbre = 0;
13 13
 echo '<form name="form" method="post" action="'.api_get_self().'?annee='.Security::remove_XSS($annee).'">';
14 14
 if ($statut == 1) {
15 15
     echo get_lang(
@@ -28,23 +28,23 @@  discard block
 block discarded – undo
28 28
 $is_western_name_order = api_is_western_name_order();
29 29
 echo '<input type="hidden" name="confirmed" value="yes">';
30 30
 echo '<table border="0" cellspacing="0" width="100%">';
31
-echo '<tr align="center" id="header3">' .
32
-		'<td width="15%"><input type="button" value="'.get_lang('AllSlashNone').'" onClick="checkAll();"></td>' .
33
-		'<td width="40%"><b>'.get_lang('Email').'</b></td>' .
31
+echo '<tr align="center" id="header3">'.
32
+		'<td width="15%"><input type="button" value="'.get_lang('AllSlashNone').'" onClick="checkAll();"></td>'.
33
+		'<td width="40%"><b>'.get_lang('Email').'</b></td>'.
34 34
 		($is_western_name_order
35
-			? '<td width="15%"><b>'.get_lang('FirstName').'</b></td>' .
35
+			? '<td width="15%"><b>'.get_lang('FirstName').'</b></td>'.
36 36
 			'<td width="15%"><b>'.get_lang('Name').'</b></td>'
37
-			: '<td width="15%"><b>'.get_lang('Name').'</b></td>' .
38
-			'<td width="15%"><b>'.get_lang('FirstName').'</b></td>') .
39
-		'<td width="15%"><b>'.get_lang('Login').'</b></td>' .
37
+			: '<td width="15%"><b>'.get_lang('Name').'</b></td>'.
38
+			'<td width="15%"><b>'.get_lang('FirstName').'</b></td>').
39
+		'<td width="15%"><b>'.get_lang('Login').'</b></td>'.
40 40
 	  '</tr>'."\n";
41 41
 while (list ($key, $val) = each($nom_form)) {
42
-	$nbre=$nbre+1;
43
-	if($nbre & 1) $ndiv=2; else $ndiv=3;
42
+	$nbre = $nbre + 1;
43
+	if ($nbre & 1) $ndiv = 2; else $ndiv = 3;
44 44
 	echo '<tr align="center" id="header'.$ndiv.'">';
45 45
 	echo '<td><input type="checkbox" name="checkboxes[]" value="'.$key.'" checked="checked"></td>';
46 46
 	echo '<td>'.$email_form[$key].'<input type="hidden" name="email_form['.$key.']" size="40" value="'.$email_form[$key].'"></td>';
47
-	if ($is_western_name_order)	{
47
+	if ($is_western_name_order) {
48 48
 		echo '<td>'.$prenom_form[$key].'<input type="hidden" name="prenom_form['.$key.']" size="20" value="'.$prenom_form[$key].'"></td>';
49 49
 		echo '<td>'.$nom_form[$key].'<input type="hidden" name="nom_form['.$key.']" size="20" value="'.$nom_form[$key].'"></td>';
50 50
 	} else {
Please login to merge, or discard this patch.
main/admin/event_controller.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -62,7 +62,7 @@
 block discarded – undo
62 62
 $htmlHeadXtra[] = api_get_jqgrid_js();
63 63
 $htmlHeadXtra[] = '<script>
64 64
 $(function() {
65
-    '.Display::grid_js('event_email_template',  $url,$columns,$column_model,$extra_params, array(), $action_links,true).'
65
+    '.Display::grid_js('event_email_template', $url, $columns, $column_model, $extra_params, array(), $action_links, true).'
66 66
 });
67 67
 </script>';
68 68
 
Please login to merge, or discard this patch.