@@ -219,7 +219,7 @@ |
||
219 | 219 | */ |
220 | 220 | public function getEntityIdentifier() |
221 | 221 | { |
222 | - return 'GenjFaqBundle:Question:' . $this->getId(); |
|
222 | + return 'GenjFaqBundle:Question:'.$this->getId(); |
|
223 | 223 | } |
224 | 224 | |
225 | 225 | /** |
@@ -46,14 +46,14 @@ discard block |
||
46 | 46 | $interbreadcrumb[] = array('url' => api_get_self().'?'.api_get_cidreq(), 'name' => get_lang('CustomizeIcons')); |
47 | 47 | $toolName = $tool['name']; |
48 | 48 | |
49 | - $currentUrl = api_get_self().'?action=edit_icon&id=' . $id.'&'.api_get_cidreq(); |
|
49 | + $currentUrl = api_get_self().'?action=edit_icon&id='.$id.'&'.api_get_cidreq(); |
|
50 | 50 | |
51 | 51 | $form = new FormValidator('icon_edit', 'post', $currentUrl); |
52 | 52 | $form->addElement('header', get_lang('EditIcon')); |
53 | 53 | $form->addHtml('<div class="col-md-7">'); |
54 | 54 | $form->addElement('text', 'name', get_lang('Name')); |
55 | 55 | $form->addElement('text', 'link', get_lang('Links')); |
56 | - $allowed_picture_types = array ('jpg', 'jpeg', 'png'); |
|
56 | + $allowed_picture_types = array('jpg', 'jpeg', 'png'); |
|
57 | 57 | $form->addElement('file', 'icon', get_lang('CustomIcon')); |
58 | 58 | $form->addRule('icon', get_lang('OnlyImagesAllowed').' ('.implode(',', $allowed_picture_types).')', 'filetype', $allowed_picture_types); |
59 | 59 | $form->addElement( |
@@ -118,7 +118,7 @@ discard block |
||
118 | 118 | $iconsTools .= Display::page_header(get_lang('CustomizeIcons'), null, 'h4'); |
119 | 119 | $iconsTools .= '<div class="row">'; |
120 | 120 | foreach ($toolList as $tool) { |
121 | - $toolIconName = 'Tool' . api_underscore_to_camel_case($tool['name']); |
|
121 | + $toolIconName = 'Tool'.api_underscore_to_camel_case($tool['name']); |
|
122 | 122 | $toolIconName = isset($$toolIconName) ? get_lang($toolIconName) : $tool['name']; |
123 | 123 | |
124 | 124 | $iconsTools .= '<div class="col-md-2">'; |
@@ -140,13 +140,13 @@ discard block |
||
140 | 140 | |
141 | 141 | $delete = (!empty($tool['custom_icon'])) ? "<a class=\"btn btn-default\" onclick=\"javascript: |
142 | 142 | if(!confirm('".addslashes(api_htmlentities(get_lang('ConfirmYourChoice'), ENT_QUOTES, $charset)). |
143 | - "')) return false;\" href=\"". api_get_self() . '?action=delete_icon&id=' . $tool['iid'] . '&'.api_get_cidreq()."\"> |
|
143 | + "')) return false;\" href=\"".api_get_self().'?action=delete_icon&id='.$tool['iid'].'&'.api_get_cidreq()."\"> |
|
144 | 144 | <em class=\"fa fa-trash-o\"></em></a>" : ""; |
145 | - $edit = '<a class="btn btn-default" href="' . api_get_self() . '?action=edit_icon&id=' . $tool['iid'] . '&'.api_get_cidreq().'"><em class="fa fa-pencil"></em></a>'; |
|
145 | + $edit = '<a class="btn btn-default" href="'.api_get_self().'?action=edit_icon&id='.$tool['iid'].'&'.api_get_cidreq().'"><em class="fa fa-pencil"></em></a>'; |
|
146 | 146 | |
147 | - $iconsTools .= '<div class="icon-tools">'. $icon . '</div>'; |
|
148 | - $iconsTools .= '<div class="name-tools">' . $toolIconName . '</div>'; |
|
149 | - $iconsTools .= '<div class="toolbar">' . $edit . $delete . '</div>'; |
|
147 | + $iconsTools .= '<div class="icon-tools">'.$icon.'</div>'; |
|
148 | + $iconsTools .= '<div class="name-tools">'.$toolIconName.'</div>'; |
|
149 | + $iconsTools .= '<div class="toolbar">'.$edit.$delete.'</div>'; |
|
150 | 150 | $iconsTools .= '</div>'; |
151 | 151 | $iconsTools .= '</div>'; |
152 | 152 | } |
@@ -22,5 +22,5 @@ |
||
22 | 22 | * See facebook section of the auth.conf.php file |
23 | 23 | */ |
24 | 24 | |
25 | -require dirname(__FILE__) . '/../../../app/config/auth.conf.php'; |
|
25 | +require dirname(__FILE__).'/../../../app/config/auth.conf.php'; |
|
26 | 26 |
@@ -15,7 +15,7 @@ discard block |
||
15 | 15 | */ |
16 | 16 | |
17 | 17 | require_once '../inc/global.inc.php'; |
18 | -$current_course_tool = TOOL_COURSE_SETTING; |
|
18 | +$current_course_tool = TOOL_COURSE_SETTING; |
|
19 | 19 | $this_section = SECTION_COURSES; |
20 | 20 | |
21 | 21 | $nameTools = get_lang('ModifInfo'); |
@@ -46,8 +46,8 @@ discard block |
||
46 | 46 | api_not_allowed(true); |
47 | 47 | } |
48 | 48 | |
49 | -$htmlHeadXtra[] = '<link href="'. api_get_path(WEB_PATH) .'web/assets/cropper/dist/cropper.min.css" rel="stylesheet">'; |
|
50 | -$htmlHeadXtra[] = '<script src="'. api_get_path(WEB_PATH) .'web/assets/cropper/dist/cropper.min.js"></script>'; |
|
49 | +$htmlHeadXtra[] = '<link href="'.api_get_path(WEB_PATH).'web/assets/cropper/dist/cropper.min.css" rel="stylesheet">'; |
|
50 | +$htmlHeadXtra[] = '<script src="'.api_get_path(WEB_PATH).'web/assets/cropper/dist/cropper.min.js"></script>'; |
|
51 | 51 | $htmlHeadXtra[] = '<script> |
52 | 52 | $(document).ready(function() { |
53 | 53 | var $image = $("#previewImage"); |
@@ -150,18 +150,18 @@ discard block |
||
150 | 150 | $form = new FormValidator('update_course', 'post', api_get_self().'?'.api_get_cidreq()); |
151 | 151 | |
152 | 152 | // COURSE SETTINGS |
153 | -$form->addElement('html', '<div><h3>'.Display::return_icon('settings.png', Security::remove_XSS(get_lang('CourseSettings')),'',ICON_SIZE_SMALL).' '.Security::remove_XSS(get_lang('CourseSettings')).'</h3><div>'); |
|
153 | +$form->addElement('html', '<div><h3>'.Display::return_icon('settings.png', Security::remove_XSS(get_lang('CourseSettings')), '', ICON_SIZE_SMALL).' '.Security::remove_XSS(get_lang('CourseSettings')).'</h3><div>'); |
|
154 | 154 | |
155 | 155 | $image_html = ''; |
156 | 156 | |
157 | 157 | |
158 | 158 | // Display course picture |
159 | -$course_path = api_get_path(SYS_COURSE_PATH).$currentCourseRepository; // course path |
|
159 | +$course_path = api_get_path(SYS_COURSE_PATH).$currentCourseRepository; // course path |
|
160 | 160 | |
161 | 161 | if (file_exists($course_path.'/course-pic85x85.png')) { |
162 | - $course_web_path = api_get_path(WEB_COURSE_PATH).$currentCourseRepository; // course web path |
|
162 | + $course_web_path = api_get_path(WEB_COURSE_PATH).$currentCourseRepository; // course web path |
|
163 | 163 | $course_medium_image = $course_web_path.'/course-pic85x85.png?'.rand(1, 1000); // redimensioned image 85x85 |
164 | - $image_html = '<div class="row"><label class="col-md-2 control-label">'.get_lang('Image').'</label> <div class="col-md-8"><img src="'.$course_medium_image.'" /></div></div>'; |
|
164 | + $image_html = '<div class="row"><label class="col-md-2 control-label">'.get_lang('Image').'</label> <div class="col-md-8"><img src="'.$course_medium_image.'" /></div></div>'; |
|
165 | 165 | } |
166 | 166 | $form->addElement('html', $image_html); |
167 | 167 | |
@@ -210,7 +210,7 @@ discard block |
||
210 | 210 | </div> |
211 | 211 | '); |
212 | 212 | $form->addHidden('cropResult', ''); |
213 | -$allowed_picture_types = array ('jpg', 'jpeg', 'png', 'gif'); |
|
213 | +$allowed_picture_types = array('jpg', 'jpeg', 'png', 'gif'); |
|
214 | 214 | $form->addRule( |
215 | 215 | 'picture', |
216 | 216 | get_lang('OnlyImagesAllowed').' ('.implode(',', $allowed_picture_types).')', |
@@ -220,11 +220,11 @@ discard block |
||
220 | 220 | $form->addElement('checkbox', 'delete_picture', null, get_lang('DeletePicture')); |
221 | 221 | |
222 | 222 | if (api_get_setting('pdf_export_watermark_by_course') == 'true') { |
223 | - $url = PDF::get_watermark($course_code); |
|
223 | + $url = PDF::get_watermark($course_code); |
|
224 | 224 | $form->addText('pdf_export_watermark_text', get_lang('PDFExportWatermarkTextTitle'), false, array('size' => '60')); |
225 | 225 | $form->addElement('file', 'pdf_export_watermark_path', get_lang('AddWaterMark')); |
226 | 226 | if ($url != false) { |
227 | - $delete_url = '<a href="?delete_watermark">'.Display::return_icon('delete.png',get_lang('DelImage')).'</a>'; |
|
227 | + $delete_url = '<a href="?delete_watermark">'.Display::return_icon('delete.png', get_lang('DelImage')).'</a>'; |
|
228 | 228 | $form->addElement('html', '<div class="row"><div class="formw"><a href="'.$url.'">'.$url.' '.$delete_url.'</a></div></div>'); |
229 | 229 | } |
230 | 230 | $form->addRule('pdf_export_watermark_path', get_lang('OnlyImagesAllowed').' ('.implode(',', $allowed_picture_types).')', 'filetype', $allowed_picture_types); |
@@ -242,7 +242,7 @@ discard block |
||
242 | 242 | } |
243 | 243 | |
244 | 244 | $form->addElement('label', get_lang('DocumentQuota'), format_file_size(DocumentManager::get_course_quota())); |
245 | -$form->addButtonSave(get_lang('SaveSettings'),'submit_save'); |
|
245 | +$form->addButtonSave(get_lang('SaveSettings'), 'submit_save'); |
|
246 | 246 | $form->addElement('html', '</div></div>'); |
247 | 247 | |
248 | 248 | // COURSE ACCESS |
@@ -250,17 +250,17 @@ discard block |
||
250 | 250 | $form->addElement( |
251 | 251 | 'html', |
252 | 252 | '<div><h3>'. |
253 | - Display::return_icon('course.png', Security::remove_XSS(get_lang('CourseAccess')),'',ICON_SIZE_SMALL).' '.Security::remove_XSS(get_lang('CourseAccess')).'</h3><div>' |
|
253 | + Display::return_icon('course.png', Security::remove_XSS(get_lang('CourseAccess')), '', ICON_SIZE_SMALL).' '.Security::remove_XSS(get_lang('CourseAccess')).'</h3><div>' |
|
254 | 254 | ); |
255 | 255 | |
256 | 256 | $group = array(); |
257 | -$group[]= $form->createElement('radio', 'visibility', get_lang("CourseAccess"), get_lang('OpenToTheWorld'), COURSE_VISIBILITY_OPEN_WORLD); |
|
258 | -$group[]= $form->createElement('radio', 'visibility', null, get_lang('OpenToThePlatform'), COURSE_VISIBILITY_OPEN_PLATFORM); |
|
259 | -$group[]= $form->createElement('radio', 'visibility', null, get_lang('Private'), COURSE_VISIBILITY_REGISTERED); |
|
260 | -$group[]= $form->createElement('radio', 'visibility', null, get_lang('CourseVisibilityClosed'), COURSE_VISIBILITY_CLOSED); |
|
257 | +$group[] = $form->createElement('radio', 'visibility', get_lang("CourseAccess"), get_lang('OpenToTheWorld'), COURSE_VISIBILITY_OPEN_WORLD); |
|
258 | +$group[] = $form->createElement('radio', 'visibility', null, get_lang('OpenToThePlatform'), COURSE_VISIBILITY_OPEN_PLATFORM); |
|
259 | +$group[] = $form->createElement('radio', 'visibility', null, get_lang('Private'), COURSE_VISIBILITY_REGISTERED); |
|
260 | +$group[] = $form->createElement('radio', 'visibility', null, get_lang('CourseVisibilityClosed'), COURSE_VISIBILITY_CLOSED); |
|
261 | 261 | // The "hidden" visibility is only available to portal admins |
262 | 262 | if (api_is_platform_admin()) { |
263 | - $group[]= $form->createElement('radio', 'visibility', null, get_lang('CourseVisibilityHidden'), COURSE_VISIBILITY_HIDDEN); |
|
263 | + $group[] = $form->createElement('radio', 'visibility', null, get_lang('CourseVisibilityHidden'), COURSE_VISIBILITY_HIDDEN); |
|
264 | 264 | } |
265 | 265 | $form->addGroup($group, '', array(get_lang("CourseAccess"), get_lang("CourseAccessConfigTip")), ''); |
266 | 266 | |
@@ -269,13 +269,13 @@ discard block |
||
269 | 269 | $form->addElement('label', get_lang('DirectLink'), sprintf(get_lang('CourseSettingsRegisterDirectLink'), $url)); |
270 | 270 | |
271 | 271 | $group = array(); |
272 | -$group[]=$form->createElement('radio', 'subscribe', get_lang('Subscription'), get_lang('Allowed'), 1); |
|
273 | -$group[]=$form->createElement('radio', 'subscribe', null, get_lang('Denied'), 0); |
|
272 | +$group[] = $form->createElement('radio', 'subscribe', get_lang('Subscription'), get_lang('Allowed'), 1); |
|
273 | +$group[] = $form->createElement('radio', 'subscribe', null, get_lang('Denied'), 0); |
|
274 | 274 | $form->addGroup($group, '', array(get_lang("Subscription")), ''); |
275 | 275 | |
276 | 276 | $group = array(); |
277 | -$group[]=$form->createElement('radio', 'unsubscribe', get_lang('Unsubscription'), get_lang('AllowedToUnsubscribe'), 1); |
|
278 | -$group[]=$form->createElement('radio', 'unsubscribe', null, get_lang('NotAllowedToUnsubscribe'), 0); |
|
277 | +$group[] = $form->createElement('radio', 'unsubscribe', get_lang('Unsubscription'), get_lang('AllowedToUnsubscribe'), 1); |
|
278 | +$group[] = $form->createElement('radio', 'unsubscribe', null, get_lang('NotAllowedToUnsubscribe'), 0); |
|
279 | 279 | $form->addGroup($group, '', array(get_lang("Unsubscription")), ''); |
280 | 280 | |
281 | 281 | $form->addText('course_registration_password', get_lang('CourseRegistrationPassword'), false, array('size' => '60')); |
@@ -288,7 +288,7 @@ discard block |
||
288 | 288 | |
289 | 289 | // Documents |
290 | 290 | if (api_get_setting('documents_default_visibility_defined_in_course') == 'true') { |
291 | - $form->addElement('html', '<div> <h3>'.Display::return_icon('folder.png', Security::remove_XSS(get_lang('Documents')),'',ICON_SIZE_SMALL).' '.Security::remove_XSS(get_lang('Documents')).'</h3><div>'); |
|
291 | + $form->addElement('html', '<div> <h3>'.Display::return_icon('folder.png', Security::remove_XSS(get_lang('Documents')), '', ICON_SIZE_SMALL).' '.Security::remove_XSS(get_lang('Documents')).'</h3><div>'); |
|
292 | 292 | |
293 | 293 | $group = array( |
294 | 294 | $form->createElement('radio', 'documents_default_visibility', null, get_lang('Visible'), 'visible'), |
@@ -300,89 +300,89 @@ discard block |
||
300 | 300 | } |
301 | 301 | |
302 | 302 | // EMAIL NOTIFICATIONS |
303 | -$form->addElement('html', '<div> <h3>'.Display::return_icon('mail.png', Security::remove_XSS(get_lang('EmailNotifications')),'',ICON_SIZE_SMALL).' '.Security::remove_XSS(get_lang('EmailNotifications')).'</h3><div>'); |
|
303 | +$form->addElement('html', '<div> <h3>'.Display::return_icon('mail.png', Security::remove_XSS(get_lang('EmailNotifications')), '', ICON_SIZE_SMALL).' '.Security::remove_XSS(get_lang('EmailNotifications')).'</h3><div>'); |
|
304 | 304 | |
305 | 305 | $group = array(); |
306 | -$group[]=$form->createElement('radio', 'email_alert_to_teacher_on_new_user_in_course', get_lang('NewUserEmailAlert'), get_lang('NewUserEmailAlertEnable'), 1); |
|
307 | -$group[]=$form->createElement('radio', 'email_alert_to_teacher_on_new_user_in_course', null, get_lang('NewUserEmailAlertToTeacharAndTutor'), 2); |
|
308 | -$group[]=$form->createElement('radio', 'email_alert_to_teacher_on_new_user_in_course', null, get_lang('NewUserEmailAlertDisable'), 0); |
|
306 | +$group[] = $form->createElement('radio', 'email_alert_to_teacher_on_new_user_in_course', get_lang('NewUserEmailAlert'), get_lang('NewUserEmailAlertEnable'), 1); |
|
307 | +$group[] = $form->createElement('radio', 'email_alert_to_teacher_on_new_user_in_course', null, get_lang('NewUserEmailAlertToTeacharAndTutor'), 2); |
|
308 | +$group[] = $form->createElement('radio', 'email_alert_to_teacher_on_new_user_in_course', null, get_lang('NewUserEmailAlertDisable'), 0); |
|
309 | 309 | $form->addGroup($group, '', array(get_lang("NewUserEmailAlert")), ''); |
310 | 310 | |
311 | 311 | $group = array(); |
312 | -$group[]=$form->createElement('radio', 'email_alert_students_on_new_homework', get_lang('NewHomeworkEmailAlert'), get_lang('NewHomeworkEmailAlertEnable'), 1); |
|
313 | -$group[]=$form->createElement('radio', 'email_alert_students_on_new_homework', null, get_lang('NewHomeworkEmailAlertDisable'), 0); |
|
312 | +$group[] = $form->createElement('radio', 'email_alert_students_on_new_homework', get_lang('NewHomeworkEmailAlert'), get_lang('NewHomeworkEmailAlertEnable'), 1); |
|
313 | +$group[] = $form->createElement('radio', 'email_alert_students_on_new_homework', null, get_lang('NewHomeworkEmailAlertDisable'), 0); |
|
314 | 314 | $form->addGroup($group, '', array(get_lang("NewHomeworkEmailAlert")), ''); |
315 | 315 | |
316 | 316 | $group = array(); |
317 | -$group[]=$form->createElement('radio', 'email_alert_manager_on_new_doc', null, get_lang('WorkEmailAlertActivateOnlyForTeachers'), 3); |
|
318 | -$group[]=$form->createElement('radio', 'email_alert_manager_on_new_doc', null, get_lang('WorkEmailAlertActivateOnlyForStudents'), 2); |
|
319 | -$group[]=$form->createElement('radio', 'email_alert_manager_on_new_doc', get_lang('WorkEmailAlert'), get_lang('WorkEmailAlertActivate'), 1); |
|
320 | -$group[]=$form->createElement('radio', 'email_alert_manager_on_new_doc', null, get_lang('WorkEmailAlertDeactivate'), 0); |
|
317 | +$group[] = $form->createElement('radio', 'email_alert_manager_on_new_doc', null, get_lang('WorkEmailAlertActivateOnlyForTeachers'), 3); |
|
318 | +$group[] = $form->createElement('radio', 'email_alert_manager_on_new_doc', null, get_lang('WorkEmailAlertActivateOnlyForStudents'), 2); |
|
319 | +$group[] = $form->createElement('radio', 'email_alert_manager_on_new_doc', get_lang('WorkEmailAlert'), get_lang('WorkEmailAlertActivate'), 1); |
|
320 | +$group[] = $form->createElement('radio', 'email_alert_manager_on_new_doc', null, get_lang('WorkEmailAlertDeactivate'), 0); |
|
321 | 321 | $form->addGroup($group, '', array(get_lang("WorkEmailAlert")), ''); |
322 | 322 | |
323 | 323 | $group = array(); |
324 | -$group[]=$form->createElement('radio', 'email_alert_on_new_doc_dropbox', get_lang('DropboxEmailAlert'), get_lang('DropboxEmailAlertActivate'), 1); |
|
325 | -$group[]=$form->createElement('radio', 'email_alert_on_new_doc_dropbox', null, get_lang('DropboxEmailAlertDeactivate'), 0); |
|
324 | +$group[] = $form->createElement('radio', 'email_alert_on_new_doc_dropbox', get_lang('DropboxEmailAlert'), get_lang('DropboxEmailAlertActivate'), 1); |
|
325 | +$group[] = $form->createElement('radio', 'email_alert_on_new_doc_dropbox', null, get_lang('DropboxEmailAlertDeactivate'), 0); |
|
326 | 326 | $form->addGroup($group, '', array(get_lang("DropboxEmailAlert")), ''); |
327 | 327 | |
328 | 328 | $group = array(); |
329 | -$group[]=$form->createElement('radio', 'email_alert_manager_on_new_quiz', get_lang('QuizEmailAlert'), get_lang('QuizEmailAlertActivate'), 1); |
|
330 | -$group[]=$form->createElement('radio', 'email_alert_manager_on_new_quiz', null, get_lang('QuizEmailAlertDeactivate'), 0); |
|
329 | +$group[] = $form->createElement('radio', 'email_alert_manager_on_new_quiz', get_lang('QuizEmailAlert'), get_lang('QuizEmailAlertActivate'), 1); |
|
330 | +$group[] = $form->createElement('radio', 'email_alert_manager_on_new_quiz', null, get_lang('QuizEmailAlertDeactivate'), 0); |
|
331 | 331 | $form->addGroup($group, '', array(get_lang("QuizEmailAlert")), ''); |
332 | 332 | $form->addButtonSave(get_lang('SaveSettings'), 'submit_save'); |
333 | 333 | |
334 | 334 | $form->addElement('html', '</div></div>'); |
335 | 335 | |
336 | 336 | // USER RIGHTS |
337 | -$form->addElement('html', '<div><h3>'.Display::return_icon('user.png', Security::remove_XSS(get_lang('UserRights')),'',ICON_SIZE_SMALL).' '.Security::remove_XSS(get_lang('UserRights')).'</h3><div>'); |
|
337 | +$form->addElement('html', '<div><h3>'.Display::return_icon('user.png', Security::remove_XSS(get_lang('UserRights')), '', ICON_SIZE_SMALL).' '.Security::remove_XSS(get_lang('UserRights')).'</h3><div>'); |
|
338 | 338 | |
339 | 339 | $group = array(); |
340 | -$group[]=$form->createElement('radio', 'allow_user_edit_agenda', get_lang('AllowUserEditAgenda'), get_lang('AllowUserEditAgendaActivate'), 1); |
|
341 | -$group[]=$form->createElement('radio', 'allow_user_edit_agenda', null, get_lang('AllowUserEditAgendaDeactivate'), 0); |
|
340 | +$group[] = $form->createElement('radio', 'allow_user_edit_agenda', get_lang('AllowUserEditAgenda'), get_lang('AllowUserEditAgendaActivate'), 1); |
|
341 | +$group[] = $form->createElement('radio', 'allow_user_edit_agenda', null, get_lang('AllowUserEditAgendaDeactivate'), 0); |
|
342 | 342 | $form->addGroup($group, '', array(get_lang("AllowUserEditAgenda")), ''); |
343 | 343 | |
344 | 344 | $group = array(); |
345 | -$group[]=$form->createElement('radio', 'allow_user_edit_announcement', get_lang('AllowUserEditAnnouncement'), get_lang('AllowUserEditAnnouncementActivate'), 1); |
|
346 | -$group[]=$form->createElement('radio', 'allow_user_edit_announcement', null, get_lang('AllowUserEditAnnouncementDeactivate'), 0); |
|
345 | +$group[] = $form->createElement('radio', 'allow_user_edit_announcement', get_lang('AllowUserEditAnnouncement'), get_lang('AllowUserEditAnnouncementActivate'), 1); |
|
346 | +$group[] = $form->createElement('radio', 'allow_user_edit_announcement', null, get_lang('AllowUserEditAnnouncementDeactivate'), 0); |
|
347 | 347 | $form->addGroup($group, '', array(get_lang("AllowUserEditAnnouncement")), ''); |
348 | 348 | |
349 | 349 | $group = array(); |
350 | -$group[]=$form->createElement('radio', 'allow_user_image_forum', get_lang('AllowUserImageForum'), get_lang('AllowUserImageForumActivate'), 1); |
|
351 | -$group[]=$form->createElement('radio', 'allow_user_image_forum', null, get_lang('AllowUserImageForumDeactivate'), 0); |
|
350 | +$group[] = $form->createElement('radio', 'allow_user_image_forum', get_lang('AllowUserImageForum'), get_lang('AllowUserImageForumActivate'), 1); |
|
351 | +$group[] = $form->createElement('radio', 'allow_user_image_forum', null, get_lang('AllowUserImageForumDeactivate'), 0); |
|
352 | 352 | $form->addGroup($group, '', array(get_lang("AllowUserImageForum")), ''); |
353 | 353 | |
354 | 354 | $group = array(); |
355 | -$group[]=$form->createElement('radio', 'allow_user_view_user_list', get_lang('AllowUserViewUserList'), get_lang('AllowUserViewUserListActivate'), 1); |
|
356 | -$group[]=$form->createElement('radio', 'allow_user_view_user_list', null, get_lang('AllowUserViewUserListDeactivate'), 0); |
|
355 | +$group[] = $form->createElement('radio', 'allow_user_view_user_list', get_lang('AllowUserViewUserList'), get_lang('AllowUserViewUserListActivate'), 1); |
|
356 | +$group[] = $form->createElement('radio', 'allow_user_view_user_list', null, get_lang('AllowUserViewUserListDeactivate'), 0); |
|
357 | 357 | $form->addGroup($group, '', array(get_lang("AllowUserViewUserList")), ''); |
358 | 358 | $form->addButtonSave(get_lang('SaveSettings'), 'submit_save'); |
359 | 359 | $form->addElement('html', '</div></div>'); |
360 | 360 | |
361 | 361 | // CHAT SETTINGS |
362 | -$form->addElement('html', '<div><h3>'.Display::return_icon('chat.png', Security::remove_XSS(get_lang('ConfigChat')),'',ICON_SIZE_SMALL).' '.Security::remove_XSS(get_lang('ConfigChat')).'</h3><div>'); |
|
362 | +$form->addElement('html', '<div><h3>'.Display::return_icon('chat.png', Security::remove_XSS(get_lang('ConfigChat')), '', ICON_SIZE_SMALL).' '.Security::remove_XSS(get_lang('ConfigChat')).'</h3><div>'); |
|
363 | 363 | |
364 | 364 | $group = array(); |
365 | -$group[]=$form->createElement('radio', 'allow_open_chat_window', get_lang('AllowOpenchatWindow'), get_lang('AllowOpenChatWindowActivate'), 1); |
|
366 | -$group[]=$form->createElement('radio', 'allow_open_chat_window', null, get_lang('AllowOpenChatWindowDeactivate'), 0); |
|
365 | +$group[] = $form->createElement('radio', 'allow_open_chat_window', get_lang('AllowOpenchatWindow'), get_lang('AllowOpenChatWindowActivate'), 1); |
|
366 | +$group[] = $form->createElement('radio', 'allow_open_chat_window', null, get_lang('AllowOpenChatWindowDeactivate'), 0); |
|
367 | 367 | $form->addGroup($group, '', array(get_lang("AllowOpenchatWindow")), ''); |
368 | 368 | $form->addButtonSave(get_lang('SaveSettings'), 'submit_save'); |
369 | 369 | $form->addElement('html', '</div></div>'); |
370 | 370 | |
371 | 371 | // LEARNING PATH |
372 | -$form->addElement('html', '<div><h3>'.Display::return_icon('scorms.png', get_lang('ConfigLearnpath'),'',ICON_SIZE_SMALL).' '.Security::remove_XSS(get_lang('ConfigLearnpath')).'</h3><div>'); |
|
372 | +$form->addElement('html', '<div><h3>'.Display::return_icon('scorms.png', get_lang('ConfigLearnpath'), '', ICON_SIZE_SMALL).' '.Security::remove_XSS(get_lang('ConfigLearnpath')).'</h3><div>'); |
|
373 | 373 | |
374 | 374 | // Auto launch LP |
375 | 375 | $group = array(); |
376 | -$group[]=$form->createElement('radio', 'enable_lp_auto_launch', get_lang('LPAutoLaunch'), get_lang('RedirectToALearningPath'), 1); |
|
377 | -$group[]=$form->createElement('radio', 'enable_lp_auto_launch', get_lang('LPAutoLaunch'), get_lang('RedirectToTheLearningPathList'), 2); |
|
378 | -$group[]=$form->createElement('radio', 'enable_lp_auto_launch', null, get_lang('Deactivate'), 0); |
|
376 | +$group[] = $form->createElement('radio', 'enable_lp_auto_launch', get_lang('LPAutoLaunch'), get_lang('RedirectToALearningPath'), 1); |
|
377 | +$group[] = $form->createElement('radio', 'enable_lp_auto_launch', get_lang('LPAutoLaunch'), get_lang('RedirectToTheLearningPathList'), 2); |
|
378 | +$group[] = $form->createElement('radio', 'enable_lp_auto_launch', null, get_lang('Deactivate'), 0); |
|
379 | 379 | $form->addGroup($group, '', array(get_lang("LPAutoLaunch")), ''); |
380 | 380 | |
381 | 381 | if (api_get_setting('allow_course_theme') == 'true') { |
382 | 382 | // Allow theme into Learning path |
383 | 383 | $group = array(); |
384 | - $group[]=$form->createElement('radio', 'allow_learning_path_theme', get_lang('AllowLearningPathTheme'), get_lang('AllowLearningPathThemeAllow'), 1); |
|
385 | - $group[]=$form->createElement('radio', 'allow_learning_path_theme', null, get_lang('AllowLearningPathThemeDisallow'), 0); |
|
384 | + $group[] = $form->createElement('radio', 'allow_learning_path_theme', get_lang('AllowLearningPathTheme'), get_lang('AllowLearningPathThemeAllow'), 1); |
|
385 | + $group[] = $form->createElement('radio', 'allow_learning_path_theme', null, get_lang('AllowLearningPathThemeDisallow'), 0); |
|
386 | 386 | $form->addGroup($group, '', array(get_lang("AllowLearningPathTheme")), ''); |
387 | 387 | } |
388 | 388 | |
@@ -449,15 +449,15 @@ discard block |
||
449 | 449 | 'html', |
450 | 450 | '<div><h3>'.Display::return_icon( |
451 | 451 | 'course_progress.png', |
452 | - Security::remove_XSS(get_lang('ThematicAdvanceConfiguration')),'',ICON_SIZE_SMALL |
|
452 | + Security::remove_XSS(get_lang('ThematicAdvanceConfiguration')), '', ICON_SIZE_SMALL |
|
453 | 453 | ).' '.Security::remove_XSS(get_lang('ThematicAdvanceConfiguration')).'</h3><div>' |
454 | 454 | ); |
455 | 455 | |
456 | 456 | $group = array(); |
457 | -$group[]=$form->createElement('radio', 'display_info_advance_inside_homecourse', get_lang('InfoAboutAdvanceInsideHomeCourse'), get_lang('DisplayAboutLastDoneAdvance'), 1); |
|
458 | -$group[]=$form->createElement('radio', 'display_info_advance_inside_homecourse', null, get_lang('DisplayAboutNextAdvanceNotDone'), 2); |
|
459 | -$group[]=$form->createElement('radio', 'display_info_advance_inside_homecourse', null, get_lang('DisplayAboutNextAdvanceNotDoneAndLastDoneAdvance'), 3); |
|
460 | -$group[]=$form->createElement('radio', 'display_info_advance_inside_homecourse', null, get_lang('DoNotDisplayAnyAdvance'), 0); |
|
457 | +$group[] = $form->createElement('radio', 'display_info_advance_inside_homecourse', get_lang('InfoAboutAdvanceInsideHomeCourse'), get_lang('DisplayAboutLastDoneAdvance'), 1); |
|
458 | +$group[] = $form->createElement('radio', 'display_info_advance_inside_homecourse', null, get_lang('DisplayAboutNextAdvanceNotDone'), 2); |
|
459 | +$group[] = $form->createElement('radio', 'display_info_advance_inside_homecourse', null, get_lang('DisplayAboutNextAdvanceNotDoneAndLastDoneAdvance'), 3); |
|
460 | +$group[] = $form->createElement('radio', 'display_info_advance_inside_homecourse', null, get_lang('DoNotDisplayAnyAdvance'), 0); |
|
461 | 461 | $form->addGroup($group, '', array(get_lang("InfoAboutAdvanceInsideHomeCourse")), ''); |
462 | 462 | $form->addButtonSave(get_lang('SaveSettings'), 'submit_save'); |
463 | 463 | $form->addElement('html', '</div></div>'); |
@@ -465,7 +465,7 @@ discard block |
||
465 | 465 | // Document settings |
466 | 466 | $form->addElement( |
467 | 467 | 'html', |
468 | - '<div><h3>'.Display::return_icon('folder.png', Security::remove_XSS(get_lang('Documents')),'',ICON_SIZE_SMALL).' '.Security::remove_XSS(get_lang('Documents')).'</h3><div>' |
|
468 | + '<div><h3>'.Display::return_icon('folder.png', Security::remove_XSS(get_lang('Documents')), '', ICON_SIZE_SMALL).' '.Security::remove_XSS(get_lang('Documents')).'</h3><div>' |
|
469 | 469 | ); |
470 | 470 | |
471 | 471 | $group = array( |
@@ -477,11 +477,11 @@ discard block |
||
477 | 477 | $form->addElement('html', '</div></div>'); |
478 | 478 | |
479 | 479 | // Certificate settings |
480 | -if (api_get_setting('allow_public_certificates')=='true') { |
|
481 | - $form->addElement('html', '<div><h3>'.Display::return_icon('certificate.png', Security::remove_XSS(get_lang('Certificates')),'',ICON_SIZE_SMALL).' '.Security::remove_XSS(get_lang('Certificates')).'</h3><div>'); |
|
480 | +if (api_get_setting('allow_public_certificates') == 'true') { |
|
481 | + $form->addElement('html', '<div><h3>'.Display::return_icon('certificate.png', Security::remove_XSS(get_lang('Certificates')), '', ICON_SIZE_SMALL).' '.Security::remove_XSS(get_lang('Certificates')).'</h3><div>'); |
|
482 | 482 | $group = array(); |
483 | - $group[]=$form->createElement('radio', 'allow_public_certificates', get_lang('AllowPublicCertificates'), get_lang('Yes'), 1); |
|
484 | - $group[]=$form->createElement('radio', 'allow_public_certificates', null, get_lang('No'), 0); |
|
483 | + $group[] = $form->createElement('radio', 'allow_public_certificates', get_lang('AllowPublicCertificates'), get_lang('Yes'), 1); |
|
484 | + $group[] = $form->createElement('radio', 'allow_public_certificates', null, get_lang('No'), 0); |
|
485 | 485 | $form->addGroup($group, '', array(get_lang('AllowPublicCertificates')), ''); |
486 | 486 | $form->addButtonSave(get_lang('SaveSettings'), 'submit_save'); |
487 | 487 | $form->addElement('html', '</div></div>'); |
@@ -490,7 +490,7 @@ discard block |
||
490 | 490 | // Forum settings |
491 | 491 | $form->addElement( |
492 | 492 | 'html', |
493 | - '<div><h3>'.Display::return_icon('forum.png', Security::remove_XSS(get_lang('Forum')),'',ICON_SIZE_SMALL).' '.Security::remove_XSS(get_lang('Forum')).'</h3><div>' |
|
493 | + '<div><h3>'.Display::return_icon('forum.png', Security::remove_XSS(get_lang('Forum')), '', ICON_SIZE_SMALL).' '.Security::remove_XSS(get_lang('Forum')).'</h3><div>' |
|
494 | 494 | ); |
495 | 495 | |
496 | 496 | $group = array( |
@@ -29,7 +29,7 @@ discard block |
||
29 | 29 | return "<script> |
30 | 30 | function confirmation (name) |
31 | 31 | { |
32 | - if (confirm(\" " . get_lang("NoteConfirmDelete") . " \"+ name + \" ?\")) |
|
32 | + if (confirm(\" " . get_lang("NoteConfirmDelete")." \"+ name + \" ?\")) |
|
33 | 33 | {return true;} |
34 | 34 | else |
35 | 35 | {return false;} |
@@ -107,7 +107,7 @@ discard block |
||
107 | 107 | description AS note_comment, |
108 | 108 | session_id AS session_id |
109 | 109 | FROM $t_notebook |
110 | - WHERE c_id = $course_id AND notebook_id = '" . intval($notebook_id) . "' "; |
|
110 | + WHERE c_id = $course_id AND notebook_id = '".intval($notebook_id)."' "; |
|
111 | 111 | $result = Database::query($sql); |
112 | 112 | if (Database::num_rows($result) != 1) { |
113 | 113 | return array(); |
@@ -181,8 +181,8 @@ discard block |
||
181 | 181 | $sql = "DELETE FROM $t_notebook |
182 | 182 | WHERE |
183 | 183 | c_id = $course_id AND |
184 | - notebook_id='" . intval($notebook_id) . "' AND |
|
185 | - user_id = '" . api_get_user_id() . "'"; |
|
184 | + notebook_id='".intval($notebook_id)."' AND |
|
185 | + user_id = '" . api_get_user_id()."'"; |
|
186 | 186 | $result = Database::query($sql); |
187 | 187 | $affected_rows = Database::affected_rows($result); |
188 | 188 | if ($affected_rows != 1) { |
@@ -220,22 +220,22 @@ discard block |
||
220 | 220 | echo '<div class="actions">'; |
221 | 221 | if (!api_is_anonymous()) { |
222 | 222 | if (api_get_session_id() == 0) |
223 | - echo '<a href="index.php?' . api_get_cidreq() . '&action=addnote">' . |
|
224 | - Display::return_icon('new_note.png', get_lang('NoteAddNew'), '', '32') . '</a>'; |
|
223 | + echo '<a href="index.php?'.api_get_cidreq().'&action=addnote">'. |
|
224 | + Display::return_icon('new_note.png', get_lang('NoteAddNew'), '', '32').'</a>'; |
|
225 | 225 | elseif (api_is_allowed_to_session_edit(false, true)) { |
226 | - echo '<a href="index.php?' . api_get_cidreq() . '&action=addnote">' . |
|
227 | - Display::return_icon('new_note.png', get_lang('NoteAddNew'), '', '32') . '</a>'; |
|
226 | + echo '<a href="index.php?'.api_get_cidreq().'&action=addnote">'. |
|
227 | + Display::return_icon('new_note.png', get_lang('NoteAddNew'), '', '32').'</a>'; |
|
228 | 228 | } |
229 | 229 | } else { |
230 | - echo '<a href="javascript:void(0)">' . Display::return_icon('new_note.png', get_lang('NoteAddNew'), '', '32') . '</a>'; |
|
230 | + echo '<a href="javascript:void(0)">'.Display::return_icon('new_note.png', get_lang('NoteAddNew'), '', '32').'</a>'; |
|
231 | 231 | } |
232 | 232 | |
233 | - echo '<a href="index.php?' . api_get_cidreq() . '&action=changeview&view=creation_date&direction=' . $link_sort_direction . '">' . |
|
234 | - Display::return_icon('notes_order_by_date_new.png', get_lang('OrderByCreationDate'), '', '32') . '</a>'; |
|
235 | - echo '<a href="index.php?' . api_get_cidreq() . '&action=changeview&view=update_date&direction=' . $link_sort_direction . '">' . |
|
236 | - Display::return_icon('notes_order_by_date_mod.png', get_lang('OrderByModificationDate'), '', '32') . '</a>'; |
|
237 | - echo '<a href="index.php?' . api_get_cidreq() . '&action=changeview&view=title&direction=' . $link_sort_direction . '">' . |
|
238 | - Display::return_icon('notes_order_by_title.png', get_lang('OrderByTitle'), '', '32') . '</a>'; |
|
233 | + echo '<a href="index.php?'.api_get_cidreq().'&action=changeview&view=creation_date&direction='.$link_sort_direction.'">'. |
|
234 | + Display::return_icon('notes_order_by_date_new.png', get_lang('OrderByCreationDate'), '', '32').'</a>'; |
|
235 | + echo '<a href="index.php?'.api_get_cidreq().'&action=changeview&view=update_date&direction='.$link_sort_direction.'">'. |
|
236 | + Display::return_icon('notes_order_by_date_mod.png', get_lang('OrderByModificationDate'), '', '32').'</a>'; |
|
237 | + echo '<a href="index.php?'.api_get_cidreq().'&action=changeview&view=title&direction='.$link_sort_direction.'">'. |
|
238 | + Display::return_icon('notes_order_by_title.png', get_lang('OrderByTitle'), '', '32').'</a>'; |
|
239 | 239 | echo '</div>'; |
240 | 240 | |
241 | 241 | if (!isset($_SESSION['notebook_view']) || !in_array($_SESSION['notebook_view'], array('creation_date', 'update_date', 'title'))) { |
@@ -246,9 +246,9 @@ discard block |
||
246 | 246 | $t_notebook = Database :: get_course_table(TABLE_NOTEBOOK); |
247 | 247 | $order_by = ""; |
248 | 248 | if ($_SESSION['notebook_view'] == 'creation_date' || $_SESSION['notebook_view'] == 'update_date') { |
249 | - $order_by = " ORDER BY " . $_SESSION['notebook_view'] . " $sort_direction "; |
|
249 | + $order_by = " ORDER BY ".$_SESSION['notebook_view']." $sort_direction "; |
|
250 | 250 | } else { |
251 | - $order_by = " ORDER BY " . $_SESSION['notebook_view'] . " $sort_direction "; |
|
251 | + $order_by = " ORDER BY ".$_SESSION['notebook_view']." $sort_direction "; |
|
252 | 252 | } |
253 | 253 | |
254 | 254 | //condition for the session |
@@ -261,7 +261,7 @@ discard block |
||
261 | 261 | $sql = "SELECT * FROM $t_notebook |
262 | 262 | WHERE |
263 | 263 | c_id = $course_id AND |
264 | - user_id = '" . api_get_user_id() . "' |
|
264 | + user_id = '".api_get_user_id()."' |
|
265 | 265 | $condition_session |
266 | 266 | $cond_extra $order_by |
267 | 267 | "; |
@@ -274,18 +274,18 @@ discard block |
||
274 | 274 | |
275 | 275 | $updateValue = ''; |
276 | 276 | if ($row['update_date'] <> $row['creation_date']) { |
277 | - $updateValue = ', ' . get_lang('UpdateDate') . ': ' . date_to_str_ago($row['update_date']) . ' <span class="dropbox_date">' . $update_date . '</span>'; |
|
277 | + $updateValue = ', '.get_lang('UpdateDate').': '.date_to_str_ago($row['update_date']).' <span class="dropbox_date">'.$update_date.'</span>'; |
|
278 | 278 | } |
279 | 279 | |
280 | - $actions = '<a href="' . api_get_self() . '?action=editnote¬ebook_id=' . $row['notebook_id'] . '">' . |
|
281 | - Display::return_icon('edit.png', get_lang('Edit'), '', ICON_SIZE_SMALL) . '</a>'; |
|
282 | - $actions .= '<a href="' . api_get_self() . '?action=deletenote¬ebook_id=' . $row['notebook_id'] . '" onclick="return confirmation(\'' . $row['title'] . '\');">' . |
|
283 | - Display::return_icon('delete.png', get_lang('Delete'), '', ICON_SIZE_SMALL) . '</a>'; |
|
280 | + $actions = '<a href="'.api_get_self().'?action=editnote¬ebook_id='.$row['notebook_id'].'">'. |
|
281 | + Display::return_icon('edit.png', get_lang('Edit'), '', ICON_SIZE_SMALL).'</a>'; |
|
282 | + $actions .= '<a href="'.api_get_self().'?action=deletenote¬ebook_id='.$row['notebook_id'].'" onclick="return confirmation(\''.$row['title'].'\');">'. |
|
283 | + Display::return_icon('delete.png', get_lang('Delete'), '', ICON_SIZE_SMALL).'</a>'; |
|
284 | 284 | |
285 | 285 | echo Display::panel( |
286 | 286 | $row['description'], |
287 | - $row['title'] . $session_img.' <div class="pull-right">'.$actions.'</div>', |
|
288 | - get_lang('CreationDate') . ': ' . date_to_str_ago($row['creation_date']) . ' <span class="dropbox_date">' . $creation_date . $updateValue."</span>" |
|
287 | + $row['title'].$session_img.' <div class="pull-right">'.$actions.'</div>', |
|
288 | + get_lang('CreationDate').': '.date_to_str_ago($row['creation_date']).' <span class="dropbox_date">'.$creation_date.$updateValue."</span>" |
|
289 | 289 | ); |
290 | 290 | } |
291 | 291 | } |
@@ -17,7 +17,7 @@ discard block |
||
17 | 17 | api_block_anonymous_users(); |
18 | 18 | |
19 | 19 | $interbreadcrumb[] = array( |
20 | - "url" => api_is_student_boss()?"#":api_get_path(WEB_CODE_PATH) . "mySpace/index.php?".api_get_cidreq(), |
|
20 | + "url" => api_is_student_boss() ? "#" : api_get_path(WEB_CODE_PATH)."mySpace/index.php?".api_get_cidreq(), |
|
21 | 21 | "name" => get_lang("MySpace") |
22 | 22 | ); |
23 | 23 | |
@@ -111,7 +111,7 @@ discard block |
||
111 | 111 | } |
112 | 112 | |
113 | 113 | if (!is_null($gradebook)) { |
114 | - $exportAllLink = api_get_path(WEB_CODE_PATH) . "gradebook/gradebook_display_certificate.php?"; |
|
114 | + $exportAllLink = api_get_path(WEB_CODE_PATH)."gradebook/gradebook_display_certificate.php?"; |
|
115 | 115 | $exportAllLink .= http_build_query(array( |
116 | 116 | "action" => "export_all_certificates", |
117 | 117 | "cidReq" => $selectedCourseInfo['code'], |
@@ -250,7 +250,7 @@ discard block |
||
250 | 250 | $searchBySessionCourseDateForm = new FormValidator( |
251 | 251 | 'certificate_report_form', |
252 | 252 | 'post', |
253 | - api_get_path(WEB_CODE_PATH) . 'gradebook/certificate_report.php' |
|
253 | + api_get_path(WEB_CODE_PATH).'gradebook/certificate_report.php' |
|
254 | 254 | ); |
255 | 255 | $searchBySessionCourseDateForm->addSelect('session', get_lang('Sessions'), $sessions, ['id' => 'session']); |
256 | 256 | $searchBySessionCourseDateForm->addSelect('course', get_lang('Courses'), $courses, ['id' => 'course']); |
@@ -283,7 +283,7 @@ discard block |
||
283 | 283 | $searchByStudentForm = new FormValidator( |
284 | 284 | 'certificate_report_form', |
285 | 285 | 'post', |
286 | - api_get_path(WEB_CODE_PATH) . 'gradebook/certificate_report.php' |
|
286 | + api_get_path(WEB_CODE_PATH).'gradebook/certificate_report.php' |
|
287 | 287 | ); |
288 | 288 | $searchByStudentForm->addSelect('student', get_lang('Students'), $students, ['id' => 'student']); |
289 | 289 | $searchByStudentForm->addButtonSearch(); |
@@ -16,7 +16,7 @@ discard block |
||
16 | 16 | api_not_allowed(true); |
17 | 17 | } |
18 | 18 | |
19 | -$interbreadcrumb[] = array ('url' => api_is_student_boss()?'#':'index.php', 'name' => get_lang('MySpace')); |
|
19 | +$interbreadcrumb[] = array('url' => api_is_student_boss() ? '#' : 'index.php', 'name' => get_lang('MySpace')); |
|
20 | 20 | $tool_name = get_lang('Report'); |
21 | 21 | |
22 | 22 | $this_section = SECTION_TRACKING; |
@@ -42,13 +42,13 @@ discard block |
||
42 | 42 | |
43 | 43 | //Column config |
44 | 44 | $column_model = array( |
45 | - array('name'=>'course', 'index'=>'title', 'width'=>'180', 'align'=>'left', 'wrap_cell' => 'true'), |
|
46 | - array('name'=>'user', 'index'=>'user', 'width'=>'100', 'align'=>'left','sortable'=>'false', 'wrap_cell' => 'true'), |
|
47 | - array('name'=>'email', 'index'=>'email', 'width'=>'100', 'align'=>'left','sortable'=>'false', 'wrap_cell' => 'true'), |
|
48 | - array('name'=>'time', 'index'=>'time', 'width'=>'50', 'align'=>'left','sortable'=>'false'), |
|
49 | - array('name'=>'certificate', 'index'=>'certificate', 'width'=>'50', 'align'=>'left','sortable'=>'false'), |
|
50 | - array('name'=>'progress_100', 'index'=>'progress_100', 'width'=>'50', 'align'=>'left','sortable'=>'false'), |
|
51 | - array('name'=>'progress', 'index'=>'progress', 'width'=>'50', 'align'=>'left','sortable'=>'false') |
|
45 | + array('name'=>'course', 'index'=>'title', 'width'=>'180', 'align'=>'left', 'wrap_cell' => 'true'), |
|
46 | + array('name'=>'user', 'index'=>'user', 'width'=>'100', 'align'=>'left', 'sortable'=>'false', 'wrap_cell' => 'true'), |
|
47 | + array('name'=>'email', 'index'=>'email', 'width'=>'100', 'align'=>'left', 'sortable'=>'false', 'wrap_cell' => 'true'), |
|
48 | + array('name'=>'time', 'index'=>'time', 'width'=>'50', 'align'=>'left', 'sortable'=>'false'), |
|
49 | + array('name'=>'certificate', 'index'=>'certificate', 'width'=>'50', 'align'=>'left', 'sortable'=>'false'), |
|
50 | + array('name'=>'progress_100', 'index'=>'progress_100', 'width'=>'50', 'align'=>'left', 'sortable'=>'false'), |
|
51 | + array('name'=>'progress', 'index'=>'progress', 'width'=>'50', 'align'=>'left', 'sortable'=>'false') |
|
52 | 52 | ); |
53 | 53 | |
54 | 54 | if (!empty($extra_fields)) { |
@@ -67,7 +67,7 @@ discard block |
||
67 | 67 | } |
68 | 68 | |
69 | 69 | if (api_is_student_boss()) { |
70 | - $column_model[] = array('name'=>'group', 'index'=>'group', 'width'=>'50', 'align'=>'left','sortable'=>'false'); |
|
70 | + $column_model[] = array('name'=>'group', 'index'=>'group', 'width'=>'50', 'align'=>'left', 'sortable'=>'false'); |
|
71 | 71 | $columns[] = get_lang('Group'); |
72 | 72 | } |
73 | 73 | |
@@ -78,7 +78,7 @@ discard block |
||
78 | 78 | |
79 | 79 | $htmlHeadXtra[] = '<script> |
80 | 80 | $(function() { |
81 | - '.Display::grid_js('user_course_report', $url, $columns, $column_model, $extra_params, array(), null, true).' |
|
81 | + '.Display::grid_js('user_course_report', $url, $columns, $column_model, $extra_params, array(), null, true).' |
|
82 | 82 | jQuery("#user_course_report").jqGrid("navGrid","#user_course_report_pager",{ |
83 | 83 | view:false, |
84 | 84 | edit:false, |
@@ -102,11 +102,11 @@ discard block |
||
102 | 102 | if (api_is_student_boss()) { |
103 | 103 | $actions .= Display::url( |
104 | 104 | Display::return_icon('stats.png', get_lang('MyStats'), '', ICON_SIZE_MEDIUM), |
105 | - api_get_path(WEB_CODE_PATH) . "auth/my_progress.php" |
|
105 | + api_get_path(WEB_CODE_PATH)."auth/my_progress.php" |
|
106 | 106 | ); |
107 | 107 | $actions .= Display::url( |
108 | 108 | Display::return_icon('user.png', get_lang('Students'), array(), ICON_SIZE_MEDIUM), |
109 | - api_get_path(WEB_CODE_PATH) . "mySpace/student.php" |
|
109 | + api_get_path(WEB_CODE_PATH)."mySpace/student.php" |
|
110 | 110 | ); |
111 | 111 | $actions .= Display::url( |
112 | 112 | Display::return_icon("statistics.png", get_lang("CompanyReport"), array(), ICON_SIZE_MEDIUM), |
@@ -119,7 +119,7 @@ discard block |
||
119 | 119 | [], |
120 | 120 | ICON_SIZE_MEDIUM |
121 | 121 | ), |
122 | - api_get_path(WEB_CODE_PATH) . "gradebook/certificate_report.php" |
|
122 | + api_get_path(WEB_CODE_PATH)."gradebook/certificate_report.php" |
|
123 | 123 | ); |
124 | 124 | } |
125 | 125 | |
@@ -130,13 +130,13 @@ discard block |
||
130 | 130 | } |
131 | 131 | $content .= Display::url( |
132 | 132 | get_lang("CompanyReportResumed"), |
133 | - api_get_path(WEB_CODE_PATH) . "mySpace/company_reports_resumed.php", |
|
133 | + api_get_path(WEB_CODE_PATH)."mySpace/company_reports_resumed.php", |
|
134 | 134 | array( |
135 | 135 | 'class' => 'btn btn-success' |
136 | 136 | ) |
137 | 137 | ); |
138 | 138 | $content .= '</div>'; |
139 | -$content .= '<h1 class="page-header">' . get_lang('CompanyReport') . '</h1>'; |
|
139 | +$content .= '<h1 class="page-header">'.get_lang('CompanyReport').'</h1>'; |
|
140 | 140 | $content .= Display::grid_html('user_course_report'); |
141 | 141 | |
142 | 142 | $tpl = new Template($tool_name); |
@@ -19,14 +19,14 @@ discard block |
||
19 | 19 | |
20 | 20 | $this_section = SECTION_TRACKING; |
21 | 21 | |
22 | -$interbreadcrumb[] = array ("url" => api_is_student_boss()?"#":"index.php", "name" => get_lang('MySpace')); |
|
22 | +$interbreadcrumb[] = array("url" => api_is_student_boss() ? "#" : "index.php", "name" => get_lang('MySpace')); |
|
23 | 23 | |
24 | 24 | if (isset($_GET["user_id"]) && $_GET["user_id"] != "" && !isset($_GET["type"])) { |
25 | - $interbreadcrumb[] = array ("url" => "teachers.php", "name" => get_lang('Teachers')); |
|
25 | + $interbreadcrumb[] = array("url" => "teachers.php", "name" => get_lang('Teachers')); |
|
26 | 26 | } |
27 | 27 | |
28 | -if (isset($_GET["user_id"]) && $_GET["user_id"]!="" && isset($_GET["type"]) && $_GET["type"] == "coach") { |
|
29 | - $interbreadcrumb[] = array ("url" => "coaches.php", "name" => get_lang('Tutors')); |
|
28 | +if (isset($_GET["user_id"]) && $_GET["user_id"] != "" && isset($_GET["type"]) && $_GET["type"] == "coach") { |
|
29 | + $interbreadcrumb[] = array("url" => "coaches.php", "name" => get_lang('Tutors')); |
|
30 | 30 | } |
31 | 31 | |
32 | 32 | function get_count_users() |
@@ -121,8 +121,8 @@ discard block |
||
121 | 121 | $courseInfo = api_get_course_info($course_code); |
122 | 122 | $courseId = $courseInfo['real_id']; |
123 | 123 | if (CourseManager :: is_user_subscribed_in_course($student_id, $course_code, true)) { |
124 | - $avg_time_spent += Tracking :: get_time_spent_on_the_course($student_id, $courseId, $_GET['id_session']); |
|
125 | - $my_average = Tracking :: get_avg_student_score($student_id, $course_code); |
|
124 | + $avg_time_spent += Tracking :: get_time_spent_on_the_course($student_id, $courseId, $_GET['id_session']); |
|
125 | + $my_average = Tracking :: get_avg_student_score($student_id, $course_code); |
|
126 | 126 | if (is_numeric($my_average)) { |
127 | 127 | $avg_student_score += $my_average; |
128 | 128 | } |
@@ -161,7 +161,7 @@ discard block |
||
161 | 161 | $detailsLink = '<a href="myStudents.php?student='.$student_id.'&id_coach='.$coach_id.'&id_session='.$_GET['id_session'].'"> |
162 | 162 | '.Display::return_icon('2rightarrow.png').'</a>'; |
163 | 163 | } else { |
164 | - $detailsLink = '<a href="myStudents.php?student='.$student_id.'"> |
|
164 | + $detailsLink = '<a href="myStudents.php?student='.$student_id.'"> |
|
165 | 165 | '.Display::return_icon('2rightarrow.png').'</a>'; |
166 | 166 | } |
167 | 167 | |
@@ -190,7 +190,7 @@ discard block |
||
190 | 190 | |
191 | 191 | if (api_is_drh()) { |
192 | 192 | $menu_items = array( |
193 | - Display::url(Display::return_icon('stats.png', get_lang('MyStats'), '', ICON_SIZE_MEDIUM), api_get_path(WEB_CODE_PATH)."auth/my_progress.php" ), |
|
193 | + Display::url(Display::return_icon('stats.png', get_lang('MyStats'), '', ICON_SIZE_MEDIUM), api_get_path(WEB_CODE_PATH)."auth/my_progress.php"), |
|
194 | 194 | Display::url(Display::return_icon('user_na.png', get_lang('Students'), array(), ICON_SIZE_MEDIUM), '#'), |
195 | 195 | Display::url(Display::return_icon('teacher.png', get_lang('Trainers'), array(), ICON_SIZE_MEDIUM), 'teachers.php'), |
196 | 196 | Display::url(Display::return_icon('course.png', get_lang('Courses'), array(), ICON_SIZE_MEDIUM), 'course.php'), |
@@ -218,7 +218,7 @@ discard block |
||
218 | 218 | ); |
219 | 219 | $actionsLeft .= Display::url( |
220 | 220 | Display::return_icon("statistics.png", get_lang("CompanyReport"), array(), ICON_SIZE_MEDIUM), |
221 | - api_get_path(WEB_CODE_PATH) . "mySpace/company_reports.php" |
|
221 | + api_get_path(WEB_CODE_PATH)."mySpace/company_reports.php" |
|
222 | 222 | ); |
223 | 223 | $actionsLeft .= Display::url( |
224 | 224 | Display::return_icon( |
@@ -227,7 +227,7 @@ discard block |
||
227 | 227 | [], |
228 | 228 | ICON_SIZE_MEDIUM |
229 | 229 | ), |
230 | - api_get_path(WEB_CODE_PATH) . "gradebook/certificate_report.php" |
|
230 | + api_get_path(WEB_CODE_PATH)."gradebook/certificate_report.php" |
|
231 | 231 | ); |
232 | 232 | } |
233 | 233 | |
@@ -242,7 +242,7 @@ discard block |
||
242 | 242 | ); |
243 | 243 | |
244 | 244 | |
245 | -$toolbar = Display::toolbarAction('toolbar-student', $content = array( 0 => $actionsLeft, 1 => $actionsRight )); |
|
245 | +$toolbar = Display::toolbarAction('toolbar-student', $content = array(0 => $actionsLeft, 1 => $actionsRight)); |
|
246 | 246 | |
247 | 247 | $table = new SortableTable( |
248 | 248 | 'tracking_student', |
@@ -15,7 +15,7 @@ discard block |
||
15 | 15 | api_not_allowed(true); |
16 | 16 | } |
17 | 17 | |
18 | -$interbreadcrumb[] = array('url' => api_is_student_boss()?'#':'index.php', 'name' => get_lang('MySpace')); |
|
18 | +$interbreadcrumb[] = array('url' => api_is_student_boss() ? '#' : 'index.php', 'name' => get_lang('MySpace')); |
|
19 | 19 | |
20 | 20 | $tool_name = get_lang('Report'); |
21 | 21 | $this_section = SECTION_TRACKING; |
@@ -89,15 +89,15 @@ discard block |
||
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 |
||
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 |
||
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 |
||
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); |