[svn r16088] Lp Improvements FS#2841

skala
Julio Montoya 17 years ago
parent a2734870c9
commit f943c26121
  1. 8
      main/newscorm/lp_view.php

@ -174,9 +174,9 @@ else
//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)
$_SESSION['loaded_lp_view'] = true; $_SESSION['loaded_lp_view'] = true;
$audio_record_width=''; $audio_record_width='';
if (1 || $_SESSION['oLP']->get_preview_image()!='') if ($displayAudioRecorder || $_SESSION['oLP']->get_preview_image()!='')
{ {
if (1) if ($displayAudioRecorder)
$audio_record_width='170,'; $audio_record_width='170,';
else else
$audio_record_width='120,'; $audio_record_width='120,';
@ -190,9 +190,9 @@ else
<frameset rows="20,<?php echo $audio_record_width; ?>50,20,*,20"> <frameset rows="20,<?php echo $audio_record_width; ?>50,20,*,20">
<frame id="header" src="lp_header.php" border="0" frameborder="0" scrolling="no"/> <frame id="header" src="lp_header.php" border="0" frameborder="0" scrolling="no"/>
<?php <?php
if (1 || $_SESSION['oLP']->get_preview_image()!='') if ($displayAudioRecorder || $_SESSION['oLP']->get_preview_image()!='')
{ {
if(1) //if audio recorder is required (set a few lines above) if($displayAudioRecorder) //if audio recorder is required (set a few lines above)
echo '<frame id="audiorecorder_id" name="audiorecorder_name" src="display_audiorecorder.php?show_audio=1" border="0" frameborder="0" scrolling="no"/>'; echo '<frame id="audiorecorder_id" name="audiorecorder_name" src="display_audiorecorder.php?show_audio=1" border="0" frameborder="0" scrolling="no"/>';
else else
echo '<frame id="audiorecorder_id" name="audiorecorder_name" src="display_audiorecorder.php?show_audio=0" border="0" frameborder="0" scrolling="no"/>'; echo '<frame id="audiorecorder_id" name="audiorecorder_name" src="display_audiorecorder.php?show_audio=0" border="0" frameborder="0" scrolling="no"/>';

Loading…
Cancel
Save