[svn r10245] add audiorecorder in student view

skala
Eric Marguin 18 years ago
parent 0c150cd7d3
commit e20bd9ce8f
  1. 11
      main/newscorm/audiorecorder.inc.php
  2. 7
      main/newscorm/learnpath.class.php
  3. 11
      main/newscorm/lp_nav.php
  4. 2
      main/newscorm/lp_view.php

@ -6,12 +6,13 @@
* @author Eric Marguin <e.marguin@elixir-interactive.com>
*/
/**
* this url should be removed with a path to another Application
*/
$params = "?lzt=swf&lzr=swf8&document_id=".$_GET['id']."&dbName=".$_SESSION["_course"]["dbName"]."&user_id=".$_SESSION["_user"]["user_id"] ;
$params = "?lzt=swf&lzr=swf8&document_id=".$audio_recorder_item_id."&dbName=".$_SESSION["_course"]["dbName"]."&user_id=".$_SESSION["_user"]["user_id"].'?studentview='.$audio_recorder_studentview ;
$path_to_lzx = api_get_setting('service_ppt2lp','path_to_lzx');
if(!empty($path_to_lzx)){
$path_to_lzx .= $params;
@ -29,7 +30,7 @@ if(!empty($path_to_lzx)){
bgcolor='#ffffff' WIDTH='540px' HEIGHT='140px' ALIGN='center' TYPE='application/x-shockwave-flash'
PLUGINSPAGE='http://www.macromedia.com/go/getflashplayer'>
</embed>
</object>", $path_to_lzx,Database::get_course_table('lp_item'),$_course["dbName"],$_user["user_id"],$path_to_lzx);
</object>", $path_to_lzx,$audio_recorder_item_id,$_course["dbName"],$_user["user_id"],$path_to_lzx);
}
?>

@ -5941,12 +5941,17 @@ class learnpath {
$return .= '<a href="' . $_SERVER['PHP_SELF'] . '?cidReq=' . $_GET['cidReq'] . '&amp;action=delete_item&amp;view=build&amp;id=' . $item_id . '&amp;lp_id=' . $this->lp_id . '" onclick="return confirmation(\'' . $row['title'] . '\');" title="Delete the current item"><img alt="Delete the current item" src="../img/delete.gif" title="Delete the current item" /> Delete</a>';
// get the audiorecorder. Use of ob_* functions since there are echos in the file
ob_start();
if(api_get_setting('service_ppt2lp','active')=='true'){
$audio_recorder_studentview = false;
$audio_recorder_item_id = $item_id;
if(api_get_setting('service_ppt2lp','active')=='true' && api_get_setting('service_ppt2lp','path_to_lzx')!=''){
include('audiorecorder.inc.php');
}
$return .= ob_get_contents();
ob_end_clean();
// end of audiorecorder include
$return .= '</div>';

@ -51,6 +51,17 @@ include_once('../inc/reduced_header.inc.php');
?>
<body>
<div id="audiorecorder">
<?php
// get the audiorecorder.
$audio_recorder_studentview = true;
$audio_recorder_item_id = $_SESSION['oLP']->current;
if(api_get_setting('service_ppt2lp','active')=='true' && api_get_setting('service_ppt2lp','path_to_lzx')!=''){
include('audiorecorder.inc.php');
}
// end of audiorecorder include
?>
</div>
<div class="lp_navigation_elem">
<?php echo $_SESSION['oLP']->get_progress_bar(); ?>
<?php echo $_SESSION['oLP']->get_navigation_bar(); ?>

@ -159,7 +159,7 @@ if($_SESSION['oLP']->mode == 'fullscreen'){
<frameset rows="150,600">
<frame id="header" src="lp_header.php" border="0" frameborder="0" />
<frameset cols="180,*">
<frameset rows="310,44,80,*">
<frameset rows="310,150,80,*">
<frame id="toc_id" name="toc_name" class="lp_toc" src="lp_toc.php" border="0" frameborder="0" scrolling="no"/>
<frame id="nav_id" name="nav_name" class="lp_nav" src="lp_nav.php" border="0" frameborder="0" />
<frame id="message_id" name="message_name" class="message" src="lp_message.php" border="0" frameborder="0" />

Loading…
Cancel
Save