-
-
+
-
-
-
-
+
+
+
-
- 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', ' ');
+ }
+ ?>
+
+
@@ -508,9 +490,9 @@ else
$sql = "SELECT audio FROM " . $tbl_lp_item . " WHERE lp_id = '" . $_SESSION['oLP']->lp_id."'";
$res_media= Database::query($sql, __FILE__, __LINE__);
- if(Database::num_rows($res_media) > 0){
- while($row_media= Database::fetch_array($res_media)) {
- if(!empty($row_media['audio'])) {$show_audioplayer = true; break;}
+ if (Database::num_rows($res_media) > 0) {
+ while ($row_media= Database::fetch_array($res_media)) {
+ if (!empty($row_media['audio'])) {$show_audioplayer = true; break;}
}
}
?>
@@ -520,111 +502,101 @@ else
+
+
+
+
+ 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;
+-->
+