@@ -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; |
@@ -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 | |
@@ -201,17 +201,17 @@ discard block |
||
201 | 201 | . '</div>' |
202 | 202 | . ''); |
203 | 203 | $form->addHidden('cropResult', ''); |
204 | -$allowed_picture_types = array ('jpg', 'jpeg', 'png', 'gif'); |
|
204 | +$allowed_picture_types = array('jpg', 'jpeg', 'png', 'gif'); |
|
205 | 205 | $form->addRule('picture', get_lang('OnlyImagesAllowed').' ('.implode(',', $allowed_picture_types).')', 'filetype', $allowed_picture_types); |
206 | 206 | //$form->addElement('html', '<div class="form-group "><div class="col-md-2"></div> <div class="col-md-8 help-image">'.get_lang('UniqueAnswerImagePreferredSize200x150').'</div></div>'); |
207 | 207 | $form->addElement('checkbox', 'delete_picture', null, get_lang('DeletePicture')); |
208 | 208 | |
209 | 209 | if (api_get_setting('pdf_export_watermark_by_course') == 'true') { |
210 | - $url = PDF::get_watermark($course_code); |
|
210 | + $url = PDF::get_watermark($course_code); |
|
211 | 211 | $form->addText('pdf_export_watermark_text', get_lang('PDFExportWatermarkTextTitle'), false, array('size' => '60')); |
212 | 212 | $form->addElement('file', 'pdf_export_watermark_path', get_lang('AddWaterMark')); |
213 | 213 | if ($url != false) { |
214 | - $delete_url = '<a href="?delete_watermark">'.Display::return_icon('delete.png',get_lang('DelImage')).'</a>'; |
|
214 | + $delete_url = '<a href="?delete_watermark">'.Display::return_icon('delete.png', get_lang('DelImage')).'</a>'; |
|
215 | 215 | $form->addElement('html', '<div class="row"><div class="formw"><a href="'.$url.'">'.$url.' '.$delete_url.'</a></div></div>'); |
216 | 216 | } |
217 | 217 | $form->addRule('pdf_export_watermark_path', get_lang('OnlyImagesAllowed').' ('.implode(',', $allowed_picture_types).')', 'filetype', $allowed_picture_types); |
@@ -229,21 +229,21 @@ discard block |
||
229 | 229 | } |
230 | 230 | |
231 | 231 | $form->addElement('label', get_lang('DocumentQuota'), format_file_size(DocumentManager::get_course_quota())); |
232 | -$form->addButtonSave(get_lang('SaveSettings'),'submit_save'); |
|
232 | +$form->addButtonSave(get_lang('SaveSettings'), 'submit_save'); |
|
233 | 233 | $form->addElement('html', '</div></div>'); |
234 | 234 | |
235 | 235 | // COURSE ACCESS |
236 | 236 | |
237 | -$form->addElement('html', '<div> <h3>'.Display::return_icon('course.png', Security::remove_XSS(get_lang('CourseAccess')),'',ICON_SIZE_SMALL).' '.Security::remove_XSS(get_lang('CourseAccess')).'</h3><div>'); |
|
237 | +$form->addElement('html', '<div> <h3>'.Display::return_icon('course.png', Security::remove_XSS(get_lang('CourseAccess')), '', ICON_SIZE_SMALL).' '.Security::remove_XSS(get_lang('CourseAccess')).'</h3><div>'); |
|
238 | 238 | |
239 | 239 | $group = array(); |
240 | -$group[]= $form->createElement('radio', 'visibility', get_lang("CourseAccess"), get_lang('OpenToTheWorld'), COURSE_VISIBILITY_OPEN_WORLD); |
|
241 | -$group[]= $form->createElement('radio', 'visibility', null, get_lang('OpenToThePlatform'), COURSE_VISIBILITY_OPEN_PLATFORM); |
|
242 | -$group[]= $form->createElement('radio', 'visibility', null, get_lang('Private'), COURSE_VISIBILITY_REGISTERED); |
|
243 | -$group[]= $form->createElement('radio', 'visibility', null, get_lang('CourseVisibilityClosed'), COURSE_VISIBILITY_CLOSED); |
|
240 | +$group[] = $form->createElement('radio', 'visibility', get_lang("CourseAccess"), get_lang('OpenToTheWorld'), COURSE_VISIBILITY_OPEN_WORLD); |
|
241 | +$group[] = $form->createElement('radio', 'visibility', null, get_lang('OpenToThePlatform'), COURSE_VISIBILITY_OPEN_PLATFORM); |
|
242 | +$group[] = $form->createElement('radio', 'visibility', null, get_lang('Private'), COURSE_VISIBILITY_REGISTERED); |
|
243 | +$group[] = $form->createElement('radio', 'visibility', null, get_lang('CourseVisibilityClosed'), COURSE_VISIBILITY_CLOSED); |
|
244 | 244 | // The "hidden" visibility is only available to portal admins |
245 | 245 | if (api_is_platform_admin()) { |
246 | - $group[]= $form->createElement('radio', 'visibility', null, get_lang('CourseVisibilityHidden'), COURSE_VISIBILITY_HIDDEN); |
|
246 | + $group[] = $form->createElement('radio', 'visibility', null, get_lang('CourseVisibilityHidden'), COURSE_VISIBILITY_HIDDEN); |
|
247 | 247 | } |
248 | 248 | $form->addGroup($group, '', array(get_lang("CourseAccess"), get_lang("CourseAccessConfigTip")), ''); |
249 | 249 | |
@@ -252,13 +252,13 @@ discard block |
||
252 | 252 | $form->addElement('label', get_lang('DirectLink'), sprintf(get_lang('CourseSettingsRegisterDirectLink'), $url)); |
253 | 253 | |
254 | 254 | $group = array(); |
255 | -$group[]=$form->createElement('radio', 'subscribe', get_lang('Subscription'), get_lang('Allowed'), 1); |
|
256 | -$group[]=$form->createElement('radio', 'subscribe', null, get_lang('Denied'), 0); |
|
255 | +$group[] = $form->createElement('radio', 'subscribe', get_lang('Subscription'), get_lang('Allowed'), 1); |
|
256 | +$group[] = $form->createElement('radio', 'subscribe', null, get_lang('Denied'), 0); |
|
257 | 257 | $form->addGroup($group, '', array(get_lang("Subscription")), ''); |
258 | 258 | |
259 | 259 | $group = array(); |
260 | -$group[]=$form->createElement('radio', 'unsubscribe', get_lang('Unsubscription'), get_lang('AllowedToUnsubscribe'), 1); |
|
261 | -$group[]=$form->createElement('radio', 'unsubscribe', null, get_lang('NotAllowedToUnsubscribe'), 0); |
|
260 | +$group[] = $form->createElement('radio', 'unsubscribe', get_lang('Unsubscription'), get_lang('AllowedToUnsubscribe'), 1); |
|
261 | +$group[] = $form->createElement('radio', 'unsubscribe', null, get_lang('NotAllowedToUnsubscribe'), 0); |
|
262 | 262 | $form->addGroup($group, '', array(get_lang("Unsubscription")), ''); |
263 | 263 | |
264 | 264 | $form->addText('course_registration_password', get_lang('CourseRegistrationPassword'), false, array('size' => '60')); |
@@ -271,103 +271,103 @@ discard block |
||
271 | 271 | |
272 | 272 | // Documents |
273 | 273 | if (api_get_setting('documents_default_visibility_defined_in_course') == 'true') { |
274 | - $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>'); |
|
274 | + $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>'); |
|
275 | 275 | |
276 | 276 | $group = array( |
277 | 277 | $form->createElement('radio', 'documents_default_visibility', null, get_lang('Visible'), 'visible'), |
278 | 278 | $form->createElement('radio', 'documents_default_visibility', null, get_lang('Invisible'), 'invisible') |
279 | 279 | ); |
280 | 280 | $form->addGroup($group, '', array(get_lang("DocumentsDefaultVisibility")), ''); |
281 | - $form->addButtonSave(get_lang('SaveSettings'),'submit_save'); |
|
281 | + $form->addButtonSave(get_lang('SaveSettings'), 'submit_save'); |
|
282 | 282 | |
283 | 283 | |
284 | 284 | $form->addElement('html', '</div></div>'); |
285 | 285 | } |
286 | 286 | |
287 | 287 | // EMAIL NOTIFICATIONS |
288 | -$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>'); |
|
288 | +$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>'); |
|
289 | 289 | |
290 | 290 | $group = array(); |
291 | -$group[]=$form->createElement('radio', 'email_alert_to_teacher_on_new_user_in_course', get_lang('NewUserEmailAlert'), get_lang('NewUserEmailAlertEnable'), 1); |
|
292 | -$group[]=$form->createElement('radio', 'email_alert_to_teacher_on_new_user_in_course', null, get_lang('NewUserEmailAlertToTeacharAndTutor'), 2); |
|
293 | -$group[]=$form->createElement('radio', 'email_alert_to_teacher_on_new_user_in_course', null, get_lang('NewUserEmailAlertDisable'), 0); |
|
291 | +$group[] = $form->createElement('radio', 'email_alert_to_teacher_on_new_user_in_course', get_lang('NewUserEmailAlert'), get_lang('NewUserEmailAlertEnable'), 1); |
|
292 | +$group[] = $form->createElement('radio', 'email_alert_to_teacher_on_new_user_in_course', null, get_lang('NewUserEmailAlertToTeacharAndTutor'), 2); |
|
293 | +$group[] = $form->createElement('radio', 'email_alert_to_teacher_on_new_user_in_course', null, get_lang('NewUserEmailAlertDisable'), 0); |
|
294 | 294 | $form->addGroup($group, '', array(get_lang("NewUserEmailAlert")), ''); |
295 | 295 | |
296 | 296 | $group = array(); |
297 | -$group[]=$form->createElement('radio', 'email_alert_students_on_new_homework', get_lang('NewHomeworkEmailAlert'), get_lang('NewHomeworkEmailAlertEnable'), 1); |
|
298 | -$group[]=$form->createElement('radio', 'email_alert_students_on_new_homework', null, get_lang('NewHomeworkEmailAlertDisable'), 0); |
|
297 | +$group[] = $form->createElement('radio', 'email_alert_students_on_new_homework', get_lang('NewHomeworkEmailAlert'), get_lang('NewHomeworkEmailAlertEnable'), 1); |
|
298 | +$group[] = $form->createElement('radio', 'email_alert_students_on_new_homework', null, get_lang('NewHomeworkEmailAlertDisable'), 0); |
|
299 | 299 | $form->addGroup($group, '', array(get_lang("NewHomeworkEmailAlert")), ''); |
300 | 300 | |
301 | 301 | $group = array(); |
302 | -$group[]=$form->createElement('radio', 'email_alert_manager_on_new_doc', null, get_lang('WorkEmailAlertActivateOnlyForTeachers'), 3); |
|
303 | -$group[]=$form->createElement('radio', 'email_alert_manager_on_new_doc', null, get_lang('WorkEmailAlertActivateOnlyForStudents'), 2); |
|
304 | -$group[]=$form->createElement('radio', 'email_alert_manager_on_new_doc', get_lang('WorkEmailAlert'), get_lang('WorkEmailAlertActivate'), 1); |
|
305 | -$group[]=$form->createElement('radio', 'email_alert_manager_on_new_doc', null, get_lang('WorkEmailAlertDeactivate'), 0); |
|
302 | +$group[] = $form->createElement('radio', 'email_alert_manager_on_new_doc', null, get_lang('WorkEmailAlertActivateOnlyForTeachers'), 3); |
|
303 | +$group[] = $form->createElement('radio', 'email_alert_manager_on_new_doc', null, get_lang('WorkEmailAlertActivateOnlyForStudents'), 2); |
|
304 | +$group[] = $form->createElement('radio', 'email_alert_manager_on_new_doc', get_lang('WorkEmailAlert'), get_lang('WorkEmailAlertActivate'), 1); |
|
305 | +$group[] = $form->createElement('radio', 'email_alert_manager_on_new_doc', null, get_lang('WorkEmailAlertDeactivate'), 0); |
|
306 | 306 | $form->addGroup($group, '', array(get_lang("WorkEmailAlert")), ''); |
307 | 307 | |
308 | 308 | $group = array(); |
309 | -$group[]=$form->createElement('radio', 'email_alert_on_new_doc_dropbox', get_lang('DropboxEmailAlert'), get_lang('DropboxEmailAlertActivate'), 1); |
|
310 | -$group[]=$form->createElement('radio', 'email_alert_on_new_doc_dropbox', null, get_lang('DropboxEmailAlertDeactivate'), 0); |
|
309 | +$group[] = $form->createElement('radio', 'email_alert_on_new_doc_dropbox', get_lang('DropboxEmailAlert'), get_lang('DropboxEmailAlertActivate'), 1); |
|
310 | +$group[] = $form->createElement('radio', 'email_alert_on_new_doc_dropbox', null, get_lang('DropboxEmailAlertDeactivate'), 0); |
|
311 | 311 | $form->addGroup($group, '', array(get_lang("DropboxEmailAlert")), ''); |
312 | 312 | |
313 | 313 | $group = array(); |
314 | -$group[]=$form->createElement('radio', 'email_alert_manager_on_new_quiz', get_lang('QuizEmailAlert'), get_lang('QuizEmailAlertActivate'), 1); |
|
315 | -$group[]=$form->createElement('radio', 'email_alert_manager_on_new_quiz', null, get_lang('QuizEmailAlertDeactivate'), 0); |
|
314 | +$group[] = $form->createElement('radio', 'email_alert_manager_on_new_quiz', get_lang('QuizEmailAlert'), get_lang('QuizEmailAlertActivate'), 1); |
|
315 | +$group[] = $form->createElement('radio', 'email_alert_manager_on_new_quiz', null, get_lang('QuizEmailAlertDeactivate'), 0); |
|
316 | 316 | $form->addGroup($group, '', array(get_lang("QuizEmailAlert")), ''); |
317 | 317 | $form->addButtonSave(get_lang('SaveSettings'), 'submit_save'); |
318 | 318 | |
319 | 319 | $form->addElement('html', '</div></div>'); |
320 | 320 | |
321 | 321 | // USER RIGHTS |
322 | -$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>'); |
|
322 | +$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>'); |
|
323 | 323 | |
324 | 324 | $group = array(); |
325 | -$group[]=$form->createElement('radio', 'allow_user_edit_agenda', get_lang('AllowUserEditAgenda'), get_lang('AllowUserEditAgendaActivate'), 1); |
|
326 | -$group[]=$form->createElement('radio', 'allow_user_edit_agenda', null, get_lang('AllowUserEditAgendaDeactivate'), 0); |
|
325 | +$group[] = $form->createElement('radio', 'allow_user_edit_agenda', get_lang('AllowUserEditAgenda'), get_lang('AllowUserEditAgendaActivate'), 1); |
|
326 | +$group[] = $form->createElement('radio', 'allow_user_edit_agenda', null, get_lang('AllowUserEditAgendaDeactivate'), 0); |
|
327 | 327 | $form->addGroup($group, '', array(get_lang("AllowUserEditAgenda")), ''); |
328 | 328 | |
329 | 329 | $group = array(); |
330 | -$group[]=$form->createElement('radio', 'allow_user_edit_announcement', get_lang('AllowUserEditAnnouncement'), get_lang('AllowUserEditAnnouncementActivate'), 1); |
|
331 | -$group[]=$form->createElement('radio', 'allow_user_edit_announcement', null, get_lang('AllowUserEditAnnouncementDeactivate'), 0); |
|
330 | +$group[] = $form->createElement('radio', 'allow_user_edit_announcement', get_lang('AllowUserEditAnnouncement'), get_lang('AllowUserEditAnnouncementActivate'), 1); |
|
331 | +$group[] = $form->createElement('radio', 'allow_user_edit_announcement', null, get_lang('AllowUserEditAnnouncementDeactivate'), 0); |
|
332 | 332 | $form->addGroup($group, '', array(get_lang("AllowUserEditAnnouncement")), ''); |
333 | 333 | |
334 | 334 | $group = array(); |
335 | -$group[]=$form->createElement('radio', 'allow_user_image_forum', get_lang('AllowUserImageForum'), get_lang('AllowUserImageForumActivate'), 1); |
|
336 | -$group[]=$form->createElement('radio', 'allow_user_image_forum', null, get_lang('AllowUserImageForumDeactivate'), 0); |
|
335 | +$group[] = $form->createElement('radio', 'allow_user_image_forum', get_lang('AllowUserImageForum'), get_lang('AllowUserImageForumActivate'), 1); |
|
336 | +$group[] = $form->createElement('radio', 'allow_user_image_forum', null, get_lang('AllowUserImageForumDeactivate'), 0); |
|
337 | 337 | $form->addGroup($group, '', array(get_lang("AllowUserImageForum")), ''); |
338 | 338 | |
339 | 339 | $group = array(); |
340 | -$group[]=$form->createElement('radio', 'allow_user_view_user_list', get_lang('AllowUserViewUserList'), get_lang('AllowUserViewUserListActivate'), 1); |
|
341 | -$group[]=$form->createElement('radio', 'allow_user_view_user_list', null, get_lang('AllowUserViewUserListDeactivate'), 0); |
|
340 | +$group[] = $form->createElement('radio', 'allow_user_view_user_list', get_lang('AllowUserViewUserList'), get_lang('AllowUserViewUserListActivate'), 1); |
|
341 | +$group[] = $form->createElement('radio', 'allow_user_view_user_list', null, get_lang('AllowUserViewUserListDeactivate'), 0); |
|
342 | 342 | $form->addGroup($group, '', array(get_lang("AllowUserViewUserList")), ''); |
343 | 343 | $form->addButtonSave(get_lang('SaveSettings'), 'submit_save'); |
344 | 344 | $form->addElement('html', '</div></div>'); |
345 | 345 | |
346 | 346 | // CHAT SETTINGS |
347 | -$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>'); |
|
347 | +$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>'); |
|
348 | 348 | |
349 | 349 | $group = array(); |
350 | -$group[]=$form->createElement('radio', 'allow_open_chat_window', get_lang('AllowOpenchatWindow'), get_lang('AllowOpenChatWindowActivate'), 1); |
|
351 | -$group[]=$form->createElement('radio', 'allow_open_chat_window', null, get_lang('AllowOpenChatWindowDeactivate'), 0); |
|
350 | +$group[] = $form->createElement('radio', 'allow_open_chat_window', get_lang('AllowOpenchatWindow'), get_lang('AllowOpenChatWindowActivate'), 1); |
|
351 | +$group[] = $form->createElement('radio', 'allow_open_chat_window', null, get_lang('AllowOpenChatWindowDeactivate'), 0); |
|
352 | 352 | $form->addGroup($group, '', array(get_lang("AllowOpenchatWindow")), ''); |
353 | 353 | $form->addButtonSave(get_lang('SaveSettings'), 'submit_save'); |
354 | 354 | $form->addElement('html', '</div></div>'); |
355 | 355 | |
356 | 356 | // LEARNING PATH |
357 | -$form->addElement('html', '<div><h3>'.Display::return_icon('scorms.png', get_lang('ConfigLearnpath'),'',ICON_SIZE_SMALL).' '.Security::remove_XSS(get_lang('ConfigLearnpath')).'</h3><div>'); |
|
357 | +$form->addElement('html', '<div><h3>'.Display::return_icon('scorms.png', get_lang('ConfigLearnpath'), '', ICON_SIZE_SMALL).' '.Security::remove_XSS(get_lang('ConfigLearnpath')).'</h3><div>'); |
|
358 | 358 | |
359 | 359 | // Auto launch LP |
360 | 360 | $group = array(); |
361 | -$group[]=$form->createElement('radio', 'enable_lp_auto_launch', get_lang('LPAutoLaunch'), get_lang('RedirectToALearningPath'), 1); |
|
362 | -$group[]=$form->createElement('radio', 'enable_lp_auto_launch', get_lang('LPAutoLaunch'), get_lang('RedirectToTheLearningPathList'), 2); |
|
363 | -$group[]=$form->createElement('radio', 'enable_lp_auto_launch', null, get_lang('Deactivate'), 0); |
|
361 | +$group[] = $form->createElement('radio', 'enable_lp_auto_launch', get_lang('LPAutoLaunch'), get_lang('RedirectToALearningPath'), 1); |
|
362 | +$group[] = $form->createElement('radio', 'enable_lp_auto_launch', get_lang('LPAutoLaunch'), get_lang('RedirectToTheLearningPathList'), 2); |
|
363 | +$group[] = $form->createElement('radio', 'enable_lp_auto_launch', null, get_lang('Deactivate'), 0); |
|
364 | 364 | $form->addGroup($group, '', array(get_lang("LPAutoLaunch")), ''); |
365 | 365 | |
366 | 366 | if (api_get_setting('allow_course_theme') == 'true') { |
367 | 367 | // Allow theme into Learning path |
368 | 368 | $group = array(); |
369 | - $group[]=$form->createElement('radio', 'allow_learning_path_theme', get_lang('AllowLearningPathTheme'), get_lang('AllowLearningPathThemeAllow'), 1); |
|
370 | - $group[]=$form->createElement('radio', 'allow_learning_path_theme', null, get_lang('AllowLearningPathThemeDisallow'), 0); |
|
369 | + $group[] = $form->createElement('radio', 'allow_learning_path_theme', get_lang('AllowLearningPathTheme'), get_lang('AllowLearningPathThemeAllow'), 1); |
|
370 | + $group[] = $form->createElement('radio', 'allow_learning_path_theme', null, get_lang('AllowLearningPathThemeDisallow'), 0); |
|
371 | 371 | $form->addGroup($group, '', array(get_lang("AllowLearningPathTheme")), ''); |
372 | 372 | } |
373 | 373 | |
@@ -408,21 +408,21 @@ discard block |
||
408 | 408 | 'html', |
409 | 409 | '<div><h3>'.Display::return_icon( |
410 | 410 | 'course_progress.png', |
411 | - Security::remove_XSS(get_lang('ThematicAdvanceConfiguration')),'',ICON_SIZE_SMALL |
|
411 | + Security::remove_XSS(get_lang('ThematicAdvanceConfiguration')), '', ICON_SIZE_SMALL |
|
412 | 412 | ).' '.Security::remove_XSS(get_lang('ThematicAdvanceConfiguration')).'</h3><div>' |
413 | 413 | ); |
414 | 414 | |
415 | 415 | $group = array(); |
416 | -$group[]=$form->createElement('radio', 'display_info_advance_inside_homecourse', get_lang('InfoAboutAdvanceInsideHomeCourse'), get_lang('DisplayAboutLastDoneAdvance'), 1); |
|
417 | -$group[]=$form->createElement('radio', 'display_info_advance_inside_homecourse', null, get_lang('DisplayAboutNextAdvanceNotDone'), 2); |
|
418 | -$group[]=$form->createElement('radio', 'display_info_advance_inside_homecourse', null, get_lang('DisplayAboutNextAdvanceNotDoneAndLastDoneAdvance'), 3); |
|
419 | -$group[]=$form->createElement('radio', 'display_info_advance_inside_homecourse', null, get_lang('DoNotDisplayAnyAdvance'), 0); |
|
416 | +$group[] = $form->createElement('radio', 'display_info_advance_inside_homecourse', get_lang('InfoAboutAdvanceInsideHomeCourse'), get_lang('DisplayAboutLastDoneAdvance'), 1); |
|
417 | +$group[] = $form->createElement('radio', 'display_info_advance_inside_homecourse', null, get_lang('DisplayAboutNextAdvanceNotDone'), 2); |
|
418 | +$group[] = $form->createElement('radio', 'display_info_advance_inside_homecourse', null, get_lang('DisplayAboutNextAdvanceNotDoneAndLastDoneAdvance'), 3); |
|
419 | +$group[] = $form->createElement('radio', 'display_info_advance_inside_homecourse', null, get_lang('DoNotDisplayAnyAdvance'), 0); |
|
420 | 420 | $form->addGroup($group, '', array(get_lang("InfoAboutAdvanceInsideHomeCourse")), ''); |
421 | 421 | $form->addButtonSave(get_lang('SaveSettings'), 'submit_save'); |
422 | 422 | $form->addElement('html', '</div></div>'); |
423 | 423 | |
424 | 424 | // Document settings |
425 | -$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>'); |
|
425 | +$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>'); |
|
426 | 426 | |
427 | 427 | $group = array( |
428 | 428 | $form->createElement('radio', 'show_system_folders', null, get_lang('Yes'), 1), |
@@ -434,11 +434,11 @@ discard block |
||
434 | 434 | $form->addElement('html', '</div></div>'); |
435 | 435 | |
436 | 436 | // Certificate settings |
437 | -if (api_get_setting('allow_public_certificates')=='true') { |
|
438 | - $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>'); |
|
437 | +if (api_get_setting('allow_public_certificates') == 'true') { |
|
438 | + $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>'); |
|
439 | 439 | $group = array(); |
440 | - $group[]=$form->createElement('radio', 'allow_public_certificates', get_lang('AllowPublicCertificates'), get_lang('Yes'), 1); |
|
441 | - $group[]=$form->createElement('radio', 'allow_public_certificates', null, get_lang('No'), 0); |
|
440 | + $group[] = $form->createElement('radio', 'allow_public_certificates', get_lang('AllowPublicCertificates'), get_lang('Yes'), 1); |
|
441 | + $group[] = $form->createElement('radio', 'allow_public_certificates', null, get_lang('No'), 0); |
|
442 | 442 | $form->addGroup($group, '', array(get_lang("AllowPublicCertificates")), ''); |
443 | 443 | $form->addButtonSave(get_lang('SaveSettings'), 'submit_save'); |
444 | 444 | $form->addElement('html', '</div></div>'); |
@@ -6,7 +6,7 @@ discard block |
||
6 | 6 | */ |
7 | 7 | |
8 | 8 | require_once '../inc/global.inc.php'; |
9 | -$current_course_tool = TOOL_COURSE_MAINTENANCE; |
|
9 | +$current_course_tool = TOOL_COURSE_MAINTENANCE; |
|
10 | 10 | $this_section = SECTION_COURSES; |
11 | 11 | |
12 | 12 | $nameTools = get_lang('Maintenance'); |
@@ -40,7 +40,7 @@ discard block |
||
40 | 40 | <div class="sectioncomment"><?php echo get_lang('DescriptionRecycleCourse'); ?></div> |
41 | 41 | |
42 | 42 | <div class="sectiontitle"><?php Display::display_icon('delete.gif', get_lang('DelCourse')); ?> <a href="../course_info/delete_course.php?<?php echo api_get_cidreq(); ?>"><?php echo get_lang('DelCourse'); ?></a></div> |
43 | -<div class="sectioncomment"><?php echo get_lang('DescriptionDeleteCourse'); ?></div> |
|
43 | +<div class="sectioncomment"><?php echo get_lang('DescriptionDeleteCourse'); ?></div> |
|
44 | 44 | |
45 | 45 | <?php |
46 | 46 | // Footer |
@@ -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( |
@@ -119,7 +119,7 @@ discard block |
||
119 | 119 | $iconsTools .= '<div class="row">'; |
120 | 120 | foreach ($toolList as $tool) { |
121 | 121 | |
122 | - if ($tool['id']>20) { |
|
122 | + if ($tool['id'] > 20) { |
|
123 | 123 | $toolIconName = $tool['name']; |
124 | 124 | } else { |
125 | 125 | $toolIconName = get_lang('Tool'.api_underscore_to_camel_case($tool['name'])); |
@@ -144,13 +144,13 @@ discard block |
||
144 | 144 | |
145 | 145 | $delete = (!empty($tool['custom_icon'])) ? "<a class=\"btn btn-default\" onclick=\"javascript: |
146 | 146 | if(!confirm('".addslashes(api_htmlentities(get_lang('ConfirmYourChoice'), ENT_QUOTES, $charset)). |
147 | - "')) return false;\" href=\"". api_get_self() . '?action=delete_icon&id=' . $tool['iid'] . '&'.api_get_cidreq()."\"> |
|
147 | + "')) return false;\" href=\"".api_get_self().'?action=delete_icon&id='.$tool['iid'].'&'.api_get_cidreq()."\"> |
|
148 | 148 | <em class=\"fa fa-trash-o\"></em></a>" : ""; |
149 | - $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>'; |
|
149 | + $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>'; |
|
150 | 150 | |
151 | - $iconsTools .= '<div class="icon-tools">'. $icon . '</div>'; |
|
152 | - $iconsTools .= '<div class="name-tools">' . $toolIconName . '</div>'; |
|
153 | - $iconsTools .= '<div class="toolbar">' . $edit . $delete . '</div>'; |
|
151 | + $iconsTools .= '<div class="icon-tools">'.$icon.'</div>'; |
|
152 | + $iconsTools .= '<div class="name-tools">'.$toolIconName.'</div>'; |
|
153 | + $iconsTools .= '<div class="toolbar">'.$edit.$delete.'</div>'; |
|
154 | 154 | $iconsTools .= '</div>'; |
155 | 155 | $iconsTools .= '</div>'; |
156 | 156 | } |
@@ -87,7 +87,7 @@ |
||
87 | 87 | } |
88 | 88 | |
89 | 89 | if ($pluginLegal) { |
90 | - header('Location:' .$url); |
|
90 | + header('Location:'.$url); |
|
91 | 91 | exit; |
92 | 92 | } |
93 | 93 | } |
@@ -27,12 +27,12 @@ |
||
27 | 27 | echo Display::page_subheader( |
28 | 28 | Display::return_icon( |
29 | 29 | 'save_import.gif', get_lang('Backup') |
30 | - ) . ' ' . get_lang('Backup') |
|
30 | + ).' '.get_lang('Backup') |
|
31 | 31 | ); |
32 | 32 | |
33 | 33 | $url = api_get_path( |
34 | 34 | WEB_CODE_PATH |
35 | - ) . 'coursecopy/copy_course_session_selected.php?' . api_get_cidreq(); |
|
35 | + ).'coursecopy/copy_course_session_selected.php?'.api_get_cidreq(); |
|
36 | 36 | |
37 | 37 | $link = Display::url(get_lang('CopyCourse'), $url); |
38 | 38 | ?> |