|
|
|
|
@ -71,8 +71,6 @@ $my_style=$platform_theme; |
|
|
|
|
Header |
|
|
|
|
----------------------------------------------------------- |
|
|
|
|
*/ |
|
|
|
|
//$htmlHeadXtra[] = '<script type="text/javascript" src="lp_view.lib.js"></script>'; |
|
|
|
|
//$htmlHeadXtra[] = $xajax->getJavascript('../inc/lib/xajax/')."\n"; |
|
|
|
|
$htmlHeadXtra[] = '<script src="../inc/lib/javascript/jquery.js" type="text/javascript" language="javascript"></script>'; //jQuery |
|
|
|
|
|
|
|
|
|
$htmlHeadXtra[] = '<script language="javascript"> |
|
|
|
|
@ -263,13 +261,12 @@ if($_SESSION['oLP']->mode == 'fullscreen') { |
|
|
|
|
<div id="preview_image" style="padding:5px;background-image: url('../img/lp_author_background.gif');background-repeat:no-repeat;height:110px"> |
|
|
|
|
<div style="width:100; float:left;height:105;margin:5px"> |
|
|
|
|
<span> |
|
|
|
|
<?php if ($_SESSION['oLP']->get_preview_image()!=''): ?> |
|
|
|
|
<img width="115" height="100" src="<?php echo api_get_path(WEB_COURSE_PATH).api_get_course_path().'/upload/learning_path/images/'.$_SESSION['oLP']->get_preview_image(); ?>">
|
|
|
|
|
<?php
|
|
|
|
|
else |
|
|
|
|
: echo Display :: display_icon('unknown_250_100.jpg', ' '); |
|
|
|
|
endif; |
|
|
|
|
?> |
|
|
|
|
if ($_SESSION['oLP']->get_preview_image()!='') { |
|
|
|
|
echo '<img width="115px" height="100px" src="'.api_get_path(WEB_COURSE_PATH).api_get_course_path().'/upload/learning_path/images/'.$_SESSION['oLP']->get_preview_image().'">'; |
|
|
|
|
} else { |
|
|
|
|
echo Display :: display_icon('unknown_250_100.jpg', ' '); |
|
|
|
|
}; ?> |
|
|
|
|
</span> |
|
|
|
|
</div> |
|
|
|
|
|
|
|
|
|
@ -335,11 +332,8 @@ if($_SESSION['oLP']->mode == 'fullscreen') { |
|
|
|
|
</div> |
|
|
|
|
<!-- end log message layout --> |
|
|
|
|
</div> |
|
|
|
|
|
|
|
|
|
</div> |
|
|
|
|
<!-- end toc layout --> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</div> |
|
|
|
|
<!-- end left Zone --> |
|
|
|
|
|
|
|
|
|
@ -351,10 +345,6 @@ if($_SESSION['oLP']->mode == 'fullscreen') { |
|
|
|
|
|
|
|
|
|
</div> |
|
|
|
|
|
|
|
|
|
<script language="JavaScript" type="text/javascript"> |
|
|
|
|
// Need to be called after the <head> to be sure window.oxajax is defined |
|
|
|
|
var dokeos_xajax_handler = window.oxajax; |
|
|
|
|
</script> |
|
|
|
|
<script language="JavaScript" type="text/javascript"> |
|
|
|
|
<!-- |
|
|
|
|
var leftZoneHeightOccupied = 0; |
|
|
|
|
@ -415,20 +405,15 @@ if($_SESSION['oLP']->mode == 'fullscreen') { |
|
|
|
|
</form> |
|
|
|
|
</body> |
|
|
|
|
<?php |
|
|
|
|
} |
|
|
|
|
else |
|
|
|
|
{ |
|
|
|
|
} else { |
|
|
|
|
//not fullscreen mode |
|
|
|
|
include_once('../inc/reduced_header.inc.php'); |
|
|
|
|
//$displayAudioRecorder = (api_get_setting('service_visio','active')=='true') ? true : false; |
|
|
|
|
//check if audio recorder needs to be in studentview |
|
|
|
|
$course_id=$_SESSION["_course"]["id"]; |
|
|
|
|
if($_SESSION["status"][$course_id]==5) |
|
|
|
|
{ |
|
|
|
|
if ($_SESSION["status"][$course_id]==5) { |
|
|
|
|
$audio_recorder_studentview = true; |
|
|
|
|
} |
|
|
|
|
else |
|
|
|
|
{ |
|
|
|
|
} else { |
|
|
|
|
$audio_recorder_studentview = false; |
|
|
|
|
} |
|
|
|
|
//set flag to ensure lp_header.php is loaded by this script (flag is unset in lp_header.php) |
|
|
|
|
@ -440,7 +425,6 @@ else |
|
|
|
|
<input type="hidden" id="current_item_id" name ="current_item_id" value="0" /> |
|
|
|
|
|
|
|
|
|
<div id="learningPathMain" style="width:100%;height:100%;" > |
|
|
|
|
|
|
|
|
|
<div id="learningPathLeftZone" style="float:left;width:280px;height:100%"> |
|
|
|
|
|
|
|
|
|
<!-- header --> |
|
|
|
|
@ -464,24 +448,22 @@ else |
|
|
|
|
<!-- Image preview Layout --> |
|
|
|
|
<div id="author_image" name="author_image" class="lp_author_image" style="height:23%; width:100%;margin-left:5px;"> |
|
|
|
|
<?php $image = '../img/lp_author_background.gif'; ?> |
|
|
|
|
|
|
|
|
|
<div id="preview_image" style="padding:5px;background-image: url('../img/lp_author_background.gif');background-repeat:no-repeat;height:110px"> |
|
|
|
|
|
|
|
|
|
<div style="width:100; float:left;height:105;margin:5px"> |
|
|
|
|
<span style="width:104px; height:96px; float:left; vertical-align:bottom;"> |
|
|
|
|
<center><?php if ($_SESSION['oLP']->get_preview_image()!=''): ?> |
|
|
|
|
<center> |
|
|
|
|
<?php
|
|
|
|
|
if ($_SESSION['oLP']->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 '<img '.$size.' src="'.$flie.'">'; |
|
|
|
|
$my_path = api_get_path(WEB_COURSE_PATH).api_get_course_path().'/upload/learning_path/images/'.$_SESSION['oLP']->get_preview_image(); |
|
|
|
|
echo '<img '.$size.' src="'.$my_path.'">'; |
|
|
|
|
} else { |
|
|
|
|
echo Display :: display_icon('unknown_250_100.jpg', ' '); |
|
|
|
|
} |
|
|
|
|
?> |
|
|
|
|
<?php |
|
|
|
|
else |
|
|
|
|
: echo Display :: display_icon('unknown_250_100.jpg', ' '); |
|
|
|
|
endif; |
|
|
|
|
?></center> |
|
|
|
|
</center> |
|
|
|
|
</span> |
|
|
|
|
</div> |
|
|
|
|
|
|
|
|
|
@ -521,7 +503,6 @@ else |
|
|
|
|
</div> |
|
|
|
|
</div> |
|
|
|
|
</div> |
|
|
|
|
|
|
|
|
|
</div> |
|
|
|
|
<!-- end image preview Layout --> |
|
|
|
|
<div id="author_name" style="position:relative;top:2px;left:0px;margin:0;padding:0;text-align:center;width:100%"> |
|
|
|
|
@ -548,11 +529,8 @@ else |
|
|
|
|
<!-- end log message layout --> |
|
|
|
|
<?php } ?> |
|
|
|
|
</div> |
|
|
|
|
|
|
|
|
|
</div> |
|
|
|
|
<!-- end toc layout --> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</div> |
|
|
|
|
<!-- end left Zone --> |
|
|
|
|
|
|
|
|
|
@ -561,13 +539,7 @@ else |
|
|
|
|
<iframe id="content_id" name="content_name" src="<?php echo $src; ?>" border="0" frameborder="0" style="width:100%;height:600px" ></iframe>
|
|
|
|
|
</div> |
|
|
|
|
<!-- end right Zone --> |
|
|
|
|
|
|
|
|
|
</div> |
|
|
|
|
|
|
|
|
|
<script language="JavaScript" type="text/javascript"> |
|
|
|
|
// Need to be called after the <head> to be sure window.oxajax is defined |
|
|
|
|
var dokeos_xajax_handler = window.oxajax; |
|
|
|
|
</script> |
|
|
|
|
<script language="JavaScript" type="text/javascript"> |
|
|
|
|
<!-- |
|
|
|
|
var leftZoneHeightOccupied = 0; |
|
|
|
|
|