@@ -47,10 +47,10 @@ |
||
47 | 47 | " . |
48 | 48 | "\n" . |
49 | 49 | '$().ready(function() {'."\n" . |
50 | - 'if ($(\'#previous\')) {'."\n" . |
|
50 | + 'if ($(\'#previous\')) {'."\n" . |
|
51 | 51 | 'if(\'parent is\'+$(\'#idParent\').val()) {'. |
52 | - 'load_cbo($(\'#idParent\').val());'."\n" . |
|
53 | - '}}'."\n" . |
|
52 | + 'load_cbo($(\'#idParent\').val());'."\n" . |
|
53 | + '}}'."\n" . |
|
54 | 54 | '});</script>'."\n" ; |
55 | 55 | |
56 | 56 | /* Constants and variables */ |
@@ -35,7 +35,7 @@ |
||
35 | 35 | |
36 | 36 | // Using the resource linker as a tool for adding resources to the learning path. |
37 | 37 | if ($action=="add" and $type=="learnpathitem") { |
38 | - $htmlHeadXtra[] = "<script language='JavaScript' type='text/javascript'> window.location=\"../resourcelinker/resourcelinker.php?source_id=5&action=$action&learnpath_id=$learnpath_id&chapter_id=$chapter_id&originalresource=no\"; </script>"; |
|
38 | + $htmlHeadXtra[] = "<script language='JavaScript' type='text/javascript'> window.location=\"../resourcelinker/resourcelinker.php?source_id=5&action=$action&learnpath_id=$learnpath_id&chapter_id=$chapter_id&originalresource=no\"; </script>"; |
|
39 | 39 | } |
40 | 40 | if ((!$is_allowed_to_edit) || ($isStudentView)) { |
41 | 41 | error_log('New LP - User not authorized in lp_build.php'); |
@@ -458,7 +458,7 @@ |
||
458 | 458 | } |
459 | 459 | |
460 | 460 | if ($myLP->get_type() == 2) { |
461 | - $return .= "update_stats();"; |
|
461 | + $return .= "update_stats();"; |
|
462 | 462 | } |
463 | 463 | |
464 | 464 | // To be sure progress is updated. |
@@ -538,17 +538,17 @@ discard block |
||
538 | 538 | if (isset($_REQUEST['activate_start_date_check']) && |
539 | 539 | $_REQUEST['activate_start_date_check'] == 1 |
540 | 540 | ) { |
541 | - $publicated_on = $_REQUEST['publicated_on']; |
|
541 | + $publicated_on = $_REQUEST['publicated_on']; |
|
542 | 542 | } else { |
543 | - $publicated_on = null; |
|
543 | + $publicated_on = null; |
|
544 | 544 | } |
545 | 545 | |
546 | 546 | if (isset($_REQUEST['activate_end_date_check']) && |
547 | 547 | $_REQUEST['activate_end_date_check'] == 1 |
548 | 548 | ) { |
549 | - $expired_on = $_REQUEST['expired_on']; |
|
549 | + $expired_on = $_REQUEST['expired_on']; |
|
550 | 550 | } else { |
551 | - $expired_on = null; |
|
551 | + $expired_on = null; |
|
552 | 552 | } |
553 | 553 | |
554 | 554 | $new_lp_id = learnpath::add_lp( |
@@ -937,9 +937,9 @@ discard block |
||
937 | 937 | $_SESSION['oLP']->setSubscribeUsers($_REQUEST['subscribe_users']); |
938 | 938 | |
939 | 939 | if (isset($_REQUEST['activate_start_date_check']) && $_REQUEST['activate_start_date_check'] == 1) { |
940 | - $publicated_on = $_REQUEST['publicated_on']; |
|
940 | + $publicated_on = $_REQUEST['publicated_on']; |
|
941 | 941 | } else { |
942 | - $publicated_on = null; |
|
942 | + $publicated_on = null; |
|
943 | 943 | } |
944 | 944 | |
945 | 945 | if (isset($_REQUEST['activate_end_date_check']) && $_REQUEST['activate_end_date_check'] == 1) { |
@@ -1151,7 +1151,7 @@ discard block |
||
1151 | 1151 | } elseif ($mode == 'embedded') { |
1152 | 1152 | $_SESSION['oLP']->mode = 'embedded'; |
1153 | 1153 | } elseif ($mode == 'embedframe') { |
1154 | - $_SESSION['oLP']->mode = 'embedframe'; |
|
1154 | + $_SESSION['oLP']->mode = 'embedframe'; |
|
1155 | 1155 | } elseif ($mode == 'impress') { |
1156 | 1156 | $_SESSION['oLP']->mode = 'impress'; |
1157 | 1157 | } |
@@ -1189,11 +1189,11 @@ discard block |
||
1189 | 1189 | require 'lp_list.php'; |
1190 | 1190 | break; |
1191 | 1191 | */ |
1192 | - case 'switch_attempt_mode': |
|
1193 | - if($debug>0) error_log('New LP - switch_reinit action triggered',0); |
|
1194 | - if(!$lp_found){ error_log('New LP - No learnpath given for switch',0); require 'lp_list.php'; } |
|
1195 | - $_SESSION['refresh'] = 1; |
|
1196 | - $_SESSION['oLP']->switch_attempt_mode(); |
|
1192 | + case 'switch_attempt_mode': |
|
1193 | + if($debug>0) error_log('New LP - switch_reinit action triggered',0); |
|
1194 | + if(!$lp_found){ error_log('New LP - No learnpath given for switch',0); require 'lp_list.php'; } |
|
1195 | + $_SESSION['refresh'] = 1; |
|
1196 | + $_SESSION['oLP']->switch_attempt_mode(); |
|
1197 | 1197 | require 'lp_list.php'; |
1198 | 1198 | break; |
1199 | 1199 | case 'switch_scorm_debug': |
@@ -58,11 +58,11 @@ |
||
58 | 58 | if (!empty($path_to_lzx)) { |
59 | 59 | $recorder_content = sprintf("<object type=\"application/x-shockwave-flash\" data=\"%s\" ". |
60 | 60 | "width='$width' height='$height'>". |
61 | - "<param name=\"movie\" value=\"%s\">". |
|
62 | - "<param name=\"quality\" value=\"high\">". |
|
63 | - "<param name=\"scale\" value=\"noscale\">". |
|
64 | - "<param name=\"salign\" value=\"LT\">". |
|
65 | - "<param name=\"menu\" value=\"false\"></object>", $path_to_lzx, $path_to_lzx); |
|
61 | + "<param name=\"movie\" value=\"%s\">". |
|
62 | + "<param name=\"quality\" value=\"high\">". |
|
63 | + "<param name=\"scale\" value=\"noscale\">". |
|
64 | + "<param name=\"salign\" value=\"LT\">". |
|
65 | + "<param name=\"menu\" value=\"false\"></object>", $path_to_lzx, $path_to_lzx); |
|
66 | 66 | if ($audio_recorder_studentview == 'false') { |
67 | 67 | echo '<script type="text/javascript"> |
68 | 68 | function show_audiorecorder() { |
@@ -458,8 +458,8 @@ |
||
458 | 458 | } else if(param == 'cmi.core.student_name'){ |
459 | 459 | // ---- cmi.core.student_name |
460 | 460 | <?php |
461 | - $who = addslashes($user['complete_name']); |
|
462 | - echo "result='$who';"; |
|
461 | + $who = addslashes($user['complete_name']); |
|
462 | + echo "result='$who';"; |
|
463 | 463 | ?> |
464 | 464 | } else if(param == 'cmi.core.lesson_location'){ |
465 | 465 | // ---- cmi.core.lesson_location |
@@ -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', |
@@ -84,10 +84,10 @@ discard block |
||
84 | 84 | $myistring = substr($myistring, 1); |
85 | 85 | } |
86 | 86 | |
87 | - // Obtention des donnees d'objectifs |
|
88 | - $mycoursedb = Database::get_course_table(TABLE_LP_IV_OBJECTIVE); |
|
87 | + // Obtention des donnees d'objectifs |
|
88 | + $mycoursedb = Database::get_course_table(TABLE_LP_IV_OBJECTIVE); |
|
89 | 89 | $course_id = api_get_course_int_id(); |
90 | - $mylp_iv_id = $mylpi->db_item_view_id; |
|
90 | + $mylp_iv_id = $mylpi->db_item_view_id; |
|
91 | 91 | |
92 | 92 | $phpobjectives = array(); |
93 | 93 | |
@@ -101,7 +101,7 @@ discard block |
||
101 | 101 | $phpobjectives[] = $row; |
102 | 102 | } |
103 | 103 | } |
104 | - $myobjectives = json_encode($phpobjectives); |
|
104 | + $myobjectives = json_encode($phpobjectives); |
|
105 | 105 | |
106 | 106 | $return .= |
107 | 107 | "olms.score=".$myscore.";" . |
@@ -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'); |