[svn r10309] improve the display of audiorecorder in display mode

skala
Eric Marguin 18 years ago
parent b8bf695a15
commit 35bbdb5ddd
  1. 2
      main/newscorm/audiorecorder.inc.php
  2. 9
      main/newscorm/display_audiorecorder.php
  3. 15
      main/newscorm/lp_view.php

@ -11,7 +11,7 @@
$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 ;
list($width, $height) = $audio_recorder_studentview ? array(220, 185) : array(220,140);
list($width, $height) = $audio_recorder_studentview ? array(220, 67) : array(220,185);
$path_to_lzx = api_get_setting('service_ppt2lp','path_to_lzx');

@ -32,7 +32,14 @@ echo '<html>
echo '<div id="audiorecorder"> ';
// get the audiorecorder.
$audio_recorder_studentview = true;
$course_id=$_SESSION["_course"]["id"];
if($_SESSION["status"][$course_id]==5){
$audio_recorder_studentview = true;
}
else{
$audio_recorder_studentview = false;
}
$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');

@ -159,8 +159,19 @@ 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="<?php if($displayAudioRecorder) echo '185,';?>310,150,80,*">
<frameset cols="195,*">
<?php
$course_id=$_SESSION["_course"]["id"];
if($_SESSION["status"][$course_id]==5){
$audio_recorder_studentview = true;
}
else{
$audio_recorder_studentview = false;
}
?>
<frameset rows="<?php if($displayAudioRecorder && $audio_recorder_studentview==false) echo '205,'; else{echo '120,';}?>475,95,80,*">
<?php
if($displayAudioRecorder)
echo '<frame id="audiorecorder_id" name="audiorecorder_name" src="display_audiorecorder.php" border="0" frameborder="0" scrolling="no"/>';

Loading…
Cancel
Save