course)) {
error('Course is misconfigured');
}
if (! $scorm = get_record('scorm', 'id', $cm->instance)) {
error('Course module is incorrect');
}
} else {
if (! $scorm = get_record('scorm', 'id', $a)) {
error('Course module is incorrect');
}
if (! $course = get_record('course', 'id', $scorm->course)) {
error('Course is misconfigured');
}
if (! $cm = get_coursemodule_from_instance('scorm', $scorm->id, $course->id)) {
error('Course Module ID was incorrect');
}
}
require_login($course->id, false, $cm);
$strscorms = get_string('modulenameplural', 'scorm');
$strscorm = get_string('modulename', 'scorm');
if ($course->category) {
$navigation = "framename}\" href=\"../../course/view.php?id=$course->id\">$course->shortname ->
framename}\" href=\"index.php?id=$course->id\">$strscorms ->";
} else {
$navigation = "framename}\" href=\"index.php?id=$course->id\">$strscorms ->";
}
$pagetitle = strip_tags("$course->shortname: ".format_string($scorm->name));
if (!$cm->visible and !isteacher($course->id)) {
print_header($pagetitle, "$course->fullname", "$navigation ".format_string($scorm->name), '', '', true,
update_module_button($cm->id, $course->id, $strscorm), navmenu($course, $cm));
notice(get_string("activityiscurrentlyhidden"));
}
//
// Checkin script parameters
//
$mode = '';
$scoid='';
$currentorg='';
$modestring = '';
$scoidstring = '';
$currentorgstring = '';
if (!empty($_POST['mode'])) {
$mode = $_POST['mode'];
$modestring = '&mode='.$mode;
}
if (!empty($_POST['scoid'])) {
$scoid = $_POST['scoid'];
$scoidstring = '&scoid='.$scoid;
}
if (!empty($_POST['currentorg'])) {
$currentorg = $_POST['currentorg'];
$currentorgstring = '¤torg='.$currentorg;
}
$strexpand = get_string('expcoll','scorm');
$strpopup = get_string('popup','scorm');
//
// Print the page header
//
$scripts = '';
if ($scorm->popup == 1) {
$scripts = 'onUnload="top.main.close();"';
}
print_header($pagetitle, "$course->fullname",
"$navigation ".format_string($scorm->name,true)."",
'', '', true, update_module_button($cm->id, $course->id, $strscorm), '', false, $scripts);
?>
|
id,$sco->id)) {
if (($trackdata->status == 'completed') || ($trackdata->status == 'passed') || ($trackdata->status == 'failed')) {
$mode = 'review';
}
}
}
add_to_log($course->id, 'scorm', 'view', "playscorm.php?id=$cm->id&scoid=$sco->id", "$scorm->id");
$scoidstring = '&scoid='.$sco->id;
$modestring = '&mode='.$mode;
$SESSION->scorm_scoid = $sco->id;
?>
|
|
|
popup == 0) {
?>
|