@@ -500,7 +500,7 @@ |
||
500 | 500 | $html .= '</div>'; |
501 | 501 | $html .= '</div></div>'; |
502 | 502 | } |
503 | - echo $html; |
|
503 | + echo $html; |
|
504 | 504 | } |
505 | 505 | } |
506 | 506 | if (count($forum_list) == 0) { |
@@ -52,17 +52,17 @@ discard block |
||
52 | 52 | $origin = ''; |
53 | 53 | |
54 | 54 | if (isset($_GET['origin'])) { |
55 | - $origin = Security::remove_XSS($_GET['origin']); |
|
55 | + $origin = Security::remove_XSS($_GET['origin']); |
|
56 | 56 | } |
57 | 57 | |
58 | 58 | /* Header and Breadcrumbs */ |
59 | 59 | $gradebook = null; |
60 | 60 | if (isset($_SESSION['gradebook'])) { |
61 | - $gradebook= $_SESSION['gradebook']; |
|
61 | + $gradebook = $_SESSION['gradebook']; |
|
62 | 62 | } |
63 | 63 | |
64 | 64 | if (!empty($gradebook) && $gradebook == 'view') { |
65 | - $interbreadcrumb[] = array ( |
|
65 | + $interbreadcrumb[] = array( |
|
66 | 66 | 'url' => '../gradebook/'.$_SESSION['gradebook_dest'], |
67 | 67 | 'name' => get_lang('ToolGradebook') |
68 | 68 | ); |
@@ -72,16 +72,16 @@ discard block |
||
72 | 72 | |
73 | 73 | $current_forum_category = get_forum_categories($_GET['forumcategory']); |
74 | 74 | $interbreadcrumb[] = array( |
75 | - 'url' => 'index.php?gradebook=' . $gradebook . '&search=' |
|
75 | + 'url' => 'index.php?gradebook='.$gradebook.'&search=' |
|
76 | 76 | . Security::remove_XSS(urlencode(isset($_GET['search']) ? $_GET['search'] : '')), |
77 | 77 | 'name' => get_lang('Forum') |
78 | 78 | ); |
79 | 79 | |
80 | 80 | if (!empty($_GET['action']) && !empty($_GET['content'])) { |
81 | - if ($_GET['action']=='add' && $_GET['content']=='forum' ) { |
|
81 | + if ($_GET['action'] == 'add' && $_GET['content'] == 'forum') { |
|
82 | 82 | $interbreadcrumb[] = array( |
83 | 83 | 'url' => 'viewforumcategory.php?forumcategory=' |
84 | - . $current_forum_category['cat_id'] . '&origin=' . $origin, |
|
84 | + . $current_forum_category['cat_id'].'&origin='.$origin, |
|
85 | 85 | 'name' => $current_forum_category['cat_title'] |
86 | 86 | ); |
87 | 87 | $interbreadcrumb[] = array( |
@@ -96,7 +96,7 @@ discard block |
||
96 | 96 | ); |
97 | 97 | } |
98 | 98 | |
99 | -if ($origin=='learnpath') { |
|
99 | +if ($origin == 'learnpath') { |
|
100 | 100 | Display::display_reduced_header(); |
101 | 101 | } else { |
102 | 102 | Display::display_header(null); |
@@ -111,7 +111,7 @@ discard block |
||
111 | 111 | // then the user is not allowed here. |
112 | 112 | if ( |
113 | 113 | !api_is_allowed_to_edit(false, true) AND |
114 | - ( $current_forum_category && $current_forum_category['visibility'] == 0) |
|
114 | + ($current_forum_category && $current_forum_category['visibility'] == 0) |
|
115 | 115 | ) { |
116 | 116 | api_not_allowed(); |
117 | 117 | } |
@@ -121,10 +121,10 @@ discard block |
||
121 | 121 | $html .= '<div class="actions">'; |
122 | 122 | $html .= '<a href="index.php?gradebook='.$gradebook.'&'.api_get_cidreq().'">'. |
123 | 123 | Display::return_icon('back.png', get_lang('BackToForumOverview'), '', ICON_SIZE_MEDIUM).'</a>'; |
124 | -if (api_is_allowed_to_edit(false,true)) { |
|
125 | - $html .= '<a href="' . api_get_self() . '?' . api_get_cidreq() . '&forumcategory=' |
|
126 | - . $current_forum_category['cat_id'] . '&action=add&content=forum"> ' |
|
127 | - . Display::return_icon('new_forum.png', get_lang('AddForum'), '', ICON_SIZE_MEDIUM) . '</a>'; |
|
124 | +if (api_is_allowed_to_edit(false, true)) { |
|
125 | + $html .= '<a href="'.api_get_self().'?'.api_get_cidreq().'&forumcategory=' |
|
126 | + . $current_forum_category['cat_id'].'&action=add&content=forum"> ' |
|
127 | + . Display::return_icon('new_forum.png', get_lang('AddForum'), '', ICON_SIZE_MEDIUM).'</a>'; |
|
128 | 128 | } |
129 | 129 | $html .= search_link(); |
130 | 130 | $html .= '</div>'; |
@@ -184,7 +184,7 @@ discard block |
||
184 | 184 | $forum_categories_list = ''; |
185 | 185 | $forumId = $forum_category['cat_id']; |
186 | 186 | $forumTitle = $forum_category['cat_title']; |
187 | - $linkForumCategory = 'viewforumcategory.php?' . api_get_cidreq() . '&forumcategory=' . strval(intval($forumId)); |
|
187 | + $linkForumCategory = 'viewforumcategory.php?'.api_get_cidreq().'&forumcategory='.strval(intval($forumId)); |
|
188 | 188 | $descriptionCategory = $forum_category['cat_comment']; |
189 | 189 | $icoCategory = Display::return_icon( |
190 | 190 | 'forum_blue.png', |
@@ -195,16 +195,16 @@ discard block |
||
195 | 195 | |
196 | 196 | if (api_is_allowed_to_edit(false, true) && !($forum_category['session_id'] == 0 && $sessionId != 0)) { |
197 | 197 | |
198 | - $iconsEdit = '<a href="' . api_get_self() . '?' . api_get_cidreq() . '&forumcategory=' |
|
199 | - . Security::remove_XSS($_GET['forumcategory']) . '&action=edit&content=forumcategory&id=' |
|
200 | - . '' . $forumId . '">' |
|
201 | - . Display::return_icon('edit.png', get_lang('Edit'), array(), ICON_SIZE_SMALL) . '</a>'; |
|
202 | - $iconsEdit .= '<a href="' . api_get_self() . '?' . api_get_cidreq() . '&forumcategory=' |
|
198 | + $iconsEdit = '<a href="'.api_get_self().'?'.api_get_cidreq().'&forumcategory=' |
|
199 | + . Security::remove_XSS($_GET['forumcategory']).'&action=edit&content=forumcategory&id=' |
|
200 | + . ''.$forumId.'">' |
|
201 | + . Display::return_icon('edit.png', get_lang('Edit'), array(), ICON_SIZE_SMALL).'</a>'; |
|
202 | + $iconsEdit .= '<a href="'.api_get_self().'?'.api_get_cidreq().'&forumcategory=' |
|
203 | 203 | . Security::remove_XSS($_GET['forumcategory']) |
204 | - . '&action=delete&content=forumcategory&id=' . $forumId |
|
204 | + . '&action=delete&content=forumcategory&id='.$forumId |
|
205 | 205 | . "\" onclick=\"javascript:if(!confirm('" |
206 | 206 | . addslashes(api_htmlentities(get_lang('DeleteForumCategory'), ENT_QUOTES)) |
207 | - . "')) return false;\">" . Display::return_icon('delete.png', get_lang('Delete'), array(), ICON_SIZE_SMALL) |
|
207 | + . "')) return false;\">".Display::return_icon('delete.png', get_lang('Delete'), array(), ICON_SIZE_SMALL) |
|
208 | 208 | . '</a>'; |
209 | 209 | $iconsEdit .= return_visible_invisible_icon( |
210 | 210 | 'forumcategory', $forum_category['cat_id'], |
@@ -244,7 +244,7 @@ discard block |
||
244 | 244 | ); |
245 | 245 | |
246 | 246 | |
247 | - if ($descriptionCategory != '' && trim($descriptionCategory)!= ' ') |
|
247 | + if ($descriptionCategory != '' && trim($descriptionCategory) != ' ') |
|
248 | 248 | { |
249 | 249 | $html .= '<div class="forum-description">'.$descriptionCategory.'</div>'; |
250 | 250 | } |
@@ -284,7 +284,7 @@ discard block |
||
284 | 284 | // SHOULD WE SHOW THIS PARTICULAR FORUM |
285 | 285 | // you are teacher => show forum |
286 | 286 | |
287 | - if (api_is_allowed_to_edit(false,true)) { |
|
287 | + if (api_is_allowed_to_edit(false, true)) { |
|
288 | 288 | //echo 'teacher'; |
289 | 289 | $show_forum = true; |
290 | 290 | } else { |
@@ -351,9 +351,9 @@ discard block |
||
351 | 351 | ? $all_groups[$forum['forum_of_group']]['id'] |
352 | 352 | : null; |
353 | 353 | $group_title = api_substr($my_all_groups_forum_name, 0, 30); |
354 | - $forum_title_group_addition = ' (<a href="../group/group_space.php?' . api_get_cidreq() |
|
355 | - . '&gidReq=' . $my_all_groups_forum_id . '" class="forum_group_link">' |
|
356 | - . get_lang('GoTo') . ' ' . $group_title . '</a>)'; |
|
354 | + $forum_title_group_addition = ' (<a href="../group/group_space.php?'.api_get_cidreq() |
|
355 | + . '&gidReq='.$my_all_groups_forum_id.'" class="forum_group_link">' |
|
356 | + . get_lang('GoTo').' '.$group_title.'</a>)'; |
|
357 | 357 | } else { |
358 | 358 | $forum_title_group_addition = ''; |
359 | 359 | } |
@@ -371,7 +371,7 @@ discard block |
||
371 | 371 | $html .= '<div class="row">'; |
372 | 372 | $html .= '<div class="col-md-6">'; |
373 | 373 | $html .= '<div class="col-md-3">'; |
374 | - $html .= '<div class="number-post">'.$forum_image .'<p>' . $my_number_threads . ' ' . get_lang('ForumThreads') . '</p></div>'; |
|
374 | + $html .= '<div class="number-post">'.$forum_image.'<p>'.$my_number_threads.' '.get_lang('ForumThreads').'</p></div>'; |
|
375 | 375 | $html .= '</div>'; |
376 | 376 | |
377 | 377 | $html .= '<div class="col-md-9">'; |
@@ -386,7 +386,7 @@ discard block |
||
386 | 386 | 'a', |
387 | 387 | $forum['forum_title'].$session_displayed, |
388 | 388 | array( |
389 | - 'href' => 'viewforum.php?' . api_get_cidreq() |
|
389 | + 'href' => 'viewforum.php?'.api_get_cidreq() |
|
390 | 390 | . "&gidReq={$forum['forum_of_group']}&forum={$forum['forum_id']}&origin=$origin&search=" |
391 | 391 | . Security::remove_XSS(urlencode(isset($_GET['search']) ? $_GET['search'] : '')), |
392 | 392 | 'class' => return_visible_invisible($forum['visibility']) |
@@ -394,7 +394,7 @@ discard block |
||
394 | 394 | ); |
395 | 395 | $html .= Display::tag( |
396 | 396 | 'h3', |
397 | - $linkForum . ' ' . $forum_title_group_addition, |
|
397 | + $linkForum.' '.$forum_title_group_addition, |
|
398 | 398 | array( |
399 | 399 | 'class' => 'title' |
400 | 400 | ) |
@@ -410,19 +410,19 @@ discard block |
||
410 | 410 | $html .= '</div>'; |
411 | 411 | $html .= '<div class="col-md-6">'; |
412 | 412 | |
413 | - $iconEmpty=''; |
|
413 | + $iconEmpty = ''; |
|
414 | 414 | |
415 | 415 | // The number of topics and posts. |
416 | 416 | if ($forum['forum_of_group'] !== '0') { |
417 | 417 | $newPost = ''; |
418 | 418 | if (is_array($my_whatsnew_post_info) && !empty($my_whatsnew_post_info)) { |
419 | - $newPost = ' ' . Display::return_icon('alert.png', get_lang('Forum'), null, ICON_SIZE_SMALL); |
|
419 | + $newPost = ' '.Display::return_icon('alert.png', get_lang('Forum'), null, ICON_SIZE_SMALL); |
|
420 | 420 | } else { |
421 | 421 | $newPost = $iconEmpty; |
422 | 422 | } |
423 | 423 | } else { |
424 | 424 | if (is_array($my_whatsnew_post_info) && !empty($my_whatsnew_post_info)) { |
425 | - $newPost = ' ' . Display::return_icon('alert.png', get_lang('Forum'), null, ICON_SIZE_SMALL); |
|
425 | + $newPost = ' '.Display::return_icon('alert.png', get_lang('Forum'), null, ICON_SIZE_SMALL); |
|
426 | 426 | } else { |
427 | 427 | $newPost = $iconEmpty; |
428 | 428 | } |
@@ -430,7 +430,7 @@ discard block |
||
430 | 430 | |
431 | 431 | $html .= '<div class="row">'; |
432 | 432 | $html .= '<div class="col-md-2">'; |
433 | - $html .= $newPost . '</div>'; |
|
433 | + $html .= $newPost.'</div>'; |
|
434 | 434 | |
435 | 435 | // the last post in the forum |
436 | 436 | if ($forum['last_poster_name'] != '') { |
@@ -442,9 +442,9 @@ discard block |
||
442 | 442 | } |
443 | 443 | $html .= '<div class="col-md-6">'; |
444 | 444 | if (!empty($forum['last_post_id'])) { |
445 | - $html .= Display::return_icon('post-item.png', null, null, ICON_SIZE_TINY) . ' '; |
|
445 | + $html .= Display::return_icon('post-item.png', null, null, ICON_SIZE_TINY).' '; |
|
446 | 446 | $html .= api_convert_and_format_date($forum['last_post_date']) |
447 | - . ' ' . get_lang('By') . ' ' |
|
447 | + . ' '.get_lang('By').' ' |
|
448 | 448 | . display_user_link($poster_id, $name); |
449 | 449 | } |
450 | 450 | $html .= '</div>'; |
@@ -454,13 +454,13 @@ discard block |
||
454 | 454 | api_is_allowed_to_edit(false, true) && |
455 | 455 | !($forum['session_id'] == 0 && $sessionId != 0) |
456 | 456 | ) { |
457 | - $html .= '<a href="' . api_get_self() . '?' . api_get_cidreq() . '&forumcategory=' |
|
457 | + $html .= '<a href="'.api_get_self().'?'.api_get_cidreq().'&forumcategory=' |
|
458 | 458 | . Security::remove_XSS($_GET['forumcategory']) |
459 | - . '&action=edit&content=forum&id=' . $forum['forum_id'] . '">' |
|
460 | - . Display::return_icon('edit.png', get_lang('Edit'), array(), ICON_SIZE_SMALL) . '</a>'; |
|
461 | - $html .= '<a href="' . api_get_self() . '?' . api_get_cidreq() . '&forumcategory=' |
|
459 | + . '&action=edit&content=forum&id='.$forum['forum_id'].'">' |
|
460 | + . Display::return_icon('edit.png', get_lang('Edit'), array(), ICON_SIZE_SMALL).'</a>'; |
|
461 | + $html .= '<a href="'.api_get_self().'?'.api_get_cidreq().'&forumcategory=' |
|
462 | 462 | . Security::remove_XSS($_GET['forumcategory']) |
463 | - . '&action=delete&content=forum&id=' . $forum['forum_id'] |
|
463 | + . '&action=delete&content=forum&id='.$forum['forum_id'] |
|
464 | 464 | . "\" onclick=\"javascript:if(!confirm('" |
465 | 465 | . addslashes(api_htmlentities(get_lang('DeleteForum'), ENT_QUOTES)) |
466 | 466 | . "')) return false;\">" |
@@ -484,15 +484,15 @@ discard block |
||
484 | 484 | $iconnotify = 'notification_mail_na.png'; |
485 | 485 | |
486 | 486 | if (is_array(isset($_SESSION['forum_notification']['forum']) ? $_SESSION['forum_notification']['forum'] : null)) { |
487 | - if (in_array($forum['forum_id'],$_SESSION['forum_notification']['forum'])) { |
|
487 | + if (in_array($forum['forum_id'], $_SESSION['forum_notification']['forum'])) { |
|
488 | 488 | $iconnotify = 'notification_mail.png'; |
489 | 489 | } |
490 | 490 | } |
491 | 491 | |
492 | 492 | if (!api_is_anonymous()) { |
493 | - $html .= '<a href="' . api_get_self() . '?' . api_get_cidreq() . '&forumcategory=' |
|
494 | - . Security::remove_XSS($_GET['forumcategory']) . '&action=notify&content=forum&id=' |
|
495 | - . $forum['forum_id'] . '">' . Display::return_icon($iconnotify, get_lang('NotifyMe')) . '</a>'; |
|
493 | + $html .= '<a href="'.api_get_self().'?'.api_get_cidreq().'&forumcategory=' |
|
494 | + . Security::remove_XSS($_GET['forumcategory']).'&action=notify&content=forum&id=' |
|
495 | + . $forum['forum_id'].'">'.Display::return_icon($iconnotify, get_lang('NotifyMe')).'</a>'; |
|
496 | 496 | } |
497 | 497 | $html .= '</div>'; |
498 | 498 | $html .= '</div>'; |
@@ -30,7 +30,7 @@ discard block |
||
30 | 30 | |
31 | 31 | $origin = ''; |
32 | 32 | if (isset($_GET['origin'])) { |
33 | - $origin = Security::remove_XSS($_GET['origin']); |
|
33 | + $origin = Security::remove_XSS($_GET['origin']); |
|
34 | 34 | $origin_string = '&origin='.$origin; |
35 | 35 | } |
36 | 36 | |
@@ -44,8 +44,8 @@ discard block |
||
44 | 44 | // We are getting all the information about the current forum and forum category. |
45 | 45 | // Note pcool: I tried to use only one sql statement (and function) for this, |
46 | 46 | // but the problem is that the visibility of the forum AND forum cateogory are stored in the item_property table. |
47 | -$current_thread = get_thread_information($_GET['thread']); // Note: This has to be validated that it is an existing thread. |
|
48 | -$current_forum = get_forum_information($current_thread['forum_id']); // Note: This has to be validated that it is an existing forum. |
|
47 | +$current_thread = get_thread_information($_GET['thread']); // Note: This has to be validated that it is an existing thread. |
|
48 | +$current_forum = get_forum_information($current_thread['forum_id']); // Note: This has to be validated that it is an existing forum. |
|
49 | 49 | $current_forum_category = get_forumcategory_information(Security::remove_XSS($current_forum['forum_category'])); |
50 | 50 | |
51 | 51 | /* Is the user allowed here? */ |
@@ -80,19 +80,19 @@ discard block |
||
80 | 80 | /* Breadcrumbs */ |
81 | 81 | |
82 | 82 | $gradebook = null; |
83 | -if (isset($_SESSION['gradebook'])){ |
|
83 | +if (isset($_SESSION['gradebook'])) { |
|
84 | 84 | $gradebook = Security::remove_XSS($_SESSION['gradebook']); |
85 | 85 | } |
86 | 86 | |
87 | 87 | if (!empty($gradebook) && $gradebook == 'view') { |
88 | - $interbreadcrumb[] = array ( |
|
88 | + $interbreadcrumb[] = array( |
|
89 | 89 | 'url' => '../gradebook/'.Security::remove_XSS($_SESSION['gradebook_dest']), |
90 | 90 | 'name' => get_lang('ToolGradebook') |
91 | 91 | ); |
92 | 92 | } |
93 | 93 | |
94 | 94 | if ($origin == 'group') { |
95 | - $_clean['toolgroup'] = (int)$_SESSION['toolgroup']; |
|
95 | + $_clean['toolgroup'] = (int) $_SESSION['toolgroup']; |
|
96 | 96 | $group_properties = GroupManager :: get_group_properties($_clean['toolgroup']); |
97 | 97 | $interbreadcrumb[] = array( |
98 | 98 | 'url' => '../group/group.php?'.api_get_cidreq(), |
@@ -188,7 +188,7 @@ discard block |
||
188 | 188 | /* End new display forum */ |
189 | 189 | // The form for the reply |
190 | 190 | $my_action = isset($_GET['action']) ? Security::remove_XSS($_GET['action']) : ''; |
191 | -$my_post = isset($_GET['post']) ? Security::remove_XSS($_GET['post']) : ''; |
|
191 | +$my_post = isset($_GET['post']) ? Security::remove_XSS($_GET['post']) : ''; |
|
192 | 192 | $my_elements = isset($_SESSION['formelements']) ? $_SESSION['formelements'] : ''; |
193 | 193 | $values = show_add_post_form( |
194 | 194 | $current_forum, |
@@ -202,7 +202,7 @@ discard block |
||
202 | 202 | //@todo split the show_add_post_form function |
203 | 203 | $origin = isset($_GET['origin']) && $_GET['origin'] === 'learnpath' ? 'learnpath' : null; |
204 | 204 | |
205 | - $url = 'viewthread.php?' . http_build_query([ |
|
205 | + $url = 'viewthread.php?'.http_build_query([ |
|
206 | 206 | 'forum' => $current_thread['forum_id'], |
207 | 207 | 'gradebook' => $gradebook, |
208 | 208 | 'thread' => intval($_GET['thread']), |
@@ -142,7 +142,7 @@ |
||
142 | 142 | |
143 | 143 | if (!api_is_allowed_to_edit(null, true) && |
144 | 144 | ( |
145 | - ($current_forum_category && $current_forum_category['locked'] <> 0 ) || |
|
145 | + ($current_forum_category && $current_forum_category['locked'] <> 0) || |
|
146 | 146 | $current_forum['locked'] <> 0 || |
147 | 147 | $current_thread['locked'] <> 0 |
148 | 148 | ) |
@@ -1,8 +1,8 @@ |
||
1 | 1 | <?php |
2 | 2 | /* For licensing terms, see /license.txt */ |
3 | 3 | /** |
4 | - * @package chamilo.forum |
|
5 | - */ |
|
4 | + * @package chamilo.forum |
|
5 | + */ |
|
6 | 6 | |
7 | 7 | require_once '../inc/global.inc.php'; |
8 | 8 |
@@ -28,7 +28,7 @@ discard block |
||
28 | 28 | // Are we in a lp ? |
29 | 29 | $origin = ''; |
30 | 30 | if (isset($_GET['origin'])) { |
31 | - $origin = Security::remove_XSS($_GET['origin']); |
|
31 | + $origin = Security::remove_XSS($_GET['origin']); |
|
32 | 32 | } |
33 | 33 | |
34 | 34 | /* MAIN DISPLAY SECTION */ |
@@ -45,12 +45,12 @@ discard block |
||
45 | 45 | |
46 | 46 | /* Header and Breadcrumbs */ |
47 | 47 | |
48 | -if (isset($_SESSION['gradebook'])){ |
|
48 | +if (isset($_SESSION['gradebook'])) { |
|
49 | 49 | $gradebook = $_SESSION['gradebook']; |
50 | 50 | } |
51 | 51 | |
52 | 52 | if (!empty($gradebook) && $gradebook == 'view') { |
53 | - $interbreadcrumb[] = array ( |
|
53 | + $interbreadcrumb[] = array( |
|
54 | 54 | 'url' => '../gradebook/'.$_SESSION['gradebook_dest'], |
55 | 55 | 'name' => get_lang('ToolGradebook') |
56 | 56 | ); |
@@ -183,7 +183,7 @@ discard block |
||
183 | 183 | echo "\t<tr>\n\t\t<th style=\"padding-left:5px;\" align=\"left\" colspan=\"6\">"; |
184 | 184 | echo '<span class="forum_title">'.prepare4display($current_thread['thread_title']).'</span><br />'; |
185 | 185 | |
186 | - if ($origin!='learnpath') { |
|
186 | + if ($origin != 'learnpath') { |
|
187 | 187 | echo '<span class="forum_low_description">'.prepare4display($current_forum_category['cat_title']).' - '; |
188 | 188 | } |
189 | 189 |
@@ -59,12 +59,12 @@ discard block |
||
59 | 59 | /* |
60 | 60 | Header and Breadcrumbs |
61 | 61 | */ |
62 | -if (isset($_SESSION['gradebook'])){ |
|
63 | - $gradebook= $_SESSION['gradebook']; |
|
62 | +if (isset($_SESSION['gradebook'])) { |
|
63 | + $gradebook = $_SESSION['gradebook']; |
|
64 | 64 | } |
65 | 65 | |
66 | -if (!empty($gradebook) && $gradebook=='view') { |
|
67 | - $interbreadcrumb[]= array ( |
|
66 | +if (!empty($gradebook) && $gradebook == 'view') { |
|
67 | + $interbreadcrumb[] = array( |
|
68 | 68 | 'url' => '../gradebook/'.$_SESSION['gradebook_dest'], |
69 | 69 | 'name' => get_lang('ToolGradebook') |
70 | 70 | ); |
@@ -88,7 +88,7 @@ discard block |
||
88 | 88 | "name" => prepare4display($currentForum['forum_title']) |
89 | 89 | ); |
90 | 90 | if ($message <> 'PostDeletedSpecial') { |
91 | - $interbreadcrumb[]= array( |
|
91 | + $interbreadcrumb[] = array( |
|
92 | 92 | "url" => "viewthread.php?forum=".Security::remove_XSS($_GET['forum'])."&gradebook=".$gradebook."&thread=".Security::remove_XSS($_GET['thread']), |
93 | 93 | "name" => prepare4display($currentThread['thread_title']) |
94 | 94 | ); |
@@ -119,8 +119,8 @@ discard block |
||
119 | 119 | ); |
120 | 120 | |
121 | 121 | if ($message <> 'PostDeletedSpecial') { |
122 | - if (isset($_GET['gradebook']) and $_GET['gradebook']=='view') { |
|
123 | - $info_thread=get_thread_information(Security::remove_XSS($_GET['thread'])); |
|
122 | + if (isset($_GET['gradebook']) and $_GET['gradebook'] == 'view') { |
|
123 | + $info_thread = get_thread_information(Security::remove_XSS($_GET['thread'])); |
|
124 | 124 | $interbreadcrumb[] = array( |
125 | 125 | "url" => "viewthread.php?".api_get_cidreq()."&forum=".$info_thread['forum_id']."&thread=".Security::remove_XSS($_GET['thread']), |
126 | 126 | "name" => prepare4display($currentThread['thread_title']) |
@@ -133,7 +133,7 @@ discard block |
||
133 | 133 | } |
134 | 134 | } |
135 | 135 | // the last element of the breadcrumb navigation is already set in interbreadcrumb, so give empty string |
136 | - $interbreadcrumb[]=array("url" => "#","name" => get_lang('QualifyThread')); |
|
136 | + $interbreadcrumb[] = array("url" => "#", "name" => get_lang('QualifyThread')); |
|
137 | 137 | Display :: display_header(''); |
138 | 138 | } |
139 | 139 | } |
@@ -143,7 +143,7 @@ discard block |
||
143 | 143 | */ |
144 | 144 | $action = isset($_GET['action']) ? $_GET['action'] : ''; |
145 | 145 | |
146 | -if ($action =='delete' && |
|
146 | +if ($action == 'delete' && |
|
147 | 147 | isset($_GET['content']) && |
148 | 148 | isset($_GET['id']) && api_is_allowed_to_edit(false, true) |
149 | 149 | ) { |
@@ -240,8 +240,8 @@ discard block |
||
240 | 240 | if (isset($rows)) { |
241 | 241 | $counter = 1; |
242 | 242 | foreach ($rows as $row) { |
243 | - if ($row['status']=='0') { |
|
244 | - $style =" id = 'post".$post_en."' class=\"hide-me\" style=\"border:1px solid red; display:none; background-color:#F7F7F7; width:95%; margin: 0px 0px 4px 40px; \" "; |
|
243 | + if ($row['status'] == '0') { |
|
244 | + $style = " id = 'post".$post_en."' class=\"hide-me\" style=\"border:1px solid red; display:none; background-color:#F7F7F7; width:95%; margin: 0px 0px 4px 40px; \" "; |
|
245 | 245 | } else { |
246 | 246 | $style = ""; |
247 | 247 | $post_en = $row['post_parent_id']; |
@@ -258,20 +258,20 @@ discard block |
||
258 | 258 | |
259 | 259 | echo "<div ".$style."><table class=\"data_table\">"; |
260 | 260 | |
261 | - if ($row['visible']=='0') { |
|
262 | - $titleclass='forum_message_post_title_2_be_approved'; |
|
263 | - $messageclass='forum_message_post_text_2_be_approved'; |
|
264 | - $leftclass='forum_message_left_2_be_approved'; |
|
261 | + if ($row['visible'] == '0') { |
|
262 | + $titleclass = 'forum_message_post_title_2_be_approved'; |
|
263 | + $messageclass = 'forum_message_post_text_2_be_approved'; |
|
264 | + $leftclass = 'forum_message_left_2_be_approved'; |
|
265 | 265 | } else { |
266 | - $titleclass='forum_message_post_title'; |
|
267 | - $messageclass='forum_message_post_text'; |
|
268 | - $leftclass='forum_message_left'; |
|
266 | + $titleclass = 'forum_message_post_title'; |
|
267 | + $messageclass = 'forum_message_post_text'; |
|
268 | + $leftclass = 'forum_message_left'; |
|
269 | 269 | } |
270 | 270 | |
271 | 271 | echo "<tr>"; |
272 | 272 | echo "<td rowspan=\"3\" class=\"$leftclass\">"; |
273 | 273 | |
274 | - echo '<br /><b>'. api_convert_and_format_date($row['post_date'], DATE_TIME_FORMAT_LONG).'</b><br />'; |
|
274 | + echo '<br /><b>'.api_convert_and_format_date($row['post_date'], DATE_TIME_FORMAT_LONG).'</b><br />'; |
|
275 | 275 | |
276 | 276 | echo "</td>"; |
277 | 277 | |
@@ -292,7 +292,7 @@ discard block |
||
292 | 292 | $realname = $attachment_list['path']; |
293 | 293 | $user_filename = $attachment_list['filename']; |
294 | 294 | |
295 | - echo Display::return_icon('attachment.gif',get_lang('Attachment')); |
|
295 | + echo Display::return_icon('attachment.gif', get_lang('Attachment')); |
|
296 | 296 | echo '<a href="download.php?file='; |
297 | 297 | echo $realname; |
298 | 298 | echo ' "> '.$user_filename.' </a>'; |
@@ -311,8 +311,8 @@ discard block |
||
311 | 311 | |
312 | 312 | // Show past data |
313 | 313 | if (api_is_allowed_to_edit() && $counter > 0) { |
314 | - if (isset($_GET['gradebook'])){ |
|
315 | - $view_gradebook='&gradebook=view'; |
|
314 | + if (isset($_GET['gradebook'])) { |
|
315 | + $view_gradebook = '&gradebook=view'; |
|
316 | 316 | } |
317 | 317 | echo '<h4>'.get_lang('QualificationChangesHistory').'</h4>'; |
318 | 318 | if (isset($_GET['type']) && $_GET['type'] == 'false') { |
@@ -342,12 +342,12 @@ discard block |
||
342 | 342 | ); |
343 | 343 | $table_list .= '</td></tr>'; |
344 | 344 | } |
345 | - $table_list.= '</table>'; |
|
345 | + $table_list .= '</table>'; |
|
346 | 346 | |
347 | 347 | echo $table_list; |
348 | 348 | } |
349 | 349 | } |
350 | 350 | |
351 | -if ($origin!='learnpath') { |
|
351 | +if ($origin != 'learnpath') { |
|
352 | 352 | Display :: display_footer(); |
353 | 353 | } |
@@ -47,7 +47,7 @@ discard block |
||
47 | 47 | } |
48 | 48 | |
49 | 49 | if (!empty($gradebook) && $gradebook == 'view') { |
50 | - $interbreadcrumb[] = array ( |
|
50 | + $interbreadcrumb[] = array( |
|
51 | 51 | 'url' => '../gradebook/'.Security::remove_XSS($_SESSION['gradebook_dest']), |
52 | 52 | 'name' => get_lang('ToolGradebook') |
53 | 53 | ); |
@@ -55,7 +55,7 @@ discard block |
||
55 | 55 | |
56 | 56 | if (!empty($_GET['gidReq'])) { |
57 | 57 | $toolgroup = intval($_GET['gidReq']); |
58 | - Session::write('toolgroup',$toolgroup); |
|
58 | + Session::write('toolgroup', $toolgroup); |
|
59 | 59 | } |
60 | 60 | |
61 | 61 | $threadId = isset($_GET['thread']) ? intval($_GET['thread']) : 0; |
@@ -114,7 +114,7 @@ discard block |
||
114 | 114 | $interbreadcrumb[] = array('url' => '../group/group.php?'.$cidreq, 'name' => get_lang('Groups')); |
115 | 115 | $interbreadcrumb[] = array('url' => '../group/group_space.php?'.$cidreq, 'name' => get_lang('GroupSpace').' '.$groupProperties['name']); |
116 | 116 | $interbreadcrumb[] = array('url' => 'viewforum.php?'.$cidreq.'&forum='.Security::remove_XSS($_GET['forum']), 'name' => $currentForum['forum_title']); |
117 | - $interbreadcrumb[] = array('url' => 'newthread.php?'.$cidreq.'&forum='.Security::remove_XSS($_GET['forum']),'name' => get_lang('EditThread')); |
|
117 | + $interbreadcrumb[] = array('url' => 'newthread.php?'.$cidreq.'&forum='.Security::remove_XSS($_GET['forum']), 'name' => get_lang('EditThread')); |
|
118 | 118 | } else { |
119 | 119 | $interbreadcrumb[] = array('url' => 'index.php?'.$cidreq, 'name' => $nameTools); |
120 | 120 | $interbreadcrumb[] = array('url' => 'viewforumcategory.php?'.$cidreq.'&forumcategory='.$currentForumCategory['cat_id'], 'name' => $currentForumCategory['cat_title']); |
@@ -163,7 +163,7 @@ discard block |
||
163 | 163 | echo '<div class="actions">'; |
164 | 164 | echo '<span style="float:right;">'.search_link().'</span>'; |
165 | 165 | echo '<a href="viewforum.php?forum='.intval($_GET['forum']).'&'.$cidreq.'">'. |
166 | - Display::return_icon('back.png',get_lang('BackToForum'),'',ICON_SIZE_MEDIUM).'</a>'; |
|
166 | + Display::return_icon('back.png', get_lang('BackToForum'), '', ICON_SIZE_MEDIUM).'</a>'; |
|
167 | 167 | echo '</div>'; |
168 | 168 | |
169 | 169 | $threadData = getThreadInfo($threadId, $cId); |
@@ -7,7 +7,7 @@ discard block |
||
7 | 7 | */ |
8 | 8 | |
9 | 9 | require_once '../inc/global.inc.php'; |
10 | -$current_course_tool = TOOL_FORUM; |
|
10 | +$current_course_tool = TOOL_FORUM; |
|
11 | 11 | |
12 | 12 | $this_section = SECTION_COURSES; |
13 | 13 | |
@@ -23,7 +23,7 @@ discard block |
||
23 | 23 | // Are we in a lp ? |
24 | 24 | $origin = ''; |
25 | 25 | if (isset($_GET['origin'])) { |
26 | - $origin = Security::remove_XSS($_GET['origin']); |
|
26 | + $origin = Security::remove_XSS($_GET['origin']); |
|
27 | 27 | } |
28 | 28 | $my_search = null; |
29 | 29 | $gradebook = null; |
@@ -36,10 +36,10 @@ discard block |
||
36 | 36 | // Note pcool: I tried to use only one sql statement (and function) for this, |
37 | 37 | // but the problem is that the visibility of the forum AND forum category are stored in the item_property table. |
38 | 38 | // Note: This has to be validated that it is an existing thread |
39 | -$current_thread = get_thread_information($_GET['thread']); |
|
39 | +$current_thread = get_thread_information($_GET['thread']); |
|
40 | 40 | // Note: This has to be validated that it is an existing forum. |
41 | -$current_forum = get_forum_information($current_thread['forum_id']); |
|
42 | -$current_forum_category = get_forumcategory_information($current_forum['forum_category']); |
|
41 | +$current_forum = get_forum_information($current_thread['forum_id']); |
|
42 | +$current_forum_category = get_forumcategory_information($current_forum['forum_category']); |
|
43 | 43 | $whatsnew_post_info = isset($_SESSION['whatsnew_post_info']) ? $_SESSION['whatsnew_post_info'] : null; |
44 | 44 | /* Header and Breadcrumbs */ |
45 | 45 | |
@@ -49,8 +49,8 @@ discard block |
||
49 | 49 | } |
50 | 50 | |
51 | 51 | if (!empty($gradebook) && $gradebook == 'view') { |
52 | - $interbreadcrumb[] = array ( |
|
53 | - 'url' => '../gradebook/' . $_SESSION['gradebook_dest'], |
|
52 | + $interbreadcrumb[] = array( |
|
53 | + 'url' => '../gradebook/'.$_SESSION['gradebook_dest'], |
|
54 | 54 | 'name' => get_lang('ToolGradebook') |
55 | 55 | ); |
56 | 56 | } |
@@ -65,16 +65,16 @@ discard block |
||
65 | 65 | 'name' => get_lang('Groups') |
66 | 66 | ); |
67 | 67 | $interbreadcrumb[] = array( |
68 | - 'url' => '../group/group_space.php?' . api_get_cidreq(), |
|
69 | - 'name' => get_lang('GroupSpace') . ' ' . $group_properties['name'] |
|
68 | + 'url' => '../group/group_space.php?'.api_get_cidreq(), |
|
69 | + 'name' => get_lang('GroupSpace').' '.$group_properties['name'] |
|
70 | 70 | ); |
71 | 71 | $interbreadcrumb[] = array( |
72 | - 'url' => 'viewforum.php?forum=' . intval($_GET['forum']) . '&' . api_get_cidreq() |
|
73 | - . "&origin=$origin&search=" . Security::remove_XSS(urlencode($my_search)), |
|
72 | + 'url' => 'viewforum.php?forum='.intval($_GET['forum']).'&'.api_get_cidreq() |
|
73 | + . "&origin=$origin&search=".Security::remove_XSS(urlencode($my_search)), |
|
74 | 74 | 'name' => Security::remove_XSS($current_forum['forum_title']) |
75 | 75 | ); |
76 | 76 | $interbreadcrumb[] = array( |
77 | - 'url' => 'viewthread.php?forum=' . intval($_GET['forum']) . '&' . api_get_cidreq(). '&thread=' . intval($_GET['thread']), |
|
77 | + 'url' => 'viewthread.php?forum='.intval($_GET['forum']).'&'.api_get_cidreq().'&thread='.intval($_GET['thread']), |
|
78 | 78 | 'name' => Security::remove_XSS($current_thread['thread_title']) |
79 | 79 | ); |
80 | 80 | |
@@ -87,7 +87,7 @@ discard block |
||
87 | 87 | $interbreadcrumb[] = array( |
88 | 88 | 'url' => 'index.php?' |
89 | 89 | . (isset($gradebook) ? "gradebook=$gradebook&" : '') |
90 | - . 'search=' . Security::remove_XSS(urlencode($my_search)), |
|
90 | + . 'search='.Security::remove_XSS(urlencode($my_search)), |
|
91 | 91 | 'name' => $nameTools |
92 | 92 | ); |
93 | 93 | $interbreadcrumb[] = array( |
@@ -98,7 +98,7 @@ discard block |
||
98 | 98 | 'name' => Security::remove_XSS($current_forum_category['cat_title']) |
99 | 99 | ); |
100 | 100 | $interbreadcrumb[] = array( |
101 | - 'url' => 'viewforum.php?forum=' . intval($_GET['forum']) |
|
101 | + 'url' => 'viewforum.php?forum='.intval($_GET['forum']) |
|
102 | 102 | . "&origin=$origin&search=" |
103 | 103 | . Security::remove_XSS(urlencode($my_search)), |
104 | 104 | 'name' => Security::remove_XSS($current_forum['forum_title']) |
@@ -171,9 +171,9 @@ discard block |
||
171 | 171 | echo '<div class="actions">'; |
172 | 172 | echo '<span style="float:right;">'.search_link().'</span>'; |
173 | 173 | if ($origin != 'learnpath') { |
174 | - echo '<a href="' . $forumUrl . 'viewforum.php?forum=' |
|
175 | - . Security::remove_XSS($_GET['forum']) . '&' . api_get_cidreq() . '">' |
|
176 | - . Display::return_icon('back.png', get_lang('BackToForum'), '', ICON_SIZE_MEDIUM) . '</a>'; |
|
174 | + echo '<a href="'.$forumUrl.'viewforum.php?forum=' |
|
175 | + . Security::remove_XSS($_GET['forum']).'&'.api_get_cidreq().'">' |
|
176 | + . Display::return_icon('back.png', get_lang('BackToForum'), '', ICON_SIZE_MEDIUM).'</a>'; |
|
177 | 177 | } |
178 | 178 | // The reply to thread link should only appear when the forum_category is |
179 | 179 | // not locked AND the forum is not locked AND the thread is not locked. |
@@ -189,9 +189,9 @@ discard block |
||
189 | 189 | if ($_user['user_id'] OR ($current_forum['allow_anonymous'] == 1 && !$_user['user_id'])) { |
190 | 190 | // reply link |
191 | 191 | if (!api_is_anonymous() && api_is_allowed_to_session_edit(false, true)) { |
192 | - echo '<a href="' . $forumUrl . 'reply.php?' . api_get_cidreq() . '&forum=' |
|
193 | - . Security::remove_XSS($_GET['forum']) . '&thread=' |
|
194 | - . Security::remove_XSS($_GET['thread']) . '&action=replythread">' |
|
192 | + echo '<a href="'.$forumUrl.'reply.php?'.api_get_cidreq().'&forum=' |
|
193 | + . Security::remove_XSS($_GET['forum']).'&thread=' |
|
194 | + . Security::remove_XSS($_GET['thread']).'&action=replythread">' |
|
195 | 195 | . Display::return_icon('reply_thread.png', get_lang('ReplyToThread'), '', ICON_SIZE_MEDIUM) |
196 | 196 | . '</a>'; |
197 | 197 | } |
@@ -215,13 +215,13 @@ discard block |
||
215 | 215 | |
216 | 216 | // The different views of the thread. |
217 | 217 | if ($origin != 'learnpath') { |
218 | - $my_url = '<a href="' . $forumUrl . 'viewthread.php?' . api_get_cidreq() . '&' . api_get_cidreq() |
|
219 | - . '&forum=' . Security::remove_XSS($_GET['forum']) . '&thread=' . Security::remove_XSS($_GET['thread']) |
|
220 | - . '&search=' . Security::remove_XSS(urlencode($my_search)); |
|
221 | - echo $my_url . '&view=flat">' |
|
218 | + $my_url = '<a href="'.$forumUrl.'viewthread.php?'.api_get_cidreq().'&'.api_get_cidreq() |
|
219 | + . '&forum='.Security::remove_XSS($_GET['forum']).'&thread='.Security::remove_XSS($_GET['thread']) |
|
220 | + . '&search='.Security::remove_XSS(urlencode($my_search)); |
|
221 | + echo $my_url.'&view=flat">' |
|
222 | 222 | . Display::return_icon('forum_listview.png', get_lang('FlatView'), null, ICON_SIZE_MEDIUM) |
223 | 223 | . '</a>'; |
224 | - echo $my_url . '&view=nested">' |
|
224 | + echo $my_url.'&view=nested">' |
|
225 | 225 | . Display::return_icon('forum_nestedview.png', get_lang('NestedView'), null, ICON_SIZE_MEDIUM) |
226 | 226 | . '</a>'; |
227 | 227 | } |
@@ -231,7 +231,7 @@ discard block |
||
231 | 231 | |
232 | 232 | /* Display Forum Category and the Forum information */ |
233 | 233 | |
234 | - if (!isset($_SESSION['view'])) { |
|
234 | + if (!isset($_SESSION['view'])) { |
|
235 | 235 | $viewMode = $current_forum['default_view']; |
236 | 236 | } else { |
237 | 237 | $viewMode = $_SESSION['view']; |
@@ -247,7 +247,7 @@ discard block |
||
247 | 247 | } |
248 | 248 | |
249 | 249 | if (isset($_GET['msg']) && isset($_GET['type'])) { |
250 | - switch($_GET['type']) { |
|
250 | + switch ($_GET['type']) { |
|
251 | 251 | case 'error': |
252 | 252 | Display::display_error_message($_GET['msg']); |
253 | 253 | break; |
@@ -257,7 +257,7 @@ discard block |
||
257 | 257 | } |
258 | 258 | } |
259 | 259 | |
260 | - if ($current_thread['thread_peer_qualify'] == 1 ) { |
|
260 | + if ($current_thread['thread_peer_qualify'] == 1) { |
|
261 | 261 | echo Display::return_message(get_lang('ForumThreadPeerScoringStudentComment'), 'info'); |
262 | 262 | } |
263 | 263 |
@@ -40,7 +40,7 @@ discard block |
||
40 | 40 | // Are we in a lp ? |
41 | 41 | $origin = ''; |
42 | 42 | if (isset($_GET['origin'])) { |
43 | - $origin = Security::remove_XSS($_GET['origin']); |
|
43 | + $origin = Security::remove_XSS($_GET['origin']); |
|
44 | 44 | } |
45 | 45 | |
46 | 46 | // Name of the tool |
@@ -48,12 +48,12 @@ discard block |
||
48 | 48 | |
49 | 49 | // Breadcrumbs |
50 | 50 | |
51 | -if (isset($_SESSION['gradebook'])){ |
|
51 | +if (isset($_SESSION['gradebook'])) { |
|
52 | 52 | $gradebook = $_SESSION['gradebook']; |
53 | 53 | } |
54 | 54 | |
55 | 55 | if (!empty($gradebook) && $gradebook == 'view') { |
56 | - $interbreadcrumb[] = array ( |
|
56 | + $interbreadcrumb[] = array( |
|
57 | 57 | 'url' => '../gradebook/'.$_SESSION['gradebook_dest'], |
58 | 58 | 'name' => get_lang('ToolGradebook') |
59 | 59 | ); |
@@ -66,7 +66,7 @@ discard block |
||
66 | 66 | $interbreadcrumb[] = array('url' => '../group/group.php?'.api_get_cidreq(), 'name' => get_lang('Groups')); |
67 | 67 | $interbreadcrumb[] = array('url' => '../group/group_space.php?'.api_get_cidreq(), 'name' => get_lang('GroupSpace').' ('.$group_properties['name'].')'); |
68 | 68 | $interbreadcrumb[] = array('url' => 'viewforum.php?origin='.$origin.'&forum='.Security::remove_XSS($_GET['forum']).'&'.api_get_cidreq(), 'name' => prepare4display($current_forum['forum_title'])); |
69 | - $interbreadcrumb[] = array('url' => 'forumsearch.php?'.api_get_cidreq(),'name' => get_lang('ForumSearch')); |
|
69 | + $interbreadcrumb[] = array('url' => 'forumsearch.php?'.api_get_cidreq(), 'name' => get_lang('ForumSearch')); |
|
70 | 70 | } else { |
71 | 71 | $interbreadcrumb[] = array('url' => 'index.php?'.api_get_cidreq(), 'name' => $nameTools); |
72 | 72 | $nameTools = get_lang('ForumSearch'); |
@@ -26,7 +26,7 @@ discard block |
||
26 | 26 | |
27 | 27 | // Including the global initialization file. |
28 | 28 | require_once '../inc/global.inc.php'; |
29 | -$current_course_tool = TOOL_FORUM; |
|
29 | +$current_course_tool = TOOL_FORUM; |
|
30 | 30 | |
31 | 31 | // Notification for unauthorized people. |
32 | 32 | api_protect_course_script(true); |
@@ -48,7 +48,7 @@ discard block |
||
48 | 48 | require 'forumconfig.inc.php'; |
49 | 49 | require_once 'forumfunction.inc.php'; |
50 | 50 | |
51 | -$userid = api_get_user_id(); |
|
51 | +$userid = api_get_user_id(); |
|
52 | 52 | $sessionId = api_get_session_id(); |
53 | 53 | |
54 | 54 | /* MAIN DISPLAY SECTION */ |
@@ -74,7 +74,7 @@ discard block |
||
74 | 74 | |
75 | 75 | //Course |
76 | 76 | if ( |
77 | - !api_is_allowed_to_edit(false, true) AND //is a student |
|
77 | + !api_is_allowed_to_edit(false, true) AND //is a student |
|
78 | 78 | (($current_forum_category && $current_forum_category['visibility'] == 0) OR |
79 | 79 | $current_forum['visibility'] == 0 OR !$user_has_access_in_group) |
80 | 80 | ) { |
@@ -83,7 +83,7 @@ discard block |
||
83 | 83 | } else { |
84 | 84 | //Course |
85 | 85 | if ( |
86 | - !api_is_allowed_to_edit(false, true) AND //is a student |
|
86 | + !api_is_allowed_to_edit(false, true) AND //is a student |
|
87 | 87 | ( |
88 | 88 | ($current_forum_category && $current_forum_category['visibility'] == 0) OR |
89 | 89 | $current_forum['visibility'] == 0 |
@@ -99,12 +99,12 @@ discard block |
||
99 | 99 | $my_action = isset($_GET['action']) ? $_GET['action'] : ''; |
100 | 100 | |
101 | 101 | $gradebook = null; |
102 | -if (isset($_SESSION['gradebook'])){ |
|
102 | +if (isset($_SESSION['gradebook'])) { |
|
103 | 103 | $gradebook = $_SESSION['gradebook']; |
104 | 104 | } |
105 | 105 | |
106 | 106 | if (!empty($gradebook) && $gradebook == 'view') { |
107 | - $interbreadcrumb[] = array ( |
|
107 | + $interbreadcrumb[] = array( |
|
108 | 108 | 'url' => '../gradebook/'.$_SESSION['gradebook_dest'], |
109 | 109 | 'name' => get_lang('ToolGradebook') |
110 | 110 | ); |
@@ -112,32 +112,32 @@ discard block |
||
112 | 112 | |
113 | 113 | if (!empty($_GET['gidReq'])) { |
114 | 114 | $toolgroup = Database::escape_string($_GET['gidReq']); |
115 | - Session::write('toolgroup',$toolgroup); |
|
115 | + Session::write('toolgroup', $toolgroup); |
|
116 | 116 | } |
117 | 117 | |
118 | 118 | $forumUrl = api_get_path(WEB_CODE_PATH).'forum/'; |
119 | 119 | |
120 | 120 | if ($origin == 'group') { |
121 | 121 | $interbreadcrumb[] = array( |
122 | - 'url' => api_get_path(WEB_CODE_PATH) . 'group/group.php', |
|
122 | + 'url' => api_get_path(WEB_CODE_PATH).'group/group.php', |
|
123 | 123 | 'name' => get_lang('Groups') |
124 | 124 | ); |
125 | 125 | $interbreadcrumb[] = array( |
126 | - 'url' => api_get_path(WEB_CODE_PATH) . 'group/group_space.php?' . api_get_cidreq(), |
|
127 | - 'name' => get_lang('GroupSpace') . ' ' . $group_properties['name'] |
|
126 | + 'url' => api_get_path(WEB_CODE_PATH).'group/group_space.php?'.api_get_cidreq(), |
|
127 | + 'name' => get_lang('GroupSpace').' '.$group_properties['name'] |
|
128 | 128 | ); |
129 | 129 | $interbreadcrumb[] = array( |
130 | 130 | 'url' => '#', |
131 | - 'name' => get_lang('Forum') . ' ' . Security::remove_XSS($current_forum['forum_title']) |
|
131 | + 'name' => get_lang('Forum').' '.Security::remove_XSS($current_forum['forum_title']) |
|
132 | 132 | ); |
133 | 133 | } else { |
134 | 134 | $interbreadcrumb[] = array( |
135 | - 'url' => $forumUrl . 'index.php?search=' . Security::remove_XSS($my_search), |
|
135 | + 'url' => $forumUrl.'index.php?search='.Security::remove_XSS($my_search), |
|
136 | 136 | 'name' => get_lang('ForumCategories') |
137 | 137 | ); |
138 | 138 | $interbreadcrumb[] = array( |
139 | - 'url' => $forumUrl . 'viewforumcategory.php?forumcategory=' . $current_forum_category['cat_id'] |
|
140 | - . '&search=' . Security::remove_XSS(urlencode($my_search)), |
|
139 | + 'url' => $forumUrl.'viewforumcategory.php?forumcategory='.$current_forum_category['cat_id'] |
|
140 | + . '&search='.Security::remove_XSS(urlencode($my_search)), |
|
141 | 141 | 'name' => prepare4display($current_forum_category['cat_title']) |
142 | 142 | ); |
143 | 143 | $interbreadcrumb[] = array( |
@@ -200,7 +200,7 @@ discard block |
||
200 | 200 | } |
201 | 201 | // Moving. |
202 | 202 | if ($my_action == 'move' && isset($_GET['thread']) && |
203 | - api_is_allowed_to_edit(false, true ) && |
|
203 | + api_is_allowed_to_edit(false, true) && |
|
204 | 204 | api_is_allowed_to_session_edit(false, true) |
205 | 205 | ) { |
206 | 206 | $message = move_thread_form(); |
@@ -245,25 +245,25 @@ discard block |
||
245 | 245 | break; |
246 | 246 | } |
247 | 247 | |
248 | - $table_list = Display::page_subheader(get_lang('ThreadUsersList') . ': ' . get_name_thread_by_id($_GET['id'])); |
|
248 | + $table_list = Display::page_subheader(get_lang('ThreadUsersList').': '.get_name_thread_by_id($_GET['id'])); |
|
249 | 249 | |
250 | 250 | if ($nrorow3 > 0 || $nrorow3 == -2) { |
251 | - $url = 'cidReq=' . Security::remove_XSS($_GET['cidReq']) . |
|
252 | - '&forum=' . Security::remove_XSS($my_forum) . '&action=' |
|
253 | - . Security::remove_XSS($_GET['action']) . '&content=' |
|
254 | - . Security::remove_XSS($_GET['content'], STUDENT) . '&id=' . intval($_GET['id']); |
|
251 | + $url = 'cidReq='.Security::remove_XSS($_GET['cidReq']). |
|
252 | + '&forum='.Security::remove_XSS($my_forum).'&action=' |
|
253 | + . Security::remove_XSS($_GET['action']).'&content=' |
|
254 | + . Security::remove_XSS($_GET['content'], STUDENT).'&id='.intval($_GET['id']); |
|
255 | 255 | $tabs = array( |
256 | 256 | array( |
257 | 257 | 'content' => get_lang('AllStudents'), |
258 | - 'url' => $forumUrl . 'viewforum.php?' . $url . '&origin=' . $origin . '&list=all' |
|
258 | + 'url' => $forumUrl.'viewforum.php?'.$url.'&origin='.$origin.'&list=all' |
|
259 | 259 | ), |
260 | 260 | array( |
261 | 261 | 'content' => get_lang('StudentsQualified'), |
262 | - 'url' => $forumUrl . 'viewforum.php?' . $url . '&origin=' . $origin . '&list=qualify' |
|
262 | + 'url' => $forumUrl.'viewforum.php?'.$url.'&origin='.$origin.'&list=qualify' |
|
263 | 263 | ), |
264 | 264 | array( |
265 | 265 | 'content' => get_lang('StudentsNotQualified'), |
266 | - 'url' => $forumUrl . 'viewforum.php?' . $url . '&origin=' . $origin . '&list=notqualify' |
|
266 | + 'url' => $forumUrl.'viewforum.php?'.$url.'&origin='.$origin.'&list=notqualify' |
|
267 | 267 | ), |
268 | 268 | ); |
269 | 269 | $table_list .= Display::tabsOnlyLink($tabs, $active); |
@@ -272,32 +272,32 @@ discard block |
||
272 | 272 | $table_list .= '<center><br /><table class="data_table" style="width:50%">'; |
273 | 273 | // The column headers (TODO: Make this sortable). |
274 | 274 | $table_list .= '<tr >'; |
275 | - $table_list .= '<th height="24">' . get_lang('NamesAndLastNames') . '</th>'; |
|
275 | + $table_list .= '<th height="24">'.get_lang('NamesAndLastNames').'</th>'; |
|
276 | 276 | |
277 | 277 | if ($listType == 'qualify') { |
278 | - $table_list .= '<th>' . get_lang('Qualification') . '</th>'; |
|
278 | + $table_list .= '<th>'.get_lang('Qualification').'</th>'; |
|
279 | 279 | } |
280 | 280 | if (api_is_allowed_to_edit(null, true)) { |
281 | - $table_list .= '<th>' . get_lang('Qualify') . '</th>'; |
|
281 | + $table_list .= '<th>'.get_lang('Qualify').'</th>'; |
|
282 | 282 | } |
283 | 283 | $table_list .= '</tr>'; |
284 | 284 | $max_qualify = showQualify('2', $userid, $_GET['id']); |
285 | 285 | $counter_stdlist = 0; |
286 | 286 | |
287 | 287 | if (Database::num_rows($student_list) > 0) { |
288 | - while ($row_student_list=Database::fetch_array($student_list)) { |
|
288 | + while ($row_student_list = Database::fetch_array($student_list)) { |
|
289 | 289 | $userInfo = api_get_user_info($row_student_list['id']); |
290 | 290 | if ($counter_stdlist % 2 == 0) { |
291 | 291 | $class_stdlist = 'row_odd'; |
292 | 292 | } else { |
293 | 293 | $class_stdlist = 'row_even'; |
294 | 294 | } |
295 | - $table_list .= '<tr class="' . $class_stdlist . '"><td>'; |
|
295 | + $table_list .= '<tr class="'.$class_stdlist.'"><td>'; |
|
296 | 296 | $table_list .= UserManager::getUserProfileLink($userInfo); |
297 | 297 | |
298 | 298 | $table_list .= '</td>'; |
299 | 299 | if ($listType == 'qualify') { |
300 | - $table_list .= '<td>' . $row_student_list['qualify'] . '/' . $max_qualify . '</td>'; |
|
300 | + $table_list .= '<td>'.$row_student_list['qualify'].'/'.$max_qualify.'</td>'; |
|
301 | 301 | } |
302 | 302 | if (api_is_allowed_to_edit(null, true)) { |
303 | 303 | $current_qualify_thread = showQualify( |
@@ -306,20 +306,20 @@ discard block |
||
306 | 306 | $_GET['id'] |
307 | 307 | ); |
308 | 308 | $table_list .= '<td> |
309 | - <a href="' . $forumUrl . 'forumqualify.php?' . api_get_cidreq() |
|
310 | - . '&forum=' . Security::remove_XSS($my_forum) . '&thread=' |
|
311 | - . Security::remove_XSS($_GET['id']) . '&user=' . $row_student_list['id'] |
|
312 | - . '&user_id=' . $row_student_list['id'] . '&idtextqualify=' |
|
313 | - . $current_qualify_thread . '&origin=' . $origin . '">' |
|
314 | - . Display::return_icon($icon_qualify, get_lang('Qualify')) . '</a></td></tr>'; |
|
309 | + <a href="' . $forumUrl.'forumqualify.php?'.api_get_cidreq() |
|
310 | + . '&forum='.Security::remove_XSS($my_forum).'&thread=' |
|
311 | + . Security::remove_XSS($_GET['id']).'&user='.$row_student_list['id'] |
|
312 | + . '&user_id='.$row_student_list['id'].'&idtextqualify=' |
|
313 | + . $current_qualify_thread.'&origin='.$origin.'">' |
|
314 | + . Display::return_icon($icon_qualify, get_lang('Qualify')).'</a></td></tr>'; |
|
315 | 315 | } |
316 | 316 | $counter_stdlist++; |
317 | 317 | } |
318 | 318 | } else { |
319 | 319 | if ($listType == 'qualify') { |
320 | - $table_list .= '<tr><td colspan="2">' . get_lang('ThereIsNotQualifiedLearners') . '</td></tr>'; |
|
320 | + $table_list .= '<tr><td colspan="2">'.get_lang('ThereIsNotQualifiedLearners').'</td></tr>'; |
|
321 | 321 | } else { |
322 | - $table_list .= '<tr><td colspan="2">' . get_lang('ThereIsNotUnqualifiedLearners') . '</td></tr>'; |
|
322 | + $table_list .= '<tr><td colspan="2">'.get_lang('ThereIsNotUnqualifiedLearners').'</td></tr>'; |
|
323 | 323 | } |
324 | 324 | } |
325 | 325 | |
@@ -345,14 +345,14 @@ discard block |
||
345 | 345 | echo '<div class="actions">'; |
346 | 346 | |
347 | 347 | if ($origin != 'learnpath') { |
348 | - if ($origin=='group') { |
|
349 | - echo '<a href="' . api_get_path(WEB_CODE_PATH) . 'group/group_space.php?' |
|
350 | - . api_get_cidreq() . '&gradebook=' . $gradebook . '">' |
|
348 | + if ($origin == 'group') { |
|
349 | + echo '<a href="'.api_get_path(WEB_CODE_PATH).'group/group_space.php?' |
|
350 | + . api_get_cidreq().'&gradebook='.$gradebook.'">' |
|
351 | 351 | . Display::return_icon('back.png', get_lang('BackTo') |
352 | - . ' ' . get_lang('Groups'), '', ICON_SIZE_MEDIUM) . '</a>'; |
|
352 | + . ' '.get_lang('Groups'), '', ICON_SIZE_MEDIUM).'</a>'; |
|
353 | 353 | } else { |
354 | 354 | echo '<span style="float:right;">'.search_link().'</span>'; |
355 | - echo '<a href="' . $forumUrl . 'index.php?' . api_get_cidreq() . '">' |
|
355 | + echo '<a href="'.$forumUrl.'index.php?'.api_get_cidreq().'">' |
|
356 | 356 | . Display::return_icon('back.png', get_lang('BackToForumOverview'), '', ICON_SIZE_MEDIUM) |
357 | 357 | . '</a>'; |
358 | 358 | } |
@@ -370,14 +370,14 @@ discard block |
||
370 | 370 | if ($current_forum['locked'] <> 1 AND $current_forum['locked'] <> 1) { |
371 | 371 | if (!api_is_anonymous() && !api_is_invitee()) { |
372 | 372 | if ($my_forum == strval(intval($my_forum))) { |
373 | - echo '<a href="' . $forumUrl . 'newthread.php?' . api_get_cidreq() . '&forum=' |
|
374 | - . Security::remove_XSS($my_forum) . $origin_string . '">' |
|
373 | + echo '<a href="'.$forumUrl.'newthread.php?'.api_get_cidreq().'&forum=' |
|
374 | + . Security::remove_XSS($my_forum).$origin_string.'">' |
|
375 | 375 | . Display::return_icon('new_thread.png', get_lang('NewTopic'), '', ICON_SIZE_MEDIUM) |
376 | 376 | . '</a>'; |
377 | 377 | } else { |
378 | 378 | $my_forum = strval(intval($my_forum)); |
379 | - echo '<a href="' . $forumUrl . 'newthread.php?' . api_get_cidreq() |
|
380 | - . '&forum=' . $my_forum . $origin_string . '">' |
|
379 | + echo '<a href="'.$forumUrl.'newthread.php?'.api_get_cidreq() |
|
380 | + . '&forum='.$my_forum.$origin_string.'">' |
|
381 | 381 | . Display::return_icon('new_thread.png', get_lang('NewTopic'), '', ICON_SIZE_MEDIUM) |
382 | 382 | . '</a>'; |
383 | 383 | } |
@@ -404,7 +404,7 @@ discard block |
||
404 | 404 | if ($origin != 'learnpath') { |
405 | 405 | $html .= Display::tag( |
406 | 406 | 'h3', |
407 | - $iconForum .' '. $titleForum, |
|
407 | + $iconForum.' '.$titleForum, |
|
408 | 408 | array( |
409 | 409 | 'class' => 'title-forum') |
410 | 410 | ); |
@@ -447,7 +447,7 @@ discard block |
||
447 | 447 | } |
448 | 448 | |
449 | 449 | if (is_array($my_whatsnew_post_info) && !empty($my_whatsnew_post_info)) { |
450 | - $newPost = ' ' . Display::return_icon('alert.png', get_lang('Forum'), null, ICON_SIZE_SMALL); |
|
450 | + $newPost = ' '.Display::return_icon('alert.png', get_lang('Forum'), null, ICON_SIZE_SMALL); |
|
451 | 451 | } else { |
452 | 452 | $newPost = ''; |
453 | 453 | } |
@@ -457,12 +457,12 @@ discard block |
||
457 | 457 | } |
458 | 458 | |
459 | 459 | $name = api_get_person_name($row['firstname'], $row['lastname']); |
460 | - $linkPostForum = '<a href="viewthread.php?' . api_get_cidreq() . '&forum=' . Security::remove_XSS($my_forum) |
|
460 | + $linkPostForum = '<a href="viewthread.php?'.api_get_cidreq().'&forum='.Security::remove_XSS($my_forum) |
|
461 | 461 | . "&origin=$origin&thread={$row['thread_id']}$origin_string&search=" |
462 | - . Security::remove_XSS(urlencode($my_search)) . '">' |
|
463 | - . $row['thread_title'] . '</a>'; |
|
462 | + . Security::remove_XSS(urlencode($my_search)).'">' |
|
463 | + . $row['thread_title'].'</a>'; |
|
464 | 464 | $html = ''; |
465 | - $html .= '<div class="panel panel-default forum '.($row['thread_sticky']?'sticky':'').'">'; |
|
465 | + $html .= '<div class="panel panel-default forum '.($row['thread_sticky'] ? 'sticky' : '').'">'; |
|
466 | 466 | $html .= '<div class="panel-body">'; |
467 | 467 | $html .= '<div class="row">'; |
468 | 468 | $html .= '<div class="col-md-6">'; |
@@ -495,7 +495,7 @@ discard block |
||
495 | 495 | ); |
496 | 496 | } |
497 | 497 | |
498 | - $html .= '<div class="thumbnail">' . display_user_image($row['user_id'], $name, $origin) . '</div>'; |
|
498 | + $html .= '<div class="thumbnail">'.display_user_image($row['user_id'], $name, $origin).'</div>'; |
|
499 | 499 | $html .= '</div>'; |
500 | 500 | $html .= '<div class="col-md-10">'; |
501 | 501 | $html .= Display::tag( |
@@ -505,8 +505,8 @@ discard block |
||
505 | 505 | 'class' => 'title' |
506 | 506 | ) |
507 | 507 | ); |
508 | - $html .= '<p>'. get_lang('By') .' ' .$authorName.'</p>'; |
|
509 | - $html .= '<p>' . api_convert_and_format_date($row['insert_date']) . '</p>'; |
|
508 | + $html .= '<p>'.get_lang('By').' '.$authorName.'</p>'; |
|
509 | + $html .= '<p>'.api_convert_and_format_date($row['insert_date']).'</p>'; |
|
510 | 510 | $html .= '</div>'; |
511 | 511 | $html .= '</div>'; |
512 | 512 | |
@@ -515,13 +515,13 @@ discard block |
||
515 | 515 | $html .= '<div class="row">'; |
516 | 516 | $html .= '<div class="col-md-4">' |
517 | 517 | . Display::return_icon('post-forum.png', null, null, ICON_SIZE_SMALL) |
518 | - . " {$row['thread_replies']} " . get_lang('Replies') . '<br>'; |
|
519 | - $html .= Display::return_icon( |
|
518 | + . " {$row['thread_replies']} ".get_lang('Replies').'<br>'; |
|
519 | + $html .= Display::return_icon( |
|
520 | 520 | 'post-forum.png', |
521 | 521 | null, |
522 | 522 | null, |
523 | 523 | ICON_SIZE_SMALL |
524 | - ) . ' ' . $row['thread_views'] . ' ' . get_lang('Views') . '<br>' . $newPost; |
|
524 | + ).' '.$row['thread_views'].' '.get_lang('Views').'<br>'.$newPost; |
|
525 | 525 | $html .= '</div>'; |
526 | 526 | |
527 | 527 | $last_post_info = get_last_post_by_thread( |
@@ -535,7 +535,7 @@ discard block |
||
535 | 535 | if ($last_post_info) { |
536 | 536 | $poster_info = api_get_user_info($last_post_info['poster_id']); |
537 | 537 | $post_date = api_convert_and_format_date($last_post_info['post_date']); |
538 | - $last_post = $post_date . '<br>' . get_lang('By') . ' ' . display_user_link( |
|
538 | + $last_post = $post_date.'<br>'.get_lang('By').' '.display_user_link( |
|
539 | 539 | $last_post_info['poster_id'], |
540 | 540 | $poster_info['complete_name'], |
541 | 541 | '', |
@@ -545,7 +545,7 @@ discard block |
||
545 | 545 | |
546 | 546 | $html .= '<div class="col-md-5">' |
547 | 547 | . Display::return_icon('post-item.png', null, null, ICON_SIZE_TINY) |
548 | - . ' ' . $last_post; |
|
548 | + . ' '.$last_post; |
|
549 | 549 | $html .= '</div>'; |
550 | 550 | |
551 | 551 | /* |
@@ -590,11 +590,11 @@ discard block |
||
590 | 590 | if (api_is_allowed_to_edit(false, true) && |
591 | 591 | !(api_is_course_coach() && $current_forum['session_id'] != $sessionId) |
592 | 592 | ) { |
593 | - $iconsEdit .= '<a href="' . $forumUrl . 'editthread.php?' . $cidreq |
|
594 | - . '&forum=' . Security::remove_XSS($my_forum) . '&thread=' |
|
593 | + $iconsEdit .= '<a href="'.$forumUrl.'editthread.php?'.$cidreq |
|
594 | + . '&forum='.Security::remove_XSS($my_forum).'&thread=' |
|
595 | 595 | . Security::remove_XSS($row['thread_id']) |
596 | - . '&id_attach=' . $id_attach . '">' |
|
597 | - . Display::return_icon('edit.png', get_lang('Edit'), array(), ICON_SIZE_SMALL) . '</a>'; |
|
596 | + . '&id_attach='.$id_attach.'">' |
|
597 | + . Display::return_icon('edit.png', get_lang('Edit'), array(), ICON_SIZE_SMALL).'</a>'; |
|
598 | 598 | |
599 | 599 | if (api_resource_is_locked_by_gradebook($row['thread_id'], LINK_FORUM_THREAD)) { |
600 | 600 | $iconsEdit .= Display::return_icon( |
@@ -604,13 +604,13 @@ discard block |
||
604 | 604 | ICON_SIZE_SMALL |
605 | 605 | ); |
606 | 606 | } else { |
607 | - $iconsEdit.= '<a href="' . api_get_self() . '?' . $cidreq . '&forum=' |
|
608 | - . Security::remove_XSS($my_forum) . '&action=delete&content=thread&id=' |
|
609 | - . $row['thread_id'] . $origin_string |
|
607 | + $iconsEdit .= '<a href="'.api_get_self().'?'.$cidreq.'&forum=' |
|
608 | + . Security::remove_XSS($my_forum).'&action=delete&content=thread&id=' |
|
609 | + . $row['thread_id'].$origin_string |
|
610 | 610 | . "\" onclick=\"javascript:if(!confirm('" |
611 | 611 | . addslashes(api_htmlentities(get_lang('DeleteCompleteThread'), ENT_QUOTES)) |
612 | 612 | . "')) return false;\">" |
613 | - . Display::return_icon('delete.png', get_lang('Delete'), array(), ICON_SIZE_SMALL) . '</a>'; |
|
613 | + . Display::return_icon('delete.png', get_lang('Delete'), array(), ICON_SIZE_SMALL).'</a>'; |
|
614 | 614 | } |
615 | 615 | |
616 | 616 | $iconsEdit .= return_visible_invisible_icon( |
@@ -633,9 +633,9 @@ discard block |
||
633 | 633 | 'gidReq' => api_get_group_id() |
634 | 634 | ) |
635 | 635 | ); |
636 | - $iconsEdit .= '<a href="viewforum.php?' . $cidreq . '&forum=' |
|
636 | + $iconsEdit .= '<a href="viewforum.php?'.$cidreq.'&forum=' |
|
637 | 637 | . Security::remove_XSS($my_forum) |
638 | - . '&action=move&thread=' . $row['thread_id'] . $origin_string . '">' |
|
638 | + . '&action=move&thread='.$row['thread_id'].$origin_string.'">' |
|
639 | 639 | . Display::return_icon('move.png', get_lang('MoveThread'), array(), ICON_SIZE_SMALL) |
640 | 640 | . '</a>'; |
641 | 641 | } |
@@ -652,17 +652,17 @@ discard block |
||
652 | 652 | } |
653 | 653 | $icon_liststd = 'user.png'; |
654 | 654 | if (!api_is_anonymous() && api_is_allowed_to_session_edit(false, true)) { |
655 | - $iconsEdit .= '<a href="' . api_get_self() . '?' . $cidreq . '&forum=' |
|
655 | + $iconsEdit .= '<a href="'.api_get_self().'?'.$cidreq.'&forum=' |
|
656 | 656 | . Security::remove_XSS($my_forum) |
657 | 657 | . "&origin=$origin&action=notify&content=thread&id={$row['thread_id']}" |
658 | - . '">' . Display::return_icon($iconnotify, get_lang('NotifyMe')) . '</a>'; |
|
658 | + . '">'.Display::return_icon($iconnotify, get_lang('NotifyMe')).'</a>'; |
|
659 | 659 | } |
660 | 660 | |
661 | - if (api_is_allowed_to_edit(null,true) && $origin != 'learnpath') { |
|
662 | - $iconsEdit .= '<a href="' . api_get_self() . '?' . $cidreq . '&forum=' |
|
661 | + if (api_is_allowed_to_edit(null, true) && $origin != 'learnpath') { |
|
662 | + $iconsEdit .= '<a href="'.api_get_self().'?'.$cidreq.'&forum=' |
|
663 | 663 | . Security::remove_XSS($my_forum) |
664 | 664 | . "&origin=$origin&action=liststd&content=thread&id={$row['thread_id']}" |
665 | - . '">' . Display::return_icon($icon_liststd, get_lang('StudentList'), array(), ICON_SIZE_SMALL) |
|
665 | + . '">'.Display::return_icon($icon_liststd, get_lang('StudentList'), array(), ICON_SIZE_SMALL) |
|
666 | 666 | . '</a>'; |
667 | 667 | } |
668 | 668 | $html .= $iconsEdit; |