@@ -45,7 +45,7 @@ discard block |
||
45 | 45 | } |
46 | 46 | |
47 | 47 | if (!$is_allowedToEdit) { |
48 | - // api_not_allowed(); |
|
48 | + // api_not_allowed(); |
|
49 | 49 | } |
50 | 50 | |
51 | 51 | if (!empty($_REQUEST['path'])) { |
@@ -190,9 +190,9 @@ discard block |
||
190 | 190 | get_lang('Actions') |
191 | 191 | ); |
192 | 192 | |
193 | - // Column config |
|
194 | - // @todo fix search firstname/lastname that doesn't work. rmove search for the moment |
|
195 | - $column_model = array( |
|
193 | + // Column config |
|
194 | + // @todo fix search firstname/lastname that doesn't work. rmove search for the moment |
|
195 | + $column_model = array( |
|
196 | 196 | array('name'=>'firstname', 'index'=>'firstname', 'width'=>'50', 'align'=>'left', 'search' => 'false'), |
197 | 197 | array('name'=>'lastname', 'index'=>'lastname', 'width'=>'50', 'align'=>'left', 'formatter'=>'action_formatter', 'search' => 'false'), |
198 | 198 | array('name'=>'login', 'hidden'=>'true', 'index'=>'username', 'width'=>'40', 'align'=>'left', 'search' => 'false'), |
@@ -30,10 +30,10 @@ discard block |
||
30 | 30 | |
31 | 31 | // Query db for answers |
32 | 32 | if ($answer_type==HOT_SPOT_DELINEATION) { |
33 | - $sql = "SELECT id, answer, hotspot_coordinates, hotspot_type, ponderation FROM $TBL_ANSWERS |
|
33 | + $sql = "SELECT id, answer, hotspot_coordinates, hotspot_type, ponderation FROM $TBL_ANSWERS |
|
34 | 34 | WHERE c_id = $course_id AND question_id = ".intval($questionId)." AND hotspot_type = 'delineation' ORDER BY id"; |
35 | 35 | } else { |
36 | - $sql = "SELECT id, answer, hotspot_coordinates, hotspot_type, ponderation FROM $TBL_ANSWERS |
|
36 | + $sql = "SELECT id, answer, hotspot_coordinates, hotspot_type, ponderation FROM $TBL_ANSWERS |
|
37 | 37 | WHERE c_id = $course_id AND question_id = ".intval($questionId)." ORDER BY id"; |
38 | 38 | } |
39 | 39 | $result = Database::query($sql); |
@@ -74,37 +74,37 @@ discard block |
||
74 | 74 | $hotSpot['id'] = $hotspot['id']; |
75 | 75 | $hotSpot['answer'] = $hotspot['answer']; |
76 | 76 | |
77 | - // Square or rectancle |
|
78 | - if ($hotspot['hotspot_type'] == 'square' ) |
|
79 | - { |
|
77 | + // Square or rectancle |
|
78 | + if ($hotspot['hotspot_type'] == 'square' ) |
|
79 | + { |
|
80 | 80 | $hotSpot['type'] = 'square'; |
81 | - } |
|
82 | - // Circle or ovale |
|
83 | - if ($hotspot['hotspot_type'] == 'circle') |
|
84 | - { |
|
81 | + } |
|
82 | + // Circle or ovale |
|
83 | + if ($hotspot['hotspot_type'] == 'circle') |
|
84 | + { |
|
85 | 85 | $hotSpot['type'] = 'circle'; |
86 | - } |
|
87 | - // Polygon |
|
88 | - if ($hotspot['hotspot_type'] == 'poly') |
|
89 | - { |
|
86 | + } |
|
87 | + // Polygon |
|
88 | + if ($hotspot['hotspot_type'] == 'poly') |
|
89 | + { |
|
90 | 90 | $hotSpot['type'] = 'poly'; |
91 | - } |
|
92 | - // Delineation |
|
93 | - if ($hotspot['hotspot_type'] == 'delineation') |
|
94 | - { |
|
91 | + } |
|
92 | + // Delineation |
|
93 | + if ($hotspot['hotspot_type'] == 'delineation') |
|
94 | + { |
|
95 | 95 | $hotSpot['type'] = 'delineation'; |
96 | - } |
|
97 | - // No error |
|
98 | - if ($hotspot['hotspot_type'] == 'noerror') |
|
99 | - { |
|
96 | + } |
|
97 | + // No error |
|
98 | + if ($hotspot['hotspot_type'] == 'noerror') |
|
99 | + { |
|
100 | 100 | $hotSpot['type'] = 'noerror'; |
101 | - } |
|
101 | + } |
|
102 | 102 | |
103 | - // This is a good answer, count + 1 for nmbr of clicks |
|
104 | - if ($hotspot['hotspot_type'] > 0) |
|
105 | - { |
|
106 | - $nmbrTries++; |
|
107 | - } |
|
103 | + // This is a good answer, count + 1 for nmbr of clicks |
|
104 | + if ($hotspot['hotspot_type'] > 0) |
|
105 | + { |
|
106 | + $nmbrTries++; |
|
107 | + } |
|
108 | 108 | |
109 | 109 | $hotSpot['coord'] = $hotspot['hotspot_coordinates']; |
110 | 110 |
@@ -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', |