MDL-15950 MDL-15640 - SCORM player.php not inserting footer, Showing SCORM participation report. (thanks Urs Hunkler and Mitsuhiro Yoshida).

This commit is contained in:
piers 2008-08-05 22:58:32 +00:00
parent 8f182eef86
commit 5b89dfbb74
4 changed files with 13 additions and 11 deletions

View File

@ -99,7 +99,8 @@
}
}
add_to_log($course->id, 'scorm', 'view', "player.php?id=$cm->id&scoid=$sco->id", "$scorm->id");
add_to_log($course->id, 'scorm', 'view', "player.php?id=$cm->id&scoid=$sco->id", "$scorm->id", $cm->id);
$scoidstr = '&scoid='.$sco->id;
$scoidpop = '&scoid='.$sco->id;
@ -371,11 +372,5 @@
?>
</div> <!-- SCORM object -->
</div> <!-- SCORM box -->
</div> <!-- SCORM content -->
<?php if (!empty($THEME->customcorners)) {
print_container_end();
} ?>
</div> <!-- Content -->
</div> <!-- Page -->
</body>
</html>
</div> <!-- SCORM page -->
<?php print_footer('none'); ?>

View File

@ -73,5 +73,12 @@ function scorm_resize () {
document.getElementById('scormobject').style.height = (winheight - totalheight) + 'px';
}
// resize the content container too to move the footer below the SCORM content
var contenti3 = document.getElementById('content-i3');
if (contenti3) {
contenti3.style.height = (winheight - totalheight + 30) + 'px';
} else {
document.getElementById('content').style.height = (winheight - totalheight + 30) + 'px';
}
}
-->

View File

@ -47,7 +47,7 @@
print_error('cannotcallscript');
}
add_to_log($course->id, 'scorm', 'report', 'report.php?id='.$cm->id, $scorm->id);
add_to_log($course->id, 'scorm', 'report', 'report.php?id='.$cm->id, $scorm->id, $cm->id);
if (!empty($user)) {
$userdata = scorm_get_user_data($user);

View File

@ -54,7 +54,7 @@
}
$pagetitle = strip_tags($course->shortname.': '.format_string($scorm->name));
add_to_log($course->id, 'scorm', 'pre-view', 'view.php?id='.$cm->id, "$scorm->id");
add_to_log($course->id, 'scorm', 'pre-view', 'view.php?id='.$cm->id, "$scorm->id", $cm->id);
if ((has_capability('mod/scorm:skipview', get_context_instance(CONTEXT_MODULE,$cm->id))) && scorm_simple_play($scorm,$USER)) {
exit;