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->popup)) { $form->popup = "0"; } if (empty($form->datadir)) { $form->datadir = ""; } if (empty($form->maxgrade)) { $form->maxgrade = ""; } if (empty($form->grademethod)) { $form->grademethod = "0"; } if (empty($form->hidebrowse)) { $form->hidebrowse = "0"; } if (empty($form->hidetoc)) { $form->hidetoc = "0"; } if (empty($form->hidenav)) { $form->hidenav = "0"; } if (empty($form->width)) { $form->width = $CFG->scorm_framewidth; } if ($form->width <= 100) { $form->width .= '%'; } if (empty($form->height)) { $form->height = $CFG->scorm_frameheight; } if ($form->height <= 100) { $form->height .= '%'; } if (empty($form->options)) { $form->options = $stdoptions; } $options = explode(',',$form->options); $window = new stdClass(); foreach ($options as $option) { list($element,$value) = explode('=',$option); $element = trim($element); $window->$element = trim($value)==1?'checked':''; } $scormid = ''; if (!empty($form->instance)) { $scormid = '&instance='.$form->instance; } $datadir = ''; if (!empty($form->datadir)) { $datadir = '&datadir='.$form->datadir; } $sessionkey = ''; if (!empty($form->sesskey)) { $sessionkey = '&sesskey='.$form->sesskey; } $strfilename = get_string("coursepacket", "scorm"); $strchooseafile = get_string("chooseapacket", "scorm"); $striframe = get_string("iframe", "scorm"); $striframedisplay = get_string("iframedisplay", "scorm"); $strnewwindow = get_string("popup", "scorm"); $strnewwindowopen = get_string("popupopen", "scorm"); $strheight = get_string("height", "scorm"); $strwidth = get_string("width", "scorm"); $strresizable = get_string("resizable", "scorm"); $strscrollbars = get_string("scrollbars", "scorm"); $strdirectories = get_string("directories", "scorm"); $strlocation = get_string("location", "scorm"); $strmenubar = get_string("menubar", "scorm"); $strtoolbar = get_string("toolbar", "scorm"); $strstatus = get_string("statusbar", "scorm"); ?>
: " />
:
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", '','checkmethod(this,document.form.maxgrade);'); helpbutton("grademethod", get_string("grademethod","scorm"), "scorm"); ?>
: =1; $i--) { $grades[$i] = $i; } $disabled = $form->grademethod=='0'; choose_from_menu($grades, 'maxgrade', "$form->maxgrade", '','','0',false,$disabled); helpbutton('maxgrade', get_string('maximumgrade'), 'scorm'); ?>

: " id="advancedsettingsbutton" onclick="javascrip: return showhide('advancedsettings');" />
: auto,''); ?>
: hidebrowse, ''); ?>
: hidetoc, ''); ?>
: hidenav, ''); ?>
: " id="windowsettingsbutton" onclick="javascrip: return showhide('windowsettings');" />



:
popup == 0) ? "checked=\"checked\"" : "" ?> onclick="return lockoptions('form', 'popup[1]', popupitems);" />
popup == 1) ? "checked=\"checked\"" : "" ?> onclick="return lockoptions('form', 'popup[1]', popupitems);" />
$value) { echo "\n"; echo "$name." alt=\"$name\" />\n"; $stringname = "str$name"; echo $$stringname."
\n"; } ?>
format == 'scorm') && ((count($scorms) == 0) || ($form->instance == $coursescorm->id))) { ?>