Completed
Push — 1.10.x ( fe0e5a...3a6f9c )
by Yannick
134:15 queued 86:39
created
main/reports/modules/quiz.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@  discard block
 block discarded – undo
1 1
 <?php 
2 2
 
3
-$reports_modules['quiz'] = array ();
3
+$reports_modules['quiz'] = array();
4 4
 
5 5
 
6 6
 function reports_modules_quiz_init() {
@@ -28,6 +28,6 @@  discard block
 block discarded – undo
28 28
 			REPORTS_PROGRESS_COMPLETED.' as progress, '.
29 29
 			'exe_duration as time, exe_date as ts from '.
30 30
 			Database::get_main_table(TABLE_STATISTIC_TRACK_E_EXERCISES).
31
-			' where c_id = ' . $courseId .
31
+			' where c_id = '.$courseId.
32 32
 			' and exe_exo_id='.$quiz['child_id']);
33 33
 }
Please login to merge, or discard this patch.
main/reports/modules/scorm.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@
 block discarded – undo
1 1
 <?php 
2 2
 
3
-$reports_modules['scorm'] = array ();
3
+$reports_modules['scorm'] = array();
4 4
 
5 5
 
6 6
 function reports_modules_scorm_init() {
Please login to merge, or discard this patch.
main/reports/modules/course.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 
3
-$reports_modules['course'] = array ();
3
+$reports_modules['course'] = array();
4 4
 
5 5
 
6 6
 function reports_modules_course_init() {
@@ -24,6 +24,6 @@  discard block
 block discarded – undo
24 24
 			'NULL as progress, '.
25 25
 			'(sum(logout_course_date) - sum(login_course_date)) as time, null as ts from '.
26 26
 			Database::get_main_table(TABLE_STATISTIC_TRACK_E_COURSE_ACCESS).
27
-			' where c_id = ' . $course['real_id'] .
27
+			' where c_id = '.$course['real_id'].
28 28
 			' group by user_id');
29 29
 }
Please login to merge, or discard this patch.
main/reports/reports.php 1 patch
Spacing   +13 added lines, -13 removed lines patch added patch discarded remove patch
@@ -24,7 +24,7 @@  discard block
 block discarded – undo
24 24
 $this_section = SECTION_REPORTS;
25 25
 
26 26
 // setting the name of the tool
27
-$tool_name=get_lang('Reports');
27
+$tool_name = get_lang('Reports');
28 28
 
29 29
 // loading templates
30 30
 reports_loadTemplates();
@@ -68,7 +68,7 @@  discard block
 block discarded – undo
68 68
 }
69 69
 
70 70
 // outputing a link to csv file instead of outputing csv data directly
