diff --git a/main/css/public_admin/scorm.css b/main/css/public_admin/scorm.css index 5e7348ed7e..8237e654ce 100644 --- a/main/css/public_admin/scorm.css +++ b/main/css/public_admin/scorm.css @@ -177,11 +177,19 @@ clear: both; } -#author_name +#image_preview { padding-left: 17px; } +#author_name +{ + padding-left: 5px; + padding-top: 5px; + font-size: 11px; + color:#888; +} + #msg_div_id{ padding-left: 17px; padding-top: 4px; diff --git a/main/newscorm/display_audiorecorder.php b/main/newscorm/display_audiorecorder.php index aefb7b0b22..ff4d50d741 100644 --- a/main/newscorm/display_audiorecorder.php +++ b/main/newscorm/display_audiorecorder.php @@ -6,9 +6,6 @@ * @author Yannick Warnier * @license GNU/GPL - See Dokeos license directory for details */ -/** - * Script - */ //flag to allow for anonymous user - needs to be set before global.inc.php $use_anonymous = true; require_once('back_compat.inc.php'); @@ -30,7 +27,6 @@ $charset = $_SESSION['oLP']->encoding; $lp_theme_css=$_SESSION['oLP']->get_theme(); $scorm_css_header=true; include_once('../inc/reduced_header.inc.php'); - echo ' '; diff --git a/main/newscorm/lp_author_image.php b/main/newscorm/lp_author_image.php index 0d5502cec5..e24b1469de 100644 --- a/main/newscorm/lp_author_image.php +++ b/main/newscorm/lp_author_image.php @@ -1,11 +1,8 @@ */ $use_anonymous = true; @@ -33,18 +30,19 @@ include_once('../inc/reduced_header.inc.php'); echo ' '; $image = '../img/lp_author_background.gif'; - echo '
'; + echo '
'; echo ''; - echo ''; - echo '
'; - - if ($_SESSION['oLP']->get_preview_image()!='') - echo ''.$_SESSION['oLP']->get_author().''; - else - echo Display::display_icon('unknown_250_100.jpg',$_SESSION['oLP']->get_author()); - echo '
'; - echo '
'; - echo $_SESSION['oLP']->get_author(); + echo ''; + if ($_SESSION['oLP']->get_preview_image()!='') + echo ''.$_SESSION['oLP']->get_author().''; + else + echo Display::display_icon('unknown_250_100.jpg',$_SESSION['oLP']->get_author()); + echo ''; + echo ''; + echo '
'; + + echo $_SESSION['oLP']->get_author(); + echo '
'; echo '
'; ?> diff --git a/main/newscorm/lp_view.php b/main/newscorm/lp_view.php index 1f1be3cac7..b20e62f5e8 100644 --- a/main/newscorm/lp_view.php +++ b/main/newscorm/lp_view.php @@ -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=''; - ?> '; ?>