[svn r16085] Some learning path menu improvement (author, image) see FS#2841

skala
Julio Montoya 18 years ago
parent e031ecd7e5
commit e5ce81e0dc
  1. 5
      main/css/academica/scorm.css
  2. 5
      main/css/baby_orange/scorm.css
  3. 5
      main/css/corporate/scorm.css
  4. 5
      main/css/cosmic_campus/scorm.css
  5. 5
      main/css/dokeos_classic/scorm.css
  6. 5
      main/css/dokeos_classic_2D/scorm.css
  7. 5
      main/css/medical/scorm.css
  8. 5
      main/css/silver_line/scorm.css
  9. 5
      main/css/sober_brown/scorm.css
  10. 49
      main/newscorm/display_audiorecorder.php
  11. 4
      main/newscorm/learnpath.class.php
  12. 4
      main/newscorm/lp_header.php
  13. 11
      main/newscorm/lp_nav.php
  14. 32
      main/newscorm/lp_view.php

@ -89,7 +89,10 @@ text-decoration: none;
font-size: 12px;
color: #fff;
}
.inner_lp_toc .scorm_title_text
{
margin-left: 10px;
}
.inner_lp_toc .scorm_status_img{
margin:0px;

@ -90,7 +90,10 @@ font-weight: normal;
color: #fff;
}
.inner_lp_toc .scorm_title_text
{
margin-left: 10px;
}
.inner_lp_toc .scorm_status_img{

@ -85,7 +85,10 @@ text-decoration: none;
font-size: 12px;
color: #FFF;
}
.inner_lp_toc .scorm_title_text
{
margin-left: 10px;
}
.inner_lp_toc .scorm_status_img{
margin:0px;
margin-left: -10px;

@ -101,7 +101,10 @@
font-size: 12px;
color: #fff;
}
.inner_lp_toc .scorm_title_text
{
margin-left: 10px;
}
.inner_lp_toc .scorm_status_img{
margin:0px;

@ -100,7 +100,10 @@ border-left: 15px #FFF solid;
color: #fff;
}
.inner_lp_toc .scorm_title_text
{
margin-left: 10px;
}
.inner_lp_toc .scorm_status_img{
margin:0px;
margin-left: -10px;

@ -99,7 +99,10 @@ border-left: 15px #FFF solid;
font-size: 12px;
color: #fff;
}
.inner_lp_toc .scorm_title_text
{
margin-left: 10px;
}
.inner_lp_toc .scorm_status_img{
margin:0px;

@ -100,7 +100,10 @@
font-size: 12px;
color: #fff;
}
.inner_lp_toc .scorm_title_text
{
margin-left: 10px;
}
.inner_lp_toc .scorm_status_img{
margin:0px;

@ -84,7 +84,10 @@ text-decoration: none;
font-size: 12px;
color: #FFF;
}
.inner_lp_toc .scorm_title_text
{
margin-left: 10px;
}
.inner_lp_toc .scorm_status_img{

@ -97,7 +97,10 @@ height: 100%;
font-size: 12px;
color: #fff;
}
.inner_lp_toc .scorm_title_text
{
margin-left: 10px;
}
.inner_lp_toc .scorm_status_img
{

@ -10,8 +10,7 @@
* Script
*/
//flag to allow for anonymous user - needs to be set before global.inc.php
$use_anonymous = true;
$use_anonymous = true;
require_once('back_compat.inc.php');
require_once('learnpath.class.php');
require_once('scorm.class.php');
@ -28,20 +27,44 @@ if(isset($_SESSION['lpobject']))
}
$charset = $_SESSION['oLP']->encoding;
echo '<html>
<body>';
$lp_theme_css=$_SESSION['oLP']->get_theme();
$scorm_css_header=true;
include_once('../inc/reduced_header.inc.php');
echo '<div id="audiorecorder"> ';
$audio_recorder_studentview = 'true';
echo '<html>
<body>';
$html='';
$audio_recorder_item_id = $_SESSION['oLP']->current;
if(api_get_setting('service_visio','active')=='true'){
include('audiorecorder.inc.php');
if ($_GET['show_audio'])
{
$html='<div id="preview_image">'."\n";
if ($_SESSION['oLP']->get_preview_image()!='')
$html .='<img alt="'.$_SESSION['oLP']->get_author().'" src='.api_get_path(WEB_COURSE_PATH).api_get_course_path().'/upload/learning_path/images/'.$_SESSION['oLP']->get_preview_image().'>';
else
$html .=Display::display_icon('unknown.jpg',$_SESSION['oLP']->get_author());
$html .='</div>';
echo $html;
echo '<div id="audiorecorder"> ';
$audio_recorder_studentview = 'true';
$audio_recorder_item_id = $_SESSION['oLP']->current;
if(api_get_setting('service_visio','active')=='true'){
include('audiorecorder.inc.php');
}
echo '</div>';
// end of audiorecorder include
}
else
{
$html='<div id="preview_image">'."\n";
if ($_SESSION['oLP']->get_preview_image()!='')
$html .='<img alt="'.$_SESSION['oLP']->get_author().'" src='.api_get_path(WEB_COURSE_PATH).api_get_course_path().'/upload/learning_path/images/'.$_SESSION['oLP']->get_preview_image().'>';
else
$html .=Display::display_icon('unknown.jpg',$_SESSION['oLP']->get_author());
$html .='</div>';
echo $html;
}
// end of audiorecorder include
echo '</div></body></html>';
echo '</body></html>';
?>

@ -2478,12 +2478,12 @@ class learnpath {
//$parent = $this->items[$this->current]->get_parent();
//if(empty($parent)){$parent = $this->ordered_items[$this->items[$this->current]->get_previous_index()];}
$html = '<div class="inner_lp_toc">'."\n" ;
$html.= '<div class="scorm_title">&nbsp;&nbsp;&nbsp;&nbsp;'.mb_convert_encoding($this->get_name(),$this->encoding,$mych).'</div>';
$html.= '<div class="scorm_title"><div class="scorm_title_text">'.mb_convert_encoding($this->get_name(),$this->encoding,$mych).'</div></div>';
// build, display
if(api_is_allowed_to_edit())
{
$html.="<p>&nbsp;&nbsp;&nbsp;&nbsp;<a target='_parent' href='lp_controller.php?".api_get_cidreq()."&action=build&lp_id=".$this->lp_id."' style= target='_parent'>".mb_convert_encoding(get_lang("Build"),$this->encoding,$mych)."</a>&nbsp;&#124;&nbsp;<a href='lp_controller.php?".api_get_cidreq()."&action=admin_view&lp_id=".$this->lp_id."' target='_parent'>".mb_convert_encoding(get_lang("BasicOverview"),$this->encoding,$mych)."</a>&nbsp;&#124;&nbsp;".mb_convert_encoding(get_lang("Display"),$this->encoding,$mych)."</p>";
$html.='<div class="scorm_title_text"><br />'."<a target='_parent' href='lp_controller.php?".api_get_cidreq()."&action=build&lp_id=".$this->lp_id."' style= target='_parent'>".mb_convert_encoding(get_lang("Build"),$this->encoding,$mych)."</a>&nbsp;&#124;&nbsp;<a href='lp_controller.php?".api_get_cidreq()."&action=admin_view&lp_id=".$this->lp_id."' target='_parent'>".mb_convert_encoding(get_lang("BasicOverview"),$this->encoding,$mych)."</a>&nbsp;&#124;&nbsp;".mb_convert_encoding(get_lang("Display"),$this->encoding,$mych).'<br /><br /></div>';
unset($mych);
}
// " onchange=\"javascript:document.getElementById('toc_$parent').focus();\">\n";

@ -57,9 +57,11 @@ if($show_link)
// else we don't display get_lang(ucfirst(TOOL_LEARNPATH)) in the breadcrumb since the learner accessed it directly from the course homepage
$interbreadcrumb[] = array("url"=>"./lp_controller.php?action=view&lp_id=".$path_id,'name'=>$path_name);
$noPHP_SELF = true;
$lp_theme_css=$_SESSION['oLP']->get_theme();
echo $lp_theme_css=$_SESSION['oLP']->get_theme();
include('../inc/reduced_header.inc.php');
echo '<div style="padding-left: 17px;">';
echo '<a class="link" href="./lp_controller.php?action=return_to_course_homepage" target="_top" onclick="window.parent.API.save_asset();">'.get_lang('CourseHomepageLink').'</a>';
echo '</div>';
?>
</body>
</html>

@ -64,18 +64,7 @@ session_write_close();
?>
<body>
<?
$html='<div class="preview_image">'."\n";
if ($_SESSION['oLP']->get_preview_image()!='')
$html .='<img src='.api_get_path(WEB_COURSE_PATH).api_get_course_path().'/upload/learning_path/images/'.$_SESSION['oLP']->get_preview_image().'>';
if ($_SESSION['oLP']->get_author()!='')
{
$html .='<br />'.get_lang('Author').': '.$_SESSION['oLP']->get_author();
}
$html .='</div>';
echo $html;
?>
<div class="lp_navigation_elem">
<table>
<tr valign="middle">

@ -172,20 +172,36 @@ else
$audio_recorder_studentview = false;
}
//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='';
if ($displayAudioRecorder || $_SESSION['oLP']->get_preview_image()!='')
{
if ($displayAudioRecorder)
$audio_record_width='220,';
else
$audio_record_width='120,';
}
else
{
$audio_record_width='';
}
?>
<frameset cols="270,*">
<frameset rows="20,<?php echo($displayAudioRecorder?'60,':'');?>200,600,80,*">
<frameset rows="30,<?php echo $audio_record_width; ?>50,20,*,20">
<frame id="header" src="lp_header.php" border="0" frameborder="0" scrolling="no"/>
<?php
if($displayAudioRecorder) //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"/>';
if ($displayAudioRecorder || $_SESSION['oLP']->get_preview_image()!='')
{
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"/>';
else
echo '<frame id="audiorecorder_id" name="audiorecorder_name" src="display_audiorecorder.php?show_audio=0" 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="toc_id" name="toc_name" class="lp_toc" src="lp_toc.php" border="0" frameborder="0" scrolling="no"/>
<frame id="message_id" name="message_name" class="message" src="lp_message.php" border="0" frameborder="0" />
<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" />
<frame id="toc_id" name="toc_name" class="lp_toc" src="lp_toc.php" border="0" frameborder="0" scrolling="no"/>
<frame id="lp_log_id" name="lp_log_name" class="lp_log" src="lp_log.php" border="0" frameborder="0" />
</frameset>
<frame id="content_id" name="content_name" src="<?php echo $src; ?>" border="0" frameborder="0">

Loading…
Cancel
Save