@@ -14,15 +14,15 @@ discard block |
||
14 | 14 | echo '<div class="actions">'; |
15 | 15 | if ($action == 'calendar_add') { |
16 | 16 | echo '<a href="index.php?'.api_get_cidreq().'&action=calendar_list&attendance_id='.$attendance_id.'">'. |
17 | - Display::return_icon('back.png',get_lang('AttendanceCalendar'),'',ICON_SIZE_MEDIUM).'</a>'; |
|
17 | + Display::return_icon('back.png', get_lang('AttendanceCalendar'), '', ICON_SIZE_MEDIUM).'</a>'; |
|
18 | 18 | } else { |
19 | 19 | echo '<a href="index.php?'.api_get_cidreq().'&action=attendance_sheet_list&attendance_id='.$attendance_id.'">'. |
20 | - Display::return_icon('back.png',get_lang('AttendanceSheet'),'',ICON_SIZE_MEDIUM).'</a>'; |
|
20 | + Display::return_icon('back.png', get_lang('AttendanceSheet'), '', ICON_SIZE_MEDIUM).'</a>'; |
|
21 | 21 | if (api_is_allowed_to_edit()) { |
22 | 22 | echo '<a href="index.php?'.api_get_cidreq().'&action=calendar_add&attendance_id='.$attendance_id.'">'. |
23 | - Display::return_icon('add.png',get_lang('AddDateAndTime'),'',ICON_SIZE_MEDIUM).'</a>'; |
|
23 | + Display::return_icon('add.png', get_lang('AddDateAndTime'), '', ICON_SIZE_MEDIUM).'</a>'; |
|
24 | 24 | echo '<a onclick="javascript:if(!confirm(\''.get_lang('AreYouSureToDeleteAllDates').'\')) return false;" href="index.php?'.api_get_cidreq().'&action=calendar_all_delete&attendance_id='.$attendance_id.'">'. |
25 | - Display::return_icon('clean.png',get_lang('CleanCalendar'),'',ICON_SIZE_MEDIUM).'</a>'; |
|
25 | + Display::return_icon('clean.png', get_lang('CleanCalendar'), '', ICON_SIZE_MEDIUM).'</a>'; |
|
26 | 26 | } |
27 | 27 | } |
28 | 28 | echo '</div>'; |
@@ -58,7 +58,7 @@ discard block |
||
58 | 58 | $form = new FormValidator( |
59 | 59 | 'attendance_calendar_add', |
60 | 60 | 'POST', |
61 | - 'index.php?action=calendar_add&attendance_id='.$attendance_id.'&' . api_get_cidreq(), |
|
61 | + 'index.php?action=calendar_add&attendance_id='.$attendance_id.'&'.api_get_cidreq(), |
|
62 | 62 | '' |
63 | 63 | ); |
64 | 64 | $form->addElement('header', get_lang('AddADateTime')); |
@@ -95,7 +95,7 @@ discard block |
||
95 | 95 | 'weekly' => get_lang('RepeatWeekly'), |
96 | 96 | 'monthlyByDate' => get_lang('RepeatMonthlyByDate') |
97 | 97 | ); |
98 | - $form->addElement('select', 'repeat_type', get_lang('RepeatType') , $a_repeat_type); |
|
98 | + $form->addElement('select', 'repeat_type', get_lang('RepeatType'), $a_repeat_type); |
|
99 | 99 | |
100 | 100 | $form->addElement('date_picker', 'end_date_time', get_lang('RepeatEnd'), array('form_name'=>'attendance_calendar_add')); |
101 | 101 | $defaults['end_date_time'] = date('Y-m-d'); |
@@ -131,7 +131,7 @@ discard block |
||
131 | 131 | $form = new FormValidator( |
132 | 132 | 'attendance_calendar_edit', |
133 | 133 | 'POST', |
134 | - 'index.php?action=calendar_edit&attendance_id=' . $attendance_id . '&calendar_id=' . $calendar_id . '&' . api_get_cidreq(), |
|
134 | + 'index.php?action=calendar_edit&attendance_id='.$attendance_id.'&calendar_id='.$calendar_id.'&'.api_get_cidreq(), |
|
135 | 135 | '' |
136 | 136 | ); |
137 | 137 | $form->addDateTimePicker('date_time', array(get_lang('Date')), array('form_name'=>'attendance_calendar_edit'), 5); |
@@ -147,7 +147,7 @@ discard block |
||
147 | 147 | get_lang('DateTime'), |
148 | 148 | null, |
149 | 149 | ICON_SIZE_MEDIUM |
150 | - ).' '.substr($calendar['date_time'], 0, strlen($calendar['date_time'])- 3) .' '; |
|
150 | + ).' '.substr($calendar['date_time'], 0, strlen($calendar['date_time']) - 3).' '; |
|
151 | 151 | |
152 | 152 | if (isset($calendar['groups']) && !empty($calendar['groups'])) { |
153 | 153 | foreach ($calendar['groups'] as $group) { |
@@ -12,7 +12,7 @@ discard block |
||
12 | 12 | |
13 | 13 | // error messages |
14 | 14 | if (isset($error)) { |
15 | - Display::display_error_message(get_lang('FormHasErrorsPleaseComplete'),false); |
|
15 | + Display::display_error_message(get_lang('FormHasErrorsPleaseComplete'), false); |
|
16 | 16 | } |
17 | 17 | |
18 | 18 | if (!isset($error)) { |
@@ -28,7 +28,7 @@ discard block |
||
28 | 28 | $form->addElement('hidden', 'sec_token', $token); |
29 | 29 | |
30 | 30 | $form->addText('title', get_lang('Title'), true); |
31 | -$form->applyFilter('title','html_filter'); |
|
31 | +$form->applyFilter('title', 'html_filter'); |
|
32 | 32 | $form->addHtmlEditor( |
33 | 33 | 'description', |
34 | 34 | get_lang('Description'), |
@@ -41,21 +41,21 @@ discard block |
||
41 | 41 | if ((api_get_session_id() != 0 && Gradebook::is_active()) || api_get_session_id() == 0) { |
42 | 42 | $form->addButtonAdvancedSettings('id_qualify'); |
43 | 43 | |
44 | - $form->addElement('html','<div id="id_qualify_options" style="display:none">'); |
|
44 | + $form->addElement('html', '<div id="id_qualify_options" style="display:none">'); |
|
45 | 45 | |
46 | 46 | // Qualify Attendance for gradebook option |
47 | - $form->addElement('checkbox', 'attendance_qualify_gradebook', '', get_lang('QualifyAttendanceGradebook'),'onclick="javascript: if(this.checked){document.getElementById(\'options_field\').style.display = \'block\';}else{document.getElementById(\'options_field\').style.display = \'none\';}"'); |
|
48 | - $form->addElement('html','<div id="options_field" style="display:none">'); |
|
47 | + $form->addElement('checkbox', 'attendance_qualify_gradebook', '', get_lang('QualifyAttendanceGradebook'), 'onclick="javascript: if(this.checked){document.getElementById(\'options_field\').style.display = \'block\';}else{document.getElementById(\'options_field\').style.display = \'none\';}"'); |
|
48 | + $form->addElement('html', '<div id="options_field" style="display:none">'); |
|
49 | 49 | |
50 | 50 | GradebookUtils::load_gradebook_select_in_tool($form); |
51 | 51 | |
52 | 52 | $form->addElement('text', 'attendance_qualify_title', get_lang('TitleColumnGradebook')); |
53 | 53 | $form->applyFilter('attendance_qualify_title', 'html_filter'); |
54 | - $form->addElement('text', 'attendance_weight', get_lang('QualifyWeight'),'value="0.00" Style="width:40px" onfocus="javascript: this.select();"'); |
|
54 | + $form->addElement('text', 'attendance_weight', get_lang('QualifyWeight'), 'value="0.00" Style="width:40px" onfocus="javascript: this.select();"'); |
|
55 | 55 | $form->applyFilter('attendance_weight', 'html_filter'); |
56 | - $form->addElement('html','</div>'); |
|
56 | + $form->addElement('html', '</div>'); |
|
57 | 57 | |
58 | - $form->addElement('html','</div>'); |
|
58 | + $form->addElement('html', '</div>'); |
|
59 | 59 | } |
60 | 60 | $form->addButtonCreate(get_lang('Save')); |
61 | 61 | $form->display(); |
@@ -113,7 +113,7 @@ discard block |
||
113 | 113 | $racine = api_get_path(SYS_PATH).'/'.$currentCourseID.'/images/'; |
114 | 114 | $chemin = $racine; |
115 | 115 | $name = $tool[1]; |
116 | - $image = $tool[3]; |
|
116 | + $image = $tool[3]; |
|
117 | 117 | |
118 | 118 | $content .= "<tr>\n". |
119 | 119 | "<td colspan=\"4\">\n". |
@@ -126,14 +126,14 @@ discard block |
||
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 |
||
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". |
@@ -208,21 +208,21 @@ discard block |
||
208 | 208 | "<tr><td colspan=\"6\"><font color=\"#F66105\">\n".get_lang('CourseAdminOnly')."</font> |
209 | 209 | </td></tr>\n"; |
210 | 210 | $content .= "<tr>\n<td colspan=\"6\">"; |
211 | - $content .=CourseHome::show_tool_3column('courseAdmin'); |
|
211 | + $content .= CourseHome::show_tool_3column('courseAdmin'); |
|
212 | 212 | $content .= "</td>\n</tr>\n"; |
213 | 213 | } |
214 | 214 | |
215 | 215 | /* TOOLS FOR PLATFORM ADMIN ONLY */ |
216 | 216 | if (api_is_platform_admin() && api_is_allowed_to_edit(null, true) && !api_is_coach()) { |
217 | - $content .= "<tr>"."<td colspan=\"6\">". |
|
217 | + $content .= "<tr>"."<td colspan=\"6\">". |
|
218 | 218 | "<hr noshade size=\"1\" />". |
219 | 219 | "</td>"."</tr>\n". |
220 | 220 | "<tr>\n"."<td colspan=\"6\">\n". |
221 | - "<font color=\"#F66105\" >". get_lang('PlatformAdminOnly'). "</font>\n". |
|
221 | + "<font color=\"#F66105\" >".get_lang('PlatformAdminOnly')."</font>\n". |
|
222 | 222 | "</td>\n"."</tr>\n"; |
223 | - $content .= "<tr>\n<td colspan=\"6\">"; |
|
223 | + $content .= "<tr>\n<td colspan=\"6\">"; |
|
224 | 224 | $content .= CourseHome::show_tool_3column('platformAdmin'); |
225 | - $content .= "</td>\n</tr>\n"; |
|
225 | + $content .= "</td>\n</tr>\n"; |
|
226 | 226 | } |
227 | 227 | |
228 | -$content .= "</table>\n"; |
|
228 | +$content .= "</table>\n"; |
@@ -38,7 +38,7 @@ discard block |
||
38 | 38 | // Show message to confirm that a tool it to be hidden from available tools |
39 | 39 | // visibility 0,1->2 |
40 | 40 | if (!empty($_GET['askDelete'])) { |
41 | - $content .='<div id="toolhide">'.get_lang('DelLk').'<br /> |
|
41 | + $content .= '<div id="toolhide">'.get_lang('DelLk').'<br /> |
|
42 | 42 | <a href="'.api_get_self().'">'.get_lang('No').'</a> | |
43 | 43 | <a href="'.api_get_self().'?delete=yes&id='.$id.'">'.get_lang('Yes').'</a> |
44 | 44 | </div>'; |
@@ -56,14 +56,14 @@ discard block |
||
56 | 56 | |
57 | 57 | // Start of tools for CourseAdmins (teachers/tutors) |
58 | 58 | if (api_is_allowed_to_edit(null, true) && !api_is_coach()) { |
59 | - $content .= '<div class="courseadminview" style="border:0px; margin-top: 0px;padding:5px;"> |
|
59 | + $content .= '<div class="courseadminview" style="border:0px; margin-top: 0px;padding:5px;"> |
|
60 | 60 | <div class="normal-message" id="id_normal_message" style="display:none">'; |
61 | - $content .= '<img src="'.api_get_path(WEB_PATH).'main/inc/lib/javascript/indicator.gif"/> '; |
|
62 | - $content .= get_lang('PleaseStandBy'); |
|
61 | + $content .= '<img src="'.api_get_path(WEB_PATH).'main/inc/lib/javascript/indicator.gif"/> '; |
|
62 | + $content .= get_lang('PleaseStandBy'); |
|
63 | 63 | |
64 | - $content .= '</div> |
|
64 | + $content .= '</div> |
|
65 | 65 | <div class="confirmation-message" id="id_confirmation_message" style="display:none"></div></div>'; |
66 | - $content .= '<div id="activity-3col">'; |
|
66 | + $content .= '<div id="activity-3col">'; |
|
67 | 67 | |
68 | 68 | if (api_get_setting('show_session_data') == 'true' && $session_id > 0) { |
69 | 69 | $content .= '<div class="courseadminview-activity-3col"><span class="viewcaption">'.get_lang('SessionData').'</span> |
@@ -91,10 +91,10 @@ discard block |
||
91 | 91 | $content .= '<div class="courseadminview-activity-3col"><span class="viewcaption">'.get_lang('SessionData').'</span> |
92 | 92 | <table width="100%">'; |
93 | 93 | $content .= CourseHome::show_session_data($session_id); |
94 | - $content .= '</table></div>'; |
|
94 | + $content .= '</table></div>'; |
|
95 | 95 | } |
96 | 96 | |
97 | - $content .= '<div class="Authoringview">'; |
|
97 | + $content .= '<div class="Authoringview">'; |
|
98 | 98 | $my_list = CourseHome::get_tools_category(TOOL_STUDENT_VIEW); |
99 | 99 | $content .= CourseHome::show_tools_category($my_list); |
100 | 100 | $content .= '</div>'; |
@@ -106,19 +106,19 @@ discard block |
||
106 | 106 | $content .= '<div class="course-student-view-activity-3col">'; |
107 | 107 | //ordering by get_lang name |
108 | 108 | $order_tool_list = array(); |
109 | - foreach($my_list as $key=>$new_tool) { |
|
109 | + foreach ($my_list as $key=>$new_tool) { |
|
110 | 110 | $tool_name = CourseHome::translate_tool_name($new_tool); |
111 | - $order_tool_list [$key]= $tool_name; |
|
111 | + $order_tool_list [$key] = $tool_name; |
|
112 | 112 | } |
113 | 113 | natsort($order_tool_list); |
114 | 114 | $my_temp_tool_array = array(); |
115 | - foreach($order_tool_list as $key=>$new_tool) { |
|
115 | + foreach ($order_tool_list as $key=>$new_tool) { |
|
116 | 116 | $my_temp_tool_array[] = $my_list[$key]; |
117 | 117 | } |
118 | 118 | $my_list = $my_temp_tool_array; |
119 | 119 | |
120 | 120 | $i = 0; |
121 | - foreach($my_list as $new_tool) { |
|
121 | + foreach ($my_list as $new_tool) { |
|
122 | 122 | if ($i >= 10) { |
123 | 123 | $my_list2[] = $new_tool; |
124 | 124 | } else { |
@@ -126,8 +126,8 @@ discard block |
||
126 | 126 | } |
127 | 127 | $i++; |
128 | 128 | } |
129 | - $content .=CourseHome::show_tools_category($my_list1); |
|
130 | - $content .=CourseHome::show_tools_category($my_list2); |
|
129 | + $content .= CourseHome::show_tools_category($my_list1); |
|
130 | + $content .= CourseHome::show_tools_category($my_list2); |
|
131 | 131 | $content .= '</div>'; |
132 | 132 | } |
133 | 133 | } |
@@ -29,7 +29,7 @@ discard block |
||
29 | 29 | $msgDestroy = get_lang('DelLk').'<br />'; |
30 | 30 | $msgDestroy .= '<a href="'.api_get_self().'">'.get_lang('No').'</a> | '; |
31 | 31 | $msgDestroy .= '<a href="'.api_get_self().'?destroy=yes&id='.$id.'">'.get_lang('Yes').'</a>'; |
32 | - $show_message .= Display :: return_message($msgDestroy, 'confirmation',false); |
|
32 | + $show_message .= Display :: return_message($msgDestroy, 'confirmation', false); |
|
33 | 33 | } |
34 | 34 | |
35 | 35 | /* |
@@ -63,7 +63,7 @@ discard block |
||
63 | 63 | // Show message to confirm that a tool it to be hidden from available tools |
64 | 64 | // visibility 0,1->2 |
65 | 65 | if (!empty($_GET['askDelete'])) { |
66 | - $content .='<div id="toolhide">'.get_lang('DelLk').'<br /> |
|
66 | + $content .= '<div id="toolhide">'.get_lang('DelLk').'<br /> |
|
67 | 67 | <a href="'.api_get_self().'">'.get_lang('No').'</a> | |
68 | 68 | <a href="'.api_get_self().'?delete=yes&id='.intval($_GET['id']).'">'.get_lang('Yes').'</a> |
69 | 69 | </div>'; |
@@ -79,8 +79,8 @@ discard block |
||
79 | 79 | |
80 | 80 | /* TOOLS VISIBLE FOR EVERYBODY */ |
81 | 81 | |
82 | -$content .= '<div class="everybodyview">'; |
|
83 | -$content .= '<table width="100%">'; |
|
82 | +$content .= '<div class="everybodyview">'; |
|
83 | +$content .= '<table width="100%">'; |
|
84 | 84 | $content .= CourseHome::show_tool_2column(TOOL_PUBLIC); |
85 | 85 | $content .= '</table>'; |
86 | 86 | $content .= '</div>'; |
@@ -99,7 +99,7 @@ discard block |
||
99 | 99 | |
100 | 100 | /* INACTIVE TOOLS - HIDDEN (GREY) LINKS */ |
101 | 101 | |
102 | - $content .= "<tr><td colspan=\"4\"><hr style='color:\"#4171B5\"' noshade=\"noshade\" size=\"1\" /></td></tr>\n". |
|
102 | + $content .= "<tr><td colspan=\"4\"><hr style='color:\"#4171B5\"' noshade=\"noshade\" size=\"1\" /></td></tr>\n". |
|
103 | 103 | "<tr>\n". |
104 | 104 | "<td colspan=\"4\">\n". |
105 | 105 | "<div style=\"margin-bottom: 10px;\"><font color=\"#808080\">\n".get_lang('InLnk')."</font></div>". |
@@ -108,14 +108,14 @@ discard block |
||
108 | 108 | |
109 | 109 | $content .= CourseHome::show_tool_2column(TOOL_PUBLIC_BUT_HIDDEN); |
110 | 110 | |
111 | - $content .= "</table>"; |
|
112 | - $content .= "</div> "; |
|
111 | + $content .= "</table>"; |
|
112 | + $content .= "</div> "; |
|
113 | 113 | } |
114 | 114 | |
115 | 115 | /* Tools for platform admin only */ |
116 | 116 | |
117 | 117 | if (api_is_platform_admin() && api_is_allowed_to_edit(null, true) && !api_is_coach()) { |
118 | - $content .='<div class="platformadminview"> |
|
118 | + $content .= '<div class="platformadminview"> |
|
119 | 119 | <span class="viewcaption">'.get_lang('PlatformAdminOnly').'</span> |
120 | 120 | <table width="100%"> |
121 | 121 | '.CourseHome::show_tool_2column(TOOL_PLATFORM_ADMIN).' |
@@ -41,7 +41,7 @@ discard block |
||
41 | 41 | //unset($_SESSION['oLP']); |
42 | 42 | //unset($_SESSION['lpobject']); |
43 | 43 | |
44 | -$htmlHeadXtra[] ='<script> |
|
44 | +$htmlHeadXtra[] = '<script> |
|
45 | 45 | /* option show/hide thematic-block */ |
46 | 46 | $(document).ready(function(){ |
47 | 47 | $("#thematic-show").click(function(){ |
@@ -219,13 +219,13 @@ discard block |
||
219 | 219 | $course_id = api_get_course_int_id(); |
220 | 220 | $condition = ''; |
221 | 221 | if (!empty($session_id)) { |
222 | - $condition = api_get_session_condition($session_id); |
|
222 | + $condition = api_get_session_condition($session_id); |
|
223 | 223 | $sql = "SELECT id FROM $lp_table |
224 | 224 | WHERE c_id = $course_id AND autolaunch = 1 $condition |
225 | 225 | LIMIT 1"; |
226 | 226 | $result = Database::query($sql); |
227 | 227 | //If we found nothing in the session we just called the session_id = 0 autolaunch |
228 | - if (Database::num_rows($result) == 0) { |
|
228 | + if (Database::num_rows($result) == 0) { |
|
229 | 229 | $condition = ''; |
230 | 230 | } else { |
231 | 231 | //great, there is an specific auto launch for this session we leave the $condition |
@@ -236,8 +236,8 @@ discard block |
||
236 | 236 | WHERE c_id = $course_id AND autolaunch = 1 $condition |
237 | 237 | LIMIT 1"; |
238 | 238 | $result = Database::query($sql); |
239 | - if (Database::num_rows($result) > 0) { |
|
240 | - $lp_data = Database::fetch_array($result,'ASSOC'); |
|
239 | + if (Database::num_rows($result) > 0) { |
|
240 | + $lp_data = Database::fetch_array($result, 'ASSOC'); |
|
241 | 241 | if (!empty($lp_data['id'])) { |
242 | 242 | if (api_is_platform_admin() || api_is_allowed_to_edit()) { |
243 | 243 | $show_autolaunch_lp_warning = true; |
@@ -22,7 +22,7 @@ discard block |
||
22 | 22 | // Show message to confirm that a tool it to be hidden from available tools |
23 | 23 | // visibility 0,1->2 |
24 | 24 | if (!empty($_GET['askDelete'])) { |
25 | - $content .='<div id="toolhide">'.get_lang('DelLk').'<br /> |
|
25 | + $content .= '<div id="toolhide">'.get_lang('DelLk').'<br /> |
|
26 | 26 | <a href="'.api_get_self().'">'.get_lang('No').'</a> | |
27 | 27 | <a href="'.api_get_self().'?delete=yes&id='.$id.'">'.get_lang('Yes').'</a> |
28 | 28 | </div>'; |
@@ -49,11 +49,11 @@ discard block |
||
49 | 49 | |
50 | 50 | // Start of tools for CourseAdmins (teachers/tutors) |
51 | 51 | if ($session_id == 0 && api_is_course_admin() && api_is_allowed_to_edit(null, true)) { |
52 | - $content .= '<div class="alert alert-success" style="border:0px; margin-top: 0px;padding:0px;"> |
|
52 | + $content .= '<div class="alert alert-success" style="border:0px; margin-top: 0px;padding:0px;"> |
|
53 | 53 | <div class="normal-message" id="id_normal_message" style="display:none">'; |
54 | - $content .= '<img src="'.api_get_path(WEB_PATH).'main/inc/lib/javascript/indicator.gif"/> '; |
|
55 | - $content .= get_lang('PleaseStandBy'); |
|
56 | - $content .= '</div> |
|
54 | + $content .= '<img src="'.api_get_path(WEB_PATH).'main/inc/lib/javascript/indicator.gif"/> '; |
|
55 | + $content .= get_lang('PleaseStandBy'); |
|
56 | + $content .= '</div> |
|
57 | 57 | <div class="alert alert-success" id="id_confirmation_message" style="display:none"></div> |
58 | 58 | </div>'; |
59 | 59 | |
@@ -73,18 +73,18 @@ discard block |
||
73 | 73 | |
74 | 74 | $my_list = CourseHome::get_tools_category(TOOL_AUTHORING); |
75 | 75 | $items = CourseHome::show_tools_category($my_list); |
76 | - $content .= return_block(get_lang('Authoring'), $items, 'course-tools-author'); |
|
76 | + $content .= return_block(get_lang('Authoring'), $items, 'course-tools-author'); |
|
77 | 77 | |
78 | 78 | $my_list = CourseHome::get_tools_category(TOOL_INTERACTION); |
79 | 79 | $list2 = CourseHome::get_tools_category(TOOL_COURSE_PLUGIN); |
80 | 80 | |
81 | - $my_list = array_merge($my_list,$list2); |
|
82 | - $items = CourseHome::show_tools_category($my_list); |
|
83 | - $content .= return_block(get_lang('Interaction'), $items, 'course-tools-interaction'); |
|
81 | + $my_list = array_merge($my_list, $list2); |
|
82 | + $items = CourseHome::show_tools_category($my_list); |
|
83 | + $content .= return_block(get_lang('Interaction'), $items, 'course-tools-interaction'); |
|
84 | 84 | |
85 | 85 | $my_list = CourseHome::get_tools_category(TOOL_ADMIN_PLATFORM); |
86 | 86 | $items = CourseHome::show_tools_category($my_list); |
87 | - $content .= return_block(get_lang('Administration'), $items , 'course-tools-administration'); |
|
87 | + $content .= return_block(get_lang('Administration'), $items, 'course-tools-administration'); |
|
88 | 88 | |
89 | 89 | } elseif (api_is_coach()) { |
90 | 90 | $content .= $pluginExtra; |
@@ -94,10 +94,10 @@ discard block |
||
94 | 94 | <span class="viewcaption">'.get_lang('SessionData').'</span> |
95 | 95 | <table class="course_activity_home">'; |
96 | 96 | $content .= CourseHome::show_session_data($session_id); |
97 | - $content .= '</table></div></div>'; |
|
97 | + $content .= '</table></div></div>'; |
|
98 | 98 | } |
99 | 99 | |
100 | - $content .= '<div class="row">'; |
|
100 | + $content .= '<div class="row">'; |
|
101 | 101 | $my_list = CourseHome::get_tools_category(TOOL_STUDENT_VIEW); |
102 | 102 | $content .= CourseHome::show_tools_category($my_list); |
103 | 103 | $content .= '</div>'; |
@@ -179,7 +179,7 @@ discard block |
||
179 | 179 | { |
180 | 180 | $html = '<div class="row"> |
181 | 181 | <div class="col-xs-12 col-md-12"> |
182 | - <div class="title-tools">' . $title . '</div> |
|
182 | + <div class="title-tools">' . $title.'</div> |
|
183 | 183 | </div> |
184 | 184 | </div> |
185 | 185 | <div class="row '.$class.'">'.$content.'</div>'; |
@@ -133,10 +133,10 @@ |
||
133 | 133 | $status = CourseManager::is_course_teacher($user['user_id'], api_get_course_id()) ? 1 : 5; |
134 | 134 | } |
135 | 135 | $fileUrl = UserManager::getUserPicture($user['user_id'], USER_IMAGE_SIZE_MEDIUM); |
136 | - $url_user_profile=api_get_path(WEB_CODE_PATH).'social/profile.php?u='.$user['user_id'].'&'; |
|
136 | + $url_user_profile = api_get_path(WEB_CODE_PATH).'social/profile.php?u='.$user['user_id'].'&'; |
|
137 | 137 | ?> |
138 | 138 | <li class="list-group-item"> |
139 | - <img src="<?php echo $fileUrl;?>" border="0" width="50" alt="" class="user-image-chat" /> |
|
139 | + <img src="<?php echo $fileUrl; ?>" border="0" width="50" alt="" class="user-image-chat" /> |
|
140 | 140 | <div class="user-name"> |
141 | 141 | <a href="<?php echo $url_user_profile; ?>" target="_blank"> |
142 | 142 | <?php echo api_get_person_name($user['firstname'], $user['lastname']); ?> |
@@ -7,7 +7,7 @@ discard block |
||
7 | 7 | */ |
8 | 8 | |
9 | 9 | require_once '../inc/global.inc.php'; |
10 | -$current_course_tool = TOOL_CHAT; |
|
10 | +$current_course_tool = TOOL_CHAT; |
|
11 | 11 | $this_section = SECTION_COURSES; |
12 | 12 | $nameTools = get_lang('ToolChat'); |
13 | 13 | |
@@ -19,8 +19,8 @@ discard block |
||
19 | 19 | } else { |
20 | 20 | $origin = $_SESSION['origin']; |
21 | 21 | $target = $_SESSION['target']; |
22 | - $_SESSION['origin']= $origin; |
|
23 | - $_SESSION['target']= $target; |
|
22 | + $_SESSION['origin'] = $origin; |
|
23 | + $_SESSION['target'] = $target; |
|
24 | 24 | } |
25 | 25 | |
26 | 26 | api_protect_course_group(GroupManager::GROUP_TOOL_CHAT, false); |
@@ -54,7 +54,7 @@ discard block |
||
54 | 54 | |
55 | 55 | // If it is a group chat then the breadcrumbs. |
56 | 56 | if (!empty($groupId)) { |
57 | - $group_properties = GroupManager :: get_group_properties($groupId); |
|
57 | + $group_properties = GroupManager :: get_group_properties($groupId); |
|
58 | 58 | $interbreadcrumb[] = array( |
59 | 59 | 'url' => api_get_path(WEB_CODE_PATH).'group/group.php?'.api_get_cidreq(), |
60 | 60 | 'name' => get_lang('Groups') |