dirroot/mod/scorm/lib.php"); if (empty($form->name)) { $form->name = ""; } if (empty($form->reference)) { $form->reference = ""; } if (empty($form->summary)) { $form->summary = ""; } if (empty($form->launch)) { $form->launch = ""; } if (empty($form->auto)) { $form->auto = ""; } if (empty($form->datadir)) { $form->datadir = ""; } if (empty($form->popup)) { $form->popup = ""; } if (empty($form->maxgrade)) { $form->maxgrade = ""; } if (empty($form->grademethod)) { $form->grademethod = "0"; } $scormid =''; if (!empty($form->instance)) { $scormid = '&instance='.$form->instance; } $datadir =''; if (!empty($form->datadir)) { $datadir = '&datadir='.$form->datadir; } ?>
$optionname = ""; $jsoption[] = "\"$optionname\""; } $alljsoptions = implode(",", $jsoption); if ($form->instance) { // Re-editing if ($form->popup == "") { $newwindow = ""; // Disable the new window foreach ($SCORM_WINDOW_OPTIONS as $optionname) { $defaultvalue = "scorm_popup$optionname"; $window->$optionname = $CFG->$defaultvalue; } } else { $newwindow = "checked"; $rawoptions = explode(',', $form->popup); foreach ($rawoptions as $rawoption) { $option = explode('=', trim($rawoption)); if (($option[0] != 'location') && ($option[0] != 'menubar') && ($option[0] != 'toolbar')) { $optionname = $option[0]; $optionvalue = $option[1]; if ($optionname == "height" or $optionname == "width") { $window->$optionname = $optionvalue; } else if ($optionvalue == 1) { $window->$optionname = "checked"; } } } } } else { foreach ($SCORM_WINDOW_OPTIONS as $optionname) { $defaultvalue = "scorm_popup$optionname"; $window->$optionname = $CFG->$defaultvalue; } $newwindow = $CFG->scorm_popup; } ?>
: " />
:
summary); ?>
: reference\" alt=\"$strfilename\" /> "; button_to_popup_window ("/files/index.php?id=$course->id&choose=form.reference", "coursefiles", $strchooseafile, 500, 750, $strchooseafile); helpbutton("package", get_string("coursepacket", "scorm"), "scorm", true); ?>
: grademethod", ""); helpbutton("grademethod", get_string("grademethod","scorm"), "scorm"); ?>
: =1; $i--) { $grades[$i] = $i; } choose_from_menu($grades, "maxgrade", "$form->maxgrade", ""); helpbutton("maxgrade", get_string("maximumgrade"), "scorm"); ?>
:
: />
  • $value) { if ($name == "height" or $name == "width") { continue; } echo "\t\t\n"; if ($window->$name == 'checked') { $window->$name = 'checked="checked"'; } echo "\t\t$name." /> "; $stringname = "str$name"; echo $$stringname."
    \n"; } ?>

    \n\n"; } ?>
: auto); helpbutton("autocontinue", get_string("autocontinue", "scorm"), "scorm", true); ?>