@@ -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'); |
@@ -1,10 +1,10 @@ |
||
1 | 1 | <?php |
2 | 2 | /* For licensing terms, see /license.txt */ |
3 | 3 | /** |
4 | - * Redirection script |
|
5 | - * @package chamilo.learnpath |
|
6 | - * @author Yannick Warnier <[email protected]> |
|
7 | - */ |
|
4 | + * Redirection script |
|
5 | + * @package chamilo.learnpath |
|
6 | + * @author Yannick Warnier <[email protected]> |
|
7 | + */ |
|
8 | 8 | |
9 | 9 | // Flag to allow for anonymous user - needs to be set before global.inc.php. |
10 | 10 | $use_anonymous = true; |
@@ -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.";" . |
@@ -1,10 +1,10 @@ discard block |
||
1 | 1 | <?php |
2 | 2 | /* For licensing terms, see /license.txt */ |
3 | 3 | /** |
4 | - * This is a learning path creation and player tool in Chamilo - previously |
|
5 | - * @author Julio Montoya - Improving the list of templates |
|
6 | - * @package chamilo.learnpath |
|
7 | - */ |
|
4 | + * This is a learning path creation and player tool in Chamilo - previously |
|
5 | + * @author Julio Montoya - Improving the list of templates |
|
6 | + * @package chamilo.learnpath |
|
7 | + */ |
|
8 | 8 | |
9 | 9 | $this_section = SECTION_COURSES; |
10 | 10 | |
@@ -24,7 +24,7 @@ discard block |
||
24 | 24 | |
25 | 25 | // Using the resource linker as a tool for adding resources to the learning path. |
26 | 26 | if ($action == 'add' && $type == 'learnpathitem') { |
27 | - $htmlHeadXtra[] = "<script> |
|
27 | + $htmlHeadXtra[] = "<script> |
|
28 | 28 | window.location=\"../resourcelinker/resourcelinker.php?source_id=5&action=$action&learnpath_id=$learnpath_id&chapter_id=$chapter_id&originalresource=no\"; |
29 | 29 | </script>"; |
30 | 30 | } |
@@ -1,10 +1,10 @@ |
||
1 | 1 | <?php |
2 | 2 | /* For licensing terms, see /license.txt */ |
3 | 3 | /** |
4 | - * Script that displays a blank page (with later a message saying why) |
|
5 | - * @package chamilo.learnpath |
|
6 | - * @author Yannick Warnier <[email protected]> |
|
7 | - */ |
|
4 | + * Script that displays a blank page (with later a message saying why) |
|
5 | + * @package chamilo.learnpath |
|
6 | + * @author Yannick Warnier <[email protected]> |
|
7 | + */ |
|
8 | 8 | // Flag to allow for anonymous user - needs to be set before global.inc.php. |
9 | 9 | $use_anonymous = true; |
10 | 10 | require_once '../inc/global.inc.php'; |
@@ -23,23 +23,23 @@ |
||
23 | 23 | $htmlHeadXtra[] = '<script type="text/javascript">'. |
24 | 24 | $_SESSION['oLP']->get_js_dropdown_array() . |
25 | 25 | 'function load_cbo(id){' ."\n" . |
26 | - 'if (!id) {return false;}'. |
|
27 | - 'var cbo = document.getElementById(\'previous\');' . |
|
28 | - 'for(var i = cbo.length - 1; i > 0; i--) {' . |
|
26 | + 'if (!id) {return false;}'. |
|
27 | + 'var cbo = document.getElementById(\'previous\');' . |
|
28 | + 'for(var i = cbo.length - 1; i > 0; i--) {' . |
|
29 | 29 | 'cbo.options[i] = null;' . |
30 | - '}' ."\n" . |
|
31 | - 'var k=0;' . |
|
32 | - 'for(var i = 1; i <= child_name[id].length; i++){' ."\n" . |
|
33 | - ' cbo.options[i] = new Option(child_name[id][i-1], child_value[id][i-1]);' ."\n" . |
|
34 | - ' k=i;' ."\n" . |
|
35 | - '}' ."\n" . |
|
36 | - 'cbo.options[k].selected = true;'."\n" . |
|
30 | + '}' ."\n" . |
|
31 | + 'var k=0;' . |
|
32 | + 'for(var i = 1; i <= child_name[id].length; i++){' ."\n" . |
|
33 | + ' cbo.options[i] = new Option(child_name[id][i-1], child_value[id][i-1]);' ."\n" . |
|
34 | + ' k=i;' ."\n" . |
|
35 | + '}' ."\n" . |
|
36 | + 'cbo.options[k].selected = true;'."\n" . |
|
37 | 37 | '}'."\n" . |
38 | 38 | '$().ready(function() {'."\n" . |
39 | - 'if ($(\'#previous\')) {'."\n" . |
|
39 | + 'if ($(\'#previous\')) {'."\n" . |
|
40 | 40 | 'if(\'parent is\'+$(\'#idParent\').val()) {'. |
41 | - 'load_cbo($(\'#idParent\').val());'."\n" . |
|
42 | - '}}'."\n" . |
|
41 | + 'load_cbo($(\'#idParent\').val());'."\n" . |
|
42 | + '}}'."\n" . |
|
43 | 43 | '});</script>'."\n" ; |
44 | 44 | |
45 | 45 | /* Constants and variables */ |
@@ -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'])) { |