Completed
Push — 1.11.x ( 79bd65...73103f )
by José
30:45
created
main/gradebook/gradebook_add_user.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -14,11 +14,11 @@  discard block
 block discarded – undo
14 14
 api_block_anonymous_users();
15 15
 GradebookUtils::block_students();
16 16
 
17
-$evaluation= Evaluation :: load($_GET['selecteval']);
17
+$evaluation = Evaluation :: load($_GET['selecteval']);
18 18
 $newstudents = $evaluation[0]->get_not_subscribed_students();
19 19
 
20 20
 if (count($newstudents) == '0') {
21
-	header('Location: gradebook_view_result.php?nouser=&selecteval=' . Security::remove_XSS($_GET['selecteval']).'&'.api_get_cidreq());
21
+	header('Location: gradebook_view_result.php?nouser=&selecteval='.Security::remove_XSS($_GET['selecteval']).'&'.api_get_cidreq());
22 22
 	exit;
23 23
 }
24 24
 $add_user_form = new EvalForm(
@@ -65,16 +65,16 @@  discard block
 block discarded – undo
65 65
     }
66 66
 }
67 67
 
68
-$interbreadcrumb[]= array ('url' => Security::remove_XSS($_SESSION['gradebook_dest']),'name' => get_lang('Gradebook'));
69
-$interbreadcrumb[]= array(
70
-	'url' => 'gradebook_view_result.php?selecteval=' .Security::remove_XSS($_GET['selecteval']).'&'.api_get_cidreq(),
68
+$interbreadcrumb[] = array('url' => Security::remove_XSS($_SESSION['gradebook_dest']), 'name' => get_lang('Gradebook'));
69
+$interbreadcrumb[] = array(
70
+	'url' => 'gradebook_view_result.php?selecteval='.Security::remove_XSS($_GET['selecteval']).'&'.api_get_cidreq(),
71 71
 	'name' => get_lang('ViewResult')
72 72
 );
73 73
 Display :: display_header(get_lang('AddUserToEval'));
74
-if (isset ($_GET['erroroneuser'])){
75
-	Display :: display_warning_message(get_lang('AtLeastOneUser'),false);
74
+if (isset ($_GET['erroroneuser'])) {
75
+	Display :: display_warning_message(get_lang('AtLeastOneUser'), false);
76 76
 }
77
-DisplayGradebook :: display_header_result($evaluation[0], null, 0,0);
77
+DisplayGradebook :: display_header_result($evaluation[0], null, 0, 0);
78 78
 echo '<div class="main">';
79 79
 echo $add_user_form->toHtml();
80 80
 echo '</div>';
Please login to merge, or discard this patch.
main/gradebook/get_badges.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -33,7 +33,7 @@  discard block
 block discarded – undo
33 33
 foreach ($userSkills as $skill) {
34 34
     $skillId = current($skill);
35 35
 
36
-    $assertionUrl = api_get_path(WEB_CODE_PATH) . "badge/assertion.php?";
36
+    $assertionUrl = api_get_path(WEB_CODE_PATH)."badge/assertion.php?";
37 37
     $assertionUrl .= http_build_query(array(
38 38
         'user' => $userId,
39 39
         'skill' => $skillId,
@@ -51,7 +51,7 @@  discard block
 block discarded – undo
51 51
     $backpack = $configBackpack;
52 52
 }
53 53
 
54
-$htmlHeadXtra[] = '<script src="' . $backpack . 'issuer.js"></script>';
54
+$htmlHeadXtra[] = '<script src="'.$backpack.'issuer.js"></script>';
55 55
 
56 56
 $tpl = new Template(get_lang('Badges'), false, false);
57 57
 
@@ -59,7 +59,7 @@  discard block
 block discarded – undo
59 59
     'content',
60 60
     "<script>
61 61
     $(document).on('ready', function (){ 
62
-        OpenBadges.issue_no_modal(" . json_encode($assertions) . "); 
62
+        OpenBadges.issue_no_modal(" . json_encode($assertions)."); 
63 63
     });
64 64
     </script>"
65 65
 );
Please login to merge, or discard this patch.
main/session/add_courses_to_session.php 1 patch
Spacing   +19 added lines, -19 removed lines patch added patch discarded remove patch
@@ -24,7 +24,7 @@  discard block
 block discarded – undo
24 24
 
25 25
 // setting breadcrumbs
26 26
 //$interbreadcrumb[] = array('url' => 'index.php', 'name' => get_lang('PlatformAdmin'));
27
-$interbreadcrumb[] = array('url' => 'session_list.php','name' => get_lang('SessionList'));
27
+$interbreadcrumb[] = array('url' => 'session_list.php', 'name' => get_lang('SessionList'));
28 28
 $interbreadcrumb[] = array('url' => "resume_session.php?id_session=".$sessionId, "name" => get_lang('SessionOverview'));
29 29
 
30 30
 // Database Table Definitions
@@ -35,10 +35,10 @@  discard block
 block discarded – undo
35 35
 $tbl_course = Database::get_main_table(TABLE_MAIN_COURSE);
36 36
 
37 37
 // setting the name of the tool
38
-$tool_name= get_lang('SubscribeCoursesToSession');
38
+$tool_name = get_lang('SubscribeCoursesToSession');
39 39
 
40 40
 $add_type = 'multiple';
41
-if (isset($_GET['add_type']) && $_GET['add_type']!=''){
41
+if (isset($_GET['add_type']) && $_GET['add_type'] != '') {
42 42
     $add_type = Security::remove_XSS($_REQUEST['add_type']);
43 43
 }
44 44
 
@@ -124,18 +124,18 @@  discard block
 block discarded – undo
124 124
 $nosessionCourses = $sessionCourses = array();
125 125
 if ($ajax_search) {
126 126
 
127
-    $sql="SELECT course.id, code, title, visual_code, session_id
127
+    $sql = "SELECT course.id, code, title, visual_code, session_id
128 128
 			FROM $tbl_course course
129 129
 			INNER JOIN $tbl_session_rel_course session_rel_course
130 130
             ON
131 131
                 course.id = session_rel_course.c_id AND
132 132
                 session_rel_course.session_id = ".intval($sessionId)."
133
-			ORDER BY ".(sizeof($courses)?"(code IN(".implode(',', $courses).")) DESC,":"")." title";
133
+			ORDER BY ".(sizeof($courses) ? "(code IN(".implode(',', $courses).")) DESC," : "")." title";
134 134
 
135 135
     if (api_is_multiple_url_enabled()) {
136 136
         $tbl_course_rel_access_url = Database::get_main_table(TABLE_MAIN_ACCESS_URL_REL_COURSE);
137 137
         $access_url_id = api_get_current_access_url_id();
138
-        if ($access_url_id != -1){
138
+        if ($access_url_id != -1) {
139 139
             $sql = "SELECT course.id, code, title, visual_code, session_id
140 140
                     FROM $tbl_course course
141 141
                     INNER JOIN $tbl_session_rel_course session_rel_course
@@ -144,7 +144,7 @@  discard block
 block discarded – undo
144 144
                         INNER JOIN $tbl_course_rel_access_url url_course
145 145
                         ON (url_course.c_id = course.id)
146 146
                     WHERE access_url_id = $access_url_id
147
-                    ORDER BY ".(sizeof($courses)?"(code IN(".implode(',',$courses).")) DESC,":"")." title";
147
+                    ORDER BY ".(sizeof($courses) ? "(code IN(".implode(',', $courses).")) DESC," : "")." title";
148 148
         }
149 149
     }
150 150
 
@@ -152,7 +152,7 @@  discard block
 block discarded – undo
152 152
     $Courses = Database::store_result($result);
153 153
 
154 154
     foreach ($Courses as $course) {
155
-        $sessionCourses[$course['id']] = $course ;
155
+        $sessionCourses[$course['id']] = $course;
156 156
     }
157 157
 } else {
158 158
     $sql = "SELECT course.id, code, title, visual_code, session_id
@@ -161,12 +161,12 @@  discard block
 block discarded – undo
161 161
             ON
162 162
                 course.id = session_rel_course.c_id AND
163 163
                 session_rel_course.session_id = ".intval($sessionId)."
164
-			ORDER BY ".(sizeof($courses)?"(code IN(".implode(',',$courses).")) DESC,":"")." title";
164
+			ORDER BY ".(sizeof($courses) ? "(code IN(".implode(',', $courses).")) DESC," : "")." title";
165 165
 
166 166
     if (api_is_multiple_url_enabled()) {
167 167
         $tbl_course_rel_access_url = Database::get_main_table(TABLE_MAIN_ACCESS_URL_REL_COURSE);
168 168
         $access_url_id = api_get_current_access_url_id();
169
-        if ($access_url_id != -1){
169
+        if ($access_url_id != -1) {
170 170
             $sql = "SELECT course.id, code, title, visual_code, session_id
171 171
                     FROM $tbl_course course
172 172
                     LEFT JOIN $tbl_session_rel_course session_rel_course
@@ -176,16 +176,16 @@  discard block
 block discarded – undo
176 176
                     INNER JOIN $tbl_course_rel_access_url url_course
177 177
                     ON (url_course.c_id = course.id)
178 178
                     WHERE access_url_id = $access_url_id
179
-                    ORDER BY ".(sizeof($courses)?"(code IN(".implode(',',$courses).")) DESC,":"")." title";
179
+                    ORDER BY ".(sizeof($courses) ? "(code IN(".implode(',', $courses).")) DESC," : "")." title";
180 180
         }
181 181
     }
182 182
     $result = Database::query($sql);
183 183
     $Courses = Database::store_result($result);
184 184
     foreach ($Courses as $course) {
185 185
         if ($course['session_id'] == $sessionId) {
186
-            $sessionCourses[$course['id']] = $course ;
186
+            $sessionCourses[$course['id']] = $course;
187 187
         } else {
188
-            $nosessionCourses[$course['id']] = $course ;
188
+            $nosessionCourses[$course['id']] = $course;
189 189
         }
190 190
     }
191 191
 }
@@ -207,7 +207,7 @@  discard block
 block discarded – undo
207 207
 
208 208
 unset($Courses);
209 209
 ?>
210
-<form name="formulaire" method="post" action="<?php echo api_get_self(); ?>?page=<?php echo $page; ?>&id_session=<?php echo $sessionId; ?><?php if(!empty($_GET['add'])) echo '&add=true' ; ?>" style="margin:0px;" <?php if($ajax_search){echo ' onsubmit="valide();"';}?>>
210
+<form name="formulaire" method="post" action="<?php echo api_get_self(); ?>?page=<?php echo $page; ?>&id_session=<?php echo $sessionId; ?><?php if (!empty($_GET['add'])) echo '&add=true'; ?>" style="margin:0px;" <?php if ($ajax_search) {echo ' onsubmit="valide();"'; }?>>
211 211
     <legend><?php echo $tool_name.' ('.$session_info['name'].')'; ?></legend>
212 212
     <input type="hidden" name="formSent" value="1" />
213 213
 
@@ -230,7 +230,7 @@  discard block
 block discarded – undo
230 230
                 <div id="ajax_list_courses_multiple">
231 231
                     <select id="origin" name="NoSessionCoursesList[]" multiple="multiple" size="20" class="form-control">
232 232
                         <?php foreach ($nosessionCourses as $enreg) { ?>
233
-                            <option value="<?php echo $enreg['id']; ?>" <?php echo 'title="'.htmlspecialchars($enreg['title'].' ('.$enreg['visual_code'].')',ENT_QUOTES).'"'; if(in_array($enreg['code'],$CourseList)) echo 'selected="selected"'; ?>>
233
+                            <option value="<?php echo $enreg['id']; ?>" <?php echo 'title="'.htmlspecialchars($enreg['title'].' ('.$enreg['visual_code'].')', ENT_QUOTES).'"'; if (in_array($enreg['code'], $CourseList)) echo 'selected="selected"'; ?>>
234 234
                                 <?php echo $enreg['title'].' ('.$enreg['visual_code'].')'; ?>
235 235
                             </option>
236 236
                         <?php } ?>
@@ -242,7 +242,7 @@  discard block
 block discarded – undo
242 242
             ?>
243 243
         </div>
244 244
         <div class="col-md-4">
245
-            <?php if($add_type == 'multiple') { ?>
245
+            <?php if ($add_type == 'multiple') { ?>
246 246
                 <div class="code-course">
247 247
                     <?php echo get_lang('FirstLetterCourse'); ?> :
248 248
 
@@ -250,7 +250,7 @@  discard block
 block discarded – undo
250 250
                         <option value="%">--</option>
251 251
                         <?php
252 252
                         echo Display :: get_alphabet_options();
253
-                        echo Display :: get_numeric_options(0,9,'');
253
+                        echo Display :: get_numeric_options(0, 9, '');
254 254
                         ?>
255 255
                     </select>
256 256
                 </div>
@@ -306,9 +306,9 @@  discard block
 block discarded – undo
306 306
             <select id='destination' name="SessionCoursesList[]" multiple="multiple" size="20" class="form-control">
307 307
 
308 308
                 <?php
309
-                foreach($sessionCourses as $enreg) {
309
+                foreach ($sessionCourses as $enreg) {
310 310
                     ?>
311
-                    <option value="<?php echo $enreg['id']; ?>" title="<?php echo htmlspecialchars($enreg['title'].' ('.$enreg['visual_code'].')',ENT_QUOTES); ?>">
311
+                    <option value="<?php echo $enreg['id']; ?>" title="<?php echo htmlspecialchars($enreg['title'].' ('.$enreg['visual_code'].')', ENT_QUOTES); ?>">
312 312
                         <?php echo $enreg['title'].' ('.$enreg['visual_code'].')'; ?>
313 313
                     </option>
314 314
                 <?php
Please login to merge, or discard this patch.
main/social/group_add.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -38,9 +38,9 @@
 block discarded – undo
38 38
 $nameTools = get_lang('AddGroup');
39 39
 $this_section = SECTION_SOCIAL;
40 40
 
41
-$interbreadcrumb[]= array ('url' =>'home.php','name' => get_lang('Social'));
42
-$interbreadcrumb[]= array ('url' =>'groups.php','name' => get_lang('Groups'));
43
-$interbreadcrumb[]= array ('url' =>'#','name' => $nameTools);
41
+$interbreadcrumb[] = array('url' =>'home.php', 'name' => get_lang('Social'));
42
+$interbreadcrumb[] = array('url' =>'groups.php', 'name' => get_lang('Groups'));
43
+$interbreadcrumb[] = array('url' =>'#', 'name' => $nameTools);
44 44
 
45 45
 $social_avatar_block = SocialManager::show_social_avatar_block('group_add');
46 46
 $social_menu_block = SocialManager::show_social_menu('group_add');
Please login to merge, or discard this patch.
main/messages/outbox.php 1 patch
Spacing   +24 added lines, -24 removed lines patch added patch discarded remove patch
@@ -9,11 +9,11 @@  discard block
 block discarded – undo
9 9
 api_block_anonymous_users();
10 10
 
11 11
 if (isset($_GET['messages_page_nr'])) {
12
-	if (api_get_setting('allow_social_tool')=='true' &&
13
-        api_get_setting('allow_message_tool')=='true'
12
+	if (api_get_setting('allow_social_tool') == 'true' &&
13
+        api_get_setting('allow_message_tool') == 'true'
14 14
     ) {
15 15
 		$social_link = '';
16
-		if ($_REQUEST['f']=='social') {
16
+		if ($_REQUEST['f'] == 'social') {
17 17
 			$social_link = '&f=social';
18 18
 		}
19 19
 		header('Location:outbox.php?pager='.Security::remove_XSS($_GET['messages_page_nr']).$social_link.'');
@@ -51,46 +51,46 @@  discard block
 block discarded – undo
51 51
 */
52 52
 if (isset($_GET['f']) && $_GET['f'] === 'social') {
53 53
 	$this_section = SECTION_SOCIAL;
54
-	$interbreadcrumb[]= array ('url' => api_get_path(WEB_PATH).'main/social/home.php','name' => get_lang('Social'));
55
-	$interbreadcrumb[]= array ('url' => '#','name' => get_lang('Outbox'));
54
+	$interbreadcrumb[] = array('url' => api_get_path(WEB_PATH).'main/social/home.php', 'name' => get_lang('Social'));
55
+	$interbreadcrumb[] = array('url' => '#', 'name' => get_lang('Outbox'));
56 56
 } else {
57 57
 	$this_section = SECTION_MYPROFILE;
58
-	$interbreadcrumb[]= array ('url' => api_get_path(WEB_PATH).'main/auth/profile.php','name' => get_lang('Profile'));
59
-	$interbreadcrumb[]= array ('url' => '#','name' => get_lang('Outbox'));
58
+	$interbreadcrumb[] = array('url' => api_get_path(WEB_PATH).'main/auth/profile.php', 'name' => get_lang('Profile'));
59
+	$interbreadcrumb[] = array('url' => '#', 'name' => get_lang('Outbox'));
60 60
 }
61 61
 
62 62
 $actions = '';
63 63
 if (api_get_setting('extended_profile') == 'true') {
64 64
     if (api_get_setting('allow_social_tool') == 'true' && api_get_setting('allow_message_tool') == 'true') {
65
-        $actions .=  '<a href="'.api_get_path(WEB_PATH).'main/social/profile.php">'.
65
+        $actions .= '<a href="'.api_get_path(WEB_PATH).'main/social/profile.php">'.
66 66
             Display::return_icon('shared_profile.png', get_lang('ViewSharedProfile')).'</a>';
67 67
     }
68 68
     if (api_get_setting('allow_message_tool') == 'true') {
69 69
         //echo '<a href="'.api_get_path(WEB_PATH).'main/messages/inbox.php">'.Display::return_icon('inbox.png').' '.get_lang('Messages').'</a>';
70
-        $actions .=  '<a href="'.api_get_path(WEB_PATH).'main/messages/new_message.php">'.
71
-            Display::return_icon('message_new.png',get_lang('ComposeMessage')).'</a>';
72
-        $actions .=  '<a href="'.api_get_path(WEB_PATH).'main/messages/inbox.php">'.
73
-            Display::return_icon('inbox.png',get_lang('Inbox')).'</a>';
74
-        $actions .=  '<a href="'.api_get_path(WEB_PATH).'main/messages/outbox.php">'.
75
-            Display::return_icon('outbox.png',get_lang('Outbox')).'</a>';
70
+        $actions .= '<a href="'.api_get_path(WEB_PATH).'main/messages/new_message.php">'.
71
+            Display::return_icon('message_new.png', get_lang('ComposeMessage')).'</a>';
72
+        $actions .= '<a href="'.api_get_path(WEB_PATH).'main/messages/inbox.php">'.
73
+            Display::return_icon('inbox.png', get_lang('Inbox')).'</a>';
74
+        $actions .= '<a href="'.api_get_path(WEB_PATH).'main/messages/outbox.php">'.
75
+            Display::return_icon('outbox.png', get_lang('Outbox')).'</a>';
76 76
     }
77 77
 }
78 78
 
79 79
 
80
-$info_delete_outbox =array();
81
-$info_delete_outbox = isset($_GET['form_delete_outbox']) ? explode(',',$_GET['form_delete_outbox']) : '';
80
+$info_delete_outbox = array();
81
+$info_delete_outbox = isset($_GET['form_delete_outbox']) ? explode(',', $_GET['form_delete_outbox']) : '';
82 82
 $count_delete_outbox = count($info_delete_outbox) - 1;
83 83
 
84 84
 if (isset($info_delete_outbox[0]) && trim($info_delete_outbox[0]) == 'delete') {
85 85
     for ($i = 1; $i <= $count_delete_outbox; $i++) {
86
-		MessageManager::delete_message_by_user_sender(api_get_user_id(),$info_delete_outbox[$i]);
86
+		MessageManager::delete_message_by_user_sender(api_get_user_id(), $info_delete_outbox[$i]);
87 87
 	}
88
-    $message_box=get_lang('SelectedMessagesDeleted').
88
+    $message_box = get_lang('SelectedMessagesDeleted').
89 89
         '&nbsp
90 90
         <br><a href="../social/index.php?#remote-tab-3">'.
91 91
         get_lang('BackToOutbox').
92 92
         '</a>';
93
-    Display::display_normal_message(api_xml_http_response_encode($message_box),false);
93
+    Display::display_normal_message(api_xml_http_response_encode($message_box), false);
94 94
     exit;
95 95
 }
96 96
 
@@ -117,23 +117,23 @@  discard block
 block discarded – undo
117 117
 }
118 118
 //MAIN CONTENT
119 119
 if ($action == 'delete') {
120
-    $delete_list_id=array();
120
+    $delete_list_id = array();
121 121
     if (isset($_POST['out'])) {
122
-        $delete_list_id=$_POST['out'];
122
+        $delete_list_id = $_POST['out'];
123 123
     }
124 124
     if (isset($_POST['id'])) {
125
-        $delete_list_id=$_POST['id'];
125
+        $delete_list_id = $_POST['id'];
126 126
     }
127 127
     for ($i = 0; $i < count($delete_list_id); $i++) {
128 128
         MessageManager::delete_message_by_user_sender(api_get_user_id(), $delete_list_id[$i]);
129 129
     }
130
-    $delete_list_id=array();
130
+    $delete_list_id = array();
131 131
     $social_right_content .= MessageManager::outbox_display($keyword);
132 132
 } elseif ($action == 'deleteone') {
133 133
     $delete_list_id = array();
134 134
     $id = Security::remove_XSS($_GET['id']);
135 135
     MessageManager::delete_message_by_user_sender(api_get_user_id(), $id);
136
-    $delete_list_id=array();
136
+    $delete_list_id = array();
137 137
     $social_right_content .= MessageManager::outbox_display($keyword);
138 138
 } else {
139 139
     $social_right_content .= MessageManager::outbox_display($keyword);
Please login to merge, or discard this patch.
main/course_home/3column.php 1 patch
Spacing   +12 added lines, -12 removed lines patch added patch discarded remove patch
@@ -126,14 +126,14 @@  discard block
 block discarded – undo
126 126
         "</td>\n".
127 127
         "<td>\n".
128 128
         "<select name=\"image\">\n".
129
-        "<option selected>". $image. "</option>\n";
129
+        "<option selected>".$image."</option>\n";
130 130
 
131 131
     if ($dir = @opendir($chemin)) {
132 132
         while ($file = readdir($dir)) {
133 133
             if ($file == '..' || $file == '.') {
134 134
                 unset($file);
135 135
             }
136
-            $content .= "<option>". $file. "</option>\n";
136
+            $content .= "<option>".$file."</option>\n";
137 137
         }
138 138
         closedir($dir);
139 139
     }
@@ -142,15 +142,15 @@  discard block
 block discarded – undo
142 142
         "</td>\n".
143 143
         "</tr>\n".
144 144
         "<tr>\n".
145
-        "<td>". get_lang('NameOfTheLink'). " : </td>\n".
146
-        "<td><input type=\"text\" name=\"name\" value=\"". $name. "\"></td>\n".
145
+        "<td>".get_lang('NameOfTheLink')." : </td>\n".
146
+        "<td><input type=\"text\" name=\"name\" value=\"".$name."\"></td>\n".
147 147
         "</tr>\n".
148 148
         "<tr>\n".
149 149
         "<td>Lien :</td>\n".
150
-        "<td><input type=\"text\" name=\"link\" value=\"". $link. "\"></td>\n".
150
+        "<td><input type=\"text\" name=\"link\" value=\"".$link."\"></td>\n".
151 151
         "</tr>\n".
152 152
         "<tr>\n".
153
-        "<td colspan=\"2\"><input type=\"submit\" name=\"submit\" value=\"". get_lang('Ok'). "\"></td>\n".
153
+        "<td colspan=\"2\"><input type=\"submit\" name=\"submit\" value=\"".get_lang('Ok')."\"></td>\n".
154 154
         "</tr>\n".
155 155
         "</form>\n".
156 156
         "</table>\n".
@@ -203,21 +203,21 @@  discard block
 block discarded – undo
203 203
         "<tr><td colspan=\"6\"><font color=\"#F66105\">\n".get_lang('CourseAdminOnly')."</font>
204 204
         </td></tr>\n";
205 205
     $content .= "<tr>\n<td colspan=\"6\">";
206
-    $content .=CourseHome::show_tool_3column('courseAdmin');
206
+    $content .= CourseHome::show_tool_3column('courseAdmin');
207 207
     $content .= "</td>\n</tr>\n";
208 208
 }
209 209
 
210 210
 /*	TOOLS FOR PLATFORM ADMIN ONLY */
211 211
 if (api_is_platform_admin() && api_is_allowed_to_edit(null, true) && !api_is_coach()) {
212
-    $content .=  "<tr>"."<td colspan=\"6\">".
212
+    $content .= "<tr>"."<td colspan=\"6\">".
213 213
         "<hr noshade size=\"1\" />".
214 214
         "</td>"."</tr>\n".
215 215
         "<tr>\n"."<td colspan=\"6\">\n".
216
-        "<font color=\"#F66105\" >". get_lang('PlatformAdminOnly'). "</font>\n".
216
+        "<font color=\"#F66105\" >".get_lang('PlatformAdminOnly')."</font>\n".
217 217
         "</td>\n"."</tr>\n";
218
-    $content .=  "<tr>\n<td colspan=\"6\">";
218
+    $content .= "<tr>\n<td colspan=\"6\">";
219 219
     $content .= CourseHome::show_tool_3column('platformAdmin');
220
-    $content .=  "</td>\n</tr>\n";
220
+    $content .= "</td>\n</tr>\n";
221 221
 }
222 222
 
223
-$content .=  "</table>\n";
223
+$content .= "</table>\n";
Please login to merge, or discard this patch.
main/course_home/2column.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -56,7 +56,7 @@  discard block
 block discarded – undo
56 56
     // Show message to confirm that a tool it to be hidden from available tools
57 57
     // visibility 0,1->2
58 58
     if (!empty($_GET['askDelete'])) {
59
-        $content .='<div id="toolhide">'.get_lang('DelLk').'<br />&nbsp;&nbsp;&nbsp;
59
+        $content .= '<div id="toolhide">'.get_lang('DelLk').'<br />&nbsp;&nbsp;&nbsp;
60 60
             <a href="'.api_get_self().'">'.get_lang('No').'</a>&nbsp;|&nbsp;
61 61
             <a href="'.api_get_self().'?delete=yes&id='.intval($_GET['id']).'">'.get_lang('Yes').'</a>
62 62
         </div>';
@@ -92,7 +92,7 @@  discard block
 block discarded – undo
92 92
 
93 93
     /*	INACTIVE TOOLS - HIDDEN (GREY) LINKS */
94 94
 
95
-    $content .=	"<tr><td colspan=\"4\"><hr style='color:\"#4171B5\"' noshade=\"noshade\" size=\"1\" /></td></tr>\n".
95
+    $content .= "<tr><td colspan=\"4\"><hr style='color:\"#4171B5\"' noshade=\"noshade\" size=\"1\" /></td></tr>\n".
96 96
             "<tr>\n".
97 97
             "<td colspan=\"4\">\n".
98 98
             "<div style=\"margin-bottom: 10px;\"><font color=\"#808080\">\n".get_lang('InLnk')."</font></div>".
@@ -101,14 +101,14 @@  discard block
 block discarded – undo
101 101
 
102 102
     $content .= CourseHome::show_tool_2column(TOOL_PUBLIC_BUT_HIDDEN);
103 103
 
104
-    $content .=	"</table>";
105
-    $content .=	"</div> ";
104
+    $content .= "</table>";
105
+    $content .= "</div> ";
106 106
 }
107 107
 
108 108
 /*	Tools for platform admin only */
109 109
 
110 110
 if (api_is_platform_admin() && api_is_allowed_to_edit(null, true) && !api_is_coach()) {
111
-    $content .='<div class="platformadminview">
111
+    $content .= '<div class="platformadminview">
112 112
     <span class="viewcaption">'.get_lang('PlatformAdminOnly').'</span>
113 113
     <table width="100%">
114 114
         '.CourseHome::show_tool_2column(TOOL_PLATFORM_ADMIN).'
Please login to merge, or discard this patch.
main/course_home/vertical_activity.php 1 patch
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -37,7 +37,7 @@  discard block
 block discarded – undo
37 37
     // Show message to confirm that a tool it to be hidden from available tools
38 38
     // visibility 0,1->2
39 39
     if (!empty($_GET['askDelete'])) {
40
-        $content .='<div id="toolhide">'.get_lang('DelLk').'<br />&nbsp;&nbsp;&nbsp;
40
+        $content .= '<div id="toolhide">'.get_lang('DelLk').'<br />&nbsp;&nbsp;&nbsp;
41 41
             <a href="'.api_get_self().'">'.get_lang('No').'</a>&nbsp;|&nbsp;
42 42
             <a href="'.api_get_self().'?delete=yes&id='.$id.'">'.get_lang('Yes').'</a>
43 43
         </div>';
@@ -55,14 +55,14 @@  discard block
 block discarded – undo
55 55
 
56 56
 // Start of tools for CourseAdmins (teachers/tutors)
57 57
 if (api_is_allowed_to_edit(null, true) && !api_is_coach()) {
58
-    $content .=  '<div class="courseadminview" style="border:0px; margin-top: 0px;padding:5px;">
58
+    $content .= '<div class="courseadminview" style="border:0px; margin-top: 0px;padding:5px;">
59 59
     <div class="normal-message" id="id_normal_message" style="display:none">';
60
-        $content .=  '<img src="'.api_get_path(WEB_PATH).'main/inc/lib/javascript/indicator.gif"/>&nbsp;&nbsp;';
61
-        $content .=  get_lang('PleaseStandBy');
60
+        $content .= '<img src="'.api_get_path(WEB_PATH).'main/inc/lib/javascript/indicator.gif"/>&nbsp;&nbsp;';
61
+        $content .= get_lang('PleaseStandBy');
62 62
 
63
-    $content .=  '</div>
63
+    $content .= '</div>
64 64
         <div class="confirmation-message" id="id_confirmation_message" style="display:none"></div></div>';
65
-    $content .=  '<div id="activity-3col">';
65
+    $content .= '<div id="activity-3col">';
66 66
 
67 67
     if (api_get_setting('show_session_data') == 'true' && $session_id > 0) {
68 68
         $content .= '<div class="courseadminview-activity-3col"><span class="viewcaption">'.get_lang('SessionData').'</span>
@@ -90,10 +90,10 @@  discard block
 block discarded – undo
90 90
         $content .= '<div class="courseadminview-activity-3col"><span class="viewcaption">'.get_lang('SessionData').'</span>
91 91
             <table width="100%">';
92 92
                 $content .= CourseHome::show_session_data($session_id);
93
-             $content .=  '</table></div>';
93
+             $content .= '</table></div>';
94 94
     }
95 95
 
96
-    $content .=  '<div class="Authoringview">';
96
+    $content .= '<div class="Authoringview">';
97 97
                 $my_list = CourseHome::get_tools_category(TOOL_STUDENT_VIEW);
98 98
                 $content .= CourseHome::show_tools_category($my_list);
99 99
     $content .= '</div>';
@@ -106,7 +106,7 @@  discard block
 block discarded – undo
106 106
         $order_tool_list = array();
107 107
         foreach ($my_list as $key => $new_tool) {
108 108
             $tool_name = CourseHome::translate_tool_name($new_tool);
109
-            $order_tool_list [$key]= $tool_name;
109
+            $order_tool_list [$key] = $tool_name;
110 110
         }
111 111
         natsort($order_tool_list);
112 112
         $my_temp_tool_array = array();
Please login to merge, or discard this patch.
main/course_description/listing.php 1 patch
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -11,18 +11,18 @@  discard block
 block discarded – undo
11 11
 api_protect_course_script(true);
12 12
 
13 13
 // display actions menu
14
-if (api_is_allowed_to_edit(null,true)) {
14
+if (api_is_allowed_to_edit(null, true)) {
15 15
     $categories = array();
16 16
     foreach ($default_description_titles as $id => $title) {
17 17
         $categories[$id] = $title;
18 18
     }
19 19
     $categories[ADD_BLOCK] = get_lang('NewBloc');
20 20
 
21
-	$i=1;
21
+	$i = 1;
22 22
 	echo '<div class="actions" style="margin-bottom:30px">';
23 23
 	ksort($categories);
24 24
 	foreach ($categories as $id => $title) {
25
-		if ($i==ADD_BLOCK) {
25
+		if ($i == ADD_BLOCK) {
26 26
 			echo '<a href="index.php?'.api_get_cidreq().'&action=add">'.
27 27
                 Display::return_icon($default_description_icon[$id], $title, '', ICON_SIZE_MEDIUM).'</a>';
28 28
 			break;
@@ -43,7 +43,7 @@  discard block
 block discarded – undo
43 43
             <tr>
44 44
                 <td><h3>'.get_lang('ThematicAdvanceHistory').'</h3></td>
45 45
                 <td align="right"><a href="index.php?action=listing">'.
46
-                Display::return_icon('info.png',get_lang('BackToCourseDesriptionList'), array('style'=>'vertical-align:middle;'),ICON_SIZE_SMALL).' '.get_lang('BackToCourseDesriptionList').'</a></td></tr></table></div>';
46
+                Display::return_icon('info.png', get_lang('BackToCourseDesriptionList'), array('style'=>'vertical-align:middle;'), ICON_SIZE_SMALL).' '.get_lang('BackToCourseDesriptionList').'</a></td></tr></table></div>';
47 47
 }
48 48
 
49 49
 $user_info = api_get_user_info();
@@ -52,21 +52,21 @@  discard block
 block discarded – undo
52 52
 	foreach ($descriptions as $id => $description) {
53 53
         if (!empty($description)) {
54 54
             $actions = '';
55
-            if (api_is_allowed_to_edit(null,true) && !$history) {
55
+            if (api_is_allowed_to_edit(null, true) && !$history) {
56 56
                 if (api_get_session_id() == $description['session_id']) {
57 57
                     $description['title'] = $description['title'].' '.api_get_session_image(api_get_session_id(), $user_info['status']);
58 58
 
59 59
                     // delete
60
-                    $actions .= '<a href="'.api_get_self().'?id='.$description['id'].'&'.api_get_cidreq_params(api_get_course_id(), $description['session_id']).'&action=delete&description_type='.$description['description_type'].'" onclick="javascript:if(!confirm(\''.addslashes(api_htmlentities(get_lang('ConfirmYourChoice'),ENT_QUOTES,api_get_system_encoding())).'\')) return false;">';
61
-                    $actions .= Display::return_icon('delete.png', get_lang('Delete'), array('style' => 'vertical-align:middle;float:right;'),ICON_SIZE_SMALL);
60
+                    $actions .= '<a href="'.api_get_self().'?id='.$description['id'].'&'.api_get_cidreq_params(api_get_course_id(), $description['session_id']).'&action=delete&description_type='.$description['description_type'].'" onclick="javascript:if(!confirm(\''.addslashes(api_htmlentities(get_lang('ConfirmYourChoice'), ENT_QUOTES, api_get_system_encoding())).'\')) return false;">';
61
+                    $actions .= Display::return_icon('delete.png', get_lang('Delete'), array('style' => 'vertical-align:middle;float:right;'), ICON_SIZE_SMALL);
62 62
                     $actions .= '</a> ';
63 63
 
64 64
                     // edit
65 65
                     $actions .= '<a href="'.api_get_self().'?id='.$description['id'].'&'.api_get_cidreq_params(api_get_course_id(), $description['session_id']).'&action=edit&description_type='.$description['description_type'].'">';
66
-                    $actions .= Display::return_icon('edit.png', get_lang('Edit'), array('style' => 'vertical-align:middle;float:right; padding-right:4px;'),ICON_SIZE_SMALL);
66
+                    $actions .= Display::return_icon('edit.png', get_lang('Edit'), array('style' => 'vertical-align:middle;float:right; padding-right:4px;'), ICON_SIZE_SMALL);
67 67
                     $actions .= '</a> ';
68 68
                 } else {
69
-                    $actions .= Display::return_icon('edit_na.png', get_lang('EditionNotAvailableFromSession'), array('style' => 'vertical-align:middle;float:right;'),ICON_SIZE_SMALL);
69
+                    $actions .= Display::return_icon('edit_na.png', get_lang('EditionNotAvailableFromSession'), array('style' => 'vertical-align:middle;float:right;'), ICON_SIZE_SMALL);
70 70
                 }
71 71
             }
72 72
             echo Display::panel(
Please login to merge, or discard this patch.