[svn r19654] Logic change - Added log message layout after remove frames when you display learning path and option show bug is activated only on teacher interface - partial FS#3909

skala
Cristian Fasanando 17 years ago
parent 3500bb1382
commit 28ada05106
  1. 5
      main/newscorm/lp_view.php
  2. 16
      main/newscorm/scorm_api.php

@ -236,7 +236,8 @@ if($_SESSION['oLP']->mode == 'fullscreen')
<div id="learningPathRightZone">
<iframe id="content_id_blank" name="content_name_blank" src="blank.php" border="0" frameborder="0" style="height:500px;width: 100%"></iframe>
</div>
<div id="lp_log_id" name="lp_log_name" class="lp_log">
<div id="lp_log_name" name="lp_log_name" class="lp_log" style="height:100px;overflow:auto">
<div id="log_content">
</div>
<div style="color: white;" onClick="cleanlog();">.</div>
@ -409,7 +410,7 @@ else
<div id="learningPathToc" style="width:320px;overflow-y:auto;overflow-x:hidden;font-size:9pt;"><?php echo $_SESSION['oLP']->get_html_toc(); ?></div>
</div>
<div id="lp_log_id" name="lp_log_name" class="lp_log">
<div id="lp_log_name" name="lp_log_name" class="lp_log" style="height:100px;overflow:auto">
<div id="log_content">
</div>
<div style="color: white;" onClick="cleanlog();">.</div>

@ -1,4 +1,4 @@
<?php // $Id: scorm_api.php 19520 2009-04-03 00:40:36Z cfasanando $
<?php // $Id: scorm_api.php 19654 2009-04-08 18:37:16Z cfasanando $
/*
==============================================================================
Dokeos - elearning and course management software
@ -803,27 +803,31 @@ function dokeos_void_save_asset(myscore,mymax)
if((mymax == null) || (mymax == '')){mymax = 100;} //assume a default of 100, otherwise the score will not get saved (see lpi->set_score())
xajax_save_item(lms_lp_id, lms_user_id, lms_view_id, lms_item_id, myscore, mymax);
}
/**
* Logs information about SCORM messages into the log frame
* @param string Message to log
* @param integer Priority (0 for top priority, 3 for lowest)
*/
function logit_scorm(message,priority){
if(scorm_logs>priority){
if(frames["lp_log_name"] && frames["lp_log_name"].document && frames["lp_log_name"].document.getElementById && frames["lp_log_name"].document.getElementById('log_content')){
frames["lp_log_name"].document.getElementById("log_content").innerHTML += "SCORM: " + message + "<br/>";
if($("#lp_log_name") && $("#log_content")){
$("#log_content").append("SCORM: " + message + "<br/>");
}
}
}
/**
* Logs information about LMS activity into the log frame
* @param string Message to log
* @param integer Priority (0 for top priority, 3 for lowest)
*/
function logit_lms(message,priority){
if(lms_logs>priority){
if(frames["lp_log_name"] && frames["lp_log_name"].document && frames["lp_log_name"].document.getElementById && frames["lp_log_name"].document.getElementById('log_content')){
frames["lp_log_name"].document.getElementById("log_content").innerHTML += "LMS: " + message + "<br/>";
if(lms_logs>priority){
if ($("#lp_log_name") && $("#log_content")) {
$("#log_content").append("LMS: " + message + "<br />");
}
}
}

Loading…
Cancel
Save