From: bobopinna Date: Tue, 16 Jan 2007 13:16:34 +0000 (+0000) Subject: substitute by the new mod_form.php X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=a6f505ff4a6148761e26d8d5cd149e2b1cf9df3c;p=moodle.git substitute by the new mod_form.php --- diff --git a/mod/scorm/mod.html b/mod/scorm/mod.html deleted file mode 100755 index d53ae225a8..0000000000 --- a/mod/scorm/mod.html +++ /dev/null @@ -1,496 +0,0 @@ -dirroot.'/mod/scorm/locallib.php'); - if (!isset($form->name)) { - $form->name = ''; - } - if (!isset($form->reference)) { - $form->reference = ''; - } - if (!isset($form->summary)) { - $form->summary = ''; - } - if (!isset($form->launch)) { - $form->launch = ''; - } - if (!isset($form->skipview)) { - $form->skipview = 1; - } - if (!isset($form->auto)) { - $form->auto = ''; - } - if (!isset($form->popup)) { - $form->popup = 0; - } - if (!isset($form->datadir)) { - $form->datadir = ''; - } - if (!isset($form->maxgrade)) { - $form->maxgrade = ''; - } - if (!isset($form->grademethod)) { - $form->grademethod = 0; - $form->whatgrade = 0; - } else { - $form->whatgrade = intval($form->grademethod / 10); - $form->grademethod = $form->grademethod % 10; - } - if (!isset($form->maxattempt)) { - $form->maxattempt = 1; - } - if (!isset($form->hidebrowse)) { - $form->hidebrowse = 0; - } - if (!isset($form->hidetoc)) { - $form->hidetoc = 0; - } - if (!isset($form->hidenav)) { - $form->hidenav = 0; - } - if (!isset($form->width)) { - $form->width = $CFG->scorm_framewidth; - } - if ((strpos($form->width,'%') === false) && ($form->width <= 100)) { - $form->width .= '%'; - } - if (!isset($form->height)) { - $form->height = $CFG->scorm_frameheight; - } - if ((strpos($form->height,'%') === false) && ($form->height <= 100)) { - $form->height .= '%'; - } - if (!isset($form->options) || 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':''; - } - if (!isset($form->pkgtype)) { - $form->pkgtype = ''; - } - $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'); - $strbrowserepository = get_string('browserepository', '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); ?> -
- : - -   - id.'&choose=form.reference', - 'coursefiles', $strchooseafile, 500, 750, $strchooseafile); - require_once($repositoryconfigfile); - if ($CFG->repositoryactivate) { - button_to_popup_window ($repositorybrowser.'?choose=form.reference', - 'browserepository', $strbrowserepository, 500, 750, $strbrowserepository); - } - helpbutton('package', get_string('coursepacket', 'scorm'), 'scorm', true); - ?> -
: - grademethod, '','checkscormform(this,0,getElementById(\'form\').maxgrade);'); - helpbutton('grademethod', get_string('grademethod','scorm'), 'scorm'); - ?> -
: - =1; $i--) { - $grades[$i] = $i; - } - $disabled = $form->grademethod=='0'; - choose_from_menu($grades, 'maxgrade', (int) $form->maxgrade, '','','0',false,$disabled); - helpbutton('maxgrade', get_string('maximumgrade'), 'scorm'); - ?> -
: - scorm_maxattempts; $i++) { - if ($i == 1) { - $attempts[$i] = $i . ' ' . get_string('attempt','scorm'); - } else { - $attempts[$i] = $i . ' ' . get_string('attempts','scorm'); - } - } - choose_from_menu($attempts, 'maxattempt', (int) $form->maxattempt, get_string('nolimit','scorm'),'checkscormform(this,1,getElementById(\'form\').whatgrade);'); - helpbutton('maxattempt', get_string('maximumattempts','scorm'), 'scorm'); - ?> -
: - maxattempt === 1; - choose_from_menu($SCORM_WHAT_GRADE, 'whatgrade', (int) $form->whatgrade, '','','0',false,$disabled); - helpbutton('whatgrade', get_string('whatgrade','scorm'), 'scorm'); - ?> -

: - - - -
-
- - - - - - - - - - - - - - - - - - - - - - - -
: - skipview,''); - helpbutton('skipview', get_string('skipview','scorm'), 'scorm', true); - ?> -
: - auto,''); - helpbutton('autocontinue', get_string('autocontinue','scorm'), 'scorm', true); - ?> -
: - hidebrowse, ''); - helpbutton('browsemode', get_string('hidebrowse','scorm'), 'scorm', true); - ?> -
: - hidetoc, ''); - ?> -
: - hidenav, ''); - ?> -
-
-
: - - - -
-
- - - - - - - - - - -
- -
- -
- - -
- -
:
- 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))) { - ?> - - - - - - - - - - - -
- - -
-