|
|
@ -148,7 +148,6 @@ if (isset($session_control_key) && !exercise_time_control_is_valid($objExercise- |
|
|
|
exercise_time_control_delete($objExercise->id, $learnpath_id, $learnpath_item_id); |
|
|
|
exercise_time_control_delete($objExercise->id, $learnpath_id, $learnpath_item_id); |
|
|
|
|
|
|
|
|
|
|
|
delete_chat_exercise_session($exe_id); |
|
|
|
delete_chat_exercise_session($exe_id); |
|
|
|
|
|
|
|
|
|
|
|
if ($origin != 'learnpath') { |
|
|
|
if ($origin != 'learnpath') { |
|
|
|
echo '<hr>'; |
|
|
|
echo '<hr>'; |
|
|
|
echo Display::url(get_lang('ReturnToCourseHomepage'), api_get_course_url(), array('class' => 'btn btn-large')); |
|
|
|
echo Display::url(get_lang('ReturnToCourseHomepage'), api_get_course_url(), array('class' => 'btn btn-large')); |
|
|
@ -162,16 +161,14 @@ if ($origin != 'learnpath') { |
|
|
|
} else { |
|
|
|
} else { |
|
|
|
$lp_mode = $_SESSION['lp_mode']; |
|
|
|
$lp_mode = $_SESSION['lp_mode']; |
|
|
|
$url = '../newscorm/lp_controller.php?cidReq='.api_get_course_id().'&action=view&lp_id='.$learnpath_id.'&lp_item_id='.$learnpath_item_id.'&exeId='.$exercise_stat_info['exe_id'].'&fb_type='.$objExercise->feedback_type; |
|
|
|
$url = '../newscorm/lp_controller.php?cidReq='.api_get_course_id().'&action=view&lp_id='.$learnpath_id.'&lp_item_id='.$learnpath_item_id.'&exeId='.$exercise_stat_info['exe_id'].'&fb_type='.$objExercise->feedback_type; |
|
|
|
//echo $total_score.','.$total_weight; exit; |
|
|
|
|
|
|
|
$href = ($lp_mode == 'fullscreen')?' window.opener.location.href="'.$url.'" ':' top.location.href="'.$url.'"'; |
|
|
|
$href = ($lp_mode == 'fullscreen')?' window.opener.location.href="'.$url.'" ':' top.location.href="'.$url.'"'; |
|
|
|
|
|
|
|
|
|
|
|
if (api_is_allowed_to_session_edit()) { |
|
|
|
if (api_is_allowed_to_session_edit()) { |
|
|
|
Session::erase('objExercise'); |
|
|
|
Session::erase('objExercise'); |
|
|
|
Session::erase('exe_id'); |
|
|
|
Session::erase('exe_id'); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
echo '<script type="text/javascript">'.$href.'</script>'; |
|
|
|
|
|
|
|
//record the results in the learning path, using the SCORM interface (API) |
|
|
|
//record the results in the learning path, using the SCORM interface (API) |
|
|
|
echo '<script type="text/javascript">window.parent.API.void_save_asset('.$total_score.','.$total_weight.');</script>'; |
|
|
|
echo '<script>window.parent.API.void_save_asset('.$total_score.', '.$total_weight.');</script>'; |
|
|
|
|
|
|
|
echo '<script type="text/javascript">'.$href.'</script>'; |
|
|
|
echo '</body></html>'; |
|
|
|
echo '</body></html>'; |
|
|
|
} |
|
|
|
} |