[svn r12627] Enable fullscreen mode again by using a thin top frame rather than iframe which caused a lot of browsers-differences-related problems

skala
Yannick Warnier 19 years ago
parent 746fad0ab5
commit 6ac4925c42
  1. 29
      main/newscorm/lp_list.php
  2. 25
      main/newscorm/lp_view.php
  3. 42
      main/newscorm/scormfs.css

@ -163,6 +163,7 @@ echo "</tr>\n";
$list = new LearnpathList(api_get_user_id());
$flat_list = $list->get_flat_list();
$is_allowed_to_edit = api_is_allowed_to_edit();
$test_mode = api_get_setting('server_type');
//var_dump($flat_list);
if (is_array($flat_list))
{
@ -192,6 +193,8 @@ if (is_array($flat_list))
$dsp_edit = '';
$dsp_delete = '';
$dsp_visible = '';
$dsp_default_view = '';
$dsp_debug = '';
if($display_progress_bar)
{
$dsp_progress = '<td>'.learnpath::get_progress_bar('%',learnpath::get_db_progress($id,api_get_user_id()),'').'</td>';
@ -287,20 +290,22 @@ if (is_array($flat_list))
}else{
$dsp_build = '<img src="../img/wizard_gray.gif" border="0" title="'.get_lang("build").'">&nbsp;';
}
if($details['lp_scorm_debug']==1){
$dsp_debug = '<a href="lp_controller.php?'.api_get_cidreq().'&action=switch_scorm_debug&lp_id='.$id.'">' .
'<img src="../img/bug.gif" border="0" alt="'.get_lang("HideDebug").'" title="'.get_lang("HideDebug").'"/>' .
'</a>&nbsp;';
}else{
$dsp_debug = '<a href="lp_controller.php?'.api_get_cidreq().'&action=switch_scorm_debug&lp_id='.$id.'">' .
'<img src="../img/bug_gray.gif" border="0" alt="'.get_lang("ShowDebug").'" title="'.get_lang("ShowDebug").'"/>' .
'</a>&nbsp;';
}
if($test_mode == 'test')
{
if($details['lp_scorm_debug']==1){
$dsp_debug = '<a href="lp_controller.php?'.api_get_cidreq().'&action=switch_scorm_debug&lp_id='.$id.'">' .
'<img src="../img/bug.gif" border="0" alt="'.get_lang("HideDebug").'" title="'.get_lang("HideDebug").'"/>' .
'</a>&nbsp;';
}else{
$dsp_debug = '<a href="lp_controller.php?'.api_get_cidreq().'&action=switch_scorm_debug&lp_id='.$id.'">' .
'<img src="../img/bug_gray.gif" border="0" alt="'.get_lang("ShowDebug").'" title="'.get_lang("ShowDebug").'"/>' .
'</a>&nbsp;';
}
}
} // end if($is_allowedToEdit)
//echo $dsp_line.$dsp_desc.$dsp_export.$dsp_edit.$dsp_delete.$dsp_visible;
//echo $dsp_line.$dsp_progress.$dsp_desc.$dsp_export.$dsp_edit.$dsp_build.$dsp_visible.$dsp_reinit.$dsp_default_view.$dsp_force_commit.$dsp_debug.$dsp_delete;
echo $dsp_line.$dsp_progress.$dsp_desc.$dsp_export.$dsp_edit.$dsp_build.$dsp_visible.$dsp_reinit.$dsp_force_commit.$dsp_delete;
echo $dsp_line.$dsp_progress.$dsp_desc.$dsp_export.$dsp_edit.$dsp_build.$dsp_visible.$dsp_reinit.$dsp_default_view.$dsp_force_commit.$dsp_debug.$dsp_delete;
//echo $dsp_line.$dsp_progress.$dsp_desc.$dsp_export.$dsp_edit.$dsp_build.$dsp_visible.$dsp_reinit.$dsp_force_commit.$dsp_delete;
echo "</tr>\n";
} // end foreach ($flat_list)

@ -130,24 +130,13 @@ if($_SESSION['oLP']->mode == 'fullscreen'){
/*]]>*/
</style>';
include_once('../inc/reduced_header.inc.php');
?>
<body>
<div class="scormpage">
<div class="content">
<iframe class="iframe" valign="top" name="content_name" id="content_id" src="<?php echo $src; ?>" frameborder="0"></iframe>
</div>
<div class="menu">
<iframe class="lp_nav" name="nav_name" id="nav_id" src="lp_nav.php" frameborder="0"></iframe>
<div class="notification" id="notification_id">
<iframe class="message" name="message_name" id="message_id" src="lp_message.php" frameborder="0"></iframe>
<!--iframe class="lp_log" name="lp_log_name" id="lp_log_id" src="lp_log.php" border="0" frameborder="0"></iframe-->
</div>
</div>
<div class="footer">
</div>
</div>
</body>
</html>
?><frameset rows="40,*">
<frameset cols="50%,*">
<frame id="nav_id" name="nav_name" class="lp_nav" align="middle" src="lp_nav.php" frameborder="0"></frame>
<frame id="message_id" name="message_name" class="message" src="lp_message.php" frameborder="0"></frame>
</frameset>
<frame id="content_id" name="content_frame" class="iframe" valign="top" src="<?php echo $src; ?>" frameborder="0"></frame>
</frameset>
<?php
}else{
$htmlHeadXtra[] =

@ -2,29 +2,35 @@
}
.scormpage .menu{
width: 180px;
position: fixed;
padding: 0px;
font-size: small;
margin-right: 5%;
margin-left: 75%;
margin-top: 10px;
font-size: small;
position: absolute;
background-color: white;
/*
filter:alpha(opacity=50);
opacity: 0.50;
-moz-border-radius: 25px;
background-color: white;
margin-right: 5%;
margin-left: 75%;
margin-top: 10px;
*/
}
.scormpage .menu .lp_nav{
height: 50px;
width: 160px;
padding-top: 4px;
padding-bottom:0px;
/*
margin-left: 10px;
margin-right: 10px;
margin-top: 4px;
margin-right: 10px;
*/
margin-top: 0px;
}
.lp_navigation_elem{
padding-left: 25px;
padding-top: 0px;
padding-top: 2px;
position: absolute;
left: 50%;
margin-left: -70px;
}
.lp_navigation_elem .progresstext{
margin-top: -12px;
@ -35,13 +41,19 @@
margin-left: 1em;
margin-right: 0em;
margin-top: 0.4em;
}
#msg_div_id{
padding-left: 10px;
padding-top: 4px;
}
.scormpage .menu .notification{
height: 50px;
margin-left: 15px;
margin-right: 15px;
}
.scormpage .menu .notification .message{
height: 50px;
width: 180px;
width: 140px;
border: none;
}
.scormpage .menu .notification .lp_log{
@ -60,12 +72,12 @@
margin-left: 0%;
*/
/* trying the absolute mode */
position: absolute;
position: fixed;
bottom:0;
left:0;
width: 100%;
height: 100%;
}
height: 100%;
}
.scormpage .footer{
clear: both;
}
}

Loading…
Cancel
Save