Reordered a little

skala
Yannick Warnier 16 years ago
parent 8ac672c79e
commit 0751fd080f
  1. 62
      main/newscorm/lp_view.php

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

Loading…
Cancel
Save