NEW FEATURE: Media file now works with web pages and with text and html files. Also, the pop-up

window size is configurable as well as an optional close button at the bottom of the window.
This commit is contained in:
michaelpenne 2005-10-28 22:45:47 +00:00
parent 525bb31f37
commit 3eca6cf1bf
9 changed files with 98 additions and 12 deletions

View file

@ -206,6 +206,12 @@ function lesson_upgrade($oldversion) {
table_column('lesson', '', 'progressbar', 'tinyint', '3', 'unsigned', '0', 'not null', 'displayleft');
table_column('lesson', '', 'displayleftif', 'int', '3', 'unsigned', '0', 'not null', 'displayleft');
}
if ($oldversion < 2005102800) {
table_column('lesson', '', 'mediaclose', 'tinyint', '3', 'unsigned', '0', 'not null', 'mediafile');
table_column('lesson', '', 'mediaheight', 'int', '10', 'unsigned', '100', 'not null', 'mediafile');
table_column('lesson', '', 'mediawidth', 'int', '10', 'unsigned', '650', 'not null', 'mediafile');
}
return true;
}

View file

@ -29,6 +29,9 @@ CREATE TABLE `prefix_lesson` (
`retake` int(3) unsigned NOT NULL default '1',
`tree` TINYINT(3) UNSIGNED NOT NULL DEFAULT '0',
`mediafile` varchar(255) NOT NULL default '',
`mediaheight` INT(10) UNSIGNED NOT NULL DEFAULT '100',
`mediawidth` INT(10) UNSIGNED NOT NULL DEFAULT '650',
`mediaclose` TINYINT(3) UNSIGNED NOT NULL DEFAULT '0',
`slideshow` TINYINT(3) UNSIGNED NOT NULL DEFAULT '0',
`width` INT(10) UNSIGNED NOT NULL DEFAULT '640',
`height` INT(10) UNSIGNED NOT NULL DEFAULT '480',

View file

@ -287,6 +287,12 @@ function lesson_upgrade($oldversion) {
table_column('lesson', '', 'progressbar', 'INT', '3', 'unsigned', '0', 'not null', 'displayleft');
table_column('lesson', '', 'displayleftif', 'INT', '3', 'unsigned', '0', 'not null', 'displayleft');
}
if ($oldversion < 2005102800) {
table_column('lesson', '', 'mediaclose', 'INT', '3', 'unsigned', '0', 'not null', 'mediafile');
table_column('lesson', '', 'mediaheight', 'INT', '10', 'unsigned', '100', 'not null', 'mediafile');
table_column('lesson', '', 'mediawidth', 'INT', '10', 'unsigned', '650', 'not null', 'mediafile');
}
return true;
}

View file

@ -23,6 +23,9 @@ CREATE TABLE prefix_lesson (
retake INT NOT NULL default '1',
tree INT NOT NULL DEFAULT '0',
mediafile varchar(255) NOT NULL default '',
mediaheight INT NOT NULL DEFAULT '100',
mediawidth INT NOT NULL DEFAULT '650',
mediaclose INT NOT NULL DEFAULT '0',
slideshow INT NOT NULL DEFAULT '0',
width INT8 NOT NULL DEFAULT '640',
height INT8 NOT NULL DEFAULT '480',