|
|
@@ -4,10 +4,9 @@ CREATE TABLE IF NOT EXISTS `bx_directory_entries` (
|
|
|
`author` int(11) NOT NULL,
|
|
|
`added` int(11) NOT NULL,
|
|
|
`changed` int(11) NOT NULL,
|
|
|
- `published` int(11) NOT NULL,
|
|
|
`thumb` int(11) NOT NULL,
|
|
|
`title` varchar(255) NOT NULL,
|
|
|
- `cat` int(11) NOT NULL,
|
|
|
+ `category` int(11) NOT NULL,
|
|
|
`text` mediumtext NOT NULL,
|
|
|
`views` int(11) NOT NULL default '0',
|
|
|
`rate` float NOT NULL default '0',
|
|
|
@@ -22,13 +21,127 @@ CREATE TABLE IF NOT EXISTS `bx_directory_entries` (
|
|
|
`reports` int(11) NOT NULL default '0',
|
|
|
`featured` int(11) NOT NULL default '0',
|
|
|
`allow_view_to` int(11) NOT NULL DEFAULT '3',
|
|
|
- `disable_comments` tinyint(4) NOT NULL DEFAULT '0',
|
|
|
`status` enum('active','awaiting','hidden') NOT NULL DEFAULT 'active',
|
|
|
`status_admin` enum('active','hidden') NOT NULL DEFAULT 'active',
|
|
|
PRIMARY KEY (`id`),
|
|
|
FULLTEXT KEY `title_text` (`title`,`text`)
|
|
|
);
|
|
|
|
|
|
+-- TABLE: types of categories
|
|
|
+CREATE TABLE IF NOT EXISTS `bx_directory_categories_types` (
|
|
|
+ `id` int(11) unsigned NOT NULL AUTO_INCREMENT,
|
|
|
+ `name` varchar(64) NOT NULL DEFAULT '',
|
|
|
+ `title` varchar(255) NOT NULL DEFAULT '',
|
|
|
+ `display_add` varchar(255) NOT NULL DEFAULT '',
|
|
|
+ `display_edit` varchar(255) NOT NULL DEFAULT '',
|
|
|
+ `display_view` varchar(255) NOT NULL DEFAULT '',
|
|
|
+ PRIMARY KEY (`id`),
|
|
|
+ UNIQUE KEY `name` (`name`)
|
|
|
+);
|
|
|
+
|
|
|
+INSERT INTO `bx_directory_categories_types` (`id`, `name`, `title`, `display_add`, `display_edit`, `display_view`) VALUES
|
|
|
+(1, 'price', '_bx_directory_cat_type_price', 'bx_directory_entry_price_add', 'bx_directory_entry_price_edit', 'bx_directory_entry_price_view'),
|
|
|
+(2, 'price_year', '_bx_directory_cat_type_price_year', 'bx_directory_entry_price_year_add', 'bx_directory_entry_price_year_edit', 'bx_directory_entry_price_year_view');
|
|
|
+
|
|
|
+-- TABLE: categories
|
|
|
+CREATE TABLE IF NOT EXISTS `bx_directory_categories` (
|
|
|
+ `id` int(11) unsigned NOT NULL AUTO_INCREMENT,
|
|
|
+ `parent_id` int(11) unsigned NOT NULL DEFAULT '0',
|
|
|
+ `level` tinyint(11) unsigned NOT NULL DEFAULT '0',
|
|
|
+ `type` int(11) NOT NULL DEFAULT '0',
|
|
|
+ `name` varchar(64) NOT NULL DEFAULT '',
|
|
|
+ `title` varchar(255) NOT NULL DEFAULT '',
|
|
|
+ `text` text NOT NULL,
|
|
|
+ `icon` varchar(255) NOT NULL DEFAULT '',
|
|
|
+ `active` tinyint(4) NOT NULL DEFAULT '1',
|
|
|
+ `order` int(11) NOT NULL DEFAULT '0',
|
|
|
+ PRIMARY KEY (`id`),
|
|
|
+ UNIQUE KEY `name` (`name`),
|
|
|
+ FULLTEXT KEY `title_text` (`title`,`text`)
|
|
|
+);
|
|
|
+
|
|
|
+INSERT INTO `bx_directory_categories` (`parent_id`, `level`, `type`, `name`, `title`, `text`, `icon`, `active`, `order`) VALUES
|
|
|
+(0, 0, 1, 'job', '_bx_directory_cat_title_job', '', 'user-md', 1, 1);
|
|
|
+SET @iParentId = LAST_INSERT_ID();
|
|
|
+
|
|
|
+INSERT INTO `bx_directory_categories` (`parent_id`, `level`, `type`, `name`, `title`, `text`, `icon`, `active`, `order`) VALUES
|
|
|
+(@iParentId, 1, 1, 'job_finance', '_bx_directory_cat_title_accounting_finance', '', '', 1, 1),
|
|
|
+(@iParentId, 1, 1, 'job_education', '_bx_directory_cat_title_education_nonprofit', '', '', 1, 2),
|
|
|
+(@iParentId, 1, 1, 'job_legal', '_bx_directory_cat_title_government_legal', '', '', 1, 3),
|
|
|
+(@iParentId, 1, 1, 'job_programming', '_bx_directory_cat_title_programming_web_design', '', '', 1, 4),
|
|
|
+(@iParentId, 1, 1, 'job_other', '_bx_directory_cat_title_other_jobs', '', '', 1, 5);
|
|
|
+
|
|
|
+INSERT INTO `bx_directory_categories` (`parent_id`, `level`, `type`, `name`, `title`, `text`, `icon`, `active`, `order`) VALUES
|
|
|
+(0, 0, 2, 'music', '_bx_directory_cat_title_music', '', 'music', 1, 2);
|
|
|
+SET @iParentId = LAST_INSERT_ID();
|
|
|
+
|
|
|
+INSERT INTO `bx_directory_categories` (`parent_id`, `level`, `type`, `name`, `title`, `text`, `icon`, `active`, `order`) VALUES
|
|
|
+(@iParentId, 1, 2, 'music_isale', '_bx_directory_cat_title_instrument_sale', '', '', 1, 1),
|
|
|
+(@iParentId, 1, 2, 'music_iwanted', '_bx_directory_cat_title_instrument_wanted', '', '', 1, 2),
|
|
|
+(@iParentId, 1, 2, 'music_other', '_bx_directory_cat_title_other', '', '', 1, 3);
|
|
|
+
|
|
|
+INSERT INTO `bx_directory_categories` (`parent_id`, `level`, `type`, `name`, `title`, `text`, `icon`, `active`, `order`) VALUES
|
|
|
+(0, 0, 1, 'housing', '_bx_directory_cat_title_housing', '', 'home', 1, 3);
|
|
|
+SET @iParentId = LAST_INSERT_ID();
|
|
|
+
|
|
|
+INSERT INTO `bx_directory_categories` (`parent_id`, `level`, `type`, `name`, `title`, `text`, `icon`, `active`, `order`) VALUES
|
|
|
+(@iParentId, 1, 1, 'housing_apartments', '_bx_directory_cat_title_apartments_housing', '', '', 1, 1),
|
|
|
+(@iParentId, 1, 1, 'housing_office', '_bx_directory_cat_title_office_commercial', '', '', 1, 2),
|
|
|
+(@iParentId, 1, 1, 'housing_re_sale', '_bx_directory_cat_title_real_estate_sale', '', '', 1, 3),
|
|
|
+(@iParentId, 1, 1, 'housing_roommate', '_bx_directory_cat_title_roommate', '', '', 1, 4),
|
|
|
+(@iParentId, 1, 1, 'housing_temp_rental', '_bx_directory_cat_title_temporary_rental', '', '', 1, 5);
|
|
|
+
|
|
|
+INSERT INTO `bx_directory_categories` (`parent_id`, `level`, `type`, `name`, `title`, `text`, `icon`, `active`, `order`) VALUES
|
|
|
+(0, 0, 1, 'service', '_bx_directory_cat_title_service', '', 'wrench', 1, 4);
|
|
|
+SET @iParentId = LAST_INSERT_ID();
|
|
|
+
|
|
|
+INSERT INTO `bx_directory_categories` (`parent_id`, `level`, `type`, `name`, `title`, `text`, `icon`, `active`, `order`) VALUES
|
|
|
+(@iParentId, 1, 1, 'service_automotive', '_bx_directory_cat_title_automotive', '', '', 1, 1),
|
|
|
+(@iParentId, 1, 1, 'service_educational', '_bx_directory_cat_title_educational', '', '', 1, 2),
|
|
|
+(@iParentId, 1, 1, 'service_financial', '_bx_directory_cat_title_financial', '', '', 1, 3),
|
|
|
+(@iParentId, 1, 1, 'service_labor', '_bx_directory_cat_title_labor_move', '', '', 1, 4),
|
|
|
+(@iParentId, 1, 1, 'service_legal', '_bx_directory_cat_title_legal', '', '', 1, 5);
|
|
|
+
|
|
|
+INSERT INTO `bx_directory_categories` (`parent_id`, `level`, `type`, `name`, `title`, `text`, `icon`, `active`, `order`) VALUES
|
|
|
+(0, 0, 1, 'casting', '_bx_directory_cat_title_casting', '', 'eye', 1, 5);
|
|
|
+SET @iParentId = LAST_INSERT_ID();
|
|
|
+
|
|
|
+INSERT INTO `bx_directory_categories` (`parent_id`, `level`, `type`, `name`, `title`, `text`, `icon`, `active`, `order`) VALUES
|
|
|
+(@iParentId, 1, 1, 'casting_acting', '_bx_directory_cat_title_acting', '', '', 1, 1),
|
|
|
+(@iParentId, 1, 1, 'casting_dance', '_bx_directory_cat_title_dance', '', '', 1, 2),
|
|
|
+(@iParentId, 1, 1, 'casting_modeling', '_bx_directory_cat_title_modeling', '', '', 1, 3),
|
|
|
+(@iParentId, 1, 1, 'casting_musician', '_bx_directory_cat_title_musician', '', '', 1, 4),
|
|
|
+(@iParentId, 1, 1, 'casting_rshow', '_bx_directory_cat_title_reality_show', '', '', 1, 5);
|
|
|
+
|
|
|
+INSERT INTO `bx_directory_categories` (`parent_id`, `level`, `type`, `name`, `title`, `text`, `icon`, `active`, `order`) VALUES
|
|
|
+(0, 0, 2, 'personal', '_bx_directory_cat_title_personal', '', 'user', 1, 6);
|
|
|
+SET @iParentId = LAST_INSERT_ID();
|
|
|
+
|
|
|
+INSERT INTO `bx_directory_categories` (`parent_id`, `level`, `type`, `name`, `title`, `text`, `icon`, `active`, `order`) VALUES
|
|
|
+(@iParentId, 1, 2, 'personal_mw', '_bx_directory_cat_title_men_women', '', '', 1, 1),
|
|
|
+(@iParentId, 1, 2, 'personal_wm', '_bx_directory_cat_title_women_men', '', '', 1, 2),
|
|
|
+(@iParentId, 1, 2, 'personal_missed', '_bx_directory_cat_title_missed_connection', '', '', 1, 3),
|
|
|
+(@iParentId, 1, 2, 'personal_other', '_bx_directory_cat_title_personal_other', '', '', 1, 4);
|
|
|
+
|
|
|
+INSERT INTO `bx_directory_categories` (`parent_id`, `level`, `type`, `name`, `title`, `text`, `icon`, `active`, `order`) VALUES
|
|
|
+(0, 0, 2, 'sale', '_bx_directory_cat_title_sale', '', 'shopping-cart', 1, 7);
|
|
|
+SET @iParentId = LAST_INSERT_ID();
|
|
|
+
|
|
|
+INSERT INTO `bx_directory_categories` (`parent_id`, `level`, `type`, `name`, `title`, `text`, `icon`, `active`, `order`) VALUES
|
|
|
+(@iParentId, 1, 2, 'sale_barter', '_bx_directory_cat_title_barter', '', '', 1, 1),
|
|
|
+(@iParentId, 1, 2, 'sale_clothing', '_bx_directory_cat_title_clothing', '', '', 1, 1),
|
|
|
+(@iParentId, 1, 2, 'sale_collectible', '_bx_directory_cat_title_collectible', '', '', 1, 1),
|
|
|
+(@iParentId, 1, 2, 'sale_misc', '_bx_directory_cat_title_miscellaneous', '', '', 1, 1);
|
|
|
+
|
|
|
+INSERT INTO `bx_directory_categories` (`parent_id`, `level`, `type`, `name`, `title`, `text`, `icon`, `active`, `order`) VALUES
|
|
|
+(0, 0, 2, 'sale_car', '_bx_directory_cat_title_sale_car', '', 'truck', 1, 8);
|
|
|
+SET @iParentId = LAST_INSERT_ID();
|
|
|
+
|
|
|
+INSERT INTO `bx_directory_categories` (`parent_id`, `level`, `type`, `name`, `title`, `text`, `icon`, `active`, `order`) VALUES
|
|
|
+(@iParentId, 1, 2, 'sale_car_part', '_bx_directory_cat_title_auto_part', '', '', 1, 1),
|
|
|
+(@iParentId, 1, 2, 'sale_car_auto', '_bx_directory_cat_title_auto_truck', '', '', 1, 2),
|
|
|
+(@iParentId, 1, 2, 'sale_car_motorcycle', '_bx_directory_cat_title_motorcycle', '', '', 1, 3);
|
|
|
+
|
|
|
-- TABLE: storages & transcoders
|
|
|
CREATE TABLE IF NOT EXISTS `bx_directory_covers` (
|
|
|
`id` int(11) NOT NULL AUTO_INCREMENT,
|
|
|
@@ -355,20 +468,71 @@ INSERT INTO `sys_transcoder_filters` (`transcoder_object`, `filter`, `filter_par
|
|
|
('bx_directory_gallery_files', 'Resize', 'a:1:{s:1:"w";s:3:"500";}', '0');
|
|
|
|
|
|
|
|
|
--- FORMS: entry (post)
|
|
|
+-- FORMS: category
|
|
|
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
|
|
|
-('bx_directory', 'bx_directory', '_bx_directory_form_entry', '', 'a:1:{s:7:"enctype";s:19:"multipart/form-data";}', 'bx_directory_entries', 'id', '', '', 'a:2:{i:0;s:9:"do_submit";i:1;s:10:"do_publish";}', '', 0, 1, 'BxDirFormEntry', 'modules/boonex/directory/classes/BxDirFormEntry.php');
|
|
|
+('bx_directory_category', 'bx_directory', '_bx_directory_form_category', '', 'a:1:{s:7:"enctype";s:19:"multipart/form-data";}', 'bx_directory_categories', 'id', '', '', 'a:1:{i:0;s:9:"do_submit";}', '', 0, 1, 'BxDirFormCategory', 'modules/boonex/directory/classes/BxDirFormCategory.php');
|
|
|
+
|
|
|
+INSERT INTO `sys_form_displays`(`object`, `display_name`, `module`, `view_mode`, `title`) VALUES
|
|
|
+('bx_directory_category', 'bx_directory_category_add', 'bx_directory', 0, '_bx_directory_form_category_display_add'),
|
|
|
+('bx_directory_category', 'bx_directory_category_delete', 'bx_directory', 0, '_bx_directory_form_category_display_delete'),
|
|
|
+('bx_directory_category', 'bx_directory_category_edit', 'bx_directory', 0, '_bx_directory_form_category_display_edit');
|
|
|
+
|
|
|
+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
|
|
|
+('bx_directory_category', 'bx_directory', 'delete_confirm', 1, '', 0, 'checkbox', '_bx_directory_form_category_input_sys_delete_confirm', '_bx_directory_form_category_input_delete_confirm', '_bx_directory_form_category_input_delete_confirm_info', 1, 0, 0, '', '', '', 'Avail', '', '_bx_directory_form_category_input_delete_confirm_error', '', '', 1, 0),
|
|
|
+('bx_directory_category', 'bx_directory', 'parent_id', '', '', 0, 'select', '_bx_directory_form_category_input_sys_parent_id', '_bx_directory_form_category_input_parent_id', '', 0, 0, 0, '', '', '', '', '', '', 'Int', '', 1, 0),
|
|
|
+('bx_directory_category', 'bx_directory', 'title', '', '', 0, 'text_translatable', '_bx_directory_form_category_input_sys_title', '_bx_directory_form_category_input_title', '', 1, 0, 0, '', '', '', 'AvailTranslatable', 'a:1:{i:0;s:5:"title";}', '_bx_directory_form_category_input_title_err', 'Xss', '', 1, 0),
|
|
|
+('bx_directory_category', 'bx_directory', 'text', '', '', 0, 'textarea_translatable', '_bx_directory_form_category_input_sys_text', '_bx_directory_form_category_input_text', '', 0, 0, 2, '', '', '', '', '', '', 'XssHtml', '', 1, 0),
|
|
|
+('bx_directory_category', 'bx_directory', 'type', '', '', 0, 'select', '_bx_directory_form_category_input_sys_type', '_bx_directory_form_category_input_type', '_bx_directory_form_category_input_type_info', 1, 0, 0, '', '', '', 'Avail', '', '_bx_directory_form_category_input_type_err', 'Int', '', 0, 0),
|
|
|
+('bx_directory_category', 'bx_directory', 'type_clone', 'on', '', 0, 'switcher', '_bx_directory_form_category_input_sys_type_clone', '_bx_directory_form_category_input_type_clone', '', 0, 0, 0, 'a:1:{s:8:"onchange";s:33:"oBxDirStudio.onChangeClone(this);";}', '', '', '', '', '', '', '', 0, 0),
|
|
|
+('bx_directory_category', 'bx_directory', 'type_title', '', '', 0, 'text_translatable', '_bx_directory_form_category_input_sys_type_title', '_bx_directory_form_category_input_type_title', '', 0, 0, 0, 'a:1:{s:8:"disabled";s:8:"disabled";}', 'a:1:{s:5:"style";s:13:"display:none;";}', '', '', '', '', '', '', 0, 0),
|
|
|
+('bx_directory_category', 'bx_directory', 'icon', '', '', 0, 'text', '_bx_directory_form_category_input_sys_icon', '_bx_directory_form_category_input_icon', '', 0, 0, 0, '', '', '', '', '', '', 'Xss', '', 1, 0),
|
|
|
+('bx_directory_category', 'bx_directory', 'controls', '', 'do_submit,do_cancel', 0, 'input_set', '', '', '', 0, 0, 0, '', '', '', '', '', '', '', '', 0, 0),
|
|
|
+('bx_directory_category', 'bx_directory', 'do_submit', '_bx_directory_form_category_input_do_submit', '', 0, 'submit', '_bx_directory_form_category_input_sys_do_submit', '', '', 0, 0, 0, '', '', '', '', '', '', '', '', 1, 0),
|
|
|
+('bx_directory_category', 'bx_directory', 'do_cancel', '_bx_directory_form_category_input_do_cancel', '', 0, 'button', '_bx_directory_form_category_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);
|
|
|
+
|
|
|
+INSERT INTO `sys_form_display_inputs`(`display_name`, `input_name`, `visible_for_levels`, `active`, `order`) VALUES
|
|
|
+('bx_directory_category_add', 'parent_id', 2147483647, 1, 1),
|
|
|
+('bx_directory_category_add', 'type', 2147483647, 1, 2),
|
|
|
+('bx_directory_category_add', 'type_clone', 2147483647, 1, 3),
|
|
|
+('bx_directory_category_add', 'type_title', 2147483647, 1, 4),
|
|
|
+('bx_directory_category_add', 'title', 2147483647, 1, 5),
|
|
|
+('bx_directory_category_add', 'text', 2147483647, 1, 6),
|
|
|
+('bx_directory_category_add', 'icon', 2147483647, 1, 7),
|
|
|
+('bx_directory_category_add', 'controls', 2147483647, 1, 8),
|
|
|
+('bx_directory_category_add', 'do_submit', 2147483647, 1, 9),
|
|
|
+('bx_directory_category_add', 'do_cancel', 2147483647, 1, 10),
|
|
|
+
|
|
|
+('bx_directory_category_delete', 'delete_confirm', 2147483647, 1, 1),
|
|
|
+('bx_directory_category_delete', 'do_submit', 2147483647, 1, 2),
|
|
|
+
|
|
|
+('bx_directory_category_edit', 'parent_id', 2147483647, 1, 1),
|
|
|
+('bx_directory_category_edit', 'title', 2147483647, 1, 2),
|
|
|
+('bx_directory_category_edit', 'text', 2147483647, 1, 3),
|
|
|
+('bx_directory_category_edit', 'icon', 2147483647, 1, 4),
|
|
|
+('bx_directory_category_edit', 'controls', 2147483647, 1, 5),
|
|
|
+('bx_directory_category_edit', 'do_submit', 2147483647, 1, 6),
|
|
|
+('bx_directory_category_edit', 'do_cancel', 2147483647, 1, 7);
|
|
|
+
|
|
|
+
|
|
|
+-- FORMS: entry (ad)
|
|
|
+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
|
|
|
+('bx_directory', 'bx_directory', '_bx_directory_form_entry', '', 'a:1:{s:7:"enctype";s:19:"multipart/form-data";}', 'bx_directory_entries', 'id', '', '', 'a:1:{i:0;s:9:"do_submit";}', '', 0, 1, 'BxDirFormEntry', 'modules/boonex/directory/classes/BxDirFormEntry.php');
|
|
|
|
|
|
INSERT INTO `sys_form_displays`(`object`, `display_name`, `module`, `view_mode`, `title`) VALUES
|
|
|
('bx_directory', 'bx_directory_entry_add', 'bx_directory', 0, '_bx_directory_form_entry_display_add'),
|
|
|
('bx_directory', 'bx_directory_entry_delete', 'bx_directory', 0, '_bx_directory_form_entry_display_delete'),
|
|
|
-('bx_directory', 'bx_directory_entry_edit', 'bx_directory', 0, '_bx_directory_form_entry_display_edit'),
|
|
|
-('bx_directory', 'bx_directory_entry_view', 'bx_directory', 1, '_bx_directory_form_entry_display_view');
|
|
|
+
|
|
|
+('bx_directory', 'bx_directory_entry_price_add', 'bx_directory', 0, '_bx_directory_form_entry_price_display_add'),
|
|
|
+('bx_directory', 'bx_directory_entry_price_edit', 'bx_directory', 0, '_bx_directory_form_entry_price_display_edit'),
|
|
|
+('bx_directory', 'bx_directory_entry_price_view', 'bx_directory', 1, '_bx_directory_form_entry_price_display_view'),
|
|
|
+
|
|
|
+('bx_directory', 'bx_directory_entry_price_year_add', 'bx_directory', 0, '_bx_directory_form_entry_price_year_display_add'),
|
|
|
+('bx_directory', 'bx_directory_entry_price_year_edit', 'bx_directory', 0, '_bx_directory_form_entry_price_year_display_edit'),
|
|
|
+('bx_directory', 'bx_directory_entry_price_year_view', 'bx_directory', 1, '_bx_directory_form_entry_price_year_display_view');
|
|
|
|
|
|
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
|
|
|
('bx_directory', 'bx_directory', 'allow_view_to', '', '', 0, 'custom', '_bx_directory_form_entry_input_sys_allow_view_to', '_bx_directory_form_entry_input_allow_view_to', '', 1, 0, 0, '', '', '', '', '', '', '', '', 1, 0),
|
|
|
('bx_directory', 'bx_directory', 'delete_confirm', 1, '', 0, 'checkbox', '_bx_directory_form_entry_input_sys_delete_confirm', '_bx_directory_form_entry_input_delete_confirm', '_bx_directory_form_entry_input_delete_confirm_info', 1, 0, 0, '', '', '', 'Avail', '', '_bx_directory_form_entry_input_delete_confirm_error', '', '', 1, 0),
|
|
|
-('bx_directory', 'bx_directory', 'do_publish', '_bx_directory_form_entry_input_do_publish', '', 0, 'submit', '_bx_directory_form_entry_input_sys_do_publish', '', '', 0, 0, 0, '', '', '', '', '', '', '', '', 1, 0),
|
|
|
('bx_directory', 'bx_directory', 'do_submit', '_bx_directory_form_entry_input_do_submit', '', 0, 'submit', '_bx_directory_form_entry_input_sys_do_submit', '', '', 0, 0, 0, '', '', '', '', '', '', '', '', 1, 0),
|
|
|
('bx_directory', 'bx_directory', 'location', '', '', 0, 'location', '_sys_form_input_sys_location', '_sys_form_input_location', '', 0, 0, 0, '', '', '', '', '', '', '', '', 1, 0),
|
|
|
('bx_directory', 'bx_directory', 'covers', 'a:1:{i:0;s:18:"bx_directory_html5";}', 'a:2:{s:19:"bx_directory_simple";s:26:"_sys_uploader_simple_title";s:18:"bx_directory_html5";s:25:"_sys_uploader_html5_title";}', 0, 'files', '_bx_directory_form_entry_input_sys_covers', '_bx_directory_form_entry_input_covers', '', 0, 0, 0, '', '', '', '', '', '', '', '', 1, 0),
|
|
|
@@ -378,58 +542,85 @@ INSERT INTO `sys_form_inputs`(`object`, `module`, `name`, `value`, `values`, `ch
|
|
|
('bx_directory', 'bx_directory', 'polls', '', '', 0, 'custom', '_bx_directory_form_entry_input_sys_polls', '', '', 0, 0, 0, '', '', '', '', '', '', '', '', 1, 0),
|
|
|
('bx_directory', 'bx_directory', 'text', '', '', 0, 'textarea', '_bx_directory_form_entry_input_sys_text', '_bx_directory_form_entry_input_text', '', 1, 0, 2, '', '', '', 'Avail', '', '_bx_directory_form_entry_input_text_err', 'XssHtml', '', 1, 0),
|
|
|
('bx_directory', 'bx_directory', 'title', '', '', 0, 'text', '_bx_directory_form_entry_input_sys_title', '_bx_directory_form_entry_input_title', '', 1, 0, 0, '', '', '', 'Avail', '', '_bx_directory_form_entry_input_title_err', 'Xss', '', 1, 0),
|
|
|
-('bx_directory', 'bx_directory', 'cat', '', '#!bx_directory_cats', 0, 'select', '_bx_directory_form_entry_input_sys_cat', '_bx_directory_form_entry_input_cat', '', 1, 0, 0, '', '', '', 'avail', '', '_bx_directory_form_entry_input_cat_err', 'Xss', '', 1, 0),
|
|
|
+('bx_directory', 'bx_directory', 'price', '', '', 0, 'text', '_bx_directory_form_entry_input_sys_price', '_bx_directory_form_entry_input_price', '', 0, 0, 0, '', '', '', '', '', '', 'Xss', '', 1, 0),
|
|
|
+('bx_directory', 'bx_directory', 'year', '', '', 0, 'text', '_bx_directory_form_entry_input_sys_year', '_bx_directory_form_entry_input_year', '', 0, 0, 0, '', '', '', '', '', '', 'Xss', '', 1, 0),
|
|
|
+('bx_directory', 'bx_directory', 'category', '', '', 0, 'select', '_bx_directory_form_entry_input_sys_category', '_bx_directory_form_entry_input_category', '', 1, 0, 0, '', '', '', 'avail', '', '_bx_directory_form_entry_input_category_err', 'Xss', '', 1, 0),
|
|
|
('bx_directory', 'bx_directory', 'added', '', '', 0, 'datetime', '_bx_directory_form_entry_input_sys_date_added', '_bx_directory_form_entry_input_date_added', '', 0, 0, 0, '', '', '', '', '', '', '', '', 1, 0),
|
|
|
('bx_directory', 'bx_directory', 'changed', '', '', 0, 'datetime', '_bx_directory_form_entry_input_sys_date_changed', '_bx_directory_form_entry_input_date_changed', '', 0, 0, 0, '', '', '', '', '', '', '', '', 1, 0),
|
|
|
-('bx_directory', 'bx_directory', 'published', '', '', 0, 'datetime', '_bx_directory_form_entry_input_sys_date_published', '_bx_directory_form_entry_input_date_published', '_bx_directory_form_entry_input_date_published_info', 0, 0, 0, '', '', '', '', '', '', 'DateTimeUtc', '', 1, 0),
|
|
|
('bx_directory', 'bx_directory', 'attachments', '', '', 0, 'custom', '_bx_directory_form_entry_input_sys_attachments', '', '', 0, 0, 0, '', '', '', '', '', '', '', '', 1, 0),
|
|
|
-('bx_directory', 'bx_directory', 'labels', '', '', 0, 'custom', '_sys_form_input_sys_labels', '_sys_form_input_labels', '', 0, 0, 0, '', '', '', '', '', '', '', '', 1, 0),
|
|
|
-('bx_directory', 'bx_directory', 'anonymous', '', '', 0, 'switcher', '_sys_form_input_sys_anonymous', '_sys_form_input_anonymous', '', 0, 0, 0, '', '', '', '', '', '', '', '', 1, 0),
|
|
|
-('bx_directory', 'bx_directory', 'disable_comments', '1', '', 0, 'switcher', '_bx_directory_form_entry_input_sys_disable_comments', '_bx_directory_form_entry_input_disable_comments', '', 0, 0, 0, '', '', '', '', '', '', 'Int', '', 1, 0);
|
|
|
-
|
|
|
-
|
|
|
+('bx_directory', 'bx_directory', 'labels', '', '', 0, 'custom', '_sys_form_input_sys_labels', '_sys_form_input_labels', '', 0, 0, 0, '', '', '', '', '', '', '', '', 1, 0);
|
|
|
|
|
|
INSERT INTO `sys_form_display_inputs`(`display_name`, `input_name`, `visible_for_levels`, `active`, `order`) VALUES
|
|
|
-('bx_directory_entry_add', 'delete_confirm', 2147483647, 0, 1),
|
|
|
-('bx_directory_entry_add', 'title', 2147483647, 1, 2),
|
|
|
-('bx_directory_entry_add', 'cat', 2147483647, 1, 3),
|
|
|
-('bx_directory_entry_add', 'text', 2147483647, 1, 4),
|
|
|
-('bx_directory_entry_add', 'attachments', 2147483647, 1, 5),
|
|
|
-('bx_directory_entry_add', 'pictures', 2147483647, 1, 6),
|
|
|
-('bx_directory_entry_add', 'videos', 2147483647, 1, 7),
|
|
|
-('bx_directory_entry_add', 'files', 2147483647, 1, 8),
|
|
|
-('bx_directory_entry_add', 'polls', 2147483647, 1, 9),
|
|
|
-('bx_directory_entry_add', 'covers', 2147483647, 1, 10),
|
|
|
-('bx_directory_entry_add', 'allow_view_to', 2147483647, 1, 11),
|
|
|
-('bx_directory_entry_add', 'location', 2147483647, 1, 12),
|
|
|
-('bx_directory_entry_add', 'published', 192, 1, 13),
|
|
|
-('bx_directory_entry_add', 'disable_comments', 192, 1, 14),
|
|
|
-('bx_directory_entry_add', 'do_publish', 2147483647, 1, 15),
|
|
|
+('bx_directory_entry_add', 'category', 2147483647, 1, 1),
|
|
|
+('bx_directory_entry_add', 'do_submit', 2147483647, 1, 2),
|
|
|
|
|
|
('bx_directory_entry_delete', 'delete_confirm', 2147483647, 1, 1),
|
|
|
('bx_directory_entry_delete', 'do_submit', 2147483647, 1, 2),
|
|
|
|
|
|
-('bx_directory_entry_edit', 'do_publish', 2147483647, 0, 1),
|
|
|
-('bx_directory_entry_edit', 'delete_confirm', 2147483647, 0, 2),
|
|
|
-('bx_directory_entry_edit', 'title', 2147483647, 1, 3),
|
|
|
-('bx_directory_entry_edit', 'cat', 2147483647, 1, 4),
|
|
|
-('bx_directory_entry_edit', 'text', 2147483647, 1, 5),
|
|
|
-('bx_directory_entry_edit', 'attachments', 2147483647, 1, 6),
|
|
|
-('bx_directory_entry_edit', 'pictures', 2147483647, 1, 7),
|
|
|
-('bx_directory_entry_edit', 'videos', 2147483647, 1, 8),
|
|
|
-('bx_directory_entry_edit', 'files', 2147483647, 1, 9),
|
|
|
-('bx_directory_entry_edit', 'polls', 2147483647, 1, 10),
|
|
|
-('bx_directory_entry_edit', 'covers', 2147483647, 1, 11),
|
|
|
-('bx_directory_entry_edit', 'allow_view_to', 2147483647, 1, 12),
|
|
|
-('bx_directory_entry_edit', 'location', 2147483647, 1, 13),
|
|
|
-('bx_directory_entry_edit', 'disable_comments', 192, 1, 14),
|
|
|
-('bx_directory_entry_edit', 'published', 192, 1, 15),
|
|
|
-('bx_directory_entry_edit', 'do_submit', 2147483647, 1, 16),
|
|
|
-
|
|
|
-('bx_directory_entry_view', 'cat', 2147483647, 1, 1),
|
|
|
-('bx_directory_entry_view', 'added', 2147483647, 1, 2),
|
|
|
-('bx_directory_entry_view', 'changed', 2147483647, 1, 3),
|
|
|
-('bx_directory_entry_view', 'published', 192, 1, 4);
|
|
|
+('bx_directory_entry_price_add', 'title', 2147483647, 1, 1),
|
|
|
+('bx_directory_entry_price_add', 'price', 2147483647, 1, 2),
|
|
|
+('bx_directory_entry_price_add', 'text', 2147483647, 1, 3),
|
|
|
+('bx_directory_entry_price_add', 'attachments', 2147483647, 1, 4),
|
|
|
+('bx_directory_entry_price_add', 'pictures', 2147483647, 1, 5),
|
|
|
+('bx_directory_entry_price_add', 'videos', 2147483647, 1, 6),
|
|
|
+('bx_directory_entry_price_add', 'files', 2147483647, 1, 7),
|
|
|
+('bx_directory_entry_price_add', 'polls', 2147483647, 1, 8),
|
|
|
+('bx_directory_entry_price_add', 'covers', 2147483647, 1, 9),
|
|
|
+('bx_directory_entry_price_add', 'allow_view_to', 2147483647, 1, 10),
|
|
|
+('bx_directory_entry_price_add', 'location', 2147483647, 1, 11),
|
|
|
+('bx_directory_entry_price_add', 'do_submit', 2147483647, 1, 12),
|
|
|
+
|
|
|
+('bx_directory_entry_price_edit', 'title', 2147483647, 1, 1),
|
|
|
+('bx_directory_entry_price_edit', 'price', 2147483647, 1, 2),
|
|
|
+('bx_directory_entry_price_edit', 'text', 2147483647, 1, 3),
|
|
|
+('bx_directory_entry_price_edit', 'attachments', 2147483647, 1, 4),
|
|
|
+('bx_directory_entry_price_edit', 'pictures', 2147483647, 1, 5),
|
|
|
+('bx_directory_entry_price_edit', 'videos', 2147483647, 1, 6),
|
|
|
+('bx_directory_entry_price_edit', 'files', 2147483647, 1, 7),
|
|
|
+('bx_directory_entry_price_edit', 'polls', 2147483647, 1, 8),
|
|
|
+('bx_directory_entry_price_edit', 'covers', 2147483647, 1, 9),
|
|
|
+('bx_directory_entry_price_edit', 'allow_view_to', 2147483647, 1, 10),
|
|
|
+('bx_directory_entry_price_edit', 'location', 2147483647, 1, 11),
|
|
|
+('bx_directory_entry_price_edit', 'do_submit', 2147483647, 1, 12),
|
|
|
+
|
|
|
+('bx_directory_entry_price_view', 'category', 2147483647, 1, 1),
|
|
|
+('bx_directory_entry_price_view', 'price', 2147483647, 1, 2),
|
|
|
+('bx_directory_entry_price_view', 'added', 2147483647, 1, 2),
|
|
|
+('bx_directory_entry_price_view', 'changed', 2147483647, 1, 3),
|
|
|
+
|
|
|
+('bx_directory_entry_price_year_add', 'title', 2147483647, 1, 1),
|
|
|
+('bx_directory_entry_price_year_add', 'price', 2147483647, 1, 2),
|
|
|
+('bx_directory_entry_price_year_add', 'year', 2147483647, 1, 3),
|
|
|
+('bx_directory_entry_price_year_add', 'text', 2147483647, 1, 4),
|
|
|
+('bx_directory_entry_price_year_add', 'attachments', 2147483647, 1, 5),
|
|
|
+('bx_directory_entry_price_year_add', 'pictures', 2147483647, 1, 6),
|
|
|
+('bx_directory_entry_price_year_add', 'videos', 2147483647, 1, 7),
|
|
|
+('bx_directory_entry_price_year_add', 'files', 2147483647, 1, 8),
|
|
|
+('bx_directory_entry_price_year_add', 'polls', 2147483647, 1, 9),
|
|
|
+('bx_directory_entry_price_year_add', 'covers', 2147483647, 1, 10),
|
|
|
+('bx_directory_entry_price_year_add', 'allow_view_to', 2147483647, 1, 11),
|
|
|
+('bx_directory_entry_price_year_add', 'location', 2147483647, 1, 12),
|
|
|
+('bx_directory_entry_price_year_add', 'do_submit', 2147483647, 1, 13),
|
|
|
+
|
|
|
+('bx_directory_entry_price_year_edit', 'title', 2147483647, 1, 1),
|
|
|
+('bx_directory_entry_price_year_edit', 'price', 2147483647, 1, 2),
|
|
|
+('bx_directory_entry_price_year_edit', 'year', 2147483647, 1, 3),
|
|
|
+('bx_directory_entry_price_year_edit', 'text', 2147483647, 1, 4),
|
|
|
+('bx_directory_entry_price_year_edit', 'attachments', 2147483647, 1, 5),
|
|
|
+('bx_directory_entry_price_year_edit', 'pictures', 2147483647, 1, 6),
|
|
|
+('bx_directory_entry_price_year_edit', 'videos', 2147483647, 1, 7),
|
|
|
+('bx_directory_entry_price_year_edit', 'files', 2147483647, 1, 8),
|
|
|
+('bx_directory_entry_price_year_edit', 'polls', 2147483647, 1, 9),
|
|
|
+('bx_directory_entry_price_year_edit', 'covers', 2147483647, 1, 10),
|
|
|
+('bx_directory_entry_price_year_edit', 'allow_view_to', 2147483647, 1, 11),
|
|
|
+('bx_directory_entry_price_year_edit', 'location', 2147483647, 1, 12),
|
|
|
+('bx_directory_entry_price_year_edit', 'do_submit', 2147483647, 1, 13),
|
|
|
+
|
|
|
+('bx_directory_entry_price_year_view', 'category', 2147483647, 1, 1),
|
|
|
+('bx_directory_entry_price_year_view', 'price', 2147483647, 1, 2),
|
|
|
+('bx_directory_entry_price_year_view', 'year', 2147483647, 1, 3),
|
|
|
+('bx_directory_entry_price_year_view', 'added', 2147483647, 1, 4),
|
|
|
+('bx_directory_entry_price_year_view', 'changed', 2147483647, 1, 5);
|
|
|
|
|
|
-- FORMS: poll
|
|
|
INSERT INTO `sys_objects_form` (`object`, `module`, `title`, `action`, `form_attrs`, `submit_name`, `table`, `key`, `uri`, `uri_title`, `params`, `deletable`, `active`, `override_class_name`, `override_class_file`) VALUES
|
|
|
@@ -453,45 +644,6 @@ INSERT INTO `sys_form_display_inputs` (`display_name`, `input_name`, `visible_fo
|
|
|
('bx_directory_poll_add', 'do_cancel', 2147483647, 1, 5);
|
|
|
|
|
|
|
|
|
--- PRE-VALUES
|
|
|
-INSERT INTO `sys_form_pre_lists`(`key`, `title`, `module`, `use_for_sets`) VALUES
|
|
|
-('bx_directory_cats', '_bx_directory_pre_lists_cats', 'bx_directory', '0');
|
|
|
-
|
|
|
-INSERT INTO `sys_form_pre_values`(`Key`, `Value`, `Order`, `LKey`, `LKey2`) VALUES
|
|
|
-('bx_directory_cats', '', 0, '_sys_please_select', ''),
|
|
|
-('bx_directory_cats', '1', 1, '_bx_directory_cat_Animals_Pets', ''),
|
|
|
-('bx_directory_cats', '2', 2, '_bx_directory_cat_Architecture', ''),
|
|
|
-('bx_directory_cats', '3', 3, '_bx_directory_cat_Art', ''),
|
|
|
-('bx_directory_cats', '4', 4, '_bx_directory_cat_Cars_Motorcycles', ''),
|
|
|
-('bx_directory_cats', '5', 5, '_bx_directory_cat_Celebrities', ''),
|
|
|
-('bx_directory_cats', '6', 6, '_bx_directory_cat_Design', ''),
|
|
|
-('bx_directory_cats', '7', 7, '_bx_directory_cat_DIY_Crafts', ''),
|
|
|
-('bx_directory_cats', '8', 8, '_bx_directory_cat_Education', ''),
|
|
|
-('bx_directory_cats', '9', 9, '_bx_directory_cat_Film_Music_Books', ''),
|
|
|
-('bx_directory_cats', '10', 10, '_bx_directory_cat_Food_Drink', ''),
|
|
|
-('bx_directory_cats', '11', 11, '_bx_directory_cat_Gardening', ''),
|
|
|
-('bx_directory_cats', '12', 12, '_bx_directory_cat_Geek', ''),
|
|
|
-('bx_directory_cats', '13', 13, '_bx_directory_cat_Hair_Beauty', ''),
|
|
|
-('bx_directory_cats', '14', 14, '_bx_directory_cat_Health_Fitness', ''),
|
|
|
-('bx_directory_cats', '15', 15, '_bx_directory_cat_History', ''),
|
|
|
-('bx_directory_cats', '16', 16, '_bx_directory_cat_Holidays_Events', ''),
|
|
|
-('bx_directory_cats', '17', 17, '_bx_directory_cat_Home_Decor', ''),
|
|
|
-('bx_directory_cats', '18', 18, '_bx_directory_cat_Humor', ''),
|
|
|
-('bx_directory_cats', '19', 19, '_bx_directory_cat_Illustrations_Posters', ''),
|
|
|
-('bx_directory_cats', '20', 20, '_bx_directory_cat_Kids_Parenting', ''),
|
|
|
-('bx_directory_cats', '21', 21, '_bx_directory_cat_Mens_Fashion', ''),
|
|
|
-('bx_directory_cats', '22', 22, '_bx_directory_cat_Outdoors', ''),
|
|
|
-('bx_directory_cats', '23', 23, '_bx_directory_cat_Photography', ''),
|
|
|
-('bx_directory_cats', '24', 24, '_bx_directory_cat_Products', ''),
|
|
|
-('bx_directory_cats', '25', 25, '_bx_directory_cat_Quotes', ''),
|
|
|
-('bx_directory_cats', '26', 26, '_bx_directory_cat_Science_Nature', ''),
|
|
|
-('bx_directory_cats', '27', 27, '_bx_directory_cat_Sports', ''),
|
|
|
-('bx_directory_cats', '28', 28, '_bx_directory_cat_Tattoos', ''),
|
|
|
-('bx_directory_cats', '29', 29, '_bx_directory_cat_Technology', ''),
|
|
|
-('bx_directory_cats', '30', 30, '_bx_directory_cat_Travel', ''),
|
|
|
-('bx_directory_cats', '31', 31, '_bx_directory_cat_Weddings', ''),
|
|
|
-('bx_directory_cats', '32', 32, '_bx_directory_cat_Womens_Fashion', '');
|
|
|
-
|
|
|
-- COMMENTS
|
|
|
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
|
|
|
('bx_directory', 'bx_directory', 'bx_directory_cmts', 1, 5000, 1000, 3, 5, 3, 'tail', 1, 'bottom', 1, 1, 1, -3, 1, 'cmt', 'page.php?i=view-post&id={object_id}', '', 'bx_directory_entries', 'id', 'author', 'title', 'comments', '', '');
|