data.sql 36 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843
  1. -- After the database schema is created, the database is filled
  2. -- with default values.
  3. INSERT INTO language (original_name, english_name, isocode, dokeos_folder, available) VALUES
  4. ('العربية','arabic','ar','arabic',0),
  5. ('Asturianu','asturian','ast','asturian',0),
  6. ('Euskara','basque','eu','basque',1),
  7. ('বাংলা','bengali','bn','bengali',0),
  8. ('Bosanski','bosnian','bs','bosnian',1),
  9. ('Português do Brasil','brazilian','pt-BR','brazilian',1),
  10. ('Български','bulgarian','bg','bulgarian',1),
  11. ('Català','catalan','ca','catalan',0),
  12. ('Hrvatski','croatian','hr','croatian',0),
  13. ('Česky','czech','cs','czech',0),
  14. ('Dansk','danish','da','danish',0),
  15. ('دری','dari','prs','dari',0),
  16. ('Nederlands','dutch','nl','dutch',1),
  17. ('English','english','en','english',1),
  18. ('Esperanto','esperanto','eo','esperanto',0),
  19. ('Føroyskt', 'faroese', 'fo', 'faroese', 0),
  20. ('Suomi','finnish','fi','finnish',0),
  21. ('Français','french','fr','french',1),
  22. ('Furlan','friulian','fur','friulian',0),
  23. ('Galego','galician','gl','galician',1),
  24. ('ქართული','georgian','ka','georgian',0),
  25. ('Deutsch','german','de','german',1),
  26. ('Ελληνικά','greek','el','greek',1),
  27. ('עברית','hebrew','he','hebrew',0),
  28. ('हिन्दी','hindi','hi','hindi',0),
  29. ('Magyar','hungarian','hu','hungarian',1),
  30. ('Bahasa Indonesia','indonesian','id','indonesian',1),
  31. ('Italiano','italian','it','italian',1),
  32. ('日本語','japanese','ja','japanese',0),
  33. ('한국어','korean','ko','korean',0),
  34. ('Latviešu','latvian','lv','latvian',1),
  35. ('Lietuvių','lithuanian','lt','lithuanian',0),
  36. ('Македонски','macedonian','mk','macedonian',0),
  37. ('Bahasa Melayu','malay','ms','malay',0),
  38. ('Norsk','norwegian','no','norwegian',0),
  39. ('Occitan','occitan','oc','occitan',0),
  40. ('پښتو','pashto','ps','pashto',0),
  41. ('فارسی','persian','fa','persian',0),
  42. ('Polski','polish','pl','polish',1),
  43. ('Português europeu','portuguese','pt','portuguese',1),
  44. ('Runasimi','quechua_cusco','qu','quechua_cusco',0),
  45. ('Română','romanian','ro','romanian',0),
  46. ('Русский','russian','ru','russian',0),
  47. ('Srpski','serbian','sr','serbian',0),
  48. ('中文(简体)','simpl_chinese','zh','simpl_chinese',0),
  49. ('Slovenčina','slovak','sk','slovak',1),
  50. ('Slovenščina','slovenian','sl','slovenian',1),
  51. ('الصومالية','somali','so','somali',0),
  52. ('Español','spanish','es','spanish',1),
  53. ('Kiswahili','swahili','sw','swahili',0),
  54. ('Svenska','swedish','sv','swedish',0),
  55. ('Tagalog', 'tagalog', 'tl', 'tagalog',1),
  56. ('ไทย','thai','th','thai',0),
  57. ('Tibetan', 'tibetan', 'bo', 'tibetan', 0),
  58. ('繁體中文','trad_chinese','zh-TW','trad_chinese',0),
  59. ('Türkçe','turkish','tr','turkish',0),
  60. ('Українська','ukrainian','uk','ukrainian',0),
  61. ('Tiếng Việt','vietnamese','vi','vietnamese',0),
  62. ('isiXhosa', 'xhosa', 'xh', 'xhosa', 0),
  63. ('Yorùbá','yoruba','yo','yoruba',0);
  64. -- Set parent language to Spanish for all close-by languages, same for Italian, French, Portuguese and Chinese
  65. UPDATE language SET parent_id = 49 WHERE english_name = 'quechua_cusco';
  66. UPDATE language SET parent_id = 49 WHERE english_name = 'galician';
  67. UPDATE language SET parent_id = 49 WHERE english_name = 'esperanto';
  68. UPDATE language SET parent_id = 49 WHERE english_name = 'catalan';
  69. UPDATE language SET parent_id = 49 WHERE english_name = 'asturian';
  70. UPDATE language SET parent_id = 28 WHERE english_name = 'friulian';
  71. UPDATE language SET parent_id = 18 WHERE english_name = 'occitan';
  72. UPDATE language SET parent_id = 40 WHERE english_name = 'brazilian';
  73. UPDATE language SET parent_id = 45 WHERE english_name = 'trad_chinese';
  74. INSERT INTO course_category (name, code, parent_id, tree_pos, children_count, auth_course_child, auth_cat_child) VALUES
  75. ('Language skills','LANG',NULL,1,0,'TRUE','TRUE'),
  76. ('PC Skills','PC',NULL,2,0,'TRUE','TRUE'),
  77. ('Projects','PROJ',NULL,3,0,'TRUE','TRUE');
  78. INSERT INTO extra_field (extra_field_type, field_type, variable, display_text, visible_to_self, changeable, created_at) VALUES (1, 1, 'legal_accept','Legal',0,0, NOW());
  79. INSERT INTO extra_field (extra_field_type, field_type, variable, display_text, visible_to_self, changeable, created_at) VALUES (1, 1, 'already_logged_in','Already logged in',0,0, NOW());
  80. INSERT INTO extra_field (extra_field_type, field_type, variable, display_text, visible_to_self, changeable, created_at) VALUES (1, 1, 'update_type','Update script type',0,0, NOW());
  81. INSERT INTO extra_field (extra_field_type, field_type, variable, display_text, visible_to_self, changeable, created_at) VALUES (1, 10, 'tags','tags',0,0, NOW());
  82. INSERT INTO extra_field (extra_field_type, field_type, variable, display_text, visible_to_self, changeable, created_at) VALUES (1, 1, 'rssfeeds','RSS',0,0, NOW());
  83. INSERT INTO extra_field (extra_field_type, field_type, variable, display_text, visible_to_self, changeable, created_at) VALUES (1, 1, 'dashboard', 'Dashboard', 0, 0, NOW());
  84. INSERT INTO extra_field (extra_field_type, field_type, variable, display_text, visible_to_self, changeable, created_at) VALUES (1, 11, 'timezone', 'Timezone', 0, 0, NOW());
  85. INSERT INTO extra_field (extra_field_type, field_type, variable, display_text, visible_to_self, changeable, default_value, created_at) values (1, 4, 'mail_notify_invitation', 'MailNotifyInvitation',0,1,'1', NOW());
  86. INSERT INTO extra_field (extra_field_type, field_type, variable, display_text, visible_to_self, changeable, default_value, created_at) values (1, 4, 'mail_notify_message', 'MailNotifyMessage',0,1,'1', NOW());
  87. INSERT INTO extra_field (extra_field_type, field_type, variable, display_text, visible_to_self, changeable, default_value, created_at) values (1, 4, 'mail_notify_group_message','MailNotifyGroupMessage',0,1,'1', NOW());
  88. INSERT INTO extra_field (extra_field_type, field_type, variable, display_text, visible_to_self, changeable, created_at) VALUES (1, 1, 'user_chat_status','User chat status',0,0, NOW());
  89. INSERT INTO extra_field (extra_field_type, field_type, variable, display_text, visible_to_self, changeable, created_at) VALUES (1, 1, 'google_calendar_url','Google Calendar URL',0,0, NOW());
  90. INSERT INTO extra_field (extra_field_type, field_type, variable, display_text, visible_to_self, changeable, default_value, created_at) VALUES (2, 13, 'special_course', 'Special course', 1 , 1, '', NOW());
  91. INSERT INTO extra_field (extra_field_type, field_type, variable, display_text, visible_to_self, changeable, created_at) VALUES (2, 10, 'tags', 'Tags', 1, 1, NOW());
  92. INSERT INTO extra_field (extra_field_type, field_type, variable, display_text, visible_to_self, changeable, created_at) VALUES (2, 19, 'video_url', 'VideoUrl', 1, 1, NOW());
  93. INSERT INTO extra_field (extra_field_type, field_type, variable, display_text, visible_to_self, changeable, created_at) VALUES (3, 16, 'image', 'Image', 1, 1, NOW());
  94. INSERT INTO extra_field (extra_field_type, field_type, variable, display_text, visible_to_self, changeable, created_at) VALUES (1, 1, 'captcha_blocked_until_date', 'Account locked until', 0, 0, NOW());
  95. INSERT INTO extra_field_options (field_id, option_value, display_text, option_order) VALUES (8, '1', 'AtOnce',1);
  96. INSERT INTO extra_field_options (field_id, option_value, display_text, option_order) VALUES (8, '8', 'Daily',2);
  97. INSERT INTO extra_field_options (field_id, option_value, display_text, option_order) VALUES (8, '0', 'No',3);
  98. INSERT INTO extra_field_options (field_id, option_value, display_text, option_order) VALUES (9, '1', 'AtOnce',1);
  99. INSERT INTO extra_field_options (field_id, option_value, display_text, option_order) VALUES (9, '8', 'Daily',2);
  100. INSERT INTO extra_field_options (field_id, option_value, display_text, option_order) VALUES (9, '0', 'No',3);
  101. INSERT INTO extra_field_options (field_id, option_value, display_text, option_order) VALUES (10, '1', 'AtOnce',1);
  102. INSERT INTO extra_field_options (field_id, option_value, display_text, option_order) VALUES (10, '8', 'Daily',2);
  103. INSERT INTO extra_field_options (field_id, option_value, display_text, option_order) VALUES (10, '0', 'No',3);
  104. -- Adding the platform templates
  105. INSERT INTO system_template (title, comment, image, content) VALUES
  106. ('TemplateTitleCourseTitle', 'TemplateTitleCourseTitleDescription', 'coursetitle.gif', '
  107. <!DOCTYPE html>
  108. <html>
  109. <head>
  110. {CSS}
  111. <style type="text/css">
  112. .gris_title {
  113. color: silver;
  114. }
  115. h1 {
  116. text-align: right;
  117. }
  118. </style>
  119. </head>
  120. <body>
  121. <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;"
  122. border="0" cellpadding="15" cellspacing="6">
  123. <tbody>
  124. <tr>
  125. <td style="vertical-align: middle; width: 50%;" colspan="1" rowspan="1">
  126. <h1>TITULUS 1<br>
  127. <span class="gris_title">TITULUS 2</span><br>
  128. </h1>
  129. </td>
  130. <td style="width: 50%;">
  131. <img style="width: 100px; height: 100px;" alt="Chamilo logo" src="{COURSE_DIR}images/logo_chamilo.png">
  132. </td>
  133. </tr>
  134. </tbody>
  135. </table>
  136. <p>
  137. <br><br>
  138. </p>
  139. </body>
  140. </html>
  141. ');
  142. INSERT INTO system_template (title, comment, image, content) VALUES
  143. ('TemplateTitleTeacher', 'TemplateTitleTeacherDescription', 'yourinstructor.gif', '
  144. <!DOCTYPE html>
  145. <html>
  146. <head>
  147. {CSS}
  148. <style type="text/css">
  149. .text {
  150. font-weight: normal;
  151. }
  152. </style>
  153. </head>
  154. <body>
  155. <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;"
  156. border="0" cellpadding="15" cellspacing="6">
  157. <tbody>
  158. <tr>
  159. <td></td>
  160. <td style="height: 33%;"></td>
  161. <td></td>
  162. </tr>
  163. <tr>
  164. <td style="width: 25%;"></td>
  165. <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;"
  166. colspan="1" rowspan="1">
  167. <span class="text">
  168. <br>
  169. Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Duis pellentesque.</span>
  170. </td>
  171. <td style="width: 25%; font-weight: bold;">
  172. <img style="width: 180px; height: 241px;" alt="trainer" src="{COURSE_DIR}images/trainer/trainer_case.png ">
  173. </td>
  174. </tr>
  175. </tbody>
  176. </table>
  177. <p>
  178. <br><br>
  179. </p>
  180. </body>
  181. </html>
  182. ');
  183. INSERT INTO system_template (title, comment, image, content) VALUES
  184. ('TemplateTitleLeftList', 'TemplateTitleListLeftListDescription', 'leftlist.gif', '
  185. <!DOCTYPE html>
  186. <html>
  187. <head>
  188. {CSS}
  189. </head>
  190. <body>
  191. <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;"
  192. border="0" cellpadding="15" cellspacing="6">
  193. <tbody>
  194. <tr>
  195. <td style="width: 66%;"></td>
  196. <td style="vertical-align: bottom; width: 33%;" colspan="1" rowspan="4">&nbsp;<img
  197. style="width: 180px; height: 248px;" alt="trainer"
  198. src="{COURSE_DIR}images/trainer/trainer_reads.png "><br>
  199. </td>
  200. </tr>
  201. <tr align="right">
  202. <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%;">
  203. Lorem
  204. ipsum dolor sit amet.
  205. </td>
  206. </tr>
  207. <tr align="right">
  208. <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%;">
  209. Vivamus
  210. a quam.&nbsp;<br>
  211. </td>
  212. </tr>
  213. <tr align="right">
  214. <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%;">
  215. Proin
  216. a est stibulum ante ipsum.
  217. </td>
  218. </tr>
  219. </tbody>
  220. </table>
  221. <p><br>
  222. <br>
  223. </p>
  224. </body>
  225. </html>
  226. ');
  227. INSERT INTO system_template (title, comment, image, content) VALUES
  228. ('TemplateTitleLeftRightList', 'TemplateTitleLeftRightListDescription', 'leftrightlist.gif', '
  229. <!DOCTYPE html>
  230. <html>
  231. <head>
  232. {CSS}
  233. </head>
  234. <body>
  235. <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;"
  236. border="0" cellpadding="15" cellspacing="6">
  237. <tbody>
  238. <tr>
  239. <td></td>
  240. <td style="vertical-align: top;" colspan="1" rowspan="4">&nbsp;<img style="width: 180px; height: 294px;"
  241. alt="Trainer"
  242. src="{COURSE_DIR}images/trainer/trainer_join_hands.png "><br>
  243. </td>
  244. <td></td>
  245. </tr>
  246. <tr>
  247. <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;">
  248. Lorem
  249. ipsum dolor sit amet.
  250. </td>
  251. <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;">
  252. Convallis
  253. ut.&nbsp;Cras dui magna.
  254. </td>
  255. </tr>
  256. <tr>
  257. <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;">
  258. Vivamus
  259. a quam.&nbsp;<br>
  260. </td>
  261. <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;">
  262. Etiam
  263. lacinia stibulum ante.<br>
  264. </td>
  265. </tr>
  266. <tr>
  267. <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;">
  268. Proin
  269. a est stibulum ante ipsum.
  270. </td>
  271. <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;">
  272. Consectetuer
  273. adipiscing elit. <br>
  274. </td>
  275. </tr>
  276. </tbody>
  277. </table>
  278. <p><br>
  279. <br>
  280. </p>
  281. </body>
  282. </html>
  283. ');
  284. INSERT INTO system_template (title, comment, image, content) VALUES
  285. ('TemplateTitleRightList', 'TemplateTitleRightListDescription', 'rightlist.gif', '
  286. <!DOCTYPE html>
  287. <html>
  288. <head>
  289. {CSS}
  290. </head>
  291. <body style="direction: ltr;">
  292. <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;"
  293. border="0" cellpadding="15" cellspacing="6">
  294. <tbody>
  295. <tr>
  296. <td style="vertical-align: bottom; width: 50%;" colspan="1" rowspan="4"><img
  297. style="width: 300px; height: 199px;" alt="trainer"
  298. src="{COURSE_DIR}images/trainer/trainer_points_right.png"><br>
  299. </td>
  300. <td style="width: 50%;"></td>
  301. </tr>
  302. <tr>
  303. <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%;">
  304. Convallis
  305. ut.&nbsp;Cras dui magna.
  306. </td>
  307. </tr>
  308. <tr>
  309. <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%;">
  310. Etiam
  311. lacinia.<br>
  312. </td>
  313. </tr>
  314. <tr>
  315. <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%;">
  316. Consectetuer
  317. adipiscing elit. <br>
  318. </td>
  319. </tr>
  320. </tbody>
  321. </table>
  322. <p><br>
  323. <br>
  324. </p>
  325. </body>
  326. </html>
  327. ');
  328. INSERT INTO system_template (title, comment, image, content) VALUES
  329. ('TemplateTitleDiagram', 'TemplateTitleDiagramDescription', 'diagram.gif', '
  330. <!DOCTYPE html>
  331. <html>
  332. <head>
  333. {CSS}
  334. </head>
  335. <body>
  336. <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;"
  337. border="0" cellpadding="15" cellspacing="6">
  338. <tbody>
  339. <tr>
  340. <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%;">
  341. <br>
  342. Etiam
  343. lacinia stibulum ante.
  344. Convallis
  345. ut.&nbsp;Cras dui magna.
  346. </td>
  347. <td colspan="1" rowspan="3">
  348. <img style="width: 350px; height: 267px;" alt="Alaska chart"
  349. src="{COURSE_DIR}images/diagrams/alaska_chart.png "></td>
  350. </tr>
  351. <tr>
  352. <td colspan="1" rowspan="1">
  353. <img style="width: 300px; height: 199px;" alt="trainer"
  354. src="{COURSE_DIR}images/trainer/trainer_points_right.png "></td>
  355. </tr>
  356. <tr>
  357. </tr>
  358. </tbody>
  359. </table>
  360. <p><br>
  361. <br>
  362. </p>
  363. </body>
  364. </html>
  365. ');
  366. INSERT INTO system_template (title, comment, image, content) VALUES
  367. ('TemplateTitleDesc', 'TemplateTitleCheckListDescription', 'description.gif', '
  368. <!DOCTYPE html>
  369. <html>
  370. <head>
  371. {CSS}
  372. </head>
  373. <body>
  374. <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;"
  375. border="0" cellpadding="15" cellspacing="6">
  376. <tbody>
  377. <tr>
  378. <td style="width: 50%; vertical-align: top;">
  379. <img style="width: 48px; height: 49px; float: left;" alt="01" src="{COURSE_DIR}images/small/01.png "
  380. hspace="5"><br>Lorem ipsum dolor sit amet<br><br><br>
  381. <img style="width: 48px; height: 49px; float: left;" alt="02" src="{COURSE_DIR}images/small/02.png "
  382. hspace="5">
  383. <br>Ut enim ad minim veniam<br><br><br>
  384. <img style="width: 48px; height: 49px; float: left;" alt="03" src="{COURSE_DIR}images/small/03.png "
  385. hspace="5">Duis aute irure dolor in reprehenderit<br><br><br>
  386. <img style="width: 48px; height: 49px; float: left;" alt="04" src="{COURSE_DIR}images/small/04.png "
  387. hspace="5">Neque porro quisquam est
  388. </td>
  389. <td style="vertical-align: top; width: 50%; text-align: right;" colspan="1" rowspan="1">
  390. <img style="width: 300px; height: 291px;" alt="Gearbox" src="{COURSE_DIR}images/diagrams/gearbox.jpg "><br>
  391. </td>
  392. </tr>
  393. <tr></tr>
  394. </tbody>
  395. </table>
  396. <p><br>
  397. <br>
  398. </p>
  399. </body>
  400. </html>
  401. ');
  402. INSERT INTO system_template (title, comment, image, content) VALUES
  403. ('TemplateTitleCycle', 'TemplateTitleCycleDescription', 'cyclechart.gif', '
  404. <!DOCTYPE html>
  405. <html>
  406. <head>
  407. {CSS}
  408. <style>
  409. .title {
  410. color: white;
  411. font-weight: bold;
  412. }
  413. </style>
  414. </head>
  415. <body>
  416. <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;"
  417. border="0" cellpadding="8" cellspacing="6">
  418. <tbody>
  419. <tr>
  420. <td style="text-align: center; vertical-align: bottom; height: 10%;" colspan="3" rowspan="1">
  421. <img style="width: 250px; height: 76px;" alt="arrow" src="{COURSE_DIR}images/diagrams/top_arrow.png ">
  422. </td>
  423. </tr>
  424. <tr>
  425. <td style="height: 5%; width: 45%; vertical-align: top; background-color: rgb(153, 153, 153); text-align: center;">
  426. <span class="title">Lorem ipsum</span>
  427. </td>
  428. <td style="height: 5%; width: 10%;"></td>
  429. <td style="height: 5%; vertical-align: top; background-color: rgb(153, 153, 153); text-align: center;">
  430. <span class="title">Sed ut perspiciatis</span>
  431. </td>
  432. </tr>
  433. <tr>
  434. <td style="background-color: rgb(204, 204, 255); width: 45%; vertical-align: top;">
  435. <ul>
  436. <li>dolor sit amet</li>
  437. <li>consectetur adipisicing elit</li>
  438. <li>sed do eiusmod tempor&nbsp;</li>
  439. <li>adipisci velit, sed quia non numquam</li>
  440. <li>eius modi tempora incidunt ut labore et dolore magnam</li>
  441. </ul>
  442. </td>
  443. <td style="width: 10%;"></td>
  444. <td style="background-color: rgb(204, 204, 255); width: 45%; vertical-align: top;">
  445. <ul>
  446. <li>ut enim ad minim veniam</li>
  447. <li>quis nostrud exercitation</li>
  448. <li>ullamco laboris nisi ut</li>
  449. <li> Quis autem vel eum iure reprehenderit qui in ea</li>
  450. <li>voluptate velit esse quam nihil molestiae consequatur,</li>
  451. </ul>
  452. </td>
  453. </tr>
  454. <tr align="center">
  455. <td style="height: 10%; vertical-align: top;" colspan="3" rowspan="1">
  456. <img style="width: 250px; height: 76px;" alt="arrow" src="{COURSE_DIR}images/diagrams/bottom_arrow.png ">&nbsp;&nbsp;
  457. &nbsp; &nbsp; &nbsp;
  458. </td>
  459. </tr>
  460. </tbody>
  461. </table>
  462. <p><br>
  463. <br>
  464. </p>
  465. </body>
  466. </html>
  467. ');
  468. INSERT INTO system_template (title, comment, image, content) VALUES
  469. ('TemplateTitleTimeline', 'TemplateTitleTimelineDescription', 'phasetimeline.gif', '
  470. <!DOCTYPE html>
  471. <html>
  472. <head>
  473. {CSS}
  474. <style>
  475. .title {
  476. font-weight: bold;
  477. text-align: center;
  478. }
  479. </style>
  480. </head>
  481. <body>
  482. <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;"
  483. border="0" cellpadding="8" cellspacing="5">
  484. <tbody>
  485. <tr class="title">
  486. <td style="vertical-align: top; height: 3%; background-color: rgb(224, 224, 224);">Lorem ipsum</td>
  487. <td style="height: 3%;"></td>
  488. <td style="vertical-align: top; height: 3%; background-color: rgb(237, 237, 237);">Perspiciatis</td>
  489. <td style="height: 3%;"></td>
  490. <td style="vertical-align: top; height: 3%; background-color: rgb(245, 245, 245);">Nemo enim</td>
  491. </tr>
  492. <tr>
  493. <td style="vertical-align: top; width: 30%; background-color: rgb(224, 224, 224);">
  494. <ul>
  495. <li>dolor sit amet</li>
  496. <li>consectetur</li>
  497. <li>adipisicing elit</li>
  498. </ul>
  499. <br>
  500. </td>
  501. <td>
  502. <img style="width: 32px; height: 32px;" alt="arrow" src="{COURSE_DIR}images/small/arrow.png ">
  503. </td>
  504. <td style="vertical-align: top; width: 30%; background-color: rgb(237, 237, 237);">
  505. <ul>
  506. <li>ut labore</li>
  507. <li>et dolore</li>
  508. <li>magni dolores</li>
  509. </ul>
  510. </td>
  511. <td>
  512. <img style="width: 32px; height: 32px;" alt="arrow" src="{COURSE_DIR}images/small/arrow.png ">
  513. </td>
  514. <td style="vertical-align: top; background-color: rgb(245, 245, 245); width: 30%;">
  515. <ul>
  516. <li>neque porro</li>
  517. <li>quisquam est</li>
  518. <li>qui dolorem&nbsp;&nbsp;</li>
  519. </ul>
  520. <br><br>
  521. </td>
  522. </tr>
  523. </tbody>
  524. </table>
  525. <p><br>
  526. <br>
  527. </p>
  528. </body>
  529. </html>
  530. ');
  531. INSERT INTO system_template (title, comment, image, content) VALUES
  532. ('TemplateTitleTable', 'TemplateTitleCheckListDescription', 'table.gif', '
  533. <!DOCTYPE html>
  534. <html>
  535. <head>
  536. {CSS}
  537. <style type="text/css">
  538. .title {
  539. font-weight: bold;
  540. text-align: center;
  541. }
  542. .items {
  543. text-align: right;
  544. }
  545. </style>
  546. </head>
  547. <body>
  548. <br/>
  549. <h2>A table</h2>
  550. <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;"
  551. border="1" cellpadding="5" cellspacing="0">
  552. <tbody>
  553. <tr class="title">
  554. <td>City</td>
  555. <td>2005</td>
  556. <td>2006</td>
  557. <td>2007</td>
  558. <td>2008</td>
  559. </tr>
  560. <tr class="items">
  561. <td>Lima</td>
  562. <td>10,40</td>
  563. <td>8,95</td>
  564. <td>9,19</td>
  565. <td>9,76</td>
  566. </tr>
  567. <tr class="items">
  568. <td>New York</td>
  569. <td>18,39</td>
  570. <td>17,52</td>
  571. <td>16,57</td>
  572. <td>16,60</td>
  573. </tr>
  574. <tr class="items">
  575. <td>Barcelona</td>
  576. <td>0,10</td>
  577. <td>0,10</td>
  578. <td>0,05</td>
  579. <td>0,05</td>
  580. </tr>
  581. <tr class="items">
  582. <td>Paris</td>
  583. <td>3,38</td>
  584. <td>3,63</td>
  585. <td>3,63</td>
  586. <td>3,54</td>
  587. </tr>
  588. </tbody>
  589. </table>
  590. <br>
  591. </body>
  592. </html>
  593. ');
  594. INSERT INTO system_template (title, comment, image, content) VALUES
  595. ('TemplateTitleAudio', 'TemplateTitleAudioDescription', 'audiocomment.gif', '
  596. <!DOCTYPE html>
  597. <html>
  598. <head>
  599. {CSS}
  600. </head>
  601. <body>
  602. <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;"
  603. border="0" cellpadding="15" cellspacing="6">
  604. <tbody>
  605. <tr>
  606. <td>
  607. <div align="center">
  608. <span style="text-align: center;">
  609. <embed type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer"
  610. width="300" height="20" bgcolor="#FFFFFF" src="{REL_PATH}main/inc/lib/mediaplayer/player.swf"
  611. allowfullscreen="false" allowscriptaccess="always"
  612. flashvars="file={COURSE_DIR}audio/ListeningComprehension.mp3&amp;autostart=true"></embed>
  613. </span></div>
  614. <br>
  615. </td>
  616. <td colspan="1" rowspan="3"><br>
  617. <img style="width: 300px; height: 341px; float: right;" alt="image"
  618. src="{COURSE_DIR}images/diagrams/head_olfactory_nerve.png "><br></td>
  619. </tr>
  620. <tr>
  621. <td colspan="1" rowspan="1">
  622. <img style="width: 180px; height: 271px;" alt="trainer"
  623. src="{COURSE_DIR}images/trainer/trainer_glasses.png"><br></td>
  624. </tr>
  625. <tr>
  626. </tr>
  627. </tbody>
  628. </table>
  629. <p><br>
  630. <br>
  631. </p>
  632. </body>
  633. </html>
  634. ');
  635. INSERT INTO system_template (title, comment, image, content) VALUES
  636. ('TemplateTitleVideo', 'TemplateTitleVideoDescription', 'video.gif', '
  637. <!DOCTYPE html>
  638. <html>
  639. <head>
  640. {CSS}
  641. </head>
  642. <body>
  643. <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;"
  644. border="0" cellpadding="15" cellspacing="6">
  645. <tbody>
  646. <tr>
  647. <td style="width: 50%; vertical-align: top;">
  648. <div style="text-align: center;" id="player810625-parent">
  649. <div style="border-style: none; overflow: hidden; width: 320px; height: 240px; background-color: rgb(220, 220, 220);">
  650. <div id="player810625">
  651. <div id="player810625-config"
  652. style="overflow: hidden; display: none; visibility: hidden; width: 0px; height: 0px;">
  653. url={COURSE_DIR}video/flv/example.flv width=320 height=240
  654. loop=false play=false downloadable=false fullscreen=true displayNavigation=true
  655. displayDigits=true align=left dispPlaylist=none playlistThumbs=false
  656. </div>
  657. </div>
  658. <embed
  659. type="application/x-shockwave-flash"
  660. src="{REL_PATH}main/inc/lib/mediaplayer/player.swf"
  661. width="320"
  662. height="240"
  663. id="single"
  664. name="single"
  665. quality="high"
  666. allowfullscreen="true"
  667. flashvars="width=320&height=240&autostart=false&file={COURSE_DIR}video/flv/example.flv&repeat=false&image=&showdownload=false&link={COURSE_DIR}video/flv/example.flv&showdigits=true&shownavigation=true&logo="
  668. />
  669. </div>
  670. </div>
  671. </td>
  672. <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%;">
  673. <h3><br>
  674. </h3>
  675. <h3>Lorem ipsum dolor sit amet</h3>
  676. <ul>
  677. <li>consectetur adipisicing elit</li>
  678. <li>sed do eiusmod tempor incididunt</li>
  679. <li>ut labore et dolore magna aliqua</li>
  680. </ul>
  681. <h3>Ut enim ad minim veniam</h3>
  682. <ul>
  683. <li>quis nostrud exercitation ullamco</li>
  684. <li>laboris nisi ut aliquip ex ea commodo consequat</li>
  685. <li>Excepteur sint occaecat cupidatat non proident</li>
  686. </ul>
  687. </td>
  688. </tr>
  689. </tbody>
  690. </table>
  691. <p><br>
  692. <br>
  693. </p>
  694. <style type="text/css">body {
  695. }</style><!-- to fix a strange bug appearing with firefox when editing this template -->
  696. </body>
  697. </html>
  698. ');
  699. INSERT INTO system_template (title, comment, image, content) VALUES
  700. ('TemplateTitleFlash', 'TemplateTitleFlashDescription', 'flash.gif', '
  701. <!DOCTYPE html>
  702. <html>
  703. <head>
  704. {CSS}
  705. </head>
  706. <body>
  707. <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;"
  708. border="0" cellpadding="15" cellspacing="6">
  709. <tbody>
  710. <tr>
  711. <td align="center">
  712. <embed width="700" height="300" type="application/x-shockwave-flash"
  713. pluginspage="http://www.macromedia.com/go/getflashplayer"
  714. src="{COURSE_DIR}flash/SpinEchoSequence.swf" play="true" loop="true" menu="true"></embed>
  715. </span><br/>
  716. </td>
  717. </tr>
  718. </tbody>
  719. </table>
  720. <p><br>
  721. <br>
  722. </p>
  723. </body>
  724. </html>
  725. ');
  726. INSERT INTO user_friend_relation_type (id, title)
  727. VALUES
  728. (1,'SocialUnknow'),
  729. (2,'SocialParent'),
  730. (3,'SocialFriend'),
  731. (4,'SocialGoodFriend'),
  732. (5,'SocialEnemy'),
  733. (6,'SocialDeleted');
  734. INSERT INTO skill (name, icon, description, short_code, access_url_id, updated_at) VALUES ('Root', '', '', 'root', 1, now());
  735. INSERT INTO skill_rel_skill VALUES(1, 1, 0, 0, 0);
  736. INSERT INTO course_type (id, name) VALUES (1, 'All tools');
  737. INSERT INTO course_type (id, name) VALUES (2, 'Entry exam');
  738. INSERT INTO sequence_rule (description) VALUES ('If user completes 70% of an entity or group of items, he will be able to access another entity or group of items');
  739. INSERT INTO sequence_condition (description, mat_op, param, act_true, act_false) VALUES ('<= 100%','<=', 100.0, 2, 0), ('>= 70%','>=', 70.0, 0, '');
  740. INSERT INTO sequence_rule_condition VALUES (1,1,1), (2,1,2);
  741. INSERT INTO sequence_method (description,formula, assign, met_type, act_false) VALUES
  742. ('Add completed item','v#2 + $complete_items;', 2, 'add', ''),
  743. ('Update progress by division', 'v#2 / v#3 * 100;', 1, 'div', ''),
  744. ('Update items count', '$total_items;', 3,'update', ''),
  745. ('Enable success', '1;', 4, 'success', ''),
  746. ('Store success date', '(empty(v#5))? api_get_utc_datetime() : v#5;', 5, 'success', ''),
  747. ('Enable availability', '1;', 6, 'pre', ''),
  748. ('Store availability start date', '(empty(v#7))? api_get_utc_datetime() : v#7;', 7, 'pre', ''),
  749. ('Store availability end date', '(empty($available_end_date))? api_get_utc_datetime($available_end_date) : "0000-00-00 00:00:00";', 8, 'pre', ''),
  750. ('Increase the items count', 'v#3 + $total_items;', 3,'add', ''),
  751. ('Update completed items', '$complete_items;', 2,'update', ''),
  752. ('Update progress', '$complete_items / $total_items * 100;', 1, 'update', '');
  753. INSERT INTO sequence_rule_method VALUES
  754. (1,1,1,1),
  755. (2,1,2,3),
  756. (3,1,3,0),
  757. (4,1,4,0),
  758. (5,1,5,0),
  759. (6,1,6,0),
  760. (7,1,7,0),
  761. (8,1,8,0),
  762. (9,1,9,2),
  763. (10,1,10,0),
  764. (11,1,11,0);
  765. INSERT INTO sequence_variable VALUES
  766. (1, 'Percentile progress', 'advance', 0.0),
  767. (2, 'Completed items', 'complete_items', 0),
  768. (3, 'Items count', 'total_items', 0),
  769. (4, 'Completed', 'success', 0),
  770. (5, 'Completion date', 'success_date', '0000-00-00 00:00:00'),
  771. (6, 'Available', 'available', 0),
  772. (7, 'Availability start date', 'available_start_date', '0000-00-00 00:00:00'),
  773. (8, 'Availability end date', 'available_end_date', '0000-00-00 00:00:00');
  774. INSERT INTO sequence_formula VALUES
  775. (1,1,2),
  776. (2,2,2),
  777. (3,2,3),
  778. (4,2,1),
  779. (5,3,3),
  780. (6,4,4),
  781. (7,5,5),
  782. (8,6,6),
  783. (9,7,7),
  784. (10,8,8),
  785. (11,9,3),
  786. (12,10,2),
  787. (13,11,1);
  788. INSERT INTO sequence_valid VALUES
  789. (1,1,1),
  790. (2,1,2);
  791. INSERT INTO sequence_type_entity VALUES
  792. (1,'Lp', 'Learning Path','c_lp'),
  793. (2,'Quiz', 'Quiz and Tests','c_quiz'),
  794. (3,'LpItem', 'Items of a Learning Path','c_lp_item');
  795. UPDATE user SET username_canonical = username;
  796. INSERT INTO extra_field (extra_field_type, field_type, variable, display_text, visible_to_self, changeable, created_at)
  797. VALUES
  798. (1, 1, 'skype', 'Skype', 1, 1, now()),
  799. (1, 1, 'linkedin_url', 'LinkedInUrl', 1, 1, now());
  800. INSERT INTO access_url_rel_course_category (access_url_id, course_category_id) VALUES (1, 1);
  801. INSERT INTO access_url_rel_course_category (access_url_id, course_category_id) VALUES (1, 2);
  802. INSERT INTO access_url_rel_course_category (access_url_id, course_category_id) VALUES (1, 3);
  803. INSERT INTO extra_field (extra_field_type, field_type, variable, display_text, visible_to_self, changeable, created_at) VALUES (8, 10, 'tags', 'Tags', 1, 1, NOW());
  804. INSERT INTO branch_sync (access_url_id, branch_name, unique_id, ssl_pub_key) VALUES (1, 'localhost', SHA1(UUID()), SHA1(UUID()));