1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236 |
- -- MySQL dump 10.9
- --
- -- Host: localhost Database: dokeos_main
- -- ------------------------------------------------------
- -- Server version 4.1.14
- /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
- /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
- /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
- /*!40101 SET NAMES utf8 */;
- /*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */;
- /*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */;
- /*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */;
- /*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */;
- --
- -- Table structure for table user
- --
- DROP TABLE IF EXISTS user;
- CREATE TABLE user (
- user_id int unsigned NOT NULL auto_increment,
- lastname varchar(60) default NULL,
- firstname varchar(60) default NULL,
- username varchar(20) NOT NULL default '',
- password varchar(50) NOT NULL default '',
- auth_source varchar(50) default 'platform',
- email varchar(100) default NULL,
- status tinyint NOT NULL default '5',
- official_code varchar(40) default NULL,
- phone varchar(30) default NULL,
- picture_uri varchar(250) default NULL,
- creator_id int unsigned default NULL,
- competences text,
- diplomas text,
- openarea text,
- teach text,
- productions varchar(250) default NULL,
- chatcall_user_id int unsigned NOT NULL default '0',
- chatcall_date datetime NOT NULL default '0000-00-00 00:00:00',
- chatcall_text varchar(50) NOT NULL default '',
- language varchar(40) default NULL,
- registration_date datetime NOT NULL default '0000-00-00 00:00:00',
- expiration_date datetime NOT NULL default '0000-00-00 00:00:00',
- active tinyint unsigned NOT NULL default 1,
- openid varchar(255) DEFAULT NULL,
- theme varchar(255) DEFAULT NULL,
- hr_dept_id smallint unsigned NOT NULL default 0,
- PRIMARY KEY (user_id),
- UNIQUE KEY username (username)
- );
- ALTER TABLE user ADD INDEX (status);
- --
- -- Dumping data for table user
- --
- /*!40000 ALTER TABLE user DISABLE KEYS */;
- LOCK TABLES user WRITE;
- INSERT INTO user (lastname, firstname, username, password, auth_source, email, status, official_code,phone, creator_id, registration_date, expiration_date,active,openid,language) VALUES ('{ADMINLASTNAME}','{ADMINFIRSTNAME}','{ADMINLOGIN}','{ADMINPASSWORD}','{PLATFORM_AUTH_SOURCE}','{ADMINEMAIL}',1,'ADMIN','{ADMINPHONE}',1,NOW(),'0000-00-00 00:00:00','1',NULL,'{ADMINLANGUAGE}');
- -- Insert anonymous user
- INSERT INTO user (lastname, firstname, username, password, auth_source, email, status, official_code, creator_id, registration_date, expiration_date,active,openid,language) VALUES ('Anonymous', 'Joe', '', '', 'platform', 'anonymous@localhost', 6, 'anonymous', 1, NOW(), '0000-00-00 00:00:00', 1,NULL,'{ADMINLANGUAGE}');
- UNLOCK TABLES;
- /*!40000 ALTER TABLE user ENABLE KEYS */;
- --
- -- Table structure for table admin
- --
- DROP TABLE IF EXISTS admin;
- CREATE TABLE admin (
- user_id int unsigned NOT NULL default '0',
- UNIQUE KEY user_id (user_id)
- );
- --
- -- Dumping data for table admin
- --
- /*!40000 ALTER TABLE admin DISABLE KEYS */;
- LOCK TABLES admin WRITE;
- INSERT INTO admin VALUES (1);
- UNLOCK TABLES;
- /*!40000 ALTER TABLE admin ENABLE KEYS */;
- --
- -- Table structure for table class
- --
- DROP TABLE IF EXISTS class;
- CREATE TABLE class (
- id mediumint unsigned NOT NULL auto_increment,
- code varchar(40) default '',
- name text NOT NULL,
- PRIMARY KEY (id)
- );
- --
- -- Dumping data for table class
- --
- /*!40000 ALTER TABLE class DISABLE KEYS */;
- LOCK TABLES class WRITE;
- UNLOCK TABLES;
- /*!40000 ALTER TABLE class ENABLE KEYS */;
- --
- -- Table structure for table class_user
- --
- DROP TABLE IF EXISTS class_user;
- CREATE TABLE class_user (
- class_id mediumint unsigned NOT NULL default '0',
- user_id int unsigned NOT NULL default '0',
- PRIMARY KEY (class_id,user_id)
- );
- --
- -- Dumping data for table class_user
- --
- /*!40000 ALTER TABLE class_user DISABLE KEYS */;
- LOCK TABLES class_user WRITE;
- UNLOCK TABLES;
- /*!40000 ALTER TABLE class_user ENABLE KEYS */;
- --
- -- Table structure for table course
- --
- DROP TABLE IF EXISTS course;
- CREATE TABLE course (
- code varchar(40) NOT NULL,
- directory varchar(40) default NULL,
- db_name varchar(40) default NULL,
- course_language varchar(20) default NULL,
- title varchar(250) default NULL,
- description text,
- category_code varchar(40) default NULL,
- visibility tinyint default '0',
- show_score int NOT NULL default '1',
- tutor_name varchar(200) default NULL,
- visual_code varchar(40) default NULL,
- department_name varchar(30) default NULL,
- department_url varchar(180) default NULL,
- disk_quota int unsigned default NULL,
- last_visit datetime default NULL,
- last_edit datetime default NULL,
- creation_date datetime default NULL,
- expiration_date datetime default NULL,
- target_course_code varchar(40) default NULL,
- subscribe tinyint NOT NULL default '1',
- unsubscribe tinyint NOT NULL default '1',
- registration_code varchar(255) NOT NULL default '',
- PRIMARY KEY (code)
- );
- --
- -- Dumping data for table course
- --
- /*!40000 ALTER TABLE course DISABLE KEYS */;
- LOCK TABLES course WRITE;
- UNLOCK TABLES;
- /*!40000 ALTER TABLE course ENABLE KEYS */;
- --
- -- Table structure for table course_category
- --
- DROP TABLE IF EXISTS course_category;
- CREATE TABLE course_category (
- id int unsigned NOT NULL auto_increment,
- name varchar(100) NOT NULL default '',
- code varchar(40) NOT NULL default '',
- parent_id varchar(40) default NULL,
- tree_pos int unsigned default NULL,
- children_count smallint default NULL,
- auth_course_child enum('TRUE','FALSE') default 'TRUE',
- auth_cat_child enum('TRUE','FALSE') default 'TRUE',
- PRIMARY KEY (id),
- UNIQUE KEY code (code),
- KEY parent_id (parent_id),
- KEY tree_pos (tree_pos)
- );
- --
- -- Dumping data for table course_category
- --
- /*!40000 ALTER TABLE course_category DISABLE KEYS */;
- LOCK TABLES course_category WRITE;
- INSERT INTO course_category VALUES (1,'Language skills','LANG',NULL,1,0,'TRUE','TRUE'),(2,'PC Skills','PC',NULL,2,0,'TRUE','TRUE'),(3,'Projects','PROJ',NULL,3,0,'TRUE','TRUE');
- UNLOCK TABLES;
- /*!40000 ALTER TABLE course_category ENABLE KEYS */;
- --
- -- Table structure for table course_field
- --
- DROP TABLE IF EXISTS course_field;
- CREATE TABLE course_field (
- id int NOT NULL auto_increment,
- field_type int NOT NULL default 1,
- field_variable varchar(64) NOT NULL,
- field_display_text varchar(64),
- field_default_value text,
- field_order int,
- field_visible tinyint default 0,
- field_changeable tinyint default 0,
- field_filter tinyint default 0,
- tms TIMESTAMP,
- PRIMARY KEY(id)
- );
- --
- -- Table structure for table course_field_values
- --
- DROP TABLE IF EXISTS course_field_values;
- CREATE TABLE course_field_values(
- id int NOT NULL auto_increment,
- course_code varchar(40) NOT NULL,
- field_id int NOT NULL,
- field_value text,
- tms TIMESTAMP,
- PRIMARY KEY(id)
- );
- --
- -- Table structure for table course_module
- --
- DROP TABLE IF EXISTS course_module;
- CREATE TABLE course_module (
- id int unsigned NOT NULL auto_increment,
- name varchar(100) NOT NULL,
- link varchar(255) NOT NULL,
- image varchar(100) default NULL,
- `row` int unsigned NOT NULL default '0',
- `column` int unsigned NOT NULL default '0',
- position varchar(20) NOT NULL default 'basic',
- PRIMARY KEY (id)
- );
- --
- -- Dumping data for table course_module
- --
- /*!40000 ALTER TABLE course_module DISABLE KEYS */;
- LOCK TABLES course_module WRITE;
- INSERT INTO course_module VALUES
- (1,'calendar_event','calendar/agenda.php','agenda.gif',1,1,'basic'),
- (2,'link','link/link.php','links.gif',4,1,'basic'),
- (3,'document','document/document.php','documents.gif',3,1,'basic'),
- (4,'student_publication','work/work.php','works.gif',3,2,'basic'),
- (5,'announcement','announcements/announcements.php','valves.gif',2,1,'basic'),
- (6,'user','user/user.php','members.gif',2,3,'basic'),
- (7,'forum','forum/index.php','forum.gif',1,2,'basic'),
- (8,'quiz','exercice/exercice.php','quiz.gif',2,2,'basic'),
- (9,'group','group/group.php','group.gif',3,3,'basic'),
- (10,'course_description','course_description/','info.gif',1,3,'basic'),
- (11,'chat','chat/chat.php','chat.gif',0,0,'external'),
- (12,'dropbox','dropbox/index.php','dropbox.gif',4,2,'basic'),
- (13,'tracking','tracking/courseLog.php','statistics.gif',1,3,'courseadmin'),
- (14,'homepage_link','link/link.php?action=addlink','npage.gif',1,1,'courseadmin'),
- (15,'course_setting','course_info/infocours.php','reference.gif',1,1,'courseadmin'),
- (16,'External','','external.gif',0,0,'external'),
- (17,'AddedLearnpath','','scormbuilder.gif',0,0,'external'),
- (18,'conference','conference/index.php?type=conference','conf.gif',0,0,'external'),
- (19,'conference','conference/index.php?type=classroom','conf.gif',0,0,'external'),
- (20,'learnpath','newscorm/lp_controller.php','scorm.gif',5,1,'basic'),
- (21,'blog','blog/blog.php','blog.gif',1,2,'basic'),
- (22,'blog_management','blog/blog_admin.php','blog_admin.gif',1,2,'courseadmin'),
- (23,'course_maintenance','course_info/maintenance.php','backup.gif',2,3,'courseadmin'),
- (24,'survey','survey/survey_list.php','survey.gif',2,1,'basic'),
- (25,'wiki','wiki/index.php','wiki.gif',2,3,'basic'),
- (26,'gradebook','gradebook/index.php','gradebook.gif',2,2,'basic'),
- (27,'glossary','glossary/index.php','glossary.gif',2,1,'basic'),
- (28,'notebook','notebook/index.php','notebook.gif',2,1,'basic');
- UNLOCK TABLES;
- /*!40000 ALTER TABLE course_module ENABLE KEYS */;
- --
- -- Table structure for table course_rel_class
- --
- DROP TABLE IF EXISTS course_rel_class;
- CREATE TABLE course_rel_class (
- course_code char(40) NOT NULL,
- class_id mediumint unsigned NOT NULL,
- PRIMARY KEY (course_code,class_id)
- );
- --
- -- Dumping data for table course_rel_class
- --
- /*!40000 ALTER TABLE course_rel_class DISABLE KEYS */;
- LOCK TABLES course_rel_class WRITE;
- UNLOCK TABLES;
- /*!40000 ALTER TABLE course_rel_class ENABLE KEYS */;
- --
- -- Table structure for table course_rel_user
- --
- DROP TABLE IF EXISTS course_rel_user;
- CREATE TABLE course_rel_user (
- course_code varchar(40) NOT NULL,
- user_id int unsigned NOT NULL default '0',
- status tinyint NOT NULL default '5',
- role varchar(60) default NULL,
- group_id int NOT NULL default '0',
- tutor_id int unsigned NOT NULL default '0',
- sort int default NULL,
- user_course_cat int default '0',
- PRIMARY KEY (course_code,user_id)
- );
- ALTER TABLE course_rel_user ADD INDEX (user_id);
- --
- -- Dumping data for table course_rel_user
- --
- /*!40000 ALTER TABLE course_rel_user DISABLE KEYS */;
- LOCK TABLES course_rel_user WRITE;
- UNLOCK TABLES;
- /*!40000 ALTER TABLE course_rel_user ENABLE KEYS */;
- --
- -- Table structure for table language
- --
- DROP TABLE IF EXISTS language;
- CREATE TABLE language (
- id tinyint unsigned NOT NULL auto_increment,
- original_name varchar(255) default NULL,
- english_name varchar(255) default NULL,
- isocode varchar(10) default NULL,
- dokeos_folder varchar(250) default NULL,
- available tinyint NOT NULL default 1,
- parent_id tinyint unsigned,
- PRIMARY KEY (id)
- );
- ALTER TABLE language ADD INDEX idx_language_dokeos_folder(dokeos_folder);
- --
- -- Dumping data for table language
- --
- /*!40000 ALTER TABLE language DISABLE KEYS */;
- LOCK TABLES language WRITE;
- INSERT INTO language (original_name, english_name, isocode, dokeos_folder, available) VALUES
- ('Arabija (el)','arabic','ar','arabic',0),
- ('Asturian','asturian','ast','asturian',0),
- ('Balgarski','bulgarian','bg','bulgarian',0),
- ('Bosanski','bosnian','bs','bosnian',1),
- ('Català','catalan','ca','catalan',0),
- ('Chinese (simplified)','simpl_chinese','zh','simpl_chinese',0),
- ('Chinese (traditional)','trad_chinese','zh-TW','trad_chinese',0),
- ('Czech','czech','cs','czech',0),
- ('Dansk','danish','da','danish',0),
- ('Dari','dari','prs','dari',0),
- ('Deutsch','german','de','german',1),
- ('Ellinika','greek','el','greek',0),
- ('English','english','en','english',1),
- ('Español','spanish','es','spanish',1),
- ('Esperanto','esperanto','eo','esperanto',0),
- ('Euskara','euskera','eu','euskera',0),
- ('Farsi','persian','fa','persian',0),
- ('Français','french','fr','french',1),
- ('Friulian','friulian','fur','friulian',0),
- ('Galego','galician','gl','galician',0),
- ('Georgian','georgian','ka','georgian',0),
- ('Hrvatski','croatian','hr','croatian',0),
- ('Hebrew','hebrew','he','hebrew',0),
- ('Indonesia (Bahasa I.)','indonesian','id','indonesian',1),
- ('Italiano','italian','it','italian',1),
- ('Korean','korean','ko','korean',0),
- ('Latvian','latvian','lv','latvian',0),
- ('Lithuanian','lithuanian','lt','lithuanian',0),
- ('Macedonian','macedonian','mk','macedonian',0),
- ('Magyar','hungarian','hu','hungarian',1),
- ('Melayu (Bahasa M.)','malay','ms','malay',0),
- ('Nederlands','dutch','nl','dutch',1),
- ('Nihongo','japanese','ja','japanese',0),
- ('Norsk','norwegian','no','norwegian',0),
- ('Occitan','occitan','oc','occitan',0),
- ('Pashto','pashto','ps','pashto',0),
- ('Polski','polish','pl','polish',0),
- ('Português (Portugal)','portuguese','pt','portuguese',1),
- ('Português (Brazil)','brazilian','pt-BR','brazilian',1),
- ('Romanian','romanian','ro','romanian',0),
- ('Runasimi','quechua_cusco','qu','quechua_cusco',0),
- ('Russkij','russian','ru','russian',0),
- ('Slovak','slovak','sk','slovak',0),
- ('Slovenscina','slovenian','sl','slovenian',1),
- ('Srpski','serbian','sr','serbian',0),
- ('Suomi','finnish','fi','finnish',0),
- ('Svenska','swedish','sv','swedish',0),
- ('Thai','thai','th','thai',0),
- ('Türkçe','turkce','tr','turkce',0),
- ('Ukrainian','ukrainian','uk','ukrainian',0),
- ('Viêt (Tiêng V.)','vietnamese','vi','vietnamese',0),
- ('Swahili (kiSw.)','swahili','sw','swahili',0),
- ('Yoruba','yoruba','yo','yoruba',0);
- UNLOCK TABLES;
- /*!40000 ALTER TABLE language ENABLE KEYS */;
- --
- -- Table structure for table php_session
- --
- DROP TABLE IF EXISTS php_session;
- CREATE TABLE php_session (
- session_id varchar(32) NOT NULL default '',
- session_name varchar(10) NOT NULL default '',
- session_time int NOT NULL default '0',
- session_start int NOT NULL default '0',
- session_value mediumtext NOT NULL,
- PRIMARY KEY (session_id)
- );
- --
- -- Table structure for table session
- --
- DROP TABLE IF EXISTS session;
- CREATE TABLE session (
- id smallint unsigned NOT NULL auto_increment,
- id_coach int unsigned NOT NULL default '0',
- name char(50) NOT NULL default '',
- nbr_courses smallint unsigned NOT NULL default '0',
- nbr_users mediumint unsigned NOT NULL default '0',
- nbr_classes mediumint unsigned NOT NULL default '0',
- date_start date NOT NULL default '0000-00-00',
- date_end date NOT NULL default '0000-00-00',
- nb_days_access_before_beginning TINYINT UNSIGNED NULL default '0',
- nb_days_access_after_end TINYINT UNSIGNED NULL default '0',
- session_admin_id INT UNSIGNED NOT NULL,
- PRIMARY KEY (id),
- INDEX (session_admin_id),
- UNIQUE KEY name (name)
- );
- -- --------------------------------------------------------
- --
- -- Table structure for table session_rel_course
- --
- DROP TABLE IF EXISTS session_rel_course;
- CREATE TABLE session_rel_course (
- id_session smallint unsigned NOT NULL default '0',
- course_code char(40) NOT NULL default '',
- id_coach int unsigned NOT NULL default '0',
- nbr_users smallint unsigned NOT NULL default '0',
- PRIMARY KEY (id_session,course_code),
- KEY course_code (course_code)
- );
- -- --------------------------------------------------------
- --
- -- Table structure for table session_rel_course_rel_user
- --
- DROP TABLE IF EXISTS session_rel_course_rel_user;
- CREATE TABLE session_rel_course_rel_user (
- id_session smallint unsigned NOT NULL default '0',
- course_code char(40) NOT NULL default '',
- id_user int unsigned NOT NULL default '0',
- PRIMARY KEY (id_session,course_code,id_user),
- KEY id_user (id_user),
- KEY course_code (course_code)
- );
- -- --------------------------------------------------------
- --
- -- Table structure for table session_rel_user
- --
- DROP TABLE IF EXISTS session_rel_user;
- CREATE TABLE session_rel_user (
- id_session mediumint unsigned NOT NULL default '0',
- id_user mediumint unsigned NOT NULL default '0',
- PRIMARY KEY (id_session,id_user)
- );
- DROP TABLE IF EXISTS session_field;
- CREATE TABLE session_field (
- id int NOT NULL auto_increment,
- field_type int NOT NULL default 1,
- field_variable varchar(64) NOT NULL,
- field_display_text varchar(64),
- field_default_value text,
- field_order int,
- field_visible tinyint default 0,
- field_changeable tinyint default 0,
- field_filter tinyint default 0,
- tms TIMESTAMP,
- PRIMARY KEY(id)
- );
- DROP TABLE IF EXISTS session_field_values;
- CREATE TABLE session_field_values(
- id int NOT NULL auto_increment,
- session_id int NOT NULL,
- field_id int NOT NULL,
- field_value text,
- tms TIMESTAMP,
- PRIMARY KEY(id)
- );
- --
- -- Table structure for table settings_current
- --
- DROP TABLE IF EXISTS settings_current;
- CREATE TABLE settings_current (
- id int unsigned NOT NULL auto_increment,
- variable varchar(255) default NULL,
- subkey varchar(255) default NULL,
- type varchar(255) default NULL,
- category varchar(255) default NULL,
- selected_value varchar(255) default NULL,
- title varchar(255) NOT NULL default '',
- comment varchar(255) default NULL,
- scope varchar(50) default NULL,
- subkeytext varchar(255) default NULL,
- access_url int unsigned not null default 1,
- access_url_changeable int unsigned not null default 0,
- PRIMARY KEY id (id),
- INDEX (access_url)
- );
- ALTER TABLE settings_current ADD UNIQUE unique_setting ( variable , subkey , category, access_url) ;
- --
- -- Dumping data for table settings_current
- --
- /*!40000 ALTER TABLE settings_current DISABLE KEYS */;
- LOCK TABLES settings_current WRITE;
- INSERT INTO settings_current
- (variable, subkey, type, category, selected_value, title, comment, scope, subkeytext, access_url_changeable)
- VALUES
- ('Institution',NULL,'textfield','Platform','{ORGANISATIONNAME}','InstitutionTitle','InstitutionComment','platform',NULL, 1),
- ('InstitutionUrl',NULL,'textfield','Platform','{ORGANISATIONURL}','InstitutionUrlTitle','InstitutionUrlComment',NULL,NULL, 1),
- ('siteName',NULL,'textfield','Platform','{CAMPUSNAME}','SiteNameTitle','SiteNameComment',NULL,NULL, 1),
- ('emailAdministrator',NULL,'textfield','Platform','{ADMINEMAIL}','emailAdministratorTitle','emailAdministratorComment',NULL,NULL, 1),
- ('administratorSurname',NULL,'textfield','Platform','{ADMINLASTNAME}','administratorSurnameTitle','administratorSurnameComment',NULL,NULL, 1),
- ('administratorName',NULL,'textfield','Platform','{ADMINFIRSTNAME}','administratorNameTitle','administratorNameComment',NULL,NULL, 1),
- ('show_administrator_data',NULL,'radio','Platform','true','ShowAdministratorDataTitle','ShowAdministratorDataComment',NULL,NULL, 1),
- ('show_tutor_data',NULL,'radio','Platform','true','ShowTutorDataTitle','ShowTutorDataComment',NULL,NULL, 1),
- ('show_teacher_data',NULL,'radio','Platform','true','ShowTeacherDataTitle','ShowTeacherDataComment',NULL,NULL, 1),
- ('homepage_view',NULL,'radio','Course','activity','HomepageViewTitle','HomepageViewComment',NULL,NULL, 0),
- ('show_toolshortcuts',NULL,'radio','Course','false','ShowToolShortcutsTitle','ShowToolShortcutsComment',NULL,NULL, 0),
- ('allow_group_categories',NULL,'radio','Course','false','AllowGroupCategories','AllowGroupCategoriesComment',NULL,NULL, 0),
- ('server_type',NULL,'radio','Platform','production','ServerStatusTitle','ServerStatusComment',NULL,NULL, 0),
- ('platformLanguage',NULL,'link','Languages','{PLATFORMLANGUAGE}','PlatformLanguageTitle','PlatformLanguageComment',NULL,NULL, 0),
- ('showonline','world','checkbox','Platform','true','ShowOnlineTitle','ShowOnlineComment',NULL,'ShowOnlineWorld', 0),
- ('showonline','users','checkbox','Platform','true','ShowOnlineTitle','ShowOnlineComment',NULL,'ShowOnlineUsers', 0),
- ('showonline','course','checkbox','Platform','true','ShowOnlineTitle','ShowOnlineComment',NULL,'ShowOnlineCourse', 0),
- ('profile','name','checkbox','User','false','ProfileChangesTitle','ProfileChangesComment',NULL,'name', 0),
- ('profile','officialcode','checkbox','User','false','ProfileChangesTitle','ProfileChangesComment',NULL,'officialcode', 0),
- ('profile','email','checkbox','User','false','ProfileChangesTitle','ProfileChangesComment',NULL,'Email', 0),
- ('profile','picture','checkbox','User','true','ProfileChangesTitle','ProfileChangesComment',NULL,'UserPicture', 0),
- ('profile','login','checkbox','User','false','ProfileChangesTitle','ProfileChangesComment',NULL,'Login', 0),
- ('profile','password','checkbox','User','false','ProfileChangesTitle','ProfileChangesComment',NULL,'UserPassword', 0),
- ('profile','language','checkbox','User','true','ProfileChangesTitle','ProfileChangesComment',NULL,'Language', 0),
- ('default_document_quotum',NULL,'textfield','Course','50000000','DefaultDocumentQuotumTitle','DefaultDocumentQuotumComment',NULL,NULL, 0),
- ('registration','officialcode','checkbox','User','false','RegistrationRequiredFormsTitle','RegistrationRequiredFormsComment',NULL,'OfficialCode', 0),
- ('registration','email','checkbox','User','true','RegistrationRequiredFormsTitle','RegistrationRequiredFormsComment',NULL,'Email', 0),
- ('registration','language','checkbox','User','true','RegistrationRequiredFormsTitle','RegistrationRequiredFormsComment',NULL,'Language', 0),
- ('default_group_quotum',NULL,'textfield','Course','5000000','DefaultGroupQuotumTitle','DefaultGroupQuotumComment',NULL,NULL, 0),
- ('allow_registration',NULL,'radio','Platform','{ALLOWSELFREGISTRATION}','AllowRegistrationTitle','AllowRegistrationComment',NULL,NULL, 0),
- ('allow_registration_as_teacher',NULL,'radio','Platform','{ALLOWTEACHERSELFREGISTRATION}','AllowRegistrationAsTeacherTitle','AllowRegistrationAsTeacherComment',NULL,NULL, 0),
- ('allow_lostpassword',NULL,'radio','Platform','true','AllowLostPasswordTitle','AllowLostPasswordComment',NULL,NULL, 0),
- ('allow_user_headings',NULL,'radio','Course','false','AllowUserHeadings','AllowUserHeadingsComment',NULL,NULL, 0),
- ('course_create_active_tools','course_description','checkbox','Tools','true','CourseCreateActiveToolsTitle','CourseCreateActiveToolsComment',NULL,'CourseDescription', 0),
- ('course_create_active_tools','agenda','checkbox','Tools','true','CourseCreateActiveToolsTitle','CourseCreateActiveToolsComment',NULL,'Agenda', 0),
- ('course_create_active_tools','documents','checkbox','Tools','true','CourseCreateActiveToolsTitle','CourseCreateActiveToolsComment',NULL,'Documents', 0),
- ('course_create_active_tools','learning_path','checkbox','Tools','true','CourseCreateActiveToolsTitle','CourseCreateActiveToolsComment',NULL,'LearningPath', 0),
- ('course_create_active_tools','links','checkbox','Tools','true','CourseCreateActiveToolsTitle','CourseCreateActiveToolsComment',NULL,'Links', 0),
- ('course_create_active_tools','announcements','checkbox','Tools','true','CourseCreateActiveToolsTitle','CourseCreateActiveToolsComment',NULL,'Announcements', 0),
- ('course_create_active_tools','forums','checkbox','Tools','true','CourseCreateActiveToolsTitle','CourseCreateActiveToolsComment',NULL,'Forums', 0),
- ('course_create_active_tools','dropbox','checkbox','Tools','true','CourseCreateActiveToolsTitle','CourseCreateActiveToolsComment',NULL,'Dropbox', 0),
- ('course_create_active_tools','quiz','checkbox','Tools','true','CourseCreateActiveToolsTitle','CourseCreateActiveToolsComment',NULL,'Quiz', 0),
- ('course_create_active_tools','users','checkbox','Tools','true','CourseCreateActiveToolsTitle','CourseCreateActiveToolsComment',NULL,'Users', 0),
- ('course_create_active_tools','groups','checkbox','Tools','true','CourseCreateActiveToolsTitle','CourseCreateActiveToolsComment',NULL,'Groups', 0),
- ('course_create_active_tools','chat','checkbox','Tools','true','CourseCreateActiveToolsTitle','CourseCreateActiveToolsComment',NULL,'Chat', 0),
- ('course_create_active_tools','online_conference','checkbox','Tools','true','CourseCreateActiveToolsTitle','CourseCreateActiveToolsComment',NULL,'OnlineConference', 0),
- ('course_create_active_tools','student_publications','checkbox','Tools','true','CourseCreateActiveToolsTitle','CourseCreateActiveToolsComment',NULL,'StudentPublications', 0),
- ('allow_personal_agenda',NULL,'radio','User','false','AllowPersonalAgendaTitle','AllowPersonalAgendaComment',NULL,NULL, 0),
- ('display_coursecode_in_courselist',NULL,'radio','Platform','true','DisplayCourseCodeInCourselistTitle','DisplayCourseCodeInCourselistComment',NULL,NULL, 0),
- ('display_teacher_in_courselist',NULL,'radio','Platform','true','DisplayTeacherInCourselistTitle','DisplayTeacherInCourselistComment',NULL,NULL, 0),
- ('use_document_title',NULL,'radio','Tools','false','UseDocumentTitleTitle','UseDocumentTitleComment',NULL,NULL, 0),
- ('permanently_remove_deleted_files',NULL,'radio','Tools','false','PermanentlyRemoveFilesTitle','PermanentlyRemoveFilesComment',NULL,NULL, 0),
- ('dropbox_allow_overwrite',NULL,'radio','Tools','true','DropboxAllowOverwriteTitle','DropboxAllowOverwriteComment',NULL,NULL, 0),
- ('dropbox_max_filesize',NULL,'textfield','Tools','100000000','DropboxMaxFilesizeTitle','DropboxMaxFilesizeComment',NULL,NULL, 0),
- ('dropbox_allow_just_upload',NULL,'radio','Tools','true','DropboxAllowJustUploadTitle','DropboxAllowJustUploadComment',NULL,NULL, 0),
- ('dropbox_allow_student_to_student',NULL,'radio','Tools','true','DropboxAllowStudentToStudentTitle','DropboxAllowStudentToStudentComment',NULL,NULL, 0),
- ('dropbox_allow_group',NULL,'radio','Tools','true','DropboxAllowGroupTitle','DropboxAllowGroupComment',NULL,NULL, 0),
- ('dropbox_allow_mailing',NULL,'radio','Tools','false','DropboxAllowMailingTitle','DropboxAllowMailingComment',NULL,NULL, 0),
- ('administratorTelephone',NULL,'textfield','Platform','(000) 001 02 03','administratorTelephoneTitle','administratorTelephoneComment',NULL,NULL, 1),
- ('extended_profile',NULL,'radio','User','true','ExtendedProfileTitle','ExtendedProfileComment',NULL,NULL, 0),
- ('student_view_enabled',NULL,'radio','Platform','true','StudentViewEnabledTitle','StudentViewEnabledComment',NULL,NULL, 0),
- ('show_navigation_menu',NULL,'radio','Course','false','ShowNavigationMenuTitle','ShowNavigationMenuComment',NULL,NULL, 0),
- ('enable_tool_introduction',NULL,'radio','course','false','EnableToolIntroductionTitle','EnableToolIntroductionComment',NULL,NULL, 0),
- ('page_after_login', NULL, 'radio','Platform','user_portal.php', 'PageAfterLoginTitle','PageAfterLoginComment', NULL, NULL, 0),
- ('time_limit_whosonline', NULL, 'textfield','Platform','30', 'TimeLimitWhosonlineTitle','TimeLimitWhosonlineComment', NULL, NULL, 0),
- ('breadcrumbs_course_homepage', NULL, 'radio','Course','course_title', 'BreadCrumbsCourseHomepageTitle','BreadCrumbsCourseHomepageComment', NULL, NULL, 0),
- ('example_material_course_creation', NULL, 'radio','Platform','true', 'ExampleMaterialCourseCreationTitle','ExampleMaterialCourseCreationComment', NULL, NULL, 0),
- ('account_valid_duration',NULL, 'textfield','Platform','3660', 'AccountValidDurationTitle','AccountValidDurationComment', NULL, NULL, 0),
- ('use_session_mode', NULL, 'radio','Platform','true', 'UseSessionModeTitle','UseSessionModeComment', NULL, NULL, 0),
- ('allow_email_editor', NULL, 'radio', 'Tools', 'false', 'AllowEmailEditorTitle', 'AllowEmailEditorComment', NULL, NULL, 0),
- ('registered', NULL, 'textfield', NULL, 'false', NULL, NULL, NULL, NULL, 0),
- ('donotlistcampus', NULL, 'textfield', NULL, 'false', NULL, NULL, NULL, NULL,0 ),
- ('show_email_addresses', NULL,'radio','Platform','false','ShowEmailAddresses','ShowEmailAddressesComment',NULL,NULL, 1),
- ('profile','phone','checkbox','User','false','ProfileChangesTitle','ProfileChangesComment',NULL,'phone', 0),
- ('service_visio', 'active', 'radio',NULL,'false', 'VisioEnable','', NULL, NULL, 0),
- ('service_visio', 'visio_host', 'textfield',NULL,'', 'VisioHost','', NULL, NULL, 0),
- ('service_visio', 'visio_port', 'textfield',NULL,'1935', 'VisioPort','', NULL, NULL, 0),
- ('service_visio', 'visio_pass', 'textfield',NULL,'', 'VisioPassword','', NULL, NULL, 0),
- ('service_ppt2lp', 'active', 'radio',NULL,'false', 'ppt2lp_actived','', NULL, NULL, 0),
- ('service_ppt2lp', 'host', 'textfield', NULL, NULL, 'Host', NULL, NULL, NULL, 0),
- ('service_ppt2lp', 'port', 'textfield', NULL, 2002, 'Port', NULL, NULL, NULL, 0),
- ('service_ppt2lp', 'user', 'textfield', NULL, NULL, 'UserOnHost', NULL, NULL, NULL, 0),
- ('service_ppt2lp', 'ftp_password', 'textfield', NULL, NULL, 'FtpPassword', NULL, NULL, NULL, 0),
- ('service_ppt2lp', 'path_to_lzx', 'textfield', NULL, NULL, '', NULL, NULL, NULL, 0),
- ('service_ppt2lp', 'size', 'radio', NULL, '720x540', '', NULL, NULL, NULL, 0),
- ('wcag_anysurfer_public_pages', NULL, 'radio','Platform','false','PublicPagesComplyToWAITitle','PublicPagesComplyToWAIComment', NULL, NULL, 0),
- ('stylesheets', NULL, 'textfield','stylesheets','dokeos_blue','',NULL, NULL, NULL, 1),
- ('upload_extensions_list_type', NULL, 'radio', 'Security', 'blacklist', 'UploadExtensionsListType', 'UploadExtensionsListTypeComment', NULL, NULL, 0),
- ('upload_extensions_blacklist', NULL, 'textfield', 'Security', '', 'UploadExtensionsBlacklist', 'UploadExtensionsBlacklistComment', NULL, NULL, 0),
- ('upload_extensions_whitelist', NULL, 'textfield', 'Security', 'htm;html;jpg;jpeg;gif;png;swf;avi;mpg;mpeg;mov;flv;doc;docx;xls;xlsx;ppt;pptx;odt;odp;ods;pdf', 'UploadExtensionsWhitelist', 'UploadExtensionsWhitelistComment', NULL, NULL, 0),
- ('upload_extensions_skip', NULL, 'radio', 'Security', 'true', 'UploadExtensionsSkip', 'UploadExtensionsSkipComment', NULL, NULL, 0),
- ('upload_extensions_replace_by', NULL, 'textfield', 'Security', 'dangerous', 'UploadExtensionsReplaceBy', 'UploadExtensionsReplaceByComment', NULL, NULL, 0),
- ('show_number_of_courses', NULL, 'radio','Platform','false', 'ShowNumberOfCourses','ShowNumberOfCoursesComment', NULL, NULL, 0),
- ('show_empty_course_categories', NULL, 'radio','Platform','true', 'ShowEmptyCourseCategories','ShowEmptyCourseCategoriesComment', NULL, NULL, 0),
- ('show_back_link_on_top_of_tree', NULL, 'radio','Platform','false', 'ShowBackLinkOnTopOfCourseTree','ShowBackLinkOnTopOfCourseTreeComment', NULL, NULL, 0),
- ('show_different_course_language', NULL, 'radio','Platform','true', 'ShowDifferentCourseLanguage','ShowDifferentCourseLanguageComment', NULL, NULL, 1),
- ('split_users_upload_directory', NULL, 'radio','Tuning','false', 'SplitUsersUploadDirectory','SplitUsersUploadDirectoryComment', NULL, NULL, 0),
- ('hide_dltt_markup', NULL, 'radio','Platform','true', 'HideDLTTMarkup','HideDLTTMarkupComment', NULL, NULL, 0),
- ('display_categories_on_homepage',NULL,'radio','Platform','false','DisplayCategoriesOnHomepageTitle','DisplayCategoriesOnHomepageComment',NULL,NULL, 1),
- ('permissions_for_new_directories', NULL, 'textfield', 'Security', '0777', 'PermissionsForNewDirs', 'PermissionsForNewDirsComment', NULL, NULL, 0),
- ('permissions_for_new_files', NULL, 'textfield', 'Security', '0666', 'PermissionsForNewFiles', 'PermissionsForNewFilesComment', NULL, NULL, 0),
- ('show_tabs', 'campus_homepage', 'checkbox', 'Platform', 'true', 'ShowTabsTitle','ShowTabsComment',NULL,'TabsCampusHomepage', 1),
- ('show_tabs', 'my_courses', 'checkbox', 'Platform', 'true', 'ShowTabsTitle','ShowTabsComment',NULL,'TabsMyCourses', 1),
- ('show_tabs', 'reporting', 'checkbox', 'Platform', 'true', 'ShowTabsTitle','ShowTabsComment',NULL,'TabsReporting', 1),
- ('show_tabs', 'platform_administration', 'checkbox', 'Platform', 'true', 'ShowTabsTitle','ShowTabsComment',NULL,'TabsPlatformAdministration', 1),
- ('show_tabs', 'my_agenda', 'checkbox', 'Platform', 'true', 'ShowTabsTitle','ShowTabsComment',NULL,'TabsMyAgenda', 1),
- ('show_tabs', 'my_profile', 'checkbox', 'Platform', 'true', 'ShowTabsTitle','ShowTabsComment',NULL,'TabsMyProfile', 1),
- ('default_forum_view', NULL, 'radio', 'Course', 'flat', 'DefaultForumViewTitle','DefaultForumViewComment',NULL,NULL, 0),
- ('platform_charset',NULL,'textfield','Platform','iso-8859-15','PlatformCharsetTitle','PlatformCharsetComment','platform',NULL, 0),
- ('noreply_email_address', '', 'textfield', 'Platform', '', 'NoReplyEmailAddress', 'NoReplyEmailAddressComment', NULL, NULL, 0),
- ('survey_email_sender_noreply', '', 'radio', 'Course', 'coach', 'SurveyEmailSenderNoReply', 'SurveyEmailSenderNoReplyComment', NULL, NULL, 0),
- ('openid_authentication',NULL,'radio','Security','false','OpenIdAuthentication','OpenIdAuthenticationComment',NULL,NULL, 0),
- ('profile','openid','checkbox','User','false','ProfileChangesTitle','ProfileChangesComment',NULL,'OpenIDURL', 0),
- ('gradebook_enable',NULL,'radio','Gradebook','false','GradebookActivation','GradebookActivationComment',NULL,NULL, 0),
- ('show_tabs','my_gradebook','checkbox','Platform','true','ShowTabsTitle','ShowTabsComment',NULL,'TabsMyGradebook', 1),
- ('gradebook_score_display_coloring','my_display_coloring','checkbox','Gradebook','false','GradebookScoreDisplayColoring','GradebookScoreDisplayColoringComment',NULL,'TabsGradebookEnableColoring', 0),
- ('gradebook_score_display_custom','my_display_custom','checkbox','Gradebook','false','GradebookScoreDisplayCustom','GradebookScoreDisplayCustomComment',NULL,'TabsGradebookEnableCustom', 0),
- ('gradebook_score_display_colorsplit',NULL,'textfield','Gradebook','50','GradebookScoreDisplayColorSplit','GradebookScoreDisplayColorSplitComment',NULL,NULL, 0),
- ('gradebook_score_display_upperlimit','my_display_upperlimit','checkbox','Gradebook','false','GradebookScoreDisplayUpperLimit','GradebookScoreDisplayUpperLimitComment',NULL,'TabsGradebookEnableUpperLimit', 0),
- ('user_selected_theme',NULL,'radio','Platform','false','UserThemeSelection','UserThemeSelectionComment',NULL,NULL, 0),
- ('profile','theme','checkbox','User','false','ProfileChangesTitle','ProfileChangesComment',NULL,'UserTheme', 0),
- ('allow_course_theme',NULL,'radio','Course','true','AllowCourseThemeTitle','AllowCourseThemeComment',NULL,NULL, 0),
- ('display_mini_month_calendar',NULL,'radio','Tools', 'true', 'DisplayMiniMonthCalendarTitle', 'DisplayMiniMonthCalendarComment', NULL, NULL, 0),
- ('display_upcoming_events',NULL,'radio','Tools','true','DisplayUpcomingEventsTitle','DisplayUpcomingEventsComment',NULL,NULL, 0),
- ('number_of_upcoming_events',NULL,'textfield','Tools','1','NumberOfUpcomingEventsTitle','NumberOfUpcomingEventsComment',NULL,NULL, 0),
- ('show_closed_courses',NULL,'radio','Platform','false','ShowClosedCoursesTitle','ShowClosedCoursesComment',NULL,NULL, 0),
- ('ldap_main_server_address', NULL, 'textfield', 'LDAP', 'localhost', 'LDAPMainServerAddressTitle', 'LDAPMainServerAddressComment', NULL, NULL, 0),
- ('ldap_main_server_port', NULL, 'textfield', 'LDAP', '389', 'LDAPMainServerPortTitle', 'LDAPMainServerPortComment', NULL, NULL, 0),
- ('ldap_domain', NULL, 'textfield', 'LDAP', 'dc=nodomain', 'LDAPDomainTitle', 'LDAPDomainComment', NULL, NULL, 0),
- ('ldap_replicate_server_address', NULL, 'textfield', 'LDAP', 'localhost', 'LDAPReplicateServerAddressTitle', 'LDAPReplicateServerAddressComment', NULL, NULL, 0),
- ('ldap_replicate_server_port', NULL, 'textfield', 'LDAP', '389', 'LDAPReplicateServerPortTitle', 'LDAPReplicateServerPortComment', NULL, NULL, 0),
- ('ldap_search_term', NULL, 'textfield', 'LDAP', '', 'LDAPSearchTermTitle', 'LDAPSearchTermComment', NULL, NULL, 0),
- ('ldap_version', NULL, 'radio', 'LDAP', '3', 'LDAPVersionTitle', 'LDAPVersionComment', NULL, '', 0),
- ('ldap_filled_tutor_field', NULL, 'textfield', 'LDAP', 'employeenumber', 'LDAPFilledTutorFieldTitle', 'LDAPFilledTutorFieldComment', NULL, '', 0),
- ('ldap_authentication_login', NULL, 'textfield', 'LDAP', '', 'LDAPAuthenticationLoginTitle', 'LDAPAuthenticationLoginComment', NULL, '', 0),
- ('ldap_authentication_password', NULL, 'textfield', 'LDAP', '', 'LDAPAuthenticationPasswordTitle', 'LDAPAuthenticationPasswordComment', NULL, '', 0),
- ('service_visio', 'visio_use_rtmpt', 'radio',null,'false', 'VisioUseRtmptTitle','VisioUseRtmptComment', NULL, NULL, 0),
- ('extendedprofile_registration', 'mycomptetences', 'checkbox','User','false', 'ExtendedProfileRegistrationTitle','ExtendedProfileRegistrationComment', NULL, 'MyCompetences', 0),
- ('extendedprofile_registration', 'mydiplomas', 'checkbox','User','false', 'ExtendedProfileRegistrationTitle','ExtendedProfileRegistrationComment', NULL, 'MyDiplomas', 0),
- ('extendedprofile_registration', 'myteach', 'checkbox','User','false', 'ExtendedProfileRegistrationTitle','ExtendedProfileRegistrationComment', NULL, 'MyTeach', 0),
- ('extendedprofile_registration', 'mypersonalopenarea', 'checkbox','User','false', 'ExtendedProfileRegistrationTitle','ExtendedProfileRegistrationComment', NULL, 'MyPersonalOpenArea', 0),
- ('extendedprofile_registrationrequired', 'mycomptetences', 'checkbox','User','false', 'ExtendedProfileRegistrationRequiredTitle','ExtendedProfileRegistrationRequiredComment', NULL, 'MyCompetences', 0),
- ('extendedprofile_registrationrequired', 'mydiplomas', 'checkbox','User','false', 'ExtendedProfileRegistrationRequiredTitle','ExtendedProfileRegistrationRequiredComment', NULL, 'MyDiplomas', 0),
- ('extendedprofile_registrationrequired', 'myteach', 'checkbox','User','false', 'ExtendedProfileRegistrationRequiredTitle','ExtendedProfileRegistrationRequiredComment', NULL, 'MyTeach', 0),
- ('extendedprofile_registrationrequired', 'mypersonalopenarea', 'checkbox','User','false', 'ExtendedProfileRegistrationRequiredTitle','ExtendedProfileRegistrationRequiredComment', NULL, 'MyPersonalOpenArea', 0),
- ('ldap_filled_tutor_field_value', NULL, 'textfield', 'LDAP', '', 'LDAPFilledTutorFieldValueTitle', 'LDAPFilledTutorFieldValueComment', NULL, '', 0),
- ('registration','phone','textfield','User','false','RegistrationRequiredFormsTitle','RegistrationRequiredFormsComment',NULL,'Phone', 0),
- ('add_users_by_coach',NULL,'radio','Security','false','AddUsersByCoachTitle','AddUsersByCoachComment',NULL,NULL, 0),
- ('extend_rights_for_coach',NULL,'radio','Security','false','ExtendRightsForCoachTitle','ExtendRightsForCoachComment',NULL,NULL, 0),
- ('extend_rights_for_coach_on_survey',NULL,'radio','Security','true','ExtendRightsForCoachOnSurveyTitle','ExtendRightsForCoachOnSurveyComment',NULL,NULL, 0),
- ('course_create_active_tools','wiki','checkbox','Tools','true','CourseCreateActiveToolsTitle','CourseCreateActiveToolsComment',NULL,'Wiki', 0),
- ('show_session_coach', NULL, 'radio','Platform','false', 'ShowSessionCoachTitle','ShowSessionCoachComment', NULL, NULL, 0),
- ('course_create_active_tools','gradebook','checkbox','Tools','true','CourseCreateActiveToolsTitle','CourseCreateActiveToolsComment',NULL,'Gradebook', 0),
- ('allow_users_to_create_courses',NULL,'radio','Platform','true','AllowUsersToCreateCoursesTitle','AllowUsersToCreateCoursesComment',NULL,NULL, 0),
- ('course_create_active_tools','survey','checkbox','Tools','true','CourseCreateActiveToolsTitle','CourseCreateActiveToolsComment',NULL,'Survey', 0),
- ('course_create_active_tools','glossary','checkbox','Tools','true','CourseCreateActiveToolsTitle','CourseCreateActiveToolsComment',NULL,'Glossary', 0),
- ('course_create_active_tools','notebook','checkbox','Tools','true','CourseCreateActiveToolsTitle','CourseCreateActiveToolsComment',NULL,'Notebook', 0),
- ('advanced_filemanager',NULL,'radio','Platform','false','AdvancedFileManagerTitle','AdvancedFileManagerComment',NULL,NULL, 0),
- ('allow_reservation', NULL, 'radio', 'Tools', 'false', 'AllowReservationTitle', 'AllowReservationComment', NULL, NULL, 0),
- ('profile','apikeys','checkbox','User','false','ProfileChangesTitle','ProfileChangesComment',NULL,'ApiKeys', 0),
- ('allow_message_tool', NULL, 'radio', 'Tools', 'false', 'AllowMessageToolTitle', 'AllowMessageToolComment', NULL, NULL,0),
- ('allow_social_tool', NULL, 'radio', 'Tools', 'false', 'AllowSocialToolTitle', 'AllowSocialToolComment', NULL, NULL, 0),
- ('allow_students_to_browse_courses',NULL,'radio','Platform','true','AllowStudentsToBrowseCoursesTitle','AllowStudentsToBrowseCoursesComment',NULL,NULL, 1),
- ('allow_use_sub_language', NULL, 'radio', 'Platform', 'false', 'AllowUseSubLanguageTitle', 'AllowUseSubLanguageComment', NULL, NULL,0),
- ('show_glossary_in_documents', NULL, 'radio', 'Course', 'none', 'ShowGlossaryInDocumentsTitle', 'ShowGlossaryInDocumentsComment', NULL, NULL,1),
- ('allow_terms_conditions', NULL, 'radio', 'Platform', 'false', 'AllowTermsAndConditionsTitle', 'AllowTermsAndConditionsComment', NULL, NULL,0),
- ('show_tutor_data',NULL,'radio','Platform','true','ShowTutorDataTitle','ShowTutorDataComment',NULL,NULL, 1),
- ('show_teacher_data',NULL,'radio','Platform','true','ShowTeacherDataTitle','ShowTeacherDataComment',NULL,NULL, 1),
- ('course_create_active_tools','enable_search','checkbox','Tools','false','CourseCreateActiveToolsTitle','CourseCreateActiveToolsComment',NULL,'Search',0),
- ('search_enabled',NULL,'radio','Tools','false','EnableSearchTitle','EnableSearchComment',NULL,NULL,1),
- ('search_prefilter_prefix',NULL, NULL,'Search','','SearchPrefilterPrefix','SearchPrefilterPrefixComment',NULL,NULL,0),
- ('search_show_unlinked_results',NULL,'radio','Search','true','SearchShowUnlinkedResultsTitle','SearchShowUnlinkedResultsComment',NULL,NULL,1),
- ('dokeos_database_version', NULL, 'textfield', NULL,'1.8.6.1.8225','DokeosDatabaseVersion','',NULL,NULL,0);
- UNLOCK TABLES;
- /*!40000 ALTER TABLE settings_current ENABLE KEYS */;
- --
- -- Table structure for table settings_options
- --
- DROP TABLE IF EXISTS settings_options;
- CREATE TABLE settings_options (
- id int unsigned NOT NULL auto_increment,
- variable varchar(255) default NULL,
- value varchar(255) default NULL,
- display_text varchar(255) NOT NULL default '',
- PRIMARY KEY (id),
- UNIQUE KEY id (id)
- );
- ALTER TABLE settings_options ADD UNIQUE unique_setting_option (variable , value) ;
- --
- -- Dumping data for table settings_options
- --
- /*!40000 ALTER TABLE settings_options DISABLE KEYS */;
- LOCK TABLES settings_options WRITE;
- INSERT INTO settings_options
- (variable, value, display_text)
- VALUES
- ('show_administrator_data','true','Yes'),
- ('show_administrator_data','false','No'),
- ('show_tutor_data','true','Yes'),
- ('show_tutor_data','false','No'),
- ('show_teacher_data','true','Yes'),
- ('show_teacher_data','false','No'),
- ('homepage_view','activity','HomepageViewActivity'),
- ('homepage_view','2column','HomepageView2column'),
- ('homepage_view','3column','HomepageView3column'),
- ('show_toolshortcuts','true','Yes'),
- ('show_toolshortcuts','false','No'),
- ('allow_group_categories','true','Yes'),
- ('allow_group_categories','false','No'),
- ('server_type','production','ProductionServer'),
- ('server_type','test','TestServer'),
- ('allow_name_change','true','Yes'),
- ('allow_name_change','false','No'),
- ('allow_officialcode_change','true','Yes'),
- ('allow_officialcode_change','false','No'),
- ('allow_registration','true','Yes'),
- ('allow_registration','false','No'),
- ('allow_registration','approval','AfterApproval'),
- ('allow_registration_as_teacher','true','Yes'),
- ('allow_registration_as_teacher','false','No'),
- ('allow_lostpassword','true','Yes'),
- ('allow_lostpassword','false','No'),
- ('allow_user_headings','true','Yes'),
- ('allow_user_headings','false','No'),
- ('allow_personal_agenda','true','Yes'),
- ('allow_personal_agenda','false','No'),
- ('display_coursecode_in_courselist','true','Yes'),
- ('display_coursecode_in_courselist','false','No'),
- ('display_teacher_in_courselist','true','Yes'),
- ('display_teacher_in_courselist','false','No'),
- ('use_document_title','true','Yes'),
- ('use_document_title','false','No'),
- ('permanently_remove_deleted_files','true','YesWillDeletePermanently'),
- ('permanently_remove_deleted_files','false','NoWillDeletePermanently'),
- ('dropbox_allow_overwrite','true','Yes'),
- ('dropbox_allow_overwrite','false','No'),
- ('dropbox_allow_just_upload','true','Yes'),
- ('dropbox_allow_just_upload','false','No'),
- ('dropbox_allow_student_to_student','true','Yes'),
- ('dropbox_allow_student_to_student','false','No'),
- ('dropbox_allow_group','true','Yes'),
- ('dropbox_allow_group','false','No'),
- ('dropbox_allow_mailing','true','Yes'),
- ('dropbox_allow_mailing','false','No'),
- ('extended_profile','true','Yes'),
- ('extended_profile','false','No'),
- ('student_view_enabled','true','Yes'),
- ('student_view_enabled','false','No'),
- ('show_navigation_menu','false','No'),
- ('show_navigation_menu','icons','IconsOnly'),
- ('show_navigation_menu','text','TextOnly'),
- ('show_navigation_menu','iconstext','IconsText'),
- ('enable_tool_introduction','true','Yes'),
- ('enable_tool_introduction','false','No'),
- ('page_after_login', 'index.php', 'CampusHomepage'),
- ('page_after_login', 'user_portal.php', 'MyCourses'),
- ('breadcrumbs_course_homepage', 'get_lang', 'CourseHomepage'),
- ('breadcrumbs_course_homepage', 'course_code', 'CourseCode'),
- ('breadcrumbs_course_homepage', 'course_title', 'CourseTitle'),
- ('example_material_course_creation', 'true', 'Yes'),
- ('example_material_course_creation', 'false', 'No'),
- ('use_session_mode', 'true', 'Yes'),
- ('use_session_mode', 'false', 'No'),
- ('allow_email_editor', 'true' ,'Yes'),
- ('allow_email_editor', 'false', 'No'),
- ('show_email_addresses','true','Yes'),
- ('show_email_addresses','false','No'),
- ('wcag_anysurfer_public_pages', 'true', 'Yes'),
- ('wcag_anysurfer_public_pages', 'false', 'No'),
- ('upload_extensions_list_type', 'blacklist', 'Blacklist'),
- ('upload_extensions_list_type', 'whitelist', 'Whitelist'),
- ('upload_extensions_skip', 'true', 'Remove'),
- ('upload_extensions_skip', 'false', 'Rename'),
- ('show_number_of_courses', 'true', 'Yes'),
- ('show_number_of_courses', 'false', 'No'),
- ('show_empty_course_categories', 'true', 'Yes'),
- ('show_empty_course_categories', 'false', 'No'),
- ('show_back_link_on_top_of_tree', 'true', 'Yes'),
- ('show_back_link_on_top_of_tree', 'false', 'No'),
- ('show_different_course_language', 'true', 'Yes'),
- ('show_different_course_language', 'false', 'No'),
- ('split_users_upload_directory', 'true', 'Yes'),
- ('split_users_upload_directory', 'false', 'No'),
- ('hide_dltt_markup', 'false', 'No'),
- ('hide_dltt_markup', 'true', 'Yes'),
- ('display_categories_on_homepage','true','Yes'),
- ('display_categories_on_homepage','false','No'),
- ('default_forum_view', 'flat', 'Flat'),
- ('default_forum_view', 'threaded', 'Threaded'),
- ('default_forum_view', 'nested', 'Nested'),
- ('survey_email_sender_noreply', 'coach', 'CourseCoachEmailSender'),
- ('survey_email_sender_noreply', 'noreply', 'NoReplyEmailSender'),
- ('openid_authentication','true','Yes'),
- ('openid_authentication','false','No'),
- ('gradebook_enable','true','Yes'),
- ('gradebook_enable','false','No'),
- ('user_selected_theme','true','Yes'),
- ('user_selected_theme','false','No'),
- ('allow_course_theme','true','Yes'),
- ('allow_course_theme','false','No'),
- ('display_mini_month_calendar', 'true', 'Yes'),
- ('display_mini_month_calendar', 'false', 'No'),
- ('display_upcoming_events', 'true', 'Yes'),
- ('display_upcoming_events', 'false', 'No'),
- ('show_closed_courses', 'true', 'Yes'),
- ('show_closed_courses', 'false', 'No'),
- ('ldap_version', '2', 'LDAPVersion2'),
- ('ldap_version', '3', 'LDAPVersion3'),
- ('visio_use_rtmpt','true','Yes'),
- ('visio_use_rtmpt','false','No'),
- ('add_users_by_coach', 'true', 'Yes'),
- ('add_users_by_coach', 'false', 'No'),
- ('extend_rights_for_coach', 'true', 'Yes'),
- ('extend_rights_for_coach', 'false', 'No'),
- ('extend_rights_for_coach_on_survey', 'true', 'Yes'),
- ('extend_rights_for_coach_on_survey', 'false', 'No'),
- ('show_session_coach', 'true', 'Yes'),
- ('show_session_coach', 'false', 'No'),
- ('allow_users_to_create_courses','true','Yes'),
- ('allow_users_to_create_courses','false','No'),
- ('breadcrumbs_course_homepage', 'session_name_and_course_title', 'SessionNameAndCourseTitle'),
- ('advanced_filemanager','true','Yes'),
- ('advanced_filemanager','false','No'),
- ('allow_reservation', 'true', 'Yes'),
- ('allow_reservation', 'false', 'No'),
- ('allow_message_tool', 'true', 'Yes'),
- ('allow_message_tool', 'false', 'No'),
- ('allow_social_tool', 'true', 'Yes'),
- ('allow_social_tool', 'false', 'No'),
- ('allow_students_to_browse_courses','true','Yes'),
- ('allow_students_to_browse_courses','false','No'),
- ('show_email_of_teacher_or_tutor ', 'true', 'Yes'),
- ('show_email_of_teacher_or_tutor ', 'false', 'No'),
- ('allow_use_sub_language', 'true', 'Yes'),
- ('allow_use_sub_language', 'false', 'No'),
- ('show_glossary_in_documents', 'none', 'ShowGlossaryInDocumentsIsNone'),
- ('show_glossary_in_documents', 'ismanual', 'ShowGlossaryInDocumentsIsManual'),
- ('show_glossary_in_documents', 'isautomatic', 'ShowGlossaryInDocumentsIsAutomatic'),
- ('allow_terms_conditions', 'true', 'Yes'),
- ('allow_terms_conditions', 'false', 'No'),
- ('search_enabled', 'true', 'Yes'),
- ('search_enabled', 'false', 'No'),
- ('search_show_unlinked_results', 'true', 'SearchShowUnlinkedResults'),
- ('search_show_unlinked_results', 'false', 'SearchHideUnlinkedResults');
- UNLOCK TABLES;
- /*!40000 ALTER TABLE settings_options ENABLE KEYS */;
- --
- -- Table structure for table sys_announcement
- --
- DROP TABLE IF EXISTS sys_announcement;
- CREATE TABLE sys_announcement (
- id int unsigned NOT NULL auto_increment,
- date_start datetime NOT NULL default '0000-00-00 00:00:00',
- date_end datetime NOT NULL default '0000-00-00 00:00:00',
- visible_teacher tinyint NOT NULL default 0,
- visible_student tinyint NOT NULL default 0,
- visible_guest tinyint NOT NULL default 0,
- title varchar(250) NOT NULL default '',
- content text NOT NULL,
- lang varchar(70) NULL default NULL,
- PRIMARY KEY (id)
- );
- --
- -- Dumping data for table sys_announcement
- --
- /*!40000 ALTER TABLE sys_announcement DISABLE KEYS */;
- LOCK TABLES sys_announcement WRITE;
- UNLOCK TABLES;
- /*!40000 ALTER TABLE sys_announcement ENABLE KEYS */;
- --
- -- Table structure for shared_survey
- --
- DROP TABLE IF EXISTS shared_survey;
- CREATE TABLE shared_survey (
- survey_id int unsigned NOT NULL auto_increment,
- code varchar(20) default NULL,
- title text default NULL,
- subtitle text default NULL,
- author varchar(250) default NULL,
- lang varchar(20) default NULL,
- template varchar(20) default NULL,
- intro text,
- surveythanks text,
- creation_date datetime NOT NULL default '0000-00-00 00:00:00',
- course_code varchar(40) NOT NULL default '',
- PRIMARY KEY (survey_id),
- UNIQUE KEY id (survey_id)
- );
- -- --------------------------------------------------------
- --
- -- Table structure for shared_survey_question
- --
- DROP TABLE IF EXISTS shared_survey_question;
- CREATE TABLE shared_survey_question (
- question_id int NOT NULL auto_increment,
- survey_id int NOT NULL default '0',
- survey_question text NOT NULL,
- survey_question_comment text NOT NULL,
- type varchar(250) NOT NULL default '',
- display varchar(10) NOT NULL default '',
- sort int NOT NULL default '0',
- code varchar(40) NOT NULL default '',
- max_value int NOT NULL,
- PRIMARY KEY (question_id)
- );
- -- --------------------------------------------------------
- --
- -- Table structure for shared_survey_question_option
- --
- DROP TABLE IF EXISTS shared_survey_question_option;
- CREATE TABLE shared_survey_question_option (
- question_option_id int NOT NULL auto_increment,
- question_id int NOT NULL default '0',
- survey_id int NOT NULL default '0',
- option_text text NOT NULL,
- sort int NOT NULL default '0',
- PRIMARY KEY (question_option_id)
- );
- -- --------------------------------------------------------
- --
- -- Table structure for templates (User's FCKEditor templates)
- --
- DROP TABLE IF EXISTS templates;
- CREATE TABLE templates (
- id int NOT NULL auto_increment,
- title varchar(100) NOT NULL,
- description varchar(250) NOT NULL,
- course_code varchar(40) NOT NULL,
- user_id int NOT NULL,
- ref_doc int NOT NULL,
- image varchar(250) NOT NULL,
- PRIMARY KEY (id)
- );
- --
- -- --------------------------------------------------------
- --
- -- Table structure of openid_association (keep info on openid servers)
- --
- DROP TABLE IF EXISTS openid_association;
- CREATE TABLE IF NOT EXISTS openid_association (
- id int NOT NULL auto_increment,
- idp_endpoint_uri text NOT NULL,
- session_type varchar(30) NOT NULL,
- assoc_handle text NOT NULL,
- assoc_type text NOT NULL,
- expires_in bigint NOT NULL,
- mac_key text NOT NULL,
- created bigint NOT NULL,
- PRIMARY KEY (id)
- );
- --
- -- --------------------------------------------------------
- --
- -- Tables for gradebook
- --
- DROP TABLE IF EXISTS gradebook_category;
- CREATE TABLE gradebook_category (
- id int NOT NULL auto_increment,
- name text NOT NULL,
- description text,
- user_id int NOT NULL,
- course_code varchar(40) default NULL,
- parent_id int default NULL,
- weight smallint NOT NULL,
- visible tinyint NOT NULL,
- certif_min_score int DEFAULT NULL,
- PRIMARY KEY (id)
- );
- DROP TABLE IF EXISTS gradebook_evaluation;
- CREATE TABLE gradebook_evaluation (
- id int unsigned NOT NULL auto_increment,
- name text NOT NULL,
- description text,
- user_id int NOT NULL,
- course_code varchar(40) default NULL,
- category_id int default NULL,
- date int default 0,
- weight smallint NOT NULL,
- max float unsigned NOT NULL,
- visible tinyint NOT NULL,
- type varchar(40) NOT NULL default 'evaluation',
- PRIMARY KEY (id)
- );
- DROP TABLE IF EXISTS gradebook_link;
- CREATE TABLE gradebook_link (
- id int NOT NULL auto_increment,
- type int NOT NULL,
- ref_id int NOT NULL,
- user_id int NOT NULL,
- course_code varchar(40) NOT NULL,
- category_id int NOT NULL,
- date int default NULL,
- weight smallint NOT NULL,
- visible tinyint NOT NULL,
- PRIMARY KEY (id)
- );
- DROP TABLE IF EXISTS gradebook_result;
- CREATE TABLE gradebook_result (
- id int NOT NULL auto_increment,
- user_id int NOT NULL,
- evaluation_id int NOT NULL,
- date int NOT NULL,
- score float unsigned default NULL,
- PRIMARY KEY (id)
- );
- DROP TABLE IF EXISTS gradebook_score_display;
- CREATE TABLE gradebook_score_display (
- id int NOT NULL auto_increment,
- score float unsigned NOT NULL,
- display varchar(40) NOT NULL,
- PRIMARY KEY (id)
- );
- DROP TABLE IF EXISTS user_field;
- CREATE TABLE user_field (
- id INT NOT NULL auto_increment,
- field_type int NOT NULL DEFAULT 1,
- field_variable varchar(64) NOT NULL,
- field_display_text varchar(64),
- field_default_value text,
- field_order int,
- field_visible tinyint default 0,
- field_changeable tinyint default 0,
- field_filter tinyint default 0,
- tms TIMESTAMP,
- PRIMARY KEY(id)
- );
- DROP TABLE IF EXISTS user_field_options;
- CREATE TABLE user_field_options (
- id int NOT NULL auto_increment,
- field_id int NOT NULL,
- option_value text,
- option_display_text varchar(64),
- option_order int,
- tms TIMESTAMP,
- PRIMARY KEY (id)
- );
- DROP TABLE IF EXISTS user_field_values;
- CREATE TABLE user_field_values(
- id int NOT NULL auto_increment,
- user_id int unsigned NOT NULL,
- field_id int NOT NULL,
- field_value text,
- tms TIMESTAMP,
- PRIMARY KEY(id)
- );
- ALTER TABLE gradebook_category ADD session_id int DEFAULT NULL;
- DROP TABLE IF EXISTS gradebook_result_log;
- CREATE TABLE gradebook_result_log (
- id int NOT NULL auto_increment,
- id_result int NOT NULL,
- user_id int NOT NULL,
- evaluation_id int NOT NULL,
- date_log datetime default '0000-00-00 00:00:00',
- score float unsigned default NULL,
- PRIMARY KEY(id)
- );
- DROP TABLE IF EXISTS gradebook_linkeval_log;
- CREATE TABLE gradebook_linkeval_log (
- id int NOT NULL auto_increment,
- id_linkeval_log int NOT NULL,
- name text,
- description text,
- date_log int,
- weight smallint default NULL,
- visible tinyint default NULL,
- type varchar(20) NOT NULL,
- user_id_log int NOT NULL,
- PRIMARY KEY (id)
- );
- --
- -- --------------------------------------------------------
- --
- -- Tables for the access URL feature
- --
- DROP TABLE IF EXISTS access_url;
- CREATE TABLE access_url(
- id int unsigned NOT NULL auto_increment,
- url varchar(255) NOT NULL,
- description text,
- active int unsigned not null default 0,
- created_by int not null,
- tms TIMESTAMP,
- PRIMARY KEY (id)
- );
- INSERT INTO access_url(url, description, active, created_by) VALUES ('http://localhost/',' ',1,1);
- DROP TABLE IF EXISTS access_url_rel_user;
- CREATE TABLE access_url_rel_user (
- access_url_id int unsigned NOT NULL,
- user_id int unsigned NOT NULL,
- PRIMARY KEY (access_url_id, user_id)
- );
- ALTER TABLE access_url_rel_user ADD INDEX idx_access_url_rel_user_user (user_id);
- ALTER TABLE access_url_rel_user ADD INDEX idx_access_url_rel_user_access_url(access_url_id);
- ALTER TABLE access_url_rel_user ADD INDEX idx_access_url_rel_user_access_url_user (user_id,access_url_id);
- DROP TABLE IF EXISTS access_url_rel_course;
- CREATE TABLE access_url_rel_course (
- access_url_id int unsigned NOT NULL,
- course_code char(40) NOT NULL,
- PRIMARY KEY (access_url_id, course_code)
- );
- DROP TABLE IF EXISTS access_url_rel_session;
- CREATE TABLE access_url_rel_session (
- access_url_id int unsigned NOT NULL,
- session_id int unsigned NOT NULL,
- PRIMARY KEY (access_url_id, session_id)
- );
- --
- -- Table structure for table sys_calendar
- --
- CREATE TABLE IF NOT EXISTS sys_calendar (
- id int unsigned NOT NULL auto_increment,
- title varchar(200) NOT NULL,
- content text,
- start_date datetime NOT NULL default '0000-00-00 00:00:00',
- end_date datetime NOT NULL default '0000-00-00 00:00:00',
- PRIMARY KEY (id)
- );
- CREATE TABLE IF NOT EXISTS system_template (
- id int UNSIGNED NOT NULL auto_increment,
- title varchar(250) NOT NULL,
- comment text NOT NULL,
- image varchar(250) NOT NULL,
- content text NOT NULL,
- PRIMARY KEY (id)
- );
- -- Adding the platform templates
- INSERT INTO system_template (title, comment, image, content) VALUES
- ('TemplateTitleCourseTitle', 'TemplateTitleCourseTitleDescription', 'coursetitle.gif', '
- <head>
- {CSS}
- <style type="text/css">
- .gris_title {
- color: silver;
- }
- h1
- {
- text-align: right;
- }
- </style>
- </head>
- <body>
- <table style="background: transparent url({IMG_DIR}faded_blue_horizontal.png) repeat scroll 0% 50%; -moz-background-clip: initial; -moz-background-origin: initial; -moz-background-inline-policy: initial; text-align: left; width: 720px; height: 400px;" border="0" cellpadding="15" cellspacing="6">
- <tbody>
- <tr>
- <td style="vertical-align: middle; width: 50%;" colspan="1" rowspan="1">
- <h1>TITULUS 1<br>
- <span class="gris_title">TITULUS 2</span><br>
- </h1>
- </td>
- <td style="width: 50%;">
- <img style="width: 100px; height: 100px;" alt="dokeos logo" src="{COURSE_DIR}images/logo_dokeos.png"></td>
- </tr>
- </tbody>
- </table>
- <p><br>
- <br>
- </p>
- </body>
- ');
- /*
- INSERT INTO system_template (title, comment, image, content) VALUES
- ('TemplateTitleCheckList', 'TemplateTitleCheckListDescription', 'checklist.gif', '
- <head>
- {CSS}
- </head>
- <body>
- <table style="background: transparent url({IMG_DIR}faded_blue_horizontal.png) repeat scroll 0% 50%; -moz-background-clip: initial; -moz-background-origin: initial; -moz-background-inline-policy: initial; text-align: left; width: 720px; height: 400px;" border="0" cellpadding="15" cellspacing="6">
- <tbody>
- <tr>
- <td style="vertical-align: top; width: 66%;">
- <h3>Lorem ipsum dolor sit amet</h3>
- <ul>
- <li>consectetur adipisicing elit</li>
- <li>sed do eiusmod tempor incididunt</li>
- <li>ut labore et dolore magna aliqua</li>
- </ul>
- <h3>Ut enim ad minim veniam</h3>
- <ul>
- <li>quis nostrud exercitation ullamco</li>
- <li>laboris nisi ut aliquip ex ea commodo consequat</li>
- <li>Excepteur sint occaecat cupidatat non proident</li>
- </ul>
- <h3>Sed ut perspiciatis unde omnis</h3>
- <ul>
- <li>iste natus error sit voluptatem accusantium doloremque laudantium, totam rem aperiam</li>
- <li>eaque ipsa quae ab illo inventore veritatis</li>
- <li>et quasi architecto beatae vitae dicta sunt explicabo. </li>
- </ul>
- </td>
- <td style="background: transparent url({IMG_DIR}postit.png ) repeat scroll center top; -moz-background-clip: initial; -moz-background-origin: initial; -moz-background-inline-policy: initial; width: 33%; text-align: center; vertical-align: bottom;">
- <h3>Ut enim ad minima</h3>
- Veniam, quis nostrum exercitationem ullam corporis suscipit laboriosam, nisi ut aliquid ex ea commodi consequatur.<br>
- <h3>
- <img style="width: 180px; height: 144px;" alt="trainer" src="{COURSE_DIR}images/trainer/trainer_smile.png "><br></h3>
- </td>
- </tr>
- </tbody>
- </table>
- <p><br>
- <br>
- </p>
- </body>
- ');
- */
- INSERT INTO system_template (title, comment, image, content) VALUES
- ('TemplateTitleTeacher', 'TemplateTitleTeacherDescription', 'yourinstructor.gif', '
- <head>
- {CSS}
- <style type="text/css">
- .text
- {
- font-weight: normal;
- }
- </style>
- </head>
- <body>
- <table style="background: transparent url({IMG_DIR}faded_blue_horizontal.png ) repeat scroll 0% 50%; -moz-background-clip: initial; -moz-background-origin: initial; -moz-background-inline-policy: initial; text-align: left; width: 720px; height: 400px;" border="0" cellpadding="15" cellspacing="6">
- <tbody>
- <tr>
- <td></td>
- <td style="height: 33%;"></td>
- <td></td>
- </tr>
- <tr>
- <td style="width: 25%;"></td>
- <td style="background: transparent url({IMG_DIR}faded_grey.png ) repeat scroll center top; -moz-background-clip: initial; -moz-background-origin: initial; -moz-background-inline-policy: initial; vertical-align: top; width: 33%; text-align: right; font-weight: bold;" colspan="1" rowspan="1">
- <span class="text">
- <br>
- Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Duis pellentesque.</span>
- </td>
- <td style="width: 25%; font-weight: bold;">
- <img style="width: 180px; height: 241px;" alt="trainer" src="{COURSE_DIR}images/trainer/trainer_case.png "></td>
- </tr>
- </tbody>
- </table>
- <p><br>
- <br>
- </p>
- </body>
- ');
- INSERT INTO system_template (title, comment, image, content) VALUES
- ('TemplateTitleLeftList', 'TemplateTitleListLeftListDescription', 'leftlist.gif', '
- <head>
- {CSS}
- </head>
- <body>
- <table style="background: transparent url({IMG_DIR}faded_blue_horizontal.png ) repeat scroll 0% 50%; -moz-background-clip: initial; -moz-background-origin: initial; -moz-background-inline-policy: initial; text-align: left; width: 720px; height: 400px;" border="0" cellpadding="15" cellspacing="6">
- <tbody>
- <tr>
- <td style="width: 66%;"></td>
- <td style="vertical-align: bottom; width: 33%;" colspan="1" rowspan="4"> <img style="width: 180px; height: 248px;" alt="trainer" src="{COURSE_DIR}images/trainer/trainer_reads.png "><br>
- </td>
- </tr>
- <tr align="right">
- <td style="background: transparent url({IMG_DIR}faded_grey.png ) repeat scroll center top; -moz-background-clip: initial; -moz-background-origin: initial; -moz-background-inline-policy: initial; vertical-align: top; width: 66%;">Lorem
- ipsum dolor sit amet.
- </td>
- </tr>
- <tr align="right">
- <td style="background: transparent url({IMG_DIR}faded_grey.png ) repeat scroll center top; -moz-background-clip: initial; -moz-background-origin: initial; -moz-background-inline-policy: initial; vertical-align: top; width: 66%;">
- Vivamus
- a quam. <br>
- </td>
- </tr>
- <tr align="right">
- <td style="background: transparent url({IMG_DIR}faded_grey.png ) repeat scroll center top; -moz-background-clip: initial; -moz-background-origin: initial; -moz-background-inline-policy: initial; vertical-align: top; width: 66%;">
- Proin
- a est stibulum ante ipsum.</td>
- </tr>
- </tbody>
- </table>
- <p><br>
- <br>
- </p>
- </body>
- ');
- INSERT INTO system_template (title, comment, image, content) VALUES
- ('TemplateTitleLeftRightList', 'TemplateTitleLeftRightListDescription', 'leftrightlist.gif', '
- <head>
- {CSS}
- </head>
- <body>
- <table style="background: transparent url({IMG_DIR}faded_blue_horizontal.png ) repeat scroll 0% 50%; -moz-background-clip: initial; -moz-background-origin: initial; -moz-background-inline-policy: initial; text-align: left; height: 400px; width: 720px;" border="0" cellpadding="15" cellspacing="6">
- <tbody>
- <tr>
- <td></td>
- <td style="vertical-align: top;" colspan="1" rowspan="4"> <img style="width: 180px; height: 294px;" alt="Trainer" src="{COURSE_DIR}images/trainer/trainer_join_hands.png "><br>
- </td>
- <td></td>
- </tr>
- <tr>
- <td style="background: transparent url({IMG_DIR}faded_grey.png ) repeat scroll center top; -moz-background-clip: initial; -moz-background-origin: initial; -moz-background-inline-policy: initial; vertical-align: top; width: 33%; text-align: right;">Lorem
- ipsum dolor sit amet.
- </td>
- <td style="background: transparent url({IMG_DIR}faded_grey.png ) repeat scroll center top; -moz-background-clip: initial; -moz-background-origin: initial; -moz-background-inline-policy: initial; vertical-align: top; width: 33%; text-align: left;">
- Convallis
- ut. Cras dui magna.</td>
- </tr>
- <tr>
- <td style="background: transparent url({IMG_DIR}faded_grey.png ) repeat scroll center top; -moz-background-clip: initial; -moz-background-origin: initial; -moz-background-inline-policy: initial; vertical-align: top; width: 33%; text-align: right;">
- Vivamus
- a quam. <br>
- </td>
- <td style="background: transparent url({IMG_DIR}faded_grey.png ) repeat scroll center top; -moz-background-clip: initial; -moz-background-origin: initial; -moz-background-inline-policy: initial; vertical-align: top; width: 33%; text-align: left;">
- Etiam
- lacinia stibulum ante.<br>
- </td>
- </tr>
- <tr>
- <td style="background: transparent url({IMG_DIR}faded_grey.png ) repeat scroll center top; -moz-background-clip: initial; -moz-background-origin: initial; -moz-background-inline-policy: initial; vertical-align: top; width: 33%; text-align: right;">
- Proin
- a est stibulum ante ipsum.</td>
- <td style="background: transparent url({IMG_DIR}faded_grey.png ) repeat scroll center top; -moz-background-clip: initial; -moz-background-origin: initial; -moz-background-inline-policy: initial; vertical-align: top; width: 33%; text-align: left;">
- Consectetuer
- adipiscing elit. <br>
- </td>
- </tr>
- </tbody>
- </table>
- <p><br>
- <br>
- </p>
- </body>
- ');
- INSERT INTO system_template (title, comment, image, content) VALUES
- ('TemplateTitleRightList', 'TemplateTitleRightListDescription', 'rightlist.gif', '
- <head>
- {CSS}
- </head>
- <body style="direction: ltr;">
- <table style="background: transparent url({IMG_DIR}faded_blue_horizontal.png ) repeat scroll 0% 50%; -moz-background-clip: initial; -moz-background-origin: initial; -moz-background-inline-policy: initial; text-align: left; width: 720px; height: 400px;" border="0" cellpadding="15" cellspacing="6">
- <tbody>
- <tr>
- <td style="vertical-align: bottom; width: 50%;" colspan="1" rowspan="4"><img style="width: 300px; height: 199px;" alt="trainer" src="{COURSE_DIR}images/trainer/trainer_points_right.png"><br>
- </td>
- <td style="width: 50%;"></td>
- </tr>
- <tr>
- <td style="background: transparent url({IMG_DIR}faded_grey.png ) repeat scroll center top; -moz-background-clip: initial; -moz-background-origin: initial; -moz-background-inline-policy: initial; vertical-align: top; text-align: left; width: 50%;">
- Convallis
- ut. Cras dui magna.</td>
- </tr>
- <tr>
- <td style="background: transparent url({IMG_DIR}faded_grey.png ) repeat scroll center top; -moz-background-clip: initial; -moz-background-origin: initial; -moz-background-inline-policy: initial; vertical-align: top; text-align: left; width: 50%;">
- Etiam
- lacinia.<br>
- </td>
- </tr>
- <tr>
- <td style="background: transparent url({IMG_DIR}faded_grey.png ) repeat scroll center top; -moz-background-clip: initial; -moz-background-origin: initial; -moz-background-inline-policy: initial; vertical-align: top; text-align: left; width: 50%;">
- Consectetuer
- adipiscing elit. <br>
- </td>
- </tr>
- </tbody>
- </table>
- <p><br>
- <br>
- </p>
- </body>
- ');
- /*
- INSERT INTO system_template (title, comment, image, content) VALUES
- ('TemplateTitleComparison', 'TemplateTitleComparisonDescription', 'compare.gif', '
- <head>
- {CSS}
- </head>
- <body>
- <table style="background: transparent url({IMG_DIR}faded_blue_horizontal.png ) repeat scroll 0% 50%; -moz-background-clip: initial; -moz-background-origin: initial; -moz-background-inline-policy: initial; text-align: left; width: 720px; height: 400px;" border="0" cellpadding="15" cellspacing="6">
- <tr>
- <td style="height: 10%; width: 33%;"></td>
- <td style="vertical-align: top; width: 33%;" colspan="1" rowspan="2"> <img style="width: 180px; height: 271px;" alt="trainer" src="{COURSE_DIR}images/trainer/trainer_standing.png "><br>
- </td>
- <td style="height: 10%; width: 33%;"></td>
- </tr>
- <tr>
- <td style="background: transparent url({IMG_DIR}faded_grey.png ) repeat scroll center top; -moz-background-clip: initial; -moz-background-origin: initial; -moz-background-inline-policy: initial; vertical-align: top; width: 33%; text-align: right;">
- Lorem ipsum dolor sit amet.
- </td>
- <td style="background: transparent url({IMG_DIR}faded_grey.png ) repeat scroll center top; -moz-background-clip: initial; -moz-background-origin: initial; -moz-background-inline-policy: initial; vertical-align: top; text-align: left; width: 33%;">
- Convallis
- ut. Cras dui magna.</td>
- </tr>
- </body>
- ');
- */
- INSERT INTO system_template (title, comment, image, content) VALUES
- ('TemplateTitleDiagram', 'TemplateTitleDiagramDescription', 'diagram.gif', '
- <head>
- {CSS}
- </head>
- <body>
- <table style="background: transparent url({IMG_DIR}faded_blue_horizontal.png ) repeat scroll 0% 50%; -moz-background-clip: initial; -moz-background-origin: initial; -moz-background-inline-policy: initial; text-align: left; width: 720px; height: 400px;" border="0" cellpadding="15" cellspacing="6">
- <tbody>
- <tr>
- <td style="background: transparent url({IMG_DIR}faded_grey.png ) repeat scroll center top; -moz-background-clip: initial; -moz-background-origin: initial; -moz-background-inline-policy: initial; vertical-align: top; text-align: left; height: 33%; width: 33%;">
- <br>
- Etiam
- lacinia stibulum ante.
- Convallis
- ut. Cras dui magna.</td>
- <td colspan="1" rowspan="3">
- <img style="width: 350px; height: 267px;" alt="Alaska chart" src="{COURSE_DIR}images/diagrams/alaska_chart.png "></td>
- </tr>
- <tr>
- <td colspan="1" rowspan="1">
- <img style="width: 300px; height: 199px;" alt="trainer" src="{COURSE_DIR}images/trainer/trainer_points_right.png "></td>
- </tr>
- <tr>
- </tr>
- </tbody>
- </table>
- <p><br>
- <br>
- </p>
- </body>
- ');
- INSERT INTO system_template (title, comment, image, content) VALUES
- ('TemplateTitleDesc', 'TemplateTitleCheckListDescription', 'description.gif', '
- <head>
- {CSS}
- </head>
- <body>
- <table style="background: transparent url({IMG_DIR}faded_blue_horizontal.png ) repeat scroll 0% 50%; -moz-background-clip: initial; -moz-background-origin: initial; -moz-background-inline-policy: initial; text-align: left; width: 720px; height: 400px;" border="0" cellpadding="15" cellspacing="6">
- <tbody>
- <tr>
- <td style="width: 50%; vertical-align: top;">
- <img style="width: 48px; height: 49px; float: left;" alt="01" src="{COURSE_DIR}images/small/01.png " hspace="5"><br>Lorem ipsum dolor sit amet<br><br><br>
- <img style="width: 48px; height: 49px; float: left;" alt="02" src="{COURSE_DIR}images/small/02.png " hspace="5">
- <br>Ut enim ad minim veniam<br><br><br>
- <img style="width: 48px; height: 49px; float: left;" alt="03" src="{COURSE_DIR}images/small/03.png " hspace="5">Duis aute irure dolor in reprehenderit<br><br><br>
- <img style="width: 48px; height: 49px; float: left;" alt="04" src="{COURSE_DIR}images/small/04.png " hspace="5">Neque porro quisquam est</td>
- <td style="vertical-align: top; width: 50%; text-align: right;" colspan="1" rowspan="1">
- <img style="width: 300px; height: 291px;" alt="Gearbox" src="{COURSE_DIR}images/diagrams/gearbox.jpg "><br></td>
- </tr><tr></tr>
- </tbody>
- </table>
- <p><br>
- <br>
- </p>
- </body>
- ');
- /*
- INSERT INTO system_template (title, comment, image, content) VALUES
- ('TemplateTitleObjectives', 'TemplateTitleObjectivesDescription', 'courseobjectives.gif', '
- <head>
- {CSS}
- </head>
- <body>
- <table style="background: transparent url({IMG_DIR}faded_blue_horizontal.png ) repeat scroll 0% 50%; -moz-background-clip: initial; -moz-background-origin: initial; -moz-background-inline-policy: initial; text-align: left; width: 720px; height: 400px;" border="0" cellpadding="15" cellspacing="6">
- <tbody>
- <tr>
- <td style="vertical-align: bottom; width: 33%;" colspan="1" rowspan="2">
- <img style="width: 180px; height: 271px;" alt="trainer" src="{COURSE_DIR}images/trainer/trainer_chair.png "><br>
- </td>
- <td style="height: 10%; width: 66%;"></td>
- </tr>
- <tr>
- <td style="background: transparent url({IMG_DIR}faded_grey.png ) repeat scroll center top; -moz-background-clip: initial; -moz-background-origin: initial; -moz-background-inline-policy: initial; vertical-align: top; text-align: left; width: 66%;">
- <h3>Lorem ipsum dolor sit amet</h3>
- <ul>
- <li>consectetur adipisicing elit</li>
- <li>sed do eiusmod tempor incididunt</li>
- <li>ut labore et dolore magna aliqua</li>
- </ul>
- <h3>Ut enim ad minim veniam</h3>
- <ul>
- <li>quis nostrud exercitation ullamco</li>
- <li>laboris nisi ut aliquip ex ea commodo consequat</li>
- <li>Excepteur sint occaecat cupidatat non proident</li>
- </ul>
- </td>
- </tr>
- </tbody>
- </table>
- <p><br>
- <br>
- </p>
- </body>
- ');
- */
- INSERT INTO system_template (title, comment, image, content) VALUES
- ('TemplateTitleCycle', 'TemplateTitleCycleDescription', 'cyclechart.gif', '
- <head>
- {CSS}
- <style>
- .title
- {
- color: white; font-weight: bold;
- }
- </style>
- </head>
- <body>
- <table style="background: transparent url({IMG_DIR}faded_blue_horizontal.png ) repeat scroll 0% 50%; -moz-background-clip: initial; -moz-background-origin: initial; -moz-background-inline-policy: initial; text-align: left; width: 720px; height: 400px;" border="0" cellpadding="8" cellspacing="6">
- <tbody>
- <tr>
- <td style="text-align: center; vertical-align: bottom; height: 10%;" colspan="3" rowspan="1">
- <img style="width: 250px; height: 76px;" alt="arrow" src="{COURSE_DIR}images/diagrams/top_arrow.png ">
- </td>
- </tr>
- <tr>
- <td style="height: 5%; width: 45%; vertical-align: top; background-color: rgb(153, 153, 153); text-align: center;">
- <span class="title">Lorem ipsum</span>
- </td>
- <td style="height: 5%; width: 10%;"></td>
- <td style="height: 5%; vertical-align: top; background-color: rgb(153, 153, 153); text-align: center;">
- <span class="title">Sed ut perspiciatis</span>
- </td>
- </tr>
- <tr>
- <td style="background-color: rgb(204, 204, 255); width: 45%; vertical-align: top;">
- <ul>
- <li>dolor sit amet</li>
- <li>consectetur adipisicing elit</li>
- <li>sed do eiusmod tempor </li>
- <li>adipisci velit, sed quia non numquam</li>
- <li>eius modi tempora incidunt ut labore et dolore magnam</li>
- </ul>
- </td>
- <td style="width: 10%;"></td>
- <td style="background-color: rgb(204, 204, 255); width: 45%; vertical-align: top;">
- <ul>
- <li>ut enim ad minim veniam</li>
- <li>quis nostrud exercitation</li><li>ullamco laboris nisi ut</li>
- <li> Quis autem vel eum iure reprehenderit qui in ea</li>
- <li>voluptate velit esse quam nihil molestiae consequatur,</li>
- </ul>
- </td>
- </tr>
- <tr align="center">
- <td style="height: 10%; vertical-align: top;" colspan="3" rowspan="1">
- <img style="width: 250px; height: 76px;" alt="arrow" src="{COURSE_DIR}images/diagrams/bottom_arrow.png ">
- </td>
- </tr>
- </tbody>
- </table>
- <p><br>
- <br>
- </p>
- </body>
- ');
- /*
- INSERT INTO system_template (title, comment, image, content) VALUES
- ('TemplateTitleLearnerWonder', 'TemplateTitleLearnerWonderDescription', 'learnerwonder.gif', '
- <head>
- {CSS}
- </head>
- <body>
- <table style="background: transparent url({IMG_DIR}faded_blue_horizontal.png ) repeat scroll 0% 50%; -moz-background-clip: initial; -moz-background-origin: initial; -moz-background-inline-policy: initial; text-align: left; width: 720px; height: 400px;" border="0" cellpadding="15" cellspacing="6">
- <tbody>
- <tr>
- <td style="width: 33%;" colspan="1" rowspan="4">
- <img style="width: 120px; height: 348px;" alt="learner wonders" src="{COURSE_DIR}images/silhouette.png "><br>
- </td>
- <td style="width: 66%;"></td>
- </tr>
- <tr align="center">
- <td style="background: transparent url({IMG_DIR}faded_grey.png ) repeat scroll center top; -moz-background-clip: initial; -moz-background-origin: initial; -moz-background-inline-policy: initial; vertical-align: top; width: 66%;">
- Convallis
- ut. Cras dui magna.</td>
- </tr>
- <tr align="center">
- <td style="background: transparent url({IMG_DIR}faded_grey.png ) repeat scroll center top; -moz-background-clip: initial; -moz-background-origin: initial; -moz-background-inline-policy: initial; vertical-align: top; width: 66%;">
- Etiam
- lacinia stibulum ante.<br>
- </td>
- </tr>
- <tr align="center">
- <td style="background: transparent url({IMG_DIR}faded_grey.png ) repeat scroll center top; -moz-background-clip: initial; -moz-background-origin: initial; -moz-background-inline-policy: initial; vertical-align: top; width: 66%;">
- Consectetuer
- adipiscing elit. <br>
- </td>
- </tr>
- </tbody>
- </table>
- <p><br>
- <br>
- </p>
- </body>
- ');
- */
- INSERT INTO system_template (title, comment, image, content) VALUES
- ('TemplateTitleTimeline', 'TemplateTitleTimelineDescription', 'phasetimeline.gif', '
- <head>
- {CSS}
- <style>
- .title
- {
- font-weight: bold; text-align: center;
- }
- </style>
- </head>
- <body>
- <table style="background: transparent url({IMG_DIR}faded_blue_horizontal.png ) repeat scroll 0% 50%; -moz-background-clip: initial; -moz-background-origin: initial; -moz-background-inline-policy: initial; text-align: left; width: 720px; height: 400px;" border="0" cellpadding="8" cellspacing="5">
- <tbody>
- <tr class="title">
- <td style="vertical-align: top; height: 3%; background-color: rgb(224, 224, 224);">Lorem ipsum</td>
- <td style="height: 3%;"></td>
- <td style="vertical-align: top; height: 3%; background-color: rgb(237, 237, 237);">Perspiciatis</td>
- <td style="height: 3%;"></td>
- <td style="vertical-align: top; height: 3%; background-color: rgb(245, 245, 245);">Nemo enim</td>
- </tr>
- <tr>
- <td style="vertical-align: top; width: 30%; background-color: rgb(224, 224, 224);">
- <ul>
- <li>dolor sit amet</li>
- <li>consectetur</li>
- <li>adipisicing elit</li>
- </ul>
- <br>
- </td>
- <td>
- <img style="width: 32px; height: 32px;" alt="arrow" src="{COURSE_DIR}images/small/arrow.png ">
- </td>
- <td style="vertical-align: top; width: 30%; background-color: rgb(237, 237, 237);">
- <ul>
- <li>ut labore</li>
- <li>et dolore</li>
- <li>magni dolores</li>
- </ul>
- </td>
- <td>
- <img style="width: 32px; height: 32px;" alt="arrow" src="{COURSE_DIR}images/small/arrow.png ">
- </td>
- <td style="vertical-align: top; background-color: rgb(245, 245, 245); width: 30%;">
- <ul>
- <li>neque porro</li>
- <li>quisquam est</li>
- <li>qui dolorem </li>
- </ul>
- <br><br>
- </td>
- </tr>
- </tbody>
- </table>
- <p><br>
- <br>
- </p>
- </body>
- ');
- /*
- INSERT INTO system_template (title, comment, image, content) VALUES
- ('TemplateTitleStopAndThink', 'TemplateTitleStopAndThinkDescription', 'stopthink.gif', '
- <head>
- {CSS}
- </head>
- <body>
- <table style="background: transparent url({IMG_DIR}faded_blue_horizontal.png ) repeat scroll 0% 50%; -moz-background-clip: initial; -moz-background-origin: initial; -moz-background-inline-policy: initial; text-align: left; width: 720px; height: 400px;" border="0" cellpadding="15" cellspacing="6">
- <tbody>
- <tr>
- <td style="vertical-align: bottom; width: 33%;" colspan="1" rowspan="2">
- <img style="width: 180px; height: 169px;" alt="trainer" src="{COURSE_DIR}images/trainer/trainer_staring.png ">
- <br>
- </td>
- <td style="height: 10%; width: 66%;"></td>
- </tr>
- <tr>
- <td style="background: transparent url({IMG_DIR}postit.png ) repeat scroll center top; -moz-background-clip: initial; -moz-background-origin: initial; -moz-background-inline-policy: initial; width: 66%; vertical-align: middle; text-align: center;">
- <h3>Attentio sectetur adipisicing elit</h3>
- <ul>
- <li>sed do eiusmod tempor incididunt</li>
- <li>ut labore et dolore magna aliqua</li>
- <li>quis nostrud exercitation ullamco</li>
- </ul><br></td>
- </tr>
- </tbody>
- </table>
- <p><br>
- <br>
- </p>
- </body>
- ');
- */
- INSERT INTO system_template (title, comment, image, content) VALUES
- ('TemplateTitleTable', 'TemplateTitleCheckListDescription', 'table.gif', '
- <head>
- {CSS}
- <style type="text/css">
- .title
- {
- font-weight: bold; text-align: center;
- }
- .items
- {
- text-align: right;
- }
- </style>
- </head>
- <body>
- <br />
- <h2>A table</h2>
- <table style="background: transparent url({IMG_DIR}faded_blue_horizontal.png ) repeat scroll 0% 50%; -moz-background-clip: initial; -moz-background-origin: initial; -moz-background-inline-policy: initial; text-align: left; width: 720px;" border="1" cellpadding="5" cellspacing="0">
- <tbody>
- <tr class="title">
- <td>City</td>
- <td>2005</td>
- <td>2006</td>
- <td>2007</td>
- <td>2008</td>
- </tr>
- <tr class="items">
- <td>Lima</td>
- <td>10,40</td>
- <td>8,95</td>
- <td>9,19</td>
- <td>9,76</td>
- </tr>
- <tr class="items">
- <td>New York</td>
- <td>18,39</td>
- <td>17,52</td>
- <td>16,57</td>
- <td>16,60</td>
- </tr>
- <tr class="items">
- <td>Barcelona</td>
- <td>0,10</td>
- <td>0,10</td>
- <td>0,05</td>
- <td>0,05</td>
- </tr>
- <tr class="items">
- <td>Paris</td>
- <td>3,38</td>
- <td >3,63</td>
- <td>3,63</td>
- <td>3,54</td>
- </tr>
- </tbody>
- </table>
- <br>
- </body>
- ');
- INSERT INTO system_template (title, comment, image, content) VALUES
- ('TemplateTitleAudio', 'TemplateTitleAudioDescription', 'audiocomment.gif', '
- <head>
- {CSS}
- </head>
- <body>
- <table style="background: transparent url({IMG_DIR}faded_blue_horizontal.png ) repeat scroll 0% 50%; -moz-background-clip: initial; -moz-background-origin: initial; -moz-background-inline-policy: initial; text-align: left; width: 720px; height: 400px;" border="0" cellpadding="15" cellspacing="6">
- <tbody>
- <tr>
- <td>
- <div align="center">
- <span style="text-align: center;">
- <embed type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" width="300" height="20" bgcolor="#FFFFFF" src="{REL_PATH}main/inc/lib/mediaplayer/player.swf" allowfullscreen="false" allowscriptaccess="always" flashvars="file={COURSE_DIR}audio/ListeningComprehension.mp3&autostart=true"></embed>
- </span></div>
- <br>
- </td>
- <td colspan="1" rowspan="3"><br>
- <img style="width: 300px; height: 341px; float: right;" alt="image" src="{COURSE_DIR}images/diagrams/head_olfactory_nerve.png "><br></td>
- </tr>
- <tr>
- <td colspan="1" rowspan="1">
- <img style="width: 180px; height: 271px;" alt="trainer" src="{COURSE_DIR}images/trainer/trainer_glasses.png"><br></td>
- </tr>
- <tr>
- </tr>
- </tbody>
- </table>
- <p><br>
- <br>
- </p>
- </body>
- ');
- INSERT INTO system_template (title, comment, image, content) VALUES
- ('TemplateTitleVideo', 'TemplateTitleVideoDescription', 'video.gif', '
- <head>
- {CSS}
- </head>
- <body>
- <table style="background: transparent url({IMG_DIR}faded_blue_horizontal.png ) repeat scroll 0% 50%; -moz-background-clip: initial; -moz-background-origin: initial; -moz-background-inline-policy: initial; text-align: left; width: 720px; height: 400px;" border="0" cellpadding="15" cellspacing="6">
- <tbody>
- <tr>
- <td style="width: 50%; vertical-align: top;">
- <div style="text-align: center;" id="player810625-parent">
- <div style="border-style: none; overflow: hidden; width: 320px; height: 240px; background-color: rgb(220, 220, 220);">
- <div id="player810625">
- <div id="player810625-config" style="overflow: hidden; display: none; visibility: hidden; width: 0px; height: 0px;">url={REL_PATH}main/default_course_document/video/flv/example.flv width=320 height=240 loop=false play=false downloadable=false fullscreen=true displayNavigation=true displayDigits=true align=left dispPlaylist=none playlistThumbs=false</div>
- </div>
- <embed
- type="application/x-shockwave-flash"
- src="{REL_PATH}main/inc/lib/mediaplayer/player.swf"
- width="320"
- height="240"
- id="single"
- name="single"
- quality="high"
- allowfullscreen="true"
- flashvars="width=320&height=240&autostart=false&file={REL_PATH}main/default_course_document/video/flv/example.flv&repeat=false&image=&showdownload=false&link={REL_PATH}main/default_course_document/video/flv/example.flv&showdigits=true&shownavigation=true&logo="
- />
- </div>
- </div>
- </td>
- <td style="background: transparent url({IMG_DIR}faded_grey.png) repeat scroll center top; -moz-background-clip: initial; -moz-background-origin: initial; -moz-background-inline-policy: initial; vertical-align: top; width: 50%;">
- <h3><br>
- </h3>
- <h3>Lorem ipsum dolor sit amet</h3>
- <ul>
- <li>consectetur adipisicing elit</li>
- <li>sed do eiusmod tempor incididunt</li>
- <li>ut labore et dolore magna aliqua</li>
- </ul>
- <h3>Ut enim ad minim veniam</h3>
- <ul>
- <li>quis nostrud exercitation ullamco</li>
- <li>laboris nisi ut aliquip ex ea commodo consequat</li>
- <li>Excepteur sint occaecat cupidatat non proident</li>
- </ul>
- </td>
- </tr>
- </tbody>
- </table>
- <p><br>
- <br>
- </p>
- <style type="text/css">body{}</style><!-- to fix a strange bug appearing with firefox when editing this template -->
- </body>
- ');
- INSERT INTO system_template (title, comment, image, content) VALUES
- ('TemplateTitleFlash', 'TemplateTitleFlashDescription', 'flash.gif', '
- <head>
- {CSS}
- </head>
- <body>
- <center>
- <table style="background: transparent url({IMG_DIR}faded_blue_horizontal.png ) repeat scroll 0% 50%; -moz-background-clip: initial; -moz-background-origin: initial; -moz-background-inline-policy: initial; text-align: left; width: 100%; height: 400px;" border="0" cellpadding="15" cellspacing="6">
- <tbody>
- <tr>
- <td align="center">
- <embed width="700" height="300" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" src="{COURSE_DIR}flash/SpinEchoSequence.swf" play="true" loop="true" menu="true"></embed></span><br />
- </td>
- </tr>
- </tbody>
- </table>
- <p><br>
- <br>
- </p>
- </center>
- </body>
- ');
- --
- -- --------------------------------------------------------
- --
- -- Tables for reservation
- --
- --
- -- Table structure for table reservation category
- --
- CREATE TABLE reservation_category (
- id int unsigned NOT NULL auto_increment,
- parent_id int NOT NULL default 0,
- name varchar(128) NOT NULL default '',
- PRIMARY KEY ( id )
- );
- -- --------------------------------------------------------
- --
- -- Table structure for table reservation category_rights
- --
- CREATE TABLE reservation_category_rights (
- category_id int NOT NULL default 0,
- class_id int NOT NULL default 0,
- m_items tinyint NOT NULL default 0
- );
- -- --------------------------------------------------------
- --
- -- Table structure for table item reservation
- --
- CREATE TABLE reservation_item (
- id int unsigned NOT NULL auto_increment,
- category_id int unsigned NOT NULL default 0,
- course_code varchar(40) NOT NULL default '',
- name varchar(128) NOT NULL default '',
- description text NOT NULL,
- blackout tinyint NOT NULL default 0,
- creator int unsigned NOT NULL default 0,
- always_available TINYINT NOT NULL default 0,
- PRIMARY KEY ( id )
- );
- -- --------------------------------------------------------
- --
- -- Table structure for table reservation item_rights
- --
- CREATE TABLE reservation_item_rights (
- item_id int unsigned NOT NULL default 0,
- class_id int unsigned NOT NULL default 0,
- edit_right tinyint unsigned NOT NULL default 0,
- delete_right tinyint unsigned NOT NULL default 0,
- m_reservation tinyint unsigned NOT NULL default 0,
- view_right tinyint NOT NULL default 0,
- PRIMARY KEY ( item_id , class_id )
- );
- -- --------------------------------------------------------
- --
- -- Table structure for main reservation table
- --
- CREATE TABLE reservation_main (
- id int unsigned NOT NULL auto_increment,
- subid int unsigned NOT NULL default 0,
- item_id int unsigned NOT NULL default 0,
- auto_accept tinyint unsigned NOT NULL default 0,
- max_users int unsigned NOT NULL default 1,
- start_at datetime NOT NULL default '0000-00-00 00:00:00',
- end_at datetime NOT NULL default '0000-00-00 00:00:00',
- subscribe_from datetime NOT NULL default '0000-00-00 00:00:00',
- subscribe_until datetime NOT NULL default '0000-00-00 00:00:00',
- subscribers int unsigned NOT NULL default 0,
- notes text NOT NULL,
- timepicker tinyint NOT NULL default 0,
- timepicker_min int NOT NULL default 0,
- timepicker_max int NOT NULL default 0,
- PRIMARY KEY ( id )
- );
- -- --------------------------------------------------------
- --
- -- Table structure for reservation subscription table
- --
- CREATE TABLE reservation_subscription (
- dummy int unsigned NOT NULL auto_increment,
- user_id int unsigned NOT NULL default 0,
- reservation_id int unsigned NOT NULL default 0,
- accepted tinyint unsigned NOT NULL default 0,
- start_at datetime NOT NULL default '0000-00-00 00:00:00',
- end_at datetime NOT NULL default '0000-00-00 00:00:00',
- PRIMARY KEY ( dummy )
- );
- -- ---------------------------------------------------------
- --
- -- Table structure for table user_friend
- --
- CREATE TABLE user_friend(
- id bigint unsigned not null auto_increment,
- user_id int unsigned not null,
- friend_user_id int unsigned not null,
- relation_type int not null default 0,
- last_edit DATETIME,
- PRIMARY KEY(id)
- );
- ALTER TABLE user_friend ADD INDEX idx_user_friend_user (user_id);
- ALTER TABLE user_friend ADD INDEX idx_user_friend_friend_user(friend_user_id);
- ALTER TABLE user_friend ADD INDEX idx_user_friend_user_friend_user(user_id,friend_user_id);
- --
- -- Table structure for table user_friend_relation_type
- --
- CREATE TABLE user_friend_relation_type(
- id int unsigned not null auto_increment,
- title char(20),
- PRIMARY KEY(id)
- );
- --
- -- Table structure for MD5 API keys for users
- --
- CREATE TABLE user_api_key (
- id int unsigned NOT NULL auto_increment,
- user_id int unsigned NOT NULL,
- api_key char(32) NOT NULL,
- api_service char(10) NOT NULL default 'dokeos',
- PRIMARY KEY (id)
- );
- ALTER TABLE user_api_key ADD INDEX idx_user_api_keys_user (user_id);
- --
- -- Table structure for table message
- --
- CREATE TABLE message(
- id bigint unsigned not null auto_increment,
- user_sender_id int unsigned not null,
- user_receiver_id int unsigned not null,
- msg_status tinyint unsigned not null default 0, -- 0 read, 1 unread, 3 deleted, 5 pending invitation, 6 accepted invitation, 7 invitation denied
- send_date datetime not null default '0000-00-00 00:00:00',
- title varchar(255) not null,
- content text not null,
- PRIMARY KEY(id)
- );
- ALTER TABLE message ADD INDEX idx_message_user_sender(user_sender_id);
- ALTER TABLE message ADD INDEX idx_message_user_receiver(user_receiver_id);
- ALTER TABLE message ADD INDEX idx_message_user_sender_user_receiver(user_sender_id,user_receiver_id);
- ALTER TABLE message ADD INDEX idx_message_msg_status(msg_status);
- INSERT INTO user_friend_relation_type (id,title)
- VALUES
- (1,'SocialUnknow'),
- (2,'SocialParent'),
- (3,'SocialFriend'),
- (4,'SocialGoodFriend'),
- (5,'SocialEnemy'),
- (6,'SocialDeleted');
- --
- -- Table structure for table legal (Terms & Conditions)
- --
- CREATE TABLE legal (
- legal_id int NOT NULL auto_increment,
- language_id int NOT NULL,
- date int NOT NULL default 0,
- content text,
- type int NOT NULL,
- changes text NOT NULL,
- version int,
- PRIMARY KEY (legal_id,language_id)
- );
- INSERT INTO user_field (field_type, field_variable, field_display_text, field_visible, field_changeable) values (1, 'legal_accept','Legal',0,0);
- --
- -- Table structure for certificate with gradebook
- --
- CREATE TABLE gradebook_certificate(
- id bigint unsigned not null auto_increment,
- cat_id int unsigned not null,
- user_id int unsigned not null,
- score_certificate float unsigned not null default 0,
- date_certificate datetime not null default '0000-00-00 00:00:00',
- path_certificate text null,
- PRIMARY KEY(id)
- );
- ALTER TABLE gradebook_certificate ADD INDEX idx_gradebook_certificate_category_id(cat_id);
- ALTER TABLE gradebook_certificate ADD INDEX idx_gradebook_certificate_user_id(user_id);
- ALTER TABLE gradebook_certificate ADD INDEX idx_gradebook_certificate_category_id_user_id(cat_id,user_id);
- ALTER TABLE gradebook_category ADD COLUMN document_id int unsigned default NULL;
- --
- -- Tables structure for search tool
- --
- -- specific fields tables
- CREATE TABLE specific_field (
- id INT NOT NULL AUTO_INCREMENT PRIMARY KEY ,
- code char(1) NOT NULL,
- name VARCHAR(200) NOT NULL
- );
- CREATE TABLE specific_field_values (
- id INT NOT NULL AUTO_INCREMENT PRIMARY KEY ,
- course_code VARCHAR(40) NOT NULL ,
- tool_id VARCHAR(100) NOT NULL ,
- ref_id INT NOT NULL ,
- field_id INT NOT NULL ,
- value VARCHAR(200) NOT NULL
- );
- ALTER TABLE specific_field ADD CONSTRAINT unique_specific_field__code UNIQUE (code);
- -- search engine references to map dokeos resources
- CREATE TABLE search_engine_ref (
- id INT NOT NULL AUTO_INCREMENT PRIMARY KEY,
- course_code VARCHAR( 40 ) NOT NULL,
- tool_id VARCHAR( 100 ) NOT NULL,
- ref_id_high_level INT NOT NULL,
- ref_id_second_level INT NULL,
- search_did INT NOT NULL
- );
|