diff --git a/main/newscorm/lp_view.php b/main/newscorm/lp_view.php index f24fb96a4b..28d64c2541 100644 --- a/main/newscorm/lp_view.php +++ b/main/newscorm/lp_view.php @@ -71,8 +71,6 @@ $my_style=$platform_theme; Header ----------------------------------------------------------- */ -//$htmlHeadXtra[] = ''; -//$htmlHeadXtra[] = $xajax->getJavascript('../inc/lib/xajax/')."\n"; $htmlHeadXtra[] = ''; //jQuery $htmlHeadXtra[] = ' - + initialLeftZoneHeight = document.getElementById('learningPathToc').offsetHeight; + initialRightZoneHeight = document.getElementById('learningPathRightZone').offsetHeight; + docHeight = document.body.clientHeight; + leftZoneHeightOccupied = docHeight - initialLeftZoneHeight; + rightZoneHeightOccupied = docHeight - initialRightZoneHeight; + document.body.style.overflow = 'hidden'; + updateContentHeight(); +} + +window.onresize = updateContentHeight; +--> + +?>
- -
+
- -
- - + +
+
-
-
get_preview_image()!=''): ?> - + get_preview_image()!='') { $picture = getimagesize(api_get_path(SYS_COURSE_PATH).api_get_course_path().'/upload/learning_path/images/'.$_SESSION['oLP']->get_preview_image()); - if($picture['1'] < 96) $style = ' style="padding-top:'.((94 -$picture['1'])/2).'px;" '; + if($picture['1'] < 96) { $style = ' style="padding-top:'.((94 -$picture['1'])/2).'px;" '; } $size = ($picture['0'] > 104 && $picture['1'] > 96 )? ' width="104" height="96" ': $style; - $flie = api_get_path(WEB_COURSE_PATH).api_get_course_path().'/upload/learning_path/images/'.$_SESSION['oLP']->get_preview_image(); - echo ''; - ?> -
-
+ $my_path = api_get_path(WEB_COURSE_PATH).api_get_course_path().'/upload/learning_path/images/'.$_SESSION['oLP']->get_preview_image(); + echo ''; + } else { + echo Display :: display_icon('unknown_250_100.jpg', ' '); + } + ?> + +
+
+
+ +
+ get_author() ?>
-
- -
- get_author() ?> -
- - - -
> - -
- - - -
-
get_html_toc(); ?> - -scorm_debug)) { //only show log ?> - -
-
-
.
+ + +
> +
- - + + + +
+
get_html_toc(); ?> + + scorm_debug)) { //only show log ?> + +
+
+
.
+
+ + +
- +
- + - -
- - - +
- - +
+ + initialLeftZoneHeight = document.getElementById('learningPathToc').offsetHeight; + initialRightZoneHeight = document.getElementById('learningPathRightZone').offsetHeight; + docHeight = document.body.clientHeight; + leftZoneHeightOccupied = docHeight - initialLeftZoneHeight; + rightZoneHeightOccupied = docHeight - initialRightZoneHeight; + document.body.style.overflow = 'hidden'; + updateContentHeight(); +} + +window.onresize = updateContentHeight; +--> +