install.sql 32 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533
  1. -- TABLE: entries
  2. CREATE TABLE IF NOT EXISTS `bx_tasks_tasks` (
  3. `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  4. `author` int(11) NOT NULL,
  5. `added` int(11) NOT NULL,
  6. `changed` int(11) NOT NULL,
  7. `published` int(11) NOT NULL,
  8. `thumb` int(11) NOT NULL,
  9. `title` varchar(255) NOT NULL,
  10. `cat` int(11) NOT NULL,
  11. `multicat` text NOT NULL,
  12. `text` mediumtext NOT NULL,
  13. `labels` text NOT NULL,
  14. `views` int(11) NOT NULL default '0',
  15. `rate` float NOT NULL default '0',
  16. `votes` int(11) NOT NULL default '0',
  17. `rrate` float NOT NULL default '0',
  18. `rvotes` int(11) NOT NULL default '0',
  19. `score` int(11) NOT NULL default '0',
  20. `sc_up` int(11) NOT NULL default '0',
  21. `sc_down` int(11) NOT NULL default '0',
  22. `favorites` int(11) NOT NULL default '0',
  23. `comments` int(11) NOT NULL default '0',
  24. `reports` int(11) NOT NULL default '0',
  25. `featured` int(11) NOT NULL default '0',
  26. `due_date` int(11) NOT NULL,
  27. `tasks_list` int(11) NOT NULL,
  28. `completed` tinyint(4) NOT NULL DEFAULT '0',
  29. `expired` tinyint(4) NOT NULL DEFAULT '0',
  30. `allow_view_to` varchar(16) NOT NULL DEFAULT '3',
  31. `disable_comments` tinyint(4) NOT NULL DEFAULT '0',
  32. `status` enum('active','awaiting','failed','hidden') NOT NULL DEFAULT 'active',
  33. `status_admin` enum('active','hidden') NOT NULL DEFAULT 'active',
  34. PRIMARY KEY (`id`),
  35. FULLTEXT KEY `title_text` (`title`,`text`)
  36. );
  37. -- TABLE: task-lists
  38. CREATE TABLE IF NOT EXISTS `bx_tasks_lists` (
  39. `id` int(11) NOT NULL AUTO_INCREMENT,
  40. `context_id` int(11) NOT NULL,
  41. `title` varchar(255) NOT NULL,
  42. PRIMARY KEY (`id`)
  43. );
  44. -- TABLE: assignment
  45. CREATE TABLE IF NOT EXISTS `bx_tasks_assignments` (
  46. `id` int(11) NOT NULL AUTO_INCREMENT,
  47. `initiator` int(11) NOT NULL,
  48. `content` int(11) NOT NULL,
  49. `added` int(10) unsigned NOT NULL,
  50. PRIMARY KEY (`id`),
  51. UNIQUE KEY `initiator` (`initiator`,`content`),
  52. KEY `content` (`content`)
  53. );
  54. -- TABLE: storages & transcoders
  55. CREATE TABLE IF NOT EXISTS `bx_tasks_covers` (
  56. `id` int(11) NOT NULL AUTO_INCREMENT,
  57. `profile_id` int(10) unsigned NOT NULL,
  58. `remote_id` varchar(128) NOT NULL,
  59. `path` varchar(255) NOT NULL,
  60. `file_name` varchar(255) NOT NULL,
  61. `mime_type` varchar(128) NOT NULL,
  62. `ext` varchar(32) NOT NULL,
  63. `size` bigint(20) NOT NULL,
  64. `added` int(11) NOT NULL,
  65. `modified` int(11) NOT NULL,
  66. `private` int(11) NOT NULL,
  67. PRIMARY KEY (`id`),
  68. UNIQUE KEY `remote_id` (`remote_id`)
  69. );
  70. CREATE TABLE IF NOT EXISTS `bx_tasks_files` (
  71. `id` int(11) NOT NULL AUTO_INCREMENT,
  72. `profile_id` int(10) unsigned NOT NULL,
  73. `remote_id` varchar(128) NOT NULL,
  74. `path` varchar(255) NOT NULL,
  75. `file_name` varchar(255) NOT NULL,
  76. `mime_type` varchar(128) NOT NULL,
  77. `ext` varchar(32) NOT NULL,
  78. `size` bigint(20) NOT NULL,
  79. `added` int(11) NOT NULL,
  80. `modified` int(11) NOT NULL,
  81. `private` int(11) NOT NULL,
  82. PRIMARY KEY (`id`),
  83. UNIQUE KEY `remote_id` (`remote_id`)
  84. );
  85. CREATE TABLE IF NOT EXISTS `bx_tasks_photos` (
  86. `id` int(11) NOT NULL AUTO_INCREMENT,
  87. `profile_id` int(10) unsigned NOT NULL,
  88. `remote_id` varchar(128) NOT NULL,
  89. `path` varchar(255) NOT NULL,
  90. `file_name` varchar(255) NOT NULL,
  91. `mime_type` varchar(128) NOT NULL,
  92. `ext` varchar(32) NOT NULL,
  93. `size` bigint(20) NOT NULL,
  94. `added` int(11) NOT NULL,
  95. `modified` int(11) NOT NULL,
  96. `private` int(11) NOT NULL,
  97. PRIMARY KEY (`id`),
  98. UNIQUE KEY `remote_id` (`remote_id`)
  99. );
  100. CREATE TABLE IF NOT EXISTS `bx_tasks_photos_resized` (
  101. `id` int(11) NOT NULL AUTO_INCREMENT,
  102. `profile_id` int(10) unsigned NOT NULL,
  103. `remote_id` varchar(128) NOT NULL,
  104. `path` varchar(255) NOT NULL,
  105. `file_name` varchar(255) NOT NULL,
  106. `mime_type` varchar(128) NOT NULL,
  107. `ext` varchar(32) NOT NULL,
  108. `size` bigint(20) NOT NULL,
  109. `added` int(11) NOT NULL,
  110. `modified` int(11) NOT NULL,
  111. `private` int(11) NOT NULL,
  112. PRIMARY KEY (`id`),
  113. UNIQUE KEY `remote_id` (`remote_id`)
  114. );
  115. CREATE TABLE IF NOT EXISTS `bx_tasks_videos` (
  116. `id` int(11) NOT NULL AUTO_INCREMENT,
  117. `profile_id` int(10) unsigned NOT NULL,
  118. `remote_id` varchar(128) NOT NULL,
  119. `path` varchar(255) NOT NULL,
  120. `file_name` varchar(255) NOT NULL,
  121. `mime_type` varchar(128) NOT NULL,
  122. `ext` varchar(32) NOT NULL,
  123. `size` bigint(20) NOT NULL,
  124. `added` int(11) NOT NULL,
  125. `modified` int(11) NOT NULL,
  126. `private` int(11) NOT NULL,
  127. PRIMARY KEY (`id`),
  128. UNIQUE KEY `remote_id` (`remote_id`)
  129. );
  130. CREATE TABLE IF NOT EXISTS `bx_tasks_videos_resized` (
  131. `id` int(11) NOT NULL AUTO_INCREMENT,
  132. `profile_id` int(10) unsigned NOT NULL,
  133. `remote_id` varchar(128) NOT NULL,
  134. `path` varchar(255) NOT NULL,
  135. `file_name` varchar(255) NOT NULL,
  136. `mime_type` varchar(128) NOT NULL,
  137. `ext` varchar(32) NOT NULL,
  138. `size` bigint(20) NOT NULL,
  139. `added` int(11) NOT NULL,
  140. `modified` int(11) NOT NULL,
  141. `private` int(11) NOT NULL,
  142. PRIMARY KEY (`id`),
  143. UNIQUE KEY `remote_id` (`remote_id`)
  144. );
  145. -- TABLE: comments
  146. CREATE TABLE IF NOT EXISTS `bx_tasks_cmts` (
  147. `cmt_id` int(11) NOT NULL AUTO_INCREMENT,
  148. `cmt_parent_id` int(11) NOT NULL DEFAULT '0',
  149. `cmt_vparent_id` int(11) NOT NULL DEFAULT '0',
  150. `cmt_object_id` int(11) NOT NULL DEFAULT '0',
  151. `cmt_author_id` int(11) NOT NULL DEFAULT '0',
  152. `cmt_level` int(11) NOT NULL DEFAULT '0',
  153. `cmt_text` text NOT NULL,
  154. `cmt_mood` tinyint(4) NOT NULL DEFAULT '0',
  155. `cmt_rate` int(11) NOT NULL DEFAULT '0',
  156. `cmt_rate_count` int(11) NOT NULL DEFAULT '0',
  157. `cmt_time` int(11) unsigned NOT NULL DEFAULT '0',
  158. `cmt_replies` int(11) NOT NULL DEFAULT '0',
  159. PRIMARY KEY (`cmt_id`),
  160. KEY `cmt_object_id` (`cmt_object_id`,`cmt_parent_id`),
  161. FULLTEXT KEY `search_fields` (`cmt_text`)
  162. );
  163. CREATE TABLE IF NOT EXISTS `bx_tasks_cmts_notes` (
  164. `cmt_id` int(11) NOT NULL AUTO_INCREMENT,
  165. `cmt_parent_id` int(11) NOT NULL DEFAULT '0',
  166. `cmt_vparent_id` int(11) NOT NULL DEFAULT '0',
  167. `cmt_object_id` int(11) NOT NULL DEFAULT '0',
  168. `cmt_author_id` int(11) NOT NULL DEFAULT '0',
  169. `cmt_level` int(11) NOT NULL DEFAULT '0',
  170. `cmt_text` text NOT NULL,
  171. `cmt_mood` tinyint(4) NOT NULL DEFAULT '0',
  172. `cmt_rate` int(11) NOT NULL DEFAULT '0',
  173. `cmt_rate_count` int(11) NOT NULL DEFAULT '0',
  174. `cmt_time` int(11) unsigned NOT NULL DEFAULT '0',
  175. `cmt_replies` int(11) NOT NULL DEFAULT '0',
  176. PRIMARY KEY (`cmt_id`),
  177. KEY `cmt_object_id` (`cmt_object_id`,`cmt_parent_id`),
  178. FULLTEXT KEY `search_fields` (`cmt_text`)
  179. );
  180. -- TABLE: votes
  181. CREATE TABLE IF NOT EXISTS `bx_tasks_votes` (
  182. `object_id` int(11) NOT NULL default '0',
  183. `count` int(11) NOT NULL default '0',
  184. `sum` int(11) NOT NULL default '0',
  185. UNIQUE KEY `object_id` (`object_id`)
  186. );
  187. CREATE TABLE IF NOT EXISTS `bx_tasks_votes_track` (
  188. `id` int(11) NOT NULL AUTO_INCREMENT,
  189. `object_id` int(11) NOT NULL default '0',
  190. `author_id` int(11) NOT NULL default '0',
  191. `author_nip` int(11) unsigned NOT NULL default '0',
  192. `value` tinyint(4) NOT NULL default '0',
  193. `date` int(11) NOT NULL default '0',
  194. PRIMARY KEY (`id`),
  195. KEY `vote` (`object_id`, `author_nip`)
  196. );
  197. CREATE TABLE IF NOT EXISTS `bx_tasks_reactions` (
  198. `object_id` int(11) NOT NULL default '0',
  199. `reaction` varchar(32) NOT NULL default '',
  200. `count` int(11) NOT NULL default '0',
  201. `sum` int(11) NOT NULL default '0',
  202. UNIQUE KEY `reaction` (`object_id`, `reaction`)
  203. );
  204. CREATE TABLE IF NOT EXISTS `bx_tasks_reactions_track` (
  205. `id` int(11) NOT NULL AUTO_INCREMENT,
  206. `object_id` int(11) NOT NULL default '0',
  207. `author_id` int(11) NOT NULL default '0',
  208. `author_nip` int(11) unsigned NOT NULL default '0',
  209. `reaction` varchar(32) NOT NULL default '',
  210. `value` tinyint(4) NOT NULL default '0',
  211. `date` int(11) NOT NULL default '0',
  212. PRIMARY KEY (`id`),
  213. KEY `vote` (`object_id`, `author_nip`)
  214. );
  215. -- TABLE: views
  216. CREATE TABLE `bx_tasks_views_track` (
  217. `object_id` int(11) NOT NULL default '0',
  218. `viewer_id` int(11) NOT NULL default '0',
  219. `viewer_nip` int(11) unsigned NOT NULL default '0',
  220. `date` int(11) NOT NULL default '0',
  221. KEY `id` (`object_id`,`viewer_id`,`viewer_nip`)
  222. );
  223. -- TABLE: metas
  224. CREATE TABLE `bx_tasks_meta_keywords` (
  225. `object_id` int(10) unsigned NOT NULL,
  226. `keyword` varchar(255) NOT NULL,
  227. KEY `object_id` (`object_id`),
  228. KEY `keyword` (`keyword`)
  229. );
  230. CREATE TABLE `bx_tasks_meta_mentions` (
  231. `object_id` int(10) unsigned NOT NULL,
  232. `profile_id` int(10) unsigned NOT NULL,
  233. KEY `object_id` (`object_id`),
  234. KEY `profile_id` (`profile_id`)
  235. );
  236. -- TABLE: reports
  237. CREATE TABLE IF NOT EXISTS `bx_tasks_reports` (
  238. `object_id` int(11) NOT NULL default '0',
  239. `count` int(11) NOT NULL default '0',
  240. UNIQUE KEY `object_id` (`object_id`)
  241. );
  242. CREATE TABLE IF NOT EXISTS `bx_tasks_reports_track` (
  243. `id` int(11) NOT NULL AUTO_INCREMENT,
  244. `object_id` int(11) NOT NULL default '0',
  245. `author_id` int(11) NOT NULL default '0',
  246. `author_nip` int(11) unsigned NOT NULL default '0',
  247. `type` varchar(32) NOT NULL default '',
  248. `text` text NOT NULL default '',
  249. `date` int(11) NOT NULL default '0',
  250. PRIMARY KEY (`id`),
  251. KEY `report` (`object_id`, `author_nip`)
  252. );
  253. -- TABLE: favorites
  254. CREATE TABLE `bx_tasks_favorites_track` (
  255. `object_id` int(11) NOT NULL default '0',
  256. `author_id` int(11) NOT NULL default '0',
  257. `date` int(11) NOT NULL default '0',
  258. KEY `id` (`object_id`,`author_id`)
  259. );
  260. -- TABLE: scores
  261. CREATE TABLE IF NOT EXISTS `bx_tasks_scores` (
  262. `object_id` int(11) NOT NULL default '0',
  263. `count_up` int(11) NOT NULL default '0',
  264. `count_down` int(11) NOT NULL default '0',
  265. UNIQUE KEY `object_id` (`object_id`)
  266. );
  267. CREATE TABLE IF NOT EXISTS `bx_tasks_scores_track` (
  268. `id` int(11) NOT NULL AUTO_INCREMENT,
  269. `object_id` int(11) NOT NULL default '0',
  270. `author_id` int(11) NOT NULL default '0',
  271. `author_nip` int(11) unsigned NOT NULL default '0',
  272. `type` varchar(8) NOT NULL default '',
  273. `date` int(11) NOT NULL default '0',
  274. PRIMARY KEY (`id`),
  275. KEY `vote` (`object_id`, `author_nip`)
  276. );
  277. -- STORAGES & TRANSCODERS
  278. SET @sStorageEngine = (SELECT `value` FROM `sys_options` WHERE `name` = 'sys_storage_default');
  279. INSERT INTO `sys_objects_storage` (`object`, `engine`, `params`, `token_life`, `cache_control`, `levels`, `table_files`, `ext_mode`, `ext_allow`, `ext_deny`, `quota_size`, `current_size`, `quota_number`, `current_number`, `max_file_size`, `ts`) VALUES
  280. ('bx_tasks_covers', @sStorageEngine, '', 360, 2592000, 3, 'bx_tasks_covers', 'allow-deny', 'jpg,jpeg,jpe,gif,png', '', 0, 0, 0, 0, 0, 0),
  281. ('bx_tasks_photos', @sStorageEngine, '', 360, 2592000, 3, 'bx_tasks_photos', 'allow-deny', 'jpg,jpeg,jpe,gif,png', '', 0, 0, 0, 0, 0, 0),
  282. ('bx_tasks_photos_resized', @sStorageEngine, '', 360, 2592000, 3, 'bx_tasks_photos_resized', 'allow-deny', 'jpg,jpeg,jpe,gif,png', '', 0, 0, 0, 0, 0, 0),
  283. ('bx_tasks_videos', @sStorageEngine, '', 360, 2592000, 3, 'bx_tasks_videos', 'allow-deny', 'avi,flv,mpg,mpeg,wmv,mp4,m4v,mov,qt,divx,xvid,3gp,3g2,webm,mkv,ogv,ogg,rm,rmvb,asf,drc', '', 0, 0, 0, 0, 0, 0),
  284. ('bx_tasks_videos_resized', @sStorageEngine, '', 360, 2592000, 3, 'bx_tasks_videos_resized', 'allow-deny', 'jpg,jpeg,jpe,gif,png,avi,flv,mpg,mpeg,wmv,mp4,m4v,mov,qt,divx,xvid,3gp,3g2,webm,mkv,ogv,ogg,rm,rmvb,asf,drc', '', 0, 0, 0, 0, 0, 0),
  285. ('bx_tasks_files', @sStorageEngine, '', 360, 2592000, 3, 'bx_tasks_files', 'deny-allow', '', 'action,apk,app,bat,bin,cmd,com,command,cpl,csh,exe,gadget,inf,ins,inx,ipa,isu,job,jse,ksh,lnk,msc,msi,msp,mst,osx,out,paf,pif,prg,ps1,reg,rgs,run,sct,shb,shs,u3p,vb,vbe,vbs,vbscript,workflow,ws,wsf', 0, 0, 0, 0, 0, 0);
  286. INSERT INTO `sys_objects_transcoder` (`object`, `storage_object`, `source_type`, `source_params`, `private`, `atime_tracking`, `atime_pruning`, `ts`, `override_class_name`, `override_class_file`) VALUES
  287. ('bx_tasks_preview', 'bx_tasks_photos_resized', 'Storage', 'a:1:{s:6:"object";s:15:"bx_tasks_covers";}', 'no', '1', '2592000', '0', '', ''),
  288. ('bx_tasks_gallery', 'bx_tasks_photos_resized', 'Storage', 'a:1:{s:6:"object";s:15:"bx_tasks_covers";}', 'no', '1', '2592000', '0', '', ''),
  289. ('bx_tasks_cover', 'bx_tasks_photos_resized', 'Storage', 'a:1:{s:6:"object";s:15:"bx_tasks_covers";}', 'no', '1', '2592000', '0', '', ''),
  290. ('bx_tasks_preview_photos', 'bx_tasks_photos_resized', 'Storage', 'a:1:{s:6:"object";s:15:"bx_tasks_photos";}', 'no', '1', '2592000', '0', '', ''),
  291. ('bx_tasks_gallery_photos', 'bx_tasks_photos_resized', 'Storage', 'a:1:{s:6:"object";s:15:"bx_tasks_photos";}', 'no', '1', '2592000', '0', '', ''),
  292. ('bx_tasks_videos_poster', 'bx_tasks_videos_resized', 'Storage', 'a:1:{s:6:"object";s:15:"bx_tasks_videos";}', 'no', '0', '0', '0', 'BxDolTranscoderVideo', ''),
  293. ('bx_tasks_videos_poster_preview', 'bx_tasks_videos_resized', 'Storage', 'a:1:{s:6:"object";s:15:"bx_tasks_videos";}', 'no', '0', '0', '0', 'BxDolTranscoderVideo', ''),
  294. ('bx_tasks_videos_mp4', 'bx_tasks_videos_resized', 'Storage', 'a:1:{s:6:"object";s:15:"bx_tasks_videos";}', 'no', '0', '0', '0', 'BxDolTranscoderVideo', ''),
  295. ('bx_tasks_videos_mp4_hd', 'bx_tasks_videos_resized', 'Storage', 'a:1:{s:6:"object";s:15:"bx_tasks_videos";}', 'no', '0', '0', '0', 'BxDolTranscoderVideo', ''),
  296. ('bx_tasks_preview_files', 'bx_tasks_photos_resized', 'Storage', 'a:1:{s:6:"object";s:14:"bx_tasks_files";}', 'no', '1', '2592000', '0', '', ''),
  297. ('bx_tasks_gallery_files', 'bx_tasks_photos_resized', 'Storage', 'a:1:{s:6:"object";s:14:"bx_tasks_files";}', 'no', '1', '2592000', '0', '', '');
  298. INSERT INTO `sys_transcoder_filters` (`transcoder_object`, `filter`, `filter_params`, `order`) VALUES
  299. ('bx_tasks_preview', 'Resize', 'a:3:{s:1:"w";s:3:"300";s:1:"h";s:3:"200";s:11:"crop_resize";s:1:"1";}', '0'),
  300. ('bx_tasks_gallery', 'Resize', 'a:1:{s:1:"w";s:3:"500";}', '0'),
  301. ('bx_tasks_cover', 'Resize', 'a:1:{s:1:"w";s:4:"2000";}', '0'),
  302. ('bx_tasks_preview_photos', 'Resize', 'a:3:{s:1:"w";s:3:"300";s:1:"h";s:3:"200";s:11:"crop_resize";s:1:"1";}', '0'),
  303. ('bx_tasks_gallery_photos', 'Resize', 'a:1:{s:1:"w";s:4:"2000";}', '0'),
  304. ('bx_tasks_videos_poster_preview', 'Resize', 'a:3:{s:1:"w";s:3:"300";s:1:"h";s:3:"200";s:13:"square_resize";s:1:"1";}', 10),
  305. ('bx_tasks_videos_poster_preview', 'Poster', 'a:2:{s:1:"h";s:3:"480";s:10:"force_type";s:3:"jpg";}', 0),
  306. ('bx_tasks_videos_poster', 'Poster', 'a:2:{s:1:"h";s:3:"318";s:10:"force_type";s:3:"jpg";}', 0),
  307. ('bx_tasks_videos_mp4', 'Mp4', 'a:2:{s:1:"h";s:3:"318";s:10:"force_type";s:3:"mp4";}', 0),
  308. ('bx_tasks_videos_mp4_hd', 'Mp4', 'a:3:{s:1:"h";s:3:"720";s:13:"video_bitrate";s:4:"1536";s:10:"force_type";s:3:"mp4";}', 0),
  309. ('bx_tasks_preview_files', 'Resize', 'a:3:{s:1:"w";s:3:"300";s:1:"h";s:3:"200";s:11:"crop_resize";s:1:"1";}', '0'),
  310. ('bx_tasks_gallery_files', 'Resize', 'a:1:{s:1:"w";s:3:"500";}', '0');
  311. -- FORMS: entry (task)
  312. INSERT INTO `sys_objects_form`(`object`, `module`, `title`, `action`, `form_attrs`, `table`, `key`, `uri`, `uri_title`, `submit_name`, `params`, `deletable`, `active`, `override_class_name`, `override_class_file`) VALUES
  313. ('bx_tasks', 'bx_tasks', '_bx_tasks_form_entry', '', 'a:1:{s:7:"enctype";s:19:"multipart/form-data";}', 'bx_tasks_tasks', 'id', '', '', 'a:2:{i:0;s:9:"do_submit";i:1;s:10:"do_publish";}', '', 0, 1, 'BxTasksFormEntry', 'modules/boonex/tasks/classes/BxTasksFormEntry.php');
  314. INSERT INTO `sys_form_displays`(`object`, `display_name`, `module`, `view_mode`, `title`) VALUES
  315. ('bx_tasks', 'bx_tasks_entry_add', 'bx_tasks', 0, '_bx_tasks_form_entry_display_add'),
  316. ('bx_tasks', 'bx_tasks_entry_delete', 'bx_tasks', 0, '_bx_tasks_form_entry_display_delete'),
  317. ('bx_tasks', 'bx_tasks_entry_edit', 'bx_tasks', 0, '_bx_tasks_form_entry_display_edit'),
  318. ('bx_tasks', 'bx_tasks_entry_view', 'bx_tasks', 1, '_bx_tasks_form_entry_display_view');
  319. INSERT INTO `sys_form_inputs`(`object`, `module`, `name`, `value`, `values`, `checked`, `type`, `caption_system`, `caption`, `info`, `required`, `collapsed`, `html`, `attrs`, `attrs_tr`, `attrs_wrapper`, `checker_func`, `checker_params`, `checker_error`, `db_pass`, `db_params`, `editable`, `deletable`) VALUES
  320. ('bx_tasks', 'bx_tasks', 'allow_view_to', '', '', 0, 'custom', '_bx_tasks_form_entry_input_sys_allow_view_to', '_bx_tasks_form_entry_input_allow_view_to', '', 1, 0, 0, '', '', '', '', '', '', '', '', 1, 0),
  321. ('bx_tasks', 'bx_tasks', 'delete_confirm', 1, '', 0, 'checkbox', '_bx_tasks_form_entry_input_sys_delete_confirm', '_bx_tasks_form_entry_input_delete_confirm', '_bx_tasks_form_entry_input_delete_confirm_info', 1, 0, 0, '', '', '', 'Avail', '', '_bx_tasks_form_entry_input_delete_confirm_error', '', '', 1, 0),
  322. ('bx_tasks', 'bx_tasks', 'do_publish', '_bx_tasks_form_entry_input_do_publish', '', 0, 'submit', '_bx_tasks_form_entry_input_sys_do_publish', '', '', 0, 0, 0, '', '', '', '', '', '', '', '', 1, 0),
  323. ('bx_tasks', 'bx_tasks', 'do_submit', '_bx_tasks_form_entry_input_do_submit', '', 0, 'submit', '_bx_tasks_form_entry_input_sys_do_submit', '', '', 0, 0, 0, '', '', '', '', '', '', '', '', 1, 0),
  324. ('bx_tasks', 'bx_tasks', 'do_cancel', '_bx_tasks_form_entry_input_do_cancel', '', 0, 'button', '_bx_tasks_form_entry_input_sys_do_cancel', '', '', 0, 0, 0, 'a:2:{s:7:"onclick";s:45:"$(''.bx-popup-applied:visible'').dolPopupHide()";s:5:"class";s:22:"bx-def-margin-sec-left";}', '', '', '', '', '', '', '', 1, 0),
  325. ('bx_tasks', 'bx_tasks', 'controls', '', 'do_publish,do_cancel', 0, 'input_set', '', '', '', 0, 0, 0, '', '', '', '', '', '', '', '', 1, 0),
  326. ('bx_tasks', 'bx_tasks', 'covers', 'a:1:{i:0;s:14:"bx_tasks_html5";}', 'a:2:{s:15:"bx_tasks_simple";s:26:"_sys_uploader_simple_title";s:14:"bx_tasks_html5";s:25:"_sys_uploader_html5_title";}', 0, 'files', '_bx_tasks_form_entry_input_sys_covers', '_bx_tasks_form_entry_input_covers', '', 0, 0, 0, '', '', '', '', '', '', '', '', 1, 0),
  327. ('bx_tasks', 'bx_tasks', 'pictures', 'a:1:{i:0;s:21:"bx_tasks_photos_html5";}', 'a:2:{s:22:"bx_tasks_photos_simple";s:26:"_sys_uploader_simple_title";s:21:"bx_tasks_photos_html5";s:25:"_sys_uploader_html5_title";}', 0, 'files', '_bx_tasks_form_entry_input_sys_pictures', '_bx_tasks_form_entry_input_pictures', '', 0, 0, 0, '', '', '', '', '', '', '', '', 1, 0),
  328. ('bx_tasks', 'bx_tasks', 'videos', 'a:1:{i:0;s:21:"bx_tasks_videos_html5";}', 'a:2:{s:22:"bx_tasks_videos_simple";s:26:"_sys_uploader_simple_title";s:21:"bx_tasks_videos_html5";s:25:"_sys_uploader_html5_title";}', 0, 'files', '_bx_tasks_form_entry_input_sys_videos', '_bx_tasks_form_entry_input_videos', '', 0, 0, 0, '', '', '', '', '', '', '', '', 1, 0),
  329. ('bx_tasks', 'bx_tasks', 'files', 'a:1:{i:0;s:20:"bx_tasks_files_html5";}', 'a:2:{s:21:"bx_tasks_files_simple";s:26:"_sys_uploader_simple_title";s:20:"bx_tasks_files_html5";s:25:"_sys_uploader_html5_title";}', 0, 'files', '_bx_tasks_form_entry_input_sys_files', '_bx_tasks_form_entry_input_files', '', 0, 0, 0, '', '', '', '', '', '', '', '', 1, 0),
  330. ('bx_tasks', 'bx_tasks', 'text', '', '', 0, 'textarea', '_bx_tasks_form_entry_input_sys_text', '_bx_tasks_form_entry_input_text', '', 0, 0, 2, '', '', '', '', '', '', 'XssHtml', '', 1, 0),
  331. ('bx_tasks', 'bx_tasks', 'title', '', '', 0, 'text', '_bx_tasks_form_entry_input_sys_title', '_bx_tasks_form_entry_input_title', '', 1, 0, 0, '', '', '', 'Avail', '', '_bx_tasks_form_entry_input_title_err', 'Xss', '', 1, 0),
  332. ('bx_tasks', 'bx_tasks', 'cat', '', '#!bx_tasks_cats', 0, 'select', '_bx_tasks_form_entry_input_sys_cat', '_bx_tasks_form_entry_input_cat', '', 1, 0, 0, '', '', '', 'avail', '', '_bx_tasks_form_entry_input_cat_err', 'Xss', '', 1, 0),
  333. ('bx_tasks', 'bx_tasks', 'multicat', '', '', 0, 'custom', '_bx_tasks_form_entry_input_sys_multicat', '_bx_tasks_form_entry_input_multicat', '', 1, 0, 0, '', '', '', 'avail', '', '_bx_tasks_form_entry_input_multicat_err', 'Xss', '', 1, 0),
  334. ('bx_tasks', 'bx_tasks', 'added', '', '', 0, 'datetime', '_bx_tasks_form_entry_input_sys_date_added', '_bx_tasks_form_entry_input_date_added', '', 0, 0, 0, '', '', '', '', '', '', '', '', 1, 0),
  335. ('bx_tasks', 'bx_tasks', 'changed', '', '', 0, 'datetime', '_bx_tasks_form_entry_input_sys_date_changed', '_bx_tasks_form_entry_input_date_changed', '', 0, 0, 0, '', '', '', '', '', '', '', '', 1, 0),
  336. ('bx_tasks', 'bx_tasks', 'published', '', '', 0, 'datetime', '_bx_tasks_form_entry_input_sys_date_published', '_bx_tasks_form_entry_input_date_published', '_bx_tasks_form_entry_input_date_published_info', 0, 0, 0, '', '', '', '', '', '', 'DateTimeTs', '', 1, 0),
  337. ('bx_tasks', 'bx_tasks', 'initial_members', '', '', 0, 'custom', '_bx_tasks_form_profile_input_sys_initial_members', '_bx_tasks_form_profile_input_initial_members', '', 0, 0, 0, '', '', '', '', '', '', '', '', 1, 1),
  338. ('bx_tasks', 'bx_tasks', 'due_date', '', '', 0, 'datetime', '_bx_tasks_form_entry_input_sys_date_due_date', '_bx_tasks_form_entry_input_date_due_date', '', 0, 0, 0, '', '', '', '', '', '', 'DateTimeTs', '', 1, 0),
  339. ('bx_tasks', 'bx_tasks', 'attachments', '', '', 0, 'custom', '_bx_tasks_form_entry_input_sys_attachments', '', '', 0, 0, 0, '', '', '', '', '', '', '', '', 1, 0),
  340. ('bx_tasks', 'bx_tasks', 'labels', '', '', 0, 'custom', '_sys_form_input_sys_labels', '_sys_form_input_labels', '', 0, 0, 0, '', '', '', '', '', '', '', '', 1, 0),
  341. ('bx_tasks', 'bx_tasks', 'anonymous', '', '', 0, 'switcher', '_sys_form_input_sys_anonymous', '_sys_form_input_anonymous', '', 0, 0, 0, '', '', '', '', '', '', '', '', 1, 0),
  342. ('bx_tasks', 'bx_tasks', 'disable_comments', '1', '', 0, 'switcher', '_bx_tasks_form_entry_input_sys_disable_comments', '_bx_tasks_form_entry_input_disable_comments', '', 0, 0, 0, '', '', '', '', '', '', 'Int', '', 1, 0);
  343. INSERT INTO `sys_form_display_inputs`(`display_name`, `input_name`, `visible_for_levels`, `active`, `order`) VALUES
  344. ('bx_tasks_entry_add', 'delete_confirm', 2147483647, 0, 1),
  345. ('bx_tasks_entry_add', 'title', 2147483647, 1, 2),
  346. ('bx_tasks_entry_add', 'text', 2147483647, 1, 3),
  347. ('bx_tasks_entry_add', 'initial_members', 192, 1, 4),
  348. ('bx_tasks_entry_add', 'due_date', 192, 1, 5),
  349. ('bx_tasks_entry_add', 'controls', 2147483647, 1, 6),
  350. ('bx_tasks_entry_add', 'do_publish', 2147483647, 1, 7),
  351. ('bx_tasks_entry_add', 'do_cancel', 2147483647, 1, 8),
  352. ('bx_tasks_entry_delete', 'delete_confirm', 2147483647, 1, 1),
  353. ('bx_tasks_entry_delete', 'do_submit', 2147483647, 1, 2),
  354. ('bx_tasks_entry_edit', 'do_publish', 2147483647, 0, 1),
  355. ('bx_tasks_entry_edit', 'delete_confirm', 2147483647, 0, 2),
  356. ('bx_tasks_entry_edit', 'title', 2147483647, 1, 3),
  357. ('bx_tasks_entry_edit', 'text', 2147483647, 1, 4),
  358. ('bx_tasks_entry_edit', 'attachments', 2147483647, 1, 5),
  359. ('bx_tasks_entry_edit', 'pictures', 2147483647, 1, 6),
  360. ('bx_tasks_entry_edit', 'videos', 2147483647, 1, 7),
  361. ('bx_tasks_entry_edit', 'files', 2147483647, 1, 8),
  362. ('bx_tasks_entry_edit', 'allow_view_to', 2147483647, 1, 9),
  363. ('bx_tasks_entry_edit', 'tasks_list', 192, 1, 10),
  364. ('bx_tasks_entry_edit', 'initial_members', 192, 1, 11),
  365. ('bx_tasks_entry_edit', 'due_date', 192, 1, 12),
  366. ('bx_tasks_entry_edit', 'do_submit', 2147483647, 1, 13),
  367. ('bx_tasks_entry_view', 'cat', 2147483647, 1, 1),
  368. ('bx_tasks_entry_view', 'added', 2147483647, 1, 2),
  369. ('bx_tasks_entry_view', 'changed', 2147483647, 1, 3),
  370. ('bx_tasks_entry_view', 'due_date', 192, 1, 4),
  371. ('bx_tasks_entry_view', 'published', 192, 1, 5);
  372. -- FORMS: entry (tasklist)
  373. INSERT INTO `sys_objects_form`(`object`, `module`, `title`, `action`, `form_attrs`, `table`, `key`, `uri`, `uri_title`, `submit_name`, `params`, `deletable`, `active`, `override_class_name`, `override_class_file`) VALUES
  374. ('bx_tasks_list', 'bx_tasks', '_bx_tasks_form_list_entry', '', 'a:1:{s:7:"enctype";s:19:"multipart/form-data";}', 'bx_tasks_lists', 'id', '', '', 'do_submit', '', 0, 1, 'BxTasksFormListEntry', 'modules/boonex/tasks/classes/BxTasksFormListEntry.php');
  375. INSERT INTO `sys_form_displays`(`object`, `display_name`, `module`, `view_mode`, `title`) VALUES
  376. ('bx_tasks_list', 'bx_tasks_list_entry_add', 'bx_tasks', 0, '_bx_tasks_form_list_entry_display_add'),
  377. ('bx_tasks_list', 'bx_tasks_list_entry_edit', 'bx_tasks', 0, '_bx_tasks_form_list_entry_display_edit');
  378. INSERT INTO `sys_form_inputs`(`object`, `module`, `name`, `value`, `values`, `checked`, `type`, `caption_system`, `caption`, `info`, `required`, `collapsed`, `html`, `attrs`, `attrs_tr`, `attrs_wrapper`, `checker_func`, `checker_params`, `checker_error`, `db_pass`, `db_params`, `editable`, `deletable`) VALUES
  379. ('bx_tasks_list', 'bx_tasks', 'do_submit', '_bx_tasks_form_list_entry_input_do_submit', '', 0, 'submit', '_bx_tasks_form_list_entry_input_sys_do_submit', '', '', 0, 0, 0, '', '', '', '', '', '', '', '', 1, 0),
  380. ('bx_tasks_list', 'bx_tasks', 'title', '', '', 0, 'text', '_bx_tasks_form_list_entry_input_sys_title', '_bx_tasks_form_list_entry_input_title', '', 1, 0, 0, '', '', '', 'Avail', '', '_bx_tasks_form_list_entry_input_title_err', 'Xss', '', 1, 0);
  381. INSERT INTO `sys_form_display_inputs`(`display_name`, `input_name`, `visible_for_levels`, `active`, `order`) VALUES
  382. ('bx_tasks_list_entry_add', 'title', 2147483647, 1, 1),
  383. ('bx_tasks_list_entry_add', 'do_submit', 2147483647, 1, 2),
  384. ('bx_tasks_list_entry_edit', 'title', 2147483647, 1, 1),
  385. ('bx_tasks_list_entry_edit', 'do_submit', 2147483647, 1, 2);
  386. -- PRE-VALUES
  387. INSERT INTO `sys_form_pre_lists`(`key`, `title`, `module`, `use_for_sets`) VALUES
  388. ('bx_tasks_cats', '_bx_tasks_pre_lists_cats', 'bx_tasks', '0');
  389. INSERT INTO `sys_form_pre_values`(`Key`, `Value`, `Order`, `LKey`, `LKey2`) VALUES
  390. ('bx_tasks_cats', '', 0, '_sys_please_select', ''),
  391. ('bx_tasks_cats', '1', 1, '_bx_tasks_cat_Animals_Pets', ''),
  392. ('bx_tasks_cats', '2', 2, '_bx_tasks_cat_Architecture', ''),
  393. ('bx_tasks_cats', '3', 3, '_bx_tasks_cat_Art', ''),
  394. ('bx_tasks_cats', '4', 4, '_bx_tasks_cat_Cars_Motorcycles', ''),
  395. ('bx_tasks_cats', '5', 5, '_bx_tasks_cat_Celebrities', ''),
  396. ('bx_tasks_cats', '6', 6, '_bx_tasks_cat_Design', ''),
  397. ('bx_tasks_cats', '7', 7, '_bx_tasks_cat_DIY_Crafts', ''),
  398. ('bx_tasks_cats', '8', 8, '_bx_tasks_cat_Education', ''),
  399. ('bx_tasks_cats', '9', 9, '_bx_tasks_cat_Film_Music_Books', ''),
  400. ('bx_tasks_cats', '10', 10, '_bx_tasks_cat_Food_Drink', ''),
  401. ('bx_tasks_cats', '11', 11, '_bx_tasks_cat_Gardening', ''),
  402. ('bx_tasks_cats', '12', 12, '_bx_tasks_cat_Geek', ''),
  403. ('bx_tasks_cats', '13', 13, '_bx_tasks_cat_Hair_Beauty', ''),
  404. ('bx_tasks_cats', '14', 14, '_bx_tasks_cat_Health_Fitness', ''),
  405. ('bx_tasks_cats', '15', 15, '_bx_tasks_cat_History', ''),
  406. ('bx_tasks_cats', '16', 16, '_bx_tasks_cat_Holidays_Events', ''),
  407. ('bx_tasks_cats', '17', 17, '_bx_tasks_cat_Home_Decor', ''),
  408. ('bx_tasks_cats', '18', 18, '_bx_tasks_cat_Humor', ''),
  409. ('bx_tasks_cats', '19', 19, '_bx_tasks_cat_Illustrations_Posters', ''),
  410. ('bx_tasks_cats', '20', 20, '_bx_tasks_cat_Kids_Parenting', ''),
  411. ('bx_tasks_cats', '21', 21, '_bx_tasks_cat_Mens_Fashion', ''),
  412. ('bx_tasks_cats', '22', 22, '_bx_tasks_cat_Outdoors', ''),
  413. ('bx_tasks_cats', '23', 23, '_bx_tasks_cat_Photography', ''),
  414. ('bx_tasks_cats', '24', 24, '_bx_tasks_cat_Products', ''),
  415. ('bx_tasks_cats', '25', 25, '_bx_tasks_cat_Quotes', ''),
  416. ('bx_tasks_cats', '26', 26, '_bx_tasks_cat_Science_Nature', ''),
  417. ('bx_tasks_cats', '27', 27, '_bx_tasks_cat_Sports', ''),
  418. ('bx_tasks_cats', '28', 28, '_bx_tasks_cat_Tattoos', ''),
  419. ('bx_tasks_cats', '29', 29, '_bx_tasks_cat_Technology', ''),
  420. ('bx_tasks_cats', '30', 30, '_bx_tasks_cat_Travel', ''),
  421. ('bx_tasks_cats', '31', 31, '_bx_tasks_cat_Weddings', ''),
  422. ('bx_tasks_cats', '32', 32, '_bx_tasks_cat_Womens_Fashion', '');
  423. -- COMMENTS
  424. INSERT INTO `sys_objects_cmts` (`Name`, `Module`, `Table`, `CharsPostMin`, `CharsPostMax`, `CharsDisplayMax`, `Html`, `PerView`, `PerViewReplies`, `BrowseType`, `IsBrowseSwitch`, `PostFormPosition`, `NumberOfLevels`, `IsDisplaySwitch`, `IsRatable`, `ViewingThreshold`, `IsOn`, `RootStylePrefix`, `BaseUrl`, `ObjectVote`, `TriggerTable`, `TriggerFieldId`, `TriggerFieldAuthor`, `TriggerFieldTitle`, `TriggerFieldComments`, `ClassName`, `ClassFile`) VALUES
  425. ('bx_tasks', 'bx_tasks', 'bx_tasks_cmts', 1, 5000, 1000, 3, 5, 3, 'tail', 1, 'bottom', 1, 1, 1, -3, 1, 'cmt', 'page.php?i=view-task&id={object_id}', '', 'bx_tasks_tasks', 'id', 'author', 'title', 'comments', '', ''),
  426. ('bx_tasks_notes', 'bx_tasks', 'bx_tasks_cmts_notes', 1, 5000, 1000, 3, 5, 3, 'tail', 1, 'bottom', 1, 1, 1, -3, 1, 'cmt', 'page.php?i=view-task&id={object_id}', '', 'bx_tasks_tasks', 'id', 'author', 'title', 'comments', '', '');
  427. -- VOTES
  428. INSERT INTO `sys_objects_vote` (`Name`, `TableMain`, `TableTrack`, `PostTimeout`, `MinValue`, `MaxValue`, `IsUndo`, `IsOn`, `TriggerTable`, `TriggerFieldId`, `TriggerFieldAuthor`, `TriggerFieldRate`, `TriggerFieldRateCount`, `ClassName`, `ClassFile`) VALUES
  429. ('bx_tasks', 'bx_tasks_votes', 'bx_tasks_votes_track', '604800', '1', '1', '0', '1', 'bx_tasks_tasks', 'id', 'author', 'rate', 'votes', '', ''),
  430. ('bx_tasks_reactions', 'bx_tasks_reactions', 'bx_tasks_reactions_track', '604800', '1', '1', '1', '1', 'bx_tasks_tasks', 'id', 'author', 'rrate', 'rvotes', 'BxTemplVoteReactions', '');
  431. -- SCORES
  432. INSERT INTO `sys_objects_score` (`name`, `module`, `table_main`, `table_track`, `post_timeout`, `is_on`, `trigger_table`, `trigger_field_id`, `trigger_field_author`, `trigger_field_score`, `trigger_field_cup`, `trigger_field_cdown`, `class_name`, `class_file`) VALUES
  433. ('bx_tasks', 'bx_tasks', 'bx_tasks_scores', 'bx_tasks_scores_track', '604800', '0', 'bx_tasks_tasks', 'id', 'author', 'score', 'sc_up', 'sc_down', '', '');
  434. -- REPORTS
  435. INSERT INTO `sys_objects_report` (`name`, `table_main`, `table_track`, `is_on`, `base_url`, `object_comment`, `trigger_table`, `trigger_field_id`, `trigger_field_author`, `trigger_field_count`, `class_name`, `class_file`) VALUES
  436. ('bx_tasks', 'bx_tasks_reports', 'bx_tasks_reports_track', '1', 'page.php?i=view-task&id={object_id}', 'bx_tasks_notes', 'bx_tasks_tasks', 'id', 'author', 'reports', '', '');
  437. -- VIEWS
  438. INSERT INTO `sys_objects_view` (`name`, `table_track`, `period`, `is_on`, `trigger_table`, `trigger_field_id`, `trigger_field_author`, `trigger_field_count`, `class_name`, `class_file`) VALUES
  439. ('bx_tasks', 'bx_tasks_views_track', '86400', '1', 'bx_tasks_tasks', 'id', 'author', 'views', '', '');
  440. -- FAFORITES
  441. INSERT INTO `sys_objects_favorite` (`name`, `table_track`, `is_on`, `is_undo`, `is_public`, `base_url`, `trigger_table`, `trigger_field_id`, `trigger_field_author`, `trigger_field_count`, `class_name`, `class_file`) VALUES
  442. ('bx_tasks', 'bx_tasks_favorites_track', '1', '1', '1', 'page.php?i=view-task&id={object_id}', 'bx_tasks_tasks', 'id', 'author', 'favorites', '', '');
  443. -- FEATURED
  444. INSERT INTO `sys_objects_feature` (`name`, `is_on`, `is_undo`, `base_url`, `trigger_table`, `trigger_field_id`, `trigger_field_author`, `trigger_field_flag`, `class_name`, `class_file`) VALUES
  445. ('bx_tasks', '1', '1', 'page.php?i=view-task&id={object_id}', 'bx_tasks_tasks', 'id', 'author', 'featured', '', '');
  446. -- CONTENT INFO
  447. INSERT INTO `sys_objects_content_info` (`name`, `title`, `alert_unit`, `alert_action_add`, `alert_action_update`, `alert_action_delete`, `class_name`, `class_file`) VALUES
  448. ('bx_tasks', '_bx_tasks', 'bx_tasks', 'added', 'edited', 'deleted', '', ''),
  449. ('bx_tasks_cmts', '_bx_tasks_cmts', 'bx_tasks', 'commentPost', 'commentUpdated', 'commentRemoved', 'BxDolContentInfoCmts', '');
  450. INSERT INTO `sys_content_info_grids` (`object`, `grid_object`, `grid_field_id`, `condition`, `selection`) VALUES
  451. ('bx_tasks', 'bx_tasks_administration', 'id', '', ''),
  452. ('bx_tasks', 'bx_tasks_common', 'id', '', '');
  453. -- SEARCH EXTENDED
  454. INSERT INTO `sys_objects_search_extended` (`object`, `object_content_info`, `module`, `title`, `active`, `class_name`, `class_file`) VALUES
  455. ('bx_tasks', 'bx_tasks', 'bx_tasks', '_bx_tasks_search_extended', 1, '', ''),
  456. ('bx_tasks_cmts', 'bx_tasks_cmts', 'bx_tasks', '_bx_tasks_search_extended_cmts', 1, 'BxTemplSearchExtendedCmts', '');
  457. -- STUDIO: page & widget
  458. INSERT INTO `sys_std_pages`(`index`, `name`, `header`, `caption`, `icon`) VALUES
  459. (3, 'bx_tasks', '_bx_tasks', '_bx_tasks', 'bx_tasks@modules/boonex/tasks/|std-icon.svg');
  460. SET @iPageId = LAST_INSERT_ID();
  461. SET @iParentPageId = (SELECT `id` FROM `sys_std_pages` WHERE `name` = 'home');
  462. SET @iParentPageOrder = (SELECT MAX(`order`) FROM `sys_std_pages_widgets` WHERE `page_id` = @iParentPageId);
  463. INSERT INTO `sys_std_widgets` (`page_id`, `module`, `url`, `click`, `icon`, `caption`, `cnt_notices`, `cnt_actions`) VALUES
  464. (@iPageId, 'bx_tasks', '{url_studio}module.php?name=bx_tasks', '', 'bx_tasks@modules/boonex/tasks/|std-icon.svg', '_bx_tasks', '', 'a:4:{s:6:"module";s:6:"system";s:6:"method";s:11:"get_actions";s:6:"params";a:0:{}s:5:"class";s:18:"TemplStudioModules";}');
  465. INSERT INTO `sys_std_pages_widgets` (`page_id`, `widget_id`, `order`) VALUES
  466. (@iParentPageId, LAST_INSERT_ID(), IF(ISNULL(@iParentPageOrder), 1, @iParentPageOrder + 1));