|
|
|
@ -174,20 +174,33 @@ else |
|
|
|
|
//set flag to ensure lp_header.php is loaded by this script (flag is unset in lp_header.php) |
|
|
|
|
$_SESSION['loaded_lp_view'] = true; |
|
|
|
|
$audio_record_width=''; |
|
|
|
|
|
|
|
|
|
if ($displayAudioRecorder) |
|
|
|
|
$audio_record_width='120,'; |
|
|
|
|
$show_audioplayer=false; |
|
|
|
|
if ($displayAudioRecorder) |
|
|
|
|
{ // we find if there is a audioplayer |
|
|
|
|
$audio_recorder_item_id = $_SESSION['oLP']->current; |
|
|
|
|
$docs = Database::get_course_table(TABLE_DOCUMENT); |
|
|
|
|
$select = "SELECT * FROM $docs " . |
|
|
|
|
" WHERE path like BINARY '/audio/lpi".Database::escape_string($audio_recorder_item_id)."-%' AND filetype='file' " . |
|
|
|
|
" ORDER BY path DESC"; |
|
|
|
|
$res = api_sql_query($select); |
|
|
|
|
if(Database::num_rows($res)>0) |
|
|
|
|
{ |
|
|
|
|
$audio_record_width='85,'; |
|
|
|
|
$show_audioplayer=true; |
|
|
|
|
} |
|
|
|
|
else |
|
|
|
|
$audio_record_width=''; |
|
|
|
|
} |
|
|
|
|
else |
|
|
|
|
$audio_record_width=''; |
|
|
|
|
$audio_record_width=''; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
?> |
|
|
|
|
<frameset cols="270,*"> |
|
|
|
|
<frameset rows="60,240,<?php echo $audio_record_width; ?>70,30,500,20">
|
|
|
|
|
<frame id="header" src="lp_header.php" border="0" frameborder="0" scrolling="no"/> |
|
|
|
|
<frame id="author_image" name="author_image" class="lp_author_image" src="lp_author_image.php" border="0" frameborder="0" scrolling="no" /> |
|
|
|
|
<?php
|
|
|
|
|
if($displayAudioRecorder) //if audio recorder is required (set a few lines above) |
|
|
|
|
if($show_audioplayer) //if audio recorder is required (set a few lines above) |
|
|
|
|
echo '<frame id="audiorecorder_id" name="audiorecorder_name" src="display_audiorecorder.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" scrolling="no" /> |
|
|
|
|