}
}
- 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;
?>
</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'); ?>
\ No newline at end of file
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';
+ }
}
-->
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);
}
$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;