From cb922745eeac62a5ce4ba304fb72e433086d38b1 Mon Sep 17 00:00:00 2001 From: Julio Montoya Date: Thu, 10 May 2012 14:57:33 +0200 Subject: [PATCH] Fixing hiding iframe --- main/newscorm/lp_view.php | 163 +++++++++++++++++++------------------- 1 file changed, 82 insertions(+), 81 deletions(-) diff --git a/main/newscorm/lp_view.php b/main/newscorm/lp_view.php index 1548384a6b..bb138fca20 100644 --- a/main/newscorm/lp_view.php +++ b/main/newscorm/lp_view.php @@ -309,98 +309,99 @@ if (Database::num_rows($res_media) > 0) { while ($row_media= Database::fetch_array($res_media)) { if (!empty($row_media['audio'])) {$show_audioplayer = true; break;} } -} - +} ?> -
- - - +
+ +
+ + + - - - -
-
- 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;" '; } - $size = ($picture['0'] > 104 && $picture['1'] > 96 )? ' width="104" height="96" ': $style; - $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_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;" '; } + $size = ($picture['0'] > 104 && $picture['1'] > 96 )? ' width="104" height="96" ': $style; + $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 ?> + +
+
+
.
+
+ +
- -
+
- -
- + - -
-mode == 'fullscreen') { - echo ''; - } else { - echo ''; - } -?> -
- + +
+ mode == 'fullscreen') { + echo ''; + } else { + echo ''; + } + ?> +
+