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'); ?>