|
|
|
|
@ -212,9 +212,9 @@ if($_SESSION['oLP']->mode == 'fullscreen') |
|
|
|
|
//set flag to ensure lp_header.php is loaded by this script (flag is unset in lp_header.php) |
|
|
|
|
$_SESSION['loaded_lp_view'] = true; |
|
|
|
|
?> |
|
|
|
|
<table border="0" style="width:100%"> |
|
|
|
|
<tr><td width="20%"> |
|
|
|
|
<div id="learningPathLeftZone" style="float: left; width: 300px;"> |
|
|
|
|
|
|
|
|
|
<table> |
|
|
|
|
<tr><td valign="top"> |
|
|
|
|
<div id="header"> |
|
|
|
|
<div id="learningPathHeader" style="font-size:14px; "> |
|
|
|
|
<table> |
|
|
|
|
@ -229,11 +229,28 @@ if($_SESSION['oLP']->mode == 'fullscreen') |
|
|
|
|
</table> |
|
|
|
|
</div> |
|
|
|
|
</div> |
|
|
|
|
<div id="toc_id" name="toc_name" class="lp_toc" style="padding:0;margin:0"> |
|
|
|
|
<div id="learningPathToc" style="width:300px;overflow-y:auto;overflow-x:hidden;font-size:8pt;"><?php echo $_SESSION['oLP']->get_html_toc(); ?></div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<div id="learningPathLeftZone" style="float: left; width: 320px;"> |
|
|
|
|
<div id="author_image" name="author_image" class="lp_author_image"> |
|
|
|
|
<?php $image = '../img/lp_author_background.gif'; ?>
|
|
|
|
|
<div> |
|
|
|
|
<div style="width: 310px; height:140px; margin-left:20px; background-image: url('../img/lp_author_background.gif');background-repeat:no-repeat; "> |
|
|
|
|
<div style="width:140px; float:left;"> |
|
|
|
|
<span style="float:right; padding-top:16px; padding-right:10px;"> |
|
|
|
|
<?php if ($_SESSION['oLP']->get_preview_image()!=''): ?> |
|
|
|
|
<img 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; |
|
|
|
|
?> |
|
|
|
|
</span> |
|
|
|
|
</div> |
|
|
|
|
<div id="nav_id" name="nav_name" class="lp_nav"> |
|
|
|
|
|
|
|
|
|
<div id="nav_id" name="nav_name" class="lp_nav" style="float:left; width:155px;"> |
|
|
|
|
<?php
|
|
|
|
|
|
|
|
|
|
$display_mode = $_SESSION['oLP']->mode; |
|
|
|
|
$scorm_css_header = true; |
|
|
|
|
$lp_theme_css = $_SESSION['oLP']->get_theme(); |
|
|
|
|
@ -249,42 +266,60 @@ if($_SESSION['oLP']->mode == 'fullscreen') |
|
|
|
|
$progress_bar = $_SESSION['oLP']->get_progress_bar('', -1, '', true); |
|
|
|
|
$navigation_bar = $_SESSION['oLP']->get_navigation_bar(); |
|
|
|
|
$mediaplayer = $_SESSION['oLP']->get_mediaplayer(); |
|
|
|
|
|
|
|
|
|
$tbl_lp_item = Database::get_course_table('lp_item'); |
|
|
|
|
$show_audioplayer = false; |
|
|
|
|
// getting all the information about the item |
|
|
|
|
$sql = "SELECT audio FROM " . $tbl_lp_item . " WHERE lp_id = '" . $_SESSION['oLP']->lp_id."'"; |
|
|
|
|
$res_media= api_sql_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;} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
?> |
|
|
|
|
|
|
|
|
|
<div id="lp_navigation_elem" class="lp_navigation_elem"> |
|
|
|
|
<table border="0" width="100%" style="text-align:center"> |
|
|
|
|
<tr> |
|
|
|
|
<td colspan="2" style="font-size:11.5pt"> |
|
|
|
|
<div id="media" ><span><?php echo (!empty($mediaplayer))?$mediaplayer:' ' ?></span></div>
|
|
|
|
|
</td> |
|
|
|
|
</tr> |
|
|
|
|
<div style="float:left; padding-top:22px;padding-left:10px;"><?php echo $navigation_bar; ?></div>
|
|
|
|
|
<div style="float:left; padding-top:22px"><?php echo $progress_bar; ?></div>
|
|
|
|
|
</div> |
|
|
|
|
</div> |
|
|
|
|
</div> |
|
|
|
|
|
|
|
|
|
<tr> |
|
|
|
|
<td><?php echo $progress_bar; ?></td>
|
|
|
|
|
<td><?php echo $navigation_bar; ?></td>
|
|
|
|
|
</tr> |
|
|
|
|
</table> |
|
|
|
|
</div> |
|
|
|
|
|
|
|
|
|
<?php $style_media = (($show_audioplayer)?' style= "margin:15px 34px;padding:0;font-size:35px;height:20px"':'style="height:1px"'); ?> |
|
|
|
|
<div id="media" <?php echo $style_media ?> >
|
|
|
|
|
<?php echo (!empty($mediaplayer))?$mediaplayer:' ' ?> |
|
|
|
|
</div> |
|
|
|
|
<div id="message_id" name="message_name" class="message"> |
|
|
|
|
</div> |
|
|
|
|
|
|
|
|
|
<div id="message_id" name="message_name" class="message" style="height:12px"> |
|
|
|
|
<div id="msg_div_id" class="message"> |
|
|
|
|
<?php echo $error = $_SESSION['oLP']->error; ?> |
|
|
|
|
</div> |
|
|
|
|
</div> |
|
|
|
|
</div> |
|
|
|
|
</td><td width: "80%"> |
|
|
|
|
<div id="learningPathRightZone"> |
|
|
|
|
<iframe id="content_id_blank" name="content_name_blank" src="blank.php" border="0" frameborder="0" style="height:500px;width: 100%"></iframe> |
|
|
|
|
</div> |
|
|
|
|
|
|
|
|
|
<div id="lp_log_name" name="lp_log_name" class="lp_log" style="height:100px;overflow:auto"> |
|
|
|
|
<div id="log_content"> |
|
|
|
|
<div id="toc_id" name="toc_name" class="lp_toc" style="position:relative;top:10px;left:0"> |
|
|
|
|
<div id="learningPathToc" style="width:320px;overflow-y:auto;overflow-x:hidden;font-size:9pt;"> |
|
|
|
|
<?php echo $_SESSION['oLP']->get_html_toc(); ?></div>
|
|
|
|
|
</div> |
|
|
|
|
|
|
|
|
|
<div id="lp_log_name" name="lp_log_name" class="lp_log" style="position:relative;top:10px;left:0;height:100px;overflow:auto"> |
|
|
|
|
<div id="log_content"></div> |
|
|
|
|
<div style="color: white;" onClick="cleanlog();">.</div> |
|
|
|
|
</div> |
|
|
|
|
</div> |
|
|
|
|
<input type="hidden" id="old_item" name ="old_item" value="0"/> |
|
|
|
|
<input type="hidden" id="current_item_id" name ="current_item_id" value="0" /> |
|
|
|
|
</td></tr></table> |
|
|
|
|
</td><td align="left" width="100%" valign="top"> |
|
|
|
|
<div id="learningPathRightZone"> |
|
|
|
|
<iframe id="content_id_blank" name="content_name_blank" src="<?php echo $src; ?>" border="0" frameborder="0" style="height:600px;width: 100%"></iframe>
|
|
|
|
|
</div> |
|
|
|
|
</td></tr> |
|
|
|
|
</table> |
|
|
|
|
|
|
|
|
|
<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; |
|
|
|
|
@ -375,11 +410,16 @@ else |
|
|
|
|
</table> |
|
|
|
|
</div> |
|
|
|
|
</div> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<div id="learningPathLeftZone" style="float: left; width: 330px;"> |
|
|
|
|
<div id="author_image" name="author_image" class="lp_author_image"> |
|
|
|
|
<?php $image = '../img/lp_author_background.gif'; ?>
|
|
|
|
|
<div id="image_preview;"> |
|
|
|
|
<div style="width: 310px; height:140px; margin:0 20px; background-image: url('../img/lp_author_background.gif');background-repeat:no-repeat; "> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<div style="width:140px; float:left;"> |
|
|
|
|
<span style="float:right; padding-top:16px; padding-right:10px;"> |
|
|
|
|
<?php if ($_SESSION['oLP']->get_preview_image()!=''): ?> |
|
|
|
|
@ -391,6 +431,7 @@ else |
|
|
|
|
?> |
|
|
|
|
</span> |
|
|
|
|
</div> |
|
|
|
|
|
|
|
|
|
<div id="nav_id" name="nav_name" class="lp_nav" style="float:left; width:155px;"> |
|
|
|
|
<?php
|
|
|
|
|
|
|
|
|
|
@ -421,7 +462,6 @@ else |
|
|
|
|
if(!empty($row_media['audio'])) {$show_audioplayer = true; break;} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
?> |
|
|
|
|
|
|
|
|
|
<div id="lp_navigation_elem" class="lp_navigation_elem"> |
|
|
|
|
@ -429,15 +469,18 @@ else |
|
|
|
|
<div style="float:left; padding-top:22px"><?php echo $progress_bar; ?></div>
|
|
|
|
|
</div> |
|
|
|
|
</div> |
|
|
|
|
|
|
|
|
|
</div> |
|
|
|
|
|
|
|
|
|
<div id="author_name" style="margin:0;padding:0;text-align:center"><?php echo $_SESSION['oLP']->get_author() ?></div>
|
|
|
|
|
<div id="author_name" style="margin:0;padding:0;text-align:center"> |
|
|
|
|
<?php echo $_SESSION['oLP']->get_author() ?> |
|
|
|
|
</div> |
|
|
|
|
|
|
|
|
|
</div> |
|
|
|
|
|
|
|
|
|
<?php $style_media = (($show_audioplayer)?' style= "margin:15px 34px;padding:0;font-size:35px;height:20px"':'style="height:1px"'); ?> |
|
|
|
|
<div id="media" <?php echo $style_media ?> ><?php echo (!empty($mediaplayer))?$mediaplayer:' ' ?></div>
|
|
|
|
|
<div id="media" <?php echo $style_media ?> >
|
|
|
|
|
<?php echo (!empty($mediaplayer))?$mediaplayer:' ' ?> |
|
|
|
|
</div> |
|
|
|
|
</div> |
|
|
|
|
|
|
|
|
|
<div id="message_id" name="message_name" class="message" style="height:12px"> |
|
|
|
|
@ -447,12 +490,12 @@ else |
|
|
|
|
</div> |
|
|
|
|
|
|
|
|
|
<div id="toc_id" name="toc_name" class="lp_toc" style="position:relative;top:10px;left:0"> |
|
|
|
|
<div id="learningPathToc" style="width:320px;overflow-y:auto;overflow-x:hidden;font-size:9pt;"><?php echo $_SESSION['oLP']->get_html_toc(); ?></div>
|
|
|
|
|
<div id="learningPathToc" style="width:320px;overflow-y:auto;overflow-x:hidden;font-size:9pt;"> |
|
|
|
|
<?php echo $_SESSION['oLP']->get_html_toc(); ?></div>
|
|
|
|
|
</div> |
|
|
|
|
|
|
|
|
|
<div id="lp_log_name" name="lp_log_name" class="lp_log" style="position:relative;top:10px;left:0;height:100px;overflow:auto"> |
|
|
|
|
<div id="log_content"> |
|
|
|
|
</div> |
|
|
|
|
<div id="log_content"></div> |
|
|
|
|
<div style="color: white;" onClick="cleanlog();">.</div> |
|
|
|
|
</div> |
|
|
|
|
</div> |
|
|
|
|
|