Minor - cosmetic changes

skala
Julio Montoya 13 years ago
parent 4f20a55a4c
commit 5e806196e9
  1. 7
      main/exercice/exercise_result.php

@ -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);
delete_chat_exercise_session($exe_id);
if ($origin != 'learnpath') {
echo '<hr>';
echo Display::url(get_lang('ReturnToCourseHomepage'), api_get_course_url(), array('class' => 'btn btn-large'));
@ -162,16 +161,14 @@ if ($origin != 'learnpath') {
} else {
$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;
//echo $total_score.','.$total_weight; exit;
$href = ($lp_mode == 'fullscreen')?' window.opener.location.href="'.$url.'" ':' top.location.href="'.$url.'"';
if (api_is_allowed_to_session_edit()) {
Session::erase('objExercise');
Session::erase('exe_id');
}
echo '<script type="text/javascript">'.$href.'</script>';
//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>';
}
Loading…
Cancel
Save