@@ -83,11 +83,11 @@ |
||
83 | 83 | if (strstr($_POST['action'], 'move_')) { |
84 | 84 | // check move_received_n or move_sent_n command |
85 | 85 | if (strstr($_POST['action'], 'received')) { |
86 | - $part = 'received'; |
|
87 | - $to_cat_id = str_replace('move_received_', '', $_POST['action']); |
|
86 | + $part = 'received'; |
|
87 | + $to_cat_id = str_replace('move_received_', '', $_POST['action']); |
|
88 | 88 | } else { |
89 | - $part = 'sent'; |
|
90 | - $to_cat_id = str_replace('move_sent_', '', $_POST['action']); |
|
89 | + $part = 'sent'; |
|
90 | + $to_cat_id = str_replace('move_sent_', '', $_POST['action']); |
|
91 | 91 | } |
92 | 92 | |
93 | 93 | foreach ($checked_file_ids as $value) { |
@@ -390,7 +390,7 @@ |
||
390 | 390 | * |
391 | 391 | */ |
392 | 392 | public function thematic_advance($action) |
393 | - { |
|
393 | + { |
|
394 | 394 | $thematic = new Thematic(); |
395 | 395 | $attendance = new Attendance(); |
396 | 396 | $data = array(); |
@@ -47,15 +47,15 @@ |
||
47 | 47 | $form->addElement('hidden', 'description_type['.$id.']', $id); |
48 | 48 | $form->addText('title['.$id.']', get_lang('Title'), false, array('size'=>'50')); |
49 | 49 | $form->addHtmlEditor( |
50 | - 'description['.$id.']', |
|
51 | - get_lang('Description'), |
|
52 | - false, |
|
53 | - false, |
|
54 | - array( |
|
55 | - 'ToolbarStartExpanded' => 'false', |
|
56 | - 'ToolbarSet' => 'TrainingDescription', |
|
57 | - 'Height' => '150' |
|
58 | - ) |
|
50 | + 'description['.$id.']', |
|
51 | + get_lang('Description'), |
|
52 | + false, |
|
53 | + false, |
|
54 | + array( |
|
55 | + 'ToolbarStartExpanded' => 'false', |
|
56 | + 'ToolbarSet' => 'TrainingDescription', |
|
57 | + 'Height' => '150' |
|
58 | + ) |
|
59 | 59 | ); |
60 | 60 | |
61 | 61 | if (!empty($thematic_simple_list) && in_array($id, $thematic_simple_list)) { |
@@ -40,7 +40,7 @@ |
||
40 | 40 | |
41 | 41 | // Using the resource linker as a tool for adding resources to the learning path. |
42 | 42 | if ($action == 'add' and $type == 'learnpathitem') { |
43 | - $htmlHeadXtra[] = "<script> window.location=\"../resourcelinker/resourcelinker.php?source_id=5&action=$action&learnpath_id=$learnpath_id&chapter_id=$chapter_id&originalresource=no\"; </script>"; |
|
43 | + $htmlHeadXtra[] = "<script> window.location=\"../resourcelinker/resourcelinker.php?source_id=5&action=$action&learnpath_id=$learnpath_id&chapter_id=$chapter_id&originalresource=no\"; </script>"; |
|
44 | 44 | } |
45 | 45 | if ((!$is_allowed_to_edit) || ($isStudentView)) { |
46 | 46 | error_log('New LP - User not authorized in lp_admin_view.php'); |
@@ -160,8 +160,8 @@ discard block |
||
160 | 160 | $form->addElement('checkbox', 'activate_start_date_check', null,get_lang('EnableStartTime'), array('onclick' => 'activate_start_date()')); |
161 | 161 | $display_date = 'none'; |
162 | 162 | if ($publicated_on!='0000-00-00 00:00:00' && !empty($publicated_on)) { |
163 | - $display_date = 'block'; |
|
164 | - $defaults['activate_start_date_check'] = 1; |
|
163 | + $display_date = 'block'; |
|
164 | + $defaults['activate_start_date_check'] = 1; |
|
165 | 165 | } |
166 | 166 | |
167 | 167 | $form->addElement('html','<div id="start_date_div" style="display:'.$display_date.';">'); |
@@ -172,8 +172,8 @@ discard block |
||
172 | 172 | $form->addElement('checkbox', 'activate_end_date_check', null, get_lang('EnableEndTime'), array('onclick' => 'activate_end_date()')); |
173 | 173 | $display_date = 'none'; |
174 | 174 | if ($expired_on!='0000-00-00 00:00:00' && !empty($expired_on)) { |
175 | - $display_date = 'block'; |
|
176 | - $defaults['activate_end_date_check'] = 1; |
|
175 | + $display_date = 'block'; |
|
176 | + $defaults['activate_end_date_check'] = 1; |
|
177 | 177 | } |
178 | 178 | |
179 | 179 | $form->addElement('html','<div id="end_date_div" style="display:'.$display_date.';">'); |
@@ -142,7 +142,7 @@ discard block |
||
142 | 142 | <?php |
143 | 143 | $who = addslashes(api_get_person_name($_user['firstName'], $_user['lastName'])); |
144 | 144 | echo "result='$who';"; |
145 | - ?> |
|
145 | + ?> |
|
146 | 146 | }else if(param == 'cmi.core.lesson_location'){ |
147 | 147 | result=lesson_location; |
148 | 148 | }else if(param == 'cmi.core.total_time'){ |
@@ -198,7 +198,7 @@ discard block |
||
198 | 198 | <?php |
199 | 199 | $who = addslashes(api_get_person_name($_user['firstName'], $_user['lastName'])); |
200 | 200 | echo "result='$who';"; |
201 | - ?> break; |
|
201 | + ?> break; |
|
202 | 202 | case 'cmi.core.lesson_location' : |
203 | 203 | result=''; |
204 | 204 | break; |
@@ -322,12 +322,12 @@ discard block |
||
322 | 322 | } |
323 | 323 | <?php |
324 | 324 | /** |
325 | - * Chamilo-specific code that deals with event handling and inter-frames |
|
326 | - * messaging/refreshing. |
|
327 | - * Note that from now on, the Chamilo JS code in this library will act as |
|
328 | - * a controller, of the MVC pattern, and receive all requests for frame |
|
329 | - * updates, then redispatch to any frame concerned. |
|
330 | - */ |
|
325 | + * Chamilo-specific code that deals with event handling and inter-frames |
|
326 | + * messaging/refreshing. |
|
327 | + * Note that from now on, the Chamilo JS code in this library will act as |
|
328 | + * a controller, of the MVC pattern, and receive all requests for frame |
|
329 | + * updates, then redispatch to any frame concerned. |
|
330 | + */ |
|
331 | 331 | ?> |
332 | 332 | /** |
333 | 333 | * Defining the AJAX-object class to be made available from other frames. |
@@ -13,11 +13,11 @@ |
||
13 | 13 | 'Accent', |
14 | 14 | 'Accenture', |
15 | 15 | 'ADLNet', |
16 | - 'Articulate', |
|
17 | - 'ATutor', |
|
18 | - 'Blackboard', |
|
19 | - 'Calfat', |
|
20 | - 'Captivate', |
|
16 | + 'Articulate', |
|
17 | + 'ATutor', |
|
18 | + 'Blackboard', |
|
19 | + 'Calfat', |
|
20 | + 'Captivate', |
|
21 | 21 | 'Chamilo', |
22 | 22 | 'Chamilo 2', |
23 | 23 | 'Claroline', |
@@ -80,11 +80,11 @@ discard block |
||
80 | 80 | if (!empty($myistring)) { |
81 | 81 | $myistring = substr($myistring, 1); |
82 | 82 | } |
83 | - // Obtention des donnees d'objectifs |
|
83 | + // Obtention des donnees d'objectifs |
|
84 | 84 | |
85 | - $mycoursedb = Database::get_course_table(TABLE_LP_IV_OBJECTIVE); |
|
85 | + $mycoursedb = Database::get_course_table(TABLE_LP_IV_OBJECTIVE); |
|
86 | 86 | $course_id = api_get_course_int_id(); |
87 | - $mylp_iv_id = $mylpi->db_item_view_id; |
|
87 | + $mylp_iv_id = $mylpi->db_item_view_id; |
|
88 | 88 | |
89 | 89 | $phpobjectives = array(); |
90 | 90 | |
@@ -98,7 +98,7 @@ discard block |
||
98 | 98 | $phpobjectives[] = $row; |
99 | 99 | } |
100 | 100 | } |
101 | - $myobjectives = json_encode($phpobjectives); |
|
101 | + $myobjectives = json_encode($phpobjectives); |
|
102 | 102 | |
103 | 103 | $return .= |
104 | 104 | "olms.score=".$myscore.";" . |
@@ -36,7 +36,7 @@ |
||
36 | 36 | api_get_group_id() |
37 | 37 | ); |
38 | 38 | if (!api_is_allowed_to_edit(null, true) && intval($visibility) == 0 ) { |
39 | - api_not_allowed(); |
|
39 | + api_not_allowed(); |
|
40 | 40 | } |
41 | 41 | |
42 | 42 | if (empty($_SESSION['oLP'])) { |