71
-if ($_REQUEST['format'] == 'csv')  {
71
+if ($_REQUEST['format'] == 'csv') {
72 72
 	// converting post vars to get uri
73 73
 	$params = '';
74 74
 	$kv = array();
@@ -96,7 +96,7 @@  discard block
 block discarded – undo
96 96
 
97 97
 if (is_array($reports_template[$_REQUEST['type']])) {
98 98
 	$query = $reports_template[$_REQUEST['type']]['getSQL']();
99
-	if (! is_array($query))
99
+	if (!is_array($query))
100 100
 		$query = array($query);
101 101
 	if ($_REQUEST['format'] == 'sql')
102 102
 		die(var_export($query, true));
@@ -150,7 +150,7 @@  discard block
 block discarded – undo
150 150
 	$columns = array();
151 151
 	$columns_islink = array();
152 152
 	echo '<thead><tr>';
153
-	for ($i=0; $i < $nfields; $i++)	{
153
+	for ($i = 0; $i < $nfields; $i++) {
154 154
 		$columns[$i] = multiquery_field_name($result, $i);
155 155
 		if (substr($columns[$i], -5, 5) != '_link') {
156 156
 			$column_islink[$i] = false;
@@ -162,7 +162,7 @@  discard block
 block discarded – undo
162 162
 	// checking resolving link column id
163 163
 	$columns_flip = array_flip($columns);
164 164
 	$columns_link = array();
165
-	for ($i=0; $i < $nfields; $i++)
165
+	for ($i = 0; $i < $nfields; $i++)
166 166
 		if ($column_islink[$i] == false && array_key_exists($columns[$i].'_link', $columns_flip))
167 167
 			$columns_link[$i] = $columns_flip[$columns[$i].'_link'];
168 168
 		else
@@ -170,10 +170,10 @@  discard block
 block discarded – undo
170 170
 	echo '</tr></thead><tbody>';
171 171
 	while ($row = multiquery_fetch_row($result)) {
172 172
 		echo '<tr>';
173
-		for ($i = 0; $i<$nfields; $i++)
174
-			if (!$columns_islink[$i]){ // ignore links
173
+		for ($i = 0; $i < $nfields; $i++)
174
+			if (!$columns_islink[$i]) { // ignore links
175 175
 				if ($columns_link[$i] != '') // link is defined
176
-					if (substr($columns_link[$i],0,10) == 'javascript') {
176
+					if (substr($columns_link[$i], 0, 10) == 'javascript') {
177 177
 						echo '<td><a href="#" onclick="'.$row[$columns_link[$i]].'">'.$row[$i].'</a></td>';
178 178
 					}
179 179
 					else {
@@ -201,7 +201,7 @@  discard block
 block discarded – undo
201 201
 	$nfields = multiquery_num_fields($result);
202 202
 	$columns = array();
203 203
 	$columns_islink = array();
204
-	for ($i=0; $i < $nfields; $i++)	{
204
+	for ($i = 0; $i < $nfields; $i++) {
205 205
 		$columns[$i] = multiquery_field_name($result, $i);
206 206
 		if (substr($columns[$i], -5, 5) != '_link') {
207 207
 			$column_islink[$i] = false;
@@ -212,16 +212,16 @@  discard block
 block discarded – undo
212 212
 
213 213
 	echo "\n";
214 214
 	while ($row = multiquery_fetch_row($result)) {
215
-		for ($i = 0; $i<$nfields; $i++)
215
+		for ($i = 0; $i < $nfields; $i++)
216 216
 			if (!$columns_islink[$i]) // ignore links
217
-				echo csv_escaping($row[$i]).',';  // fixme
217
+				echo csv_escaping($row[$i]).','; // fixme
218 218
 		echo "\n";
219 219
 	}
220 220
 } else die(get_lang('UnknownFormat'));
221 221
 
222 222
 function csv_escaping($value, $csv_separator = ',') {
223
-	$value = str_replace('"','""',$value);
224
-	if (strpos($value, '""') or strpos($value, $csv_separator) or $value != trim($value) ) {
223
+	$value = str_replace('"', '""', $value);
224
+	if (strpos($value, '""') or strpos($value, $csv_separator) or $value != trim($value)) {
225 225
 		$value = '"'.$value.'"';
226 226
 	}
227 227
 	return $value;
Please login to merge, or discard this patch.
main/mySpace/lp_tracking.php 1 patch
Spacing   +14 added lines, -14 removed lines patch added patch discarded remove patch
@@ -17,7 +17,7 @@  discard block
 block discarded – undo
17 17
 	$this_section = SECTION_COURSES;
18 18
 }
19 19
 
20
-$session_id  = isset($_REQUEST['id_session']) && !empty($_REQUEST['id_session']) ? intval($_REQUEST['id_session']) : api_get_session_id();
20
+$session_id = isset($_REQUEST['id_session']) && !empty($_REQUEST['id_session']) ? intval($_REQUEST['id_session']) : api_get_session_id();
21 21
 $export_csv = isset($_GET['export']) && $_GET['export'] == 'csv' ? true : false;
22 22
 $user_id = isset($_GET['student_id']) ? intval($_GET['student_id']) : api_get_user_id();
23 23
 $courseCode = isset($_GET['course']) ? Security::remove_XSS($_GET['course']) : api_get_course_id();
@@ -39,18 +39,18 @@  discard block
 block discarded – undo
39 39
 }
40 40
 
41 41
 if ($origin == 'user_course') {
42
-	$interbreadcrumb[] = array ("url" => api_get_path(WEB_COURSE_PATH).$course_info['directory'], 'name' => $course_info['name']);
43
-	$interbreadcrumb[] = array ("url" => "../user/user.php?cidReq=".$courseCode, "name" => get_lang("Users"));
44
-} else if($origin == 'tracking_course') {
45
-	$interbreadcrumb[] = array ("url" => "../tracking/courseLog.php?cidReq=".$courseCode.'&id_session='.$session_id, "name" => get_lang("Tracking"));
42
+	$interbreadcrumb[] = array("url" => api_get_path(WEB_COURSE_PATH).$course_info['directory'], 'name' => $course_info['name']);
43
+	$interbreadcrumb[] = array("url" => "../user/user.php?cidReq=".$courseCode, "name" => get_lang("Users"));
44
+} else if ($origin == 'tracking_course') {
45
+	$interbreadcrumb[] = array("url" => "../tracking/courseLog.php?cidReq=".$courseCode.'&id_session='.$session_id, "name" => get_lang("Tracking"));
46 46
 } else {
47
-	$interbreadcrumb[] = array ("url" => "index.php", "name" => get_lang('MySpace'));
48
-	$interbreadcrumb[] = array ("url" => "student.php", "name" => get_lang("MyStudents"));
49
- 	$interbreadcrumb[] = array ("url" => "myStudents.php?student=".$user_id, "name" => get_lang("StudentDetails"));
50
- 	$nameTools=get_lang("DetailsStudentInCourse");
47
+	$interbreadcrumb[] = array("url" => "index.php", "name" => get_lang('MySpace'));
48
+	$interbreadcrumb[] = array("url" => "student.php", "name" => get_lang("MyStudents"));
49
+ 	$interbreadcrumb[] = array("url" => "myStudents.php?student=".$user_id, "name" => get_lang("StudentDetails"));
50
+ 	$nameTools = get_lang("DetailsStudentInCourse");
51 51
 }
52 52
 
53
-$interbreadcrumb[] = array("url" => "myStudents.php?student=".$user_id."&course=".$courseCode."&details=true&origin=".$origin , "name" => get_lang("DetailsStudentInCourse"));
53
+$interbreadcrumb[] = array("url" => "myStudents.php?student=".$user_id."&course=".$courseCode."&details=true&origin=".$origin, "name" => get_lang("DetailsStudentInCourse"));
54 54
 $nameTools = get_lang('LearningPathDetails');
55 55
 $sql = 'SELECT name	FROM '.Database::get_course_table(TABLE_LP_MAIN).' WHERE c_id = '.$course_info['real_id'].' AND id='.$lp_id;
56 56
 $rs  = Database::query($sql);
@@ -62,15 +62,15 @@  discard block
 block discarded – undo
62 62
 
63 63
 Display :: display_header($nameTools);
64 64
 echo '<div class ="actions">';
65
-echo '<a href="javascript:history.back();">'.Display::return_icon('back.png',get_lang('Back'),'',ICON_SIZE_MEDIUM).'</a>';
65
+echo '<a href="javascript:history.back();">'.Display::return_icon('back.png', get_lang('Back'), '', ICON_SIZE_MEDIUM).'</a>';
66 66
 echo '<a href="javascript: void(0);" onclick="javascript: window.print();">
67
-        '.Display::return_icon('printer.png',get_lang('Print'),'',ICON_SIZE_MEDIUM).'</a>';
67
+        '.Display::return_icon('printer.png', get_lang('Print'), '', ICON_SIZE_MEDIUM).'</a>';
68 68
 echo '<a href="'.api_get_self().'?export=csv&'.Security::remove_XSS($_SERVER['QUERY_STRING']).'">
69
-        '.Display::return_icon('export_csv.png',get_lang('ExportAsCSV'),'',ICON_SIZE_MEDIUM).'</a>';
69
+        '.Display::return_icon('export_csv.png', get_lang('ExportAsCSV'), '', ICON_SIZE_MEDIUM).'</a>';
70 70
 echo '</div>';
71 71
 echo '<div class="clear"></div>';
72 72
 $session_name = api_get_session_name($session_id);
73
-$table_title = ($session_name? Display::return_icon('session.png', get_lang('Session'), array(), ICON_SIZE_SMALL).' '.$session_name.' ':' ').
73
+$table_title = ($session_name ? Display::return_icon('session.png', get_lang('Session'), array(), ICON_SIZE_SMALL).' '.$session_name.' ' : ' ').
74 74
     Display::return_icon('course.png', get_lang('Course'), array(), ICON_SIZE_SMALL).' '.$course_info['name'].' '.
75 75
     Display::return_icon('user.png', get_lang('User'), array(), ICON_SIZE_SMALL).' '.$name;
76 76
 echo Display::page_header($table_title);
Please login to merge, or discard this patch.
main/mySpace/current_courses.php 1 patch
Spacing   +13 added lines, -13 removed lines patch added patch discarded remove patch
@@ -34,11 +34,11 @@  discard block
 block discarded – undo
34 34
 		}
35 35
 
36 36
 		$teachers = CourseManager::get_teacher_list_from_course_code($course_code);
37
-		$teacher_list =  array();
37
+		$teacher_list = array();
38 38
 
39 39
 		if (!empty($teachers)) {
40
-			foreach($teachers as $teacher) {
41
-				$teacher_list[]= $teacher['firstname'].' '.$teacher['lastname'];
40
+			foreach ($teachers as $teacher) {
41
+				$teacher_list[] = $teacher['firstname'].' '.$teacher['lastname'];
42 42
 			}
43 43
 		}
44 44
 
@@ -54,7 +54,7 @@  discard block
 block discarded – undo
54 54
 			$students[] = $student['user_id'];
55 55
 		}
56 56
 
57
-		$t_lp 	= Database :: get_course_table(TABLE_LP_MAIN);
57
+		$t_lp = Database :: get_course_table(TABLE_LP_MAIN);
58 58
 		$sql_lp = "SELECT lp.name, lp.id FROM $t_lp lp
59 59
 				   WHERE c_id = $course_id AND lp.session_id = 0";
60 60
 		$rs_lp 	= Database::query($sql_lp);
@@ -67,7 +67,7 @@  discard block
 block discarded – undo
67 67
 		);
68 68
 
69 69
 		$total_tools = 0;
70
-		foreach($total_tools_list as $tool) {
70
+		foreach ($total_tools_list as $tool) {
71 71
 			$total_tools += $tool['count_access_tool'];
72 72
 		}
73 73
 
@@ -93,16 +93,16 @@  discard block
 block discarded – undo
93 93
 				if (!empty($students)) {
94 94
 					foreach ($students  as $student_id) {
95 95
 						$avg_student_progress   = Tracking::get_avg_student_progress($student_id, $course_code, array($lp_id), $session_id);
96
-						$myavg_temp 			= Tracking::get_avg_student_score($student_id, $course_code, array($lp_id), $session_id);
96
+						$myavg_temp = Tracking::get_avg_student_score($student_id, $course_code, array($lp_id), $session_id);
97 97
 						$avg_progress_in_course = Tracking::get_avg_student_progress($student_id, $course_code, array($lp_id), $session_id);
98 98
 
99 99
 						if (intval($avg_progress_in_course) == 100) {
100 100
 							$count_students_complete_all_activities++;
101 101
 						}
102 102
 						if (intval($avg_progress_in_course) > 0 && intval($avg_progress_in_course) <= 50) {
103
-							$count_students_complete_all_activities_at_50 ++;
103
+							$count_students_complete_all_activities_at_50++;
104 104
 						}
105
-						$total_average_progress +=$avg_progress_in_course;
105
+						$total_average_progress += $avg_progress_in_course;
106 106
 
107 107
 						$time_spent = Tracking::get_time_spent_on_the_course($student_id, $course_id, $session_id);
108 108
 						$total_time_spent += $time_spent;
@@ -139,7 +139,7 @@  discard block
 block discarded – undo
139 139
 						    ORDER BY item_type";
140 140
 				$res_lpi = Database::query($sql_lpi);
141 141
 				while ($row_lpi = Database::fetch_array($res_lpi)) {
142
-					switch($row_lpi['item_type']) {
142
+					switch ($row_lpi['item_type']) {
143 143
 						case 'document':
144 144
 							$array[$i]['learnpath_docs']++;
145 145
 							break;
@@ -171,10 +171,10 @@  discard block
 block discarded – undo
171 171
 
172 172
 				if (!empty($student_count)) {
173 173
 					$array[$i]['count_students_accessing'] = $count_students_accessing;
174
-					$array[$i]['count_students_accessing_percentage'] = round($count_students_accessing / $student_count *100 , 0);
174
+					$array[$i]['count_students_accessing_percentage'] = round($count_students_accessing / $student_count * 100, 0);
175 175
 					$array[$i]['count_students_complete_all_activities_at_50'] = $count_students_complete_all_activities;
176
-					$array[$i]['count_students_complete_all_activities'] = round($count_students_complete_all_activities / $student_count *100 , 0);;
177
-					$array[$i]['average_percentage_activities_completed_per_student'] = round($count_students_complete_all_activities/$student_count*100,2);
176
+					$array[$i]['count_students_complete_all_activities'] = round($count_students_complete_all_activities / $student_count * 100, 0); ;
177
+					$array[$i]['average_percentage_activities_completed_per_student'] = round($count_students_complete_all_activities / $student_count * 100, 2);
178 178
 					$array[$i]['total_time_spent'] = 0;
179 179
 					$array[$i]['average_time_spent_per_student'] = 0;
180 180
 
@@ -241,7 +241,7 @@  discard block
 block discarded – undo
241 241
 	exit;
242 242
 }
243 243
 
244
-$interbreadcrumb[] = array ('url' => 'index.php', 'name' => get_lang('MySpace'));
244
+$interbreadcrumb[] = array('url' => 'index.php', 'name' => get_lang('MySpace'));
245 245
 
246 246
 Display::display_header(get_lang('CurrentCourses'));
247 247
 
Please login to merge, or discard this patch.
main/mySpace/user_edit.php 1 patch
Spacing   +14 added lines, -14 removed lines patch added patch discarded remove patch
@@ -89,15 +89,15 @@  discard block
 block discarded – undo
89 89
 	$group[] =& $form->createElement('select', 'auth_source', null, $auth_sources);
90 90
 	$group[] =& $form->createElement('static', '', '', '<br />');
91 91
 }*/
92
-$group[] =& $form->createElement('radio', 'password_auto', get_lang('Password'), get_lang('AutoGeneratePassword').'<br />', 1);
93
-$group[] =& $form->createElement('radio', 'password_auto', 'id="radio_user_password"', null, 0);
94
-$group[] =& $form->createElement('password', 'password', null, array('onkeydown' => 'javascript: password_switch_radio_button(document.user_add,"password[password_auto]");'));
92
+$group[] = & $form->createElement('radio', 'password_auto', get_lang('Password'), get_lang('AutoGeneratePassword').'<br />', 1);
93
+$group[] = & $form->createElement('radio', 'password_auto', 'id="radio_user_password"', null, 0);
94
+$group[] = & $form->createElement('password', 'password', null, array('onkeydown' => 'javascript: password_switch_radio_button(document.user_add,"password[password_auto]");'));
95 95
 $form->addGroup($group, 'password', get_lang('Password'), '');
96 96
 
97 97
 // Send email
98 98
 $group = array();
99
-$group[] =& $form->createElement('radio', 'send_mail', null, get_lang('Yes'), 1);
100
-$group[] =& $form->createElement('radio', 'send_mail', null, get_lang('No'), 0);
99
+$group[] = & $form->createElement('radio', 'send_mail', null, get_lang('Yes'), 1);
100
+$group[] = & $form->createElement('radio', 'send_mail', null, get_lang('No'), 0);
101 101
 $form->addGroup($group, 'mail', get_lang('SendMailToNewUser'), '&nbsp;');
102 102
 
103 103
 // Set default values
@@ -108,7 +108,7 @@  discard block
 block discarded – undo
108 108
 
109 109
 $form->setDefaults($defaults);
110 110
 // Submit button
111
-$select_level = array ();
111
+$select_level = array();
112 112
 $html_results_enabled[] = $form->addButtonUpdate(get_lang('Update'), 'submit', true);
113 113
 $form->addGroup($html_results_enabled);
114 114
 // Validate form
@@ -169,17 +169,17 @@  discard block
 block discarded – undo
169 169
 			}
170 170
 
171 171
 			$emailbody = get_lang('Dear')." ".stripslashes(api_get_person_name($userInfo['firstname'], $userInfo['lastname'])).",\n\n".
172
-                get_lang('YouAreReg')." ". api_get_setting('siteName') ." ".get_lang('WithTheFollowingSettings')."\n\n".
173
-                get_lang('Username')." : ". $username ."\n". get_lang('Pass')." : ".stripslashes($password)."\n\n" .
174
-                get_lang('Address') ." ". api_get_setting('siteName') ." ".
175
-                get_lang('Is') ." : ".$portal_url."\n\n".
176
-                get_lang('Problem'). "\n\n".
172
+                get_lang('YouAreReg')." ".api_get_setting('siteName')." ".get_lang('WithTheFollowingSettings')."\n\n".
173
+                get_lang('Username')." : ".$username."\n".get_lang('Pass')." : ".stripslashes($password)."\n\n".
174
+                get_lang('Address')." ".api_get_setting('siteName')." ".
175
+                get_lang('Is')." : ".$portal_url."\n\n".
176
+                get_lang('Problem')."\n\n".
177 177
                 get_lang('SignatureFormula').",\n\n".
178 178
                 api_get_person_name(api_get_setting('administratorName'), api_get_setting('administratorSurname'))."\n".
179
-                get_lang('Manager'). " ".
179
+                get_lang('Manager')." ".
180 180
                 api_get_setting('siteName')."\nT. ".
181
-                api_get_setting('administratorTelephone')."\n" .
182
-                get_lang('Email') ." : ".api_get_setting('emailAdministrator');
181
+                api_get_setting('administratorTelephone')."\n".
182
+                get_lang('Email')." : ".api_get_setting('emailAdministrator');
183 183
 
184 184
 			api_mail_html(
185 185
                 api_get_person_name($userInfo['firstname'], $userInfo['lastname'], null, PERSON_NAME_EMAIL_ADDRESS),
Please login to merge, or discard this patch.
main/mySpace/company_reports_resumed.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -89,15 +89,15 @@  discard block
 block discarded – undo
89 89
 if (api_is_student_boss()) {
90 90
     $actions .= Display::url(
91 91
         Display::return_icon('stats.png', get_lang('MyStats'), '', ICON_SIZE_MEDIUM),
92
-        api_get_path(WEB_CODE_PATH) . "auth/my_progress.php"
92
+        api_get_path(WEB_CODE_PATH)."auth/my_progress.php"
93 93
     );
94 94
     $actions .= Display::url(
95 95
         Display::return_icon('user.png', get_lang('Students'), array(), ICON_SIZE_MEDIUM),
96
-        api_get_path(WEB_CODE_PATH) . "mySpace/student.php"
96
+        api_get_path(WEB_CODE_PATH)."mySpace/student.php"
97 97
     );
98 98
     $actions .= Display::url(
99 99
         Display::return_icon("statistics.png", get_lang("CompanyReport"), array(), ICON_SIZE_MEDIUM),
100
-        api_get_path(WEB_CODE_PATH) . "mySpace/company_reports.php"
100
+        api_get_path(WEB_CODE_PATH)."mySpace/company_reports.php"
101 101
     );
102 102
     $actions .= Display::url(
103 103
         Display::return_icon(
@@ -106,7 +106,7 @@  discard block
 block discarded – undo
106 106
             [],
107 107
             ICON_SIZE_MEDIUM
108 108
         ),
109
-        api_get_path(WEB_CODE_PATH) . "gradebook/certificate_report.php"
109
+        api_get_path(WEB_CODE_PATH)."gradebook/certificate_report.php"
110 110
     );
111 111
 }
112 112
 
@@ -119,7 +119,7 @@  discard block
 block discarded – undo
119 119
 if (!api_is_student_boss()) {
120 120
     $content .= Display::url(
121 121
         get_lang("CompanyReport"),
122
-        api_get_path(WEB_CODE_PATH) . "mySpace/company_reports.php",
122
+        api_get_path(WEB_CODE_PATH)."mySpace/company_reports.php",
123 123
         array(
124 124
             'class' => 'btn btn-success'
125 125
         )
@@ -127,7 +127,7 @@  discard block
 block discarded – undo
127 127
 }
128 128
 
129 129
 $content .= '</div>';
130
-$content .= '<h1 class="page-header">' . get_lang('CompanyReportResumed') . '</h1>';
130
+$content .= '<h1 class="page-header">'.get_lang('CompanyReportResumed').'</h1>';
131 131
 $content .= Display::grid_html('user_course_report');
132 132
 
133 133
 $tpl = new Template($tool_name);
Please login to merge, or discard this patch.
main/mySpace/session.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -16,7 +16,7 @@  discard block
 block discarded – undo
16 16
 
17 17
 api_block_anonymous_users();
18 18
 $htmlHeadXtra[] = api_get_jqgrid_js();
19
-$interbreadcrumb[] = array ("url" => "index.php", "name" => get_lang('MySpace'));
19
+$interbreadcrumb[] = array("url" => "index.php", "name" => get_lang('MySpace'));
20 20
 Display::display_header(get_lang('Sessions'));
21 21
 
22 22
 $export_csv = false;
@@ -118,10 +118,10 @@  discard block
 block discarded – undo
118 118
 // Column config
119 119
 $columnModel = array(
120 120
     array('name'=>'name', 'index'=>'name', 'width'=>'255', 'align'=>'left'),
121
-    array('name'=>'date', 'index'=>'date', 'width'=>'150', 'align'=>'left','sortable'=>'false'),
122
-    array('name'=>'course_per_session', 'index'=>'course_per_session', 'width'=>'150','sortable'=>'false'),
123
-    array('name'=>'student_per_session', 'index'=>'student_per_session', 'width'=>'100','sortable'=>'false'),
124
-    array('name'=>'details', 'index'=>'details', 'width'=>'100','sortable'=>'false')
121
+    array('name'=>'date', 'index'=>'date', 'width'=>'150', 'align'=>'left', 'sortable'=>'false'),
122
+    array('name'=>'course_per_session', 'index'=>'course_per_session', 'width'=>'150', 'sortable'=>'false'),
123
+    array('name'=>'student_per_session', 'index'=>'student_per_session', 'width'=>'100', 'sortable'=>'false'),
124
+    array('name'=>'details', 'index'=>'details', 'width'=>'100', 'sortable'=>'false')
125 125
 );
126 126
 
127 127
 $extraParams = array(
Please login to merge, or discard this patch.