[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. 11
      main/newscorm/lp_list.php
  2. 25
      main/newscorm/lp_view.php
  3. 32
      main/newscorm/scormfs.css

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

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

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

Loading…
Cancel
Save