-- 5.1.2

CREATE TABLE `shop_properties_groups_dir_table` (
`shop_properties_groups_dir_id` INT( 11 ) NOT NULL ,
`shop_shops_id` INT( 11 ) NOT NULL ,
`shop_properties_groups_dir_parent_id` MEDIUMINT( 11 ) NOT NULL ,
`shop_properties_groups_dir_name` VARCHAR( 255 ) CHARACTER SET cp1251 COLLATE cp1251_general_ci NOT NULL ,
`shop_properties_groups_dir_description` TEXT CHARACTER SET cp1251 COLLATE cp1251_general_ci NOT NULL ,
`shop_properties_groups_dir_order` INT( 11 ) NOT NULL ,
PRIMARY KEY ( `shop_properties_groups_dir_id` ) ,
INDEX ( `shop_shops_id` )
) ENGINE = MYISAM ;

ALTER TABLE `shop_properties_groups_dir_table` CHANGE `shop_properties_groups_dir_id` `shop_properties_groups_dir_id` INT( 11 ) NOT NULL AUTO_INCREMENT;

ALTER TABLE `shop_properties_group_table` ADD `shop_properties_groups_dir_id` INT( 11 ) NOT NULL;

ALTER TABLE `shop_properties_group_table` ADD INDEX ( `shop_properties_groups_dir_id` );

ALTER TABLE `shop_properties_groups_dir_table` CHANGE `shop_properties_groups_dir_parent_id` `shop_properties_groups_dir_parent_id` INT( 11 ) NOT NULL;

INSERT INTO `constants_table` ( `constants_name` , `constants_value` , `constants_description` , `constants_activity` ) VALUES ('LOG_DAYS_LIMIT', '30', 'Константа, определяющая количество дней, за которые хранятся log-файлы', '1');

CREATE TABLE IF NOT EXISTS `information_propertys_groups_dir_table` (
  `information_propertys_groups_dir_id` int(11) NOT NULL auto_increment,
  `information_systems_id` int(11) NOT NULL,
  `information_propertys_groups_dir_parent_id` int(11) NOT NULL,
  `information_propertys_groups_dir_name` varchar(255) NOT NULL,
  `information_propertys_groups_dir_description` text NOT NULL,
  `information_propertys_groups_dir_order` int(11) NOT NULL,
  PRIMARY KEY  (`information_propertys_groups_dir_id`),
  KEY `information_systems_id` (`information_systems_id`),
  KEY `information_propertys_groups_dir_parent_id` (`information_propertys_groups_dir_parent_id`)
) ENGINE=MyISAM DEFAULT CHARSET=cp1251 ;

ALTER TABLE `information_items_table` ADD `information_items_blog_accessibility` TINYINT NOT NULL ,
ADD `information_items_blog_show_comments_mode` TINYINT NOT NULL ,
ADD `information_items_blog_add_comments_mode` TINYINT NOT NULL ;

ALTER TABLE `information_groups_table` ADD `information_groups_activity` TINYINT NOT NULL AFTER `information_groups_access` ,
ADD `information_groups_blog_type` TINYINT NOT NULL AFTER `information_groups_activity` ,
ADD `information_groups_blog_item_default_accessibility` TINYINT NOT NULL AFTER `information_groups_blog_type` ,
ADD `information_groups_blog_item_default_show_comments_mode` TINYINT NOT NULL AFTER `information_groups_blog_item_default_accessibility` ,
ADD `information_groups_blog_item_default_add_comments_mode` TINYINT NOT NULL AFTER `information_groups_blog_item_default_show_comments_mode` ;

ALTER TABLE `information_propertys_groups_table` ADD `information_propertys_groups_dir_id` MEDIUMINT( 11 ) NOT NULL AFTER `information_systems_id`;

DELETE FROM `admin_forms_field_table` WHERE `admin_forms_field_id` = 643;

INSERT INTO `admin_forms_field_table` (`admin_forms_field_id`, `admin_forms_id`, `admin_words_id`, `admin_forms_field_name`, `admin_forms_field_order`, `admin_forms_field_type`, `admin_forms_field_format`, `admin_forms_field_allow_order`, `admin_forms_field_allow_filter`, `admin_forms_field_align_title`, `admin_forms_field_align`, `admin_forms_field_width`, `admin_forms_field_style`, `admin_forms_field_attrib`, `admin_forms_field_image`, `admin_forms_field_link`, `admin_forms_field_onclick`, `admin_forms_field_list`, `users_id`) VALUES (643, 138, 1137, 'empty_field', 30, 7, '', 0, 0, 'center', 'center', '50px', '', '', '=/admin/images/lightning_shield.gif', '/admin/users_access/users_access.php?admin_forms_id=139&operation=show_users_access_avents&check_0_{admin_forms_id}=1&access_admin_forms_id={admin_forms_id}&users_type_id={users_type_id}&site_id={SITE_ID}', 'TrigerSingleAction(''/admin/users_access/users_access.php'', ''&access_admin_forms_id={admin_forms_id}&users_type_id={users_type_id}&site_id={SITE_ID}'', ''show_users_access_avents'', ''check_0_{admin_forms_id}'',139, 0, 0, 0, 1); return false;', '', 19);

DELETE FROM `admin_forms_field_table` WHERE `admin_forms_field_id` = 338;

INSERT INTO `admin_forms_field_table` (`admin_forms_field_id`, `admin_forms_id`, `admin_words_id`, `admin_forms_field_name`, `admin_forms_field_order`, `admin_forms_field_type`, `admin_forms_field_format`, `admin_forms_field_allow_order`, `admin_forms_field_allow_filter`, `admin_forms_field_align_title`, `admin_forms_field_align`, `admin_forms_field_width`, `admin_forms_field_style`, `admin_forms_field_attrib`, `admin_forms_field_image`, `admin_forms_field_link`, `admin_forms_field_onclick`, `admin_forms_field_list`, `users_id`) VALUES (338, 82, 611, 'structure_menu_name', 30, 4, '', 1, 1, 'left', 'left', '', 'font-weight: bold;', '', '', '', '', '', 19);


DELETE FROM `admin_forms_table` WHERE `admin_forms_id` = 12;
DELETE FROM `admin_forms_table` WHERE `admin_forms_id` = 50;
DELETE FROM `admin_forms_table` WHERE `admin_forms_id` = 51;
DELETE FROM `admin_forms_table` WHERE `admin_forms_id` = 135;

INSERT INTO `admin_forms_table` (`admin_forms_id`, `admin_words_id`, `admin_forms_on_page`, `admin_forms_key_field`, `admin_forms_show_operations`, `admin_forms_show_group_operations`, `admin_forms_default_order_field`, `admin_forms_default_order_direction`, `admin_forms_group_operations_as_images`, `users_id`) VALUES (12, 85, 10, 'key_field', 1, 1, '', 1, 1, 19);
INSERT INTO `admin_forms_table` (`admin_forms_id`, `admin_words_id`, `admin_forms_on_page`, `admin_forms_key_field`, `admin_forms_show_operations`, `admin_forms_show_group_operations`, `admin_forms_default_order_field`, `admin_forms_default_order_direction`, `admin_forms_group_operations_as_images`, `users_id`) VALUES (50, 360, 10, 'code', 1, 1, 'information_propertys_order', 1, 1, 19);
INSERT INTO `admin_forms_table` (`admin_forms_id`, `admin_words_id`, `admin_forms_on_page`, `admin_forms_key_field`, `admin_forms_show_operations`, `admin_forms_show_group_operations`, `admin_forms_default_order_field`, `admin_forms_default_order_direction`, `admin_forms_group_operations_as_images`, `users_id`) VALUES (51, 368, 10, 'code', 1, 1, 'information_propertys_groups_order', 1, 1, 19);
INSERT INTO `admin_forms_table` (`admin_forms_id`, `admin_words_id`, `admin_forms_on_page`, `admin_forms_key_field`, `admin_forms_show_operations`, `admin_forms_show_group_operations`, `admin_forms_default_order_field`, `admin_forms_default_order_direction`, `admin_forms_group_operations_as_images`, `users_id`) VALUES (135, 1104, 20, 'code', 1, 1, '', 1, 1, 19);

DELETE FROM `admin_forms_field_table` WHERE `admin_forms_field_id` = 50;
DELETE FROM `admin_forms_field_table` WHERE `admin_forms_field_id` = 624;
DELETE FROM `admin_forms_field_table` WHERE `admin_forms_field_id` = 625;
DELETE FROM `admin_forms_field_table` WHERE `admin_forms_field_id` = 627;
DELETE FROM `admin_forms_field_table` WHERE `admin_forms_field_id` = 196;
DELETE FROM `admin_forms_field_table` WHERE `admin_forms_field_id` = 197;
DELETE FROM `admin_forms_field_table` WHERE `admin_forms_field_id` = 198;
DELETE FROM `admin_forms_field_table` WHERE `admin_forms_field_id` = 200;
DELETE FROM `admin_forms_field_table` WHERE `admin_forms_field_id` = 201;
DELETE FROM `admin_forms_field_table` WHERE `admin_forms_field_id` = 202;
DELETE FROM `admin_forms_field_table` WHERE `admin_forms_field_id` = 626;

INSERT INTO `admin_forms_field_table` (`admin_forms_field_id`, `admin_forms_id`, `admin_words_id`, `admin_forms_field_name`, `admin_forms_field_order`, `admin_forms_field_type`, `admin_forms_field_format`, `admin_forms_field_allow_order`, `admin_forms_field_allow_filter`, `admin_forms_field_align_title`, `admin_forms_field_align`, `admin_forms_field_width`, `admin_forms_field_style`, `admin_forms_field_attrib`, `admin_forms_field_image`, `admin_forms_field_link`, `admin_forms_field_onclick`, `admin_forms_field_list`, `users_id`) VALUES (50, 12, 91, 'indexation_field', 60, 7, '', 0, 1, 'center', 'center', '', '', '', '1=/admin/images/check.gif\r\n0=/admin/images/not_check.gif', '/admin/InformationSystems/InformationSystems.php?admin_forms_id=12&operation=change_item_indexation&information_system_id={information_systems_id}&information_groups_parent_id={information_groups_parent_id}&check_{dataset_key}_{key_field}=1', 'TrigerSingleAction(''/admin/InformationSystems/InformationSystems.php'', ''&information_system_id={information_systems_id}&information_groups_parent_id={information_groups_parent_id}'', ''change_item_indexation'', ''check_{dataset_key}_{key_field}'', ''12'', '''', '''', '''', ''''); return false;', '', 19);
INSERT INTO `admin_forms_field_table` (`admin_forms_field_id`, `admin_forms_id`, `admin_words_id`, `admin_forms_field_name`, `admin_forms_field_order`, `admin_forms_field_type`, `admin_forms_field_format`, `admin_forms_field_allow_order`, `admin_forms_field_allow_filter`, `admin_forms_field_align_title`, `admin_forms_field_align`, `admin_forms_field_width`, `admin_forms_field_style`, `admin_forms_field_attrib`, `admin_forms_field_image`, `admin_forms_field_link`, `admin_forms_field_onclick`, `admin_forms_field_list`, `users_id`) VALUES (624, 135, 1105, 'code', 10, 1, '', 1, 1, 'left', 'left', '45px', 'width: 45px;', '', '', '', '', '', 19);
INSERT INTO `admin_forms_field_table` (`admin_forms_field_id`, `admin_forms_id`, `admin_words_id`, `admin_forms_field_name`, `admin_forms_field_order`, `admin_forms_field_type`, `admin_forms_field_format`, `admin_forms_field_allow_order`, `admin_forms_field_allow_filter`, `admin_forms_field_align_title`, `admin_forms_field_align`, `admin_forms_field_width`, `admin_forms_field_style`, `admin_forms_field_attrib`, `admin_forms_field_image`, `admin_forms_field_link`, `admin_forms_field_onclick`, `admin_forms_field_list`, `users_id`) VALUES (625, 135, 1106, 'name', 20, 1, '', 1, 1, 'left', 'left', '', '', '', '', '', '', '', 19);
INSERT INTO `admin_forms_field_table` (`admin_forms_field_id`, `admin_forms_id`, `admin_words_id`, `admin_forms_field_name`, `admin_forms_field_order`, `admin_forms_field_type`, `admin_forms_field_format`, `admin_forms_field_allow_order`, `admin_forms_field_allow_filter`, `admin_forms_field_align_title`, `admin_forms_field_align`, `admin_forms_field_width`, `admin_forms_field_style`, `admin_forms_field_attrib`, `admin_forms_field_image`, `admin_forms_field_link`, `admin_forms_field_onclick`, `admin_forms_field_list`, `users_id`) VALUES (627, 135, 1108, 'order_field', 40, 2, '', 1, 1, 'left', 'left', '80px', 'width: 80px;', '', '', '', '', '', 19);
INSERT INTO `admin_forms_field_table` (`admin_forms_field_id`, `admin_forms_id`, `admin_words_id`, `admin_forms_field_name`, `admin_forms_field_order`, `admin_forms_field_type`, `admin_forms_field_format`, `admin_forms_field_allow_order`, `admin_forms_field_allow_filter`, `admin_forms_field_align_title`, `admin_forms_field_align`, `admin_forms_field_width`, `admin_forms_field_style`, `admin_forms_field_attrib`, `admin_forms_field_image`, `admin_forms_field_link`, `admin_forms_field_onclick`, `admin_forms_field_list`, `users_id`) VALUES (196, 50, 361, 'code', 10, 1, '', 1, 0, 'left', 'left', '45px', 'width: 45px;', '', '', '', '', '', 19);
INSERT INTO `admin_forms_field_table` (`admin_forms_field_id`, `admin_forms_id`, `admin_words_id`, `admin_forms_field_name`, `admin_forms_field_order`, `admin_forms_field_type`, `admin_forms_field_format`, `admin_forms_field_allow_order`, `admin_forms_field_allow_filter`, `admin_forms_field_align_title`, `admin_forms_field_align`, `admin_forms_field_width`, `admin_forms_field_style`, `admin_forms_field_attrib`, `admin_forms_field_image`, `admin_forms_field_link`, `admin_forms_field_onclick`, `admin_forms_field_list`, `users_id`) VALUES (197, 50, 362, 'order_field', 40, 2, '', 1, 0, 'left', 'left', '80px', 'width: 80px;', '', '', '', '', '', 19);
INSERT INTO `admin_forms_field_table` (`admin_forms_field_id`, `admin_forms_id`, `admin_words_id`, `admin_forms_field_name`, `admin_forms_field_order`, `admin_forms_field_type`, `admin_forms_field_format`, `admin_forms_field_allow_order`, `admin_forms_field_allow_filter`, `admin_forms_field_align_title`, `admin_forms_field_align`, `admin_forms_field_width`, `admin_forms_field_style`, `admin_forms_field_attrib`, `admin_forms_field_image`, `admin_forms_field_link`, `admin_forms_field_onclick`, `admin_forms_field_list`, `users_id`) VALUES (198, 50, 363, 'name', 20, 1, '', 1, 1, 'left', 'left', '', '', '', '', '', '', '', 19);
INSERT INTO `admin_forms_field_table` (`admin_forms_field_id`, `admin_forms_id`, `admin_words_id`, `admin_forms_field_name`, `admin_forms_field_order`, `admin_forms_field_type`, `admin_forms_field_format`, `admin_forms_field_allow_order`, `admin_forms_field_allow_filter`, `admin_forms_field_align_title`, `admin_forms_field_align`, `admin_forms_field_width`, `admin_forms_field_style`, `admin_forms_field_attrib`, `admin_forms_field_image`, `admin_forms_field_link`, `admin_forms_field_onclick`, `admin_forms_field_list`, `users_id`) VALUES (200, 51, 369, 'code', 10, 1, '', 1, 0, 'left', 'left', '50px', '', '', '', '', '', '', 19);
INSERT INTO `admin_forms_field_table` (`admin_forms_field_id`, `admin_forms_id`, `admin_words_id`, `admin_forms_field_name`, `admin_forms_field_order`, `admin_forms_field_type`, `admin_forms_field_format`, `admin_forms_field_allow_order`, `admin_forms_field_allow_filter`, `admin_forms_field_align_title`, `admin_forms_field_align`, `admin_forms_field_width`, `admin_forms_field_style`, `admin_forms_field_attrib`, `admin_forms_field_image`, `admin_forms_field_link`, `admin_forms_field_onclick`, `admin_forms_field_list`, `users_id`) VALUES (201, 51, 370, 'order_field', 40, 2, '', 1, 0, 'left', 'left', '80px', 'width: 80px;', '', '', '', '', '', 19);
INSERT INTO `admin_forms_field_table` (`admin_forms_field_id`, `admin_forms_id`, `admin_words_id`, `admin_forms_field_name`, `admin_forms_field_order`, `admin_forms_field_type`, `admin_forms_field_format`, `admin_forms_field_allow_order`, `admin_forms_field_allow_filter`, `admin_forms_field_align_title`, `admin_forms_field_align`, `admin_forms_field_width`, `admin_forms_field_style`, `admin_forms_field_attrib`, `admin_forms_field_image`, `admin_forms_field_link`, `admin_forms_field_onclick`, `admin_forms_field_list`, `users_id`) VALUES (202, 51, 371, 'name', 20, 1, '', 1, 1, 'left', 'left', '', '', '', '', '', '', '', 19);
INSERT INTO `admin_forms_field_table` (`admin_forms_field_id`, `admin_forms_id`, `admin_words_id`, `admin_forms_field_name`, `admin_forms_field_order`, `admin_forms_field_type`, `admin_forms_field_format`, `admin_forms_field_allow_order`, `admin_forms_field_allow_filter`, `admin_forms_field_align_title`, `admin_forms_field_align`, `admin_forms_field_width`, `admin_forms_field_style`, `admin_forms_field_attrib`, `admin_forms_field_image`, `admin_forms_field_link`, `admin_forms_field_onclick`, `admin_forms_field_list`, `users_id`) VALUES (626, 135, 1107, 'xml', 30, 1, '', 1, 1, 'left', 'left', '', '', '', '', '', '', '', 19);

DELETE FROM `admin_forms_table` WHERE `admin_forms_id` = 67;

INSERT INTO `admin_forms_table` (`admin_forms_id`, `admin_words_id`, `admin_forms_on_page`, `admin_forms_key_field`, `admin_forms_show_operations`, `admin_forms_show_group_operations`, `admin_forms_default_order_field`, `admin_forms_default_order_direction`, `admin_forms_group_operations_as_images`, `users_id`) VALUES (67, 475, 10, 'code', 1, 1, 'shop_list_of_properties_order', 1, 1, 19);


INSERT INTO `admin_forms_table` (`admin_forms_id`, `admin_words_id`, `admin_forms_on_page`, `admin_forms_key_field`, `admin_forms_show_operations`, `admin_forms_show_group_operations`, `admin_forms_default_order_field`, `admin_forms_default_order_direction`, `admin_forms_group_operations_as_images`, `users_id`) VALUES (141, 1161, 20, 'seo_characteristic_id', 1, 1, '', 1, 1, 19);
INSERT INTO `admin_forms_table` (`admin_forms_id`, `admin_words_id`, `admin_forms_on_page`, `admin_forms_key_field`, `admin_forms_show_operations`, `admin_forms_show_group_operations`, `admin_forms_default_order_field`, `admin_forms_default_order_direction`, `admin_forms_group_operations_as_images`, `users_id`) VALUES (142, 1190, 20, 'seo_search_query_id', 1, 1, '', 1, 1, 19);
INSERT INTO `admin_forms_table` (`admin_forms_id`, `admin_words_id`, `admin_forms_on_page`, `admin_forms_key_field`, `admin_forms_show_operations`, `admin_forms_show_group_operations`, `admin_forms_default_order_field`, `admin_forms_default_order_direction`, `admin_forms_group_operations_as_images`, `users_id`) VALUES (144, 1198, 20, 'seo_position_search_query_id', 1, 1, '', 1, 1, 19);

INSERT INTO `admin_forms_events_table` (`admin_forms_events_id`, `admin_words_id`, `admin_forms_id`, `admin_forms_events_function`, `admin_forms_events_picture`, `admin_forms_events_show_button`, `admin_forms_events_group_operation`, `admin_forms_events_order`, `admin_forms_events_dataset_id`, `admin_forms_events_ask`, `users_id`) VALUES (350, 1187, 141, 'edit_characteristic', '/admin/images/edit.gif', 1, 0, 0, -1, 0, 19);
INSERT INTO `admin_forms_events_table` (`admin_forms_events_id`, `admin_words_id`, `admin_forms_id`, `admin_forms_events_function`, `admin_forms_events_picture`, `admin_forms_events_show_button`, `admin_forms_events_group_operation`, `admin_forms_events_order`, `admin_forms_events_dataset_id`, `admin_forms_events_ask`, `users_id`) VALUES (351, 1188, 141, 'delete_characteristic', '/admin/images/delete.gif', 1, 1, 1, -1, 1, 19);
INSERT INTO `admin_forms_events_table` (`admin_forms_events_id`, `admin_words_id`, `admin_forms_id`, `admin_forms_events_function`, `admin_forms_events_picture`, `admin_forms_events_show_button`, `admin_forms_events_group_operation`, `admin_forms_events_order`, `admin_forms_events_dataset_id`, `admin_forms_events_ask`, `users_id`) VALUES (352, 1189, 141, 'query_characteristic', '', 0, 0, 0, -1, 0, 19);
INSERT INTO `admin_forms_events_table` (`admin_forms_events_id`, `admin_words_id`, `admin_forms_id`, `admin_forms_events_function`, `admin_forms_events_picture`, `admin_forms_events_show_button`, `admin_forms_events_group_operation`, `admin_forms_events_order`, `admin_forms_events_dataset_id`, `admin_forms_events_ask`, `users_id`) VALUES (353, 1194, 142, 'edit_query', '/admin/images/edit.gif', 1, 0, 20, -1, 0, 19);
INSERT INTO `admin_forms_events_table` (`admin_forms_events_id`, `admin_words_id`, `admin_forms_id`, `admin_forms_events_function`, `admin_forms_events_picture`, `admin_forms_events_show_button`, `admin_forms_events_group_operation`, `admin_forms_events_order`, `admin_forms_events_dataset_id`, `admin_forms_events_ask`, `users_id`) VALUES (354, 1195, 142, 'delete_query', '/admin/images/delete.gif', 1, 1, 30, -1, 1, 19);
INSERT INTO `admin_forms_events_table` (`admin_forms_events_id`, `admin_words_id`, `admin_forms_id`, `admin_forms_events_function`, `admin_forms_events_picture`, `admin_forms_events_show_button`, `admin_forms_events_group_operation`, `admin_forms_events_order`, `admin_forms_events_dataset_id`, `admin_forms_events_ask`, `users_id`) VALUES (355, 1196, 142, 'add_query', '', 0, 0, 0, -1, 0, 19);
INSERT INTO `admin_forms_events_table` (`admin_forms_events_id`, `admin_words_id`, `admin_forms_id`, `admin_forms_events_function`, `admin_forms_events_picture`, `admin_forms_events_show_button`, `admin_forms_events_group_operation`, `admin_forms_events_order`, `admin_forms_events_dataset_id`, `admin_forms_events_ask`, `users_id`) VALUES (358, 1211, 144, 'edit_position_search', '/admin/images/edit.gif', 1, 0, 0, -1, 0, 19);
INSERT INTO `admin_forms_events_table` (`admin_forms_events_id`, `admin_words_id`, `admin_forms_id`, `admin_forms_events_function`, `admin_forms_events_picture`, `admin_forms_events_show_button`, `admin_forms_events_group_operation`, `admin_forms_events_order`, `admin_forms_events_dataset_id`, `admin_forms_events_ask`, `users_id`) VALUES (357, 1210, 144, 'delete_position_search', '/admin/images/delete.gif', 1, 1, 0, -1, 1, 19);
INSERT INTO `admin_forms_events_table` (`admin_forms_events_id`, `admin_words_id`, `admin_forms_id`, `admin_forms_events_function`, `admin_forms_events_picture`, `admin_forms_events_show_button`, `admin_forms_events_group_operation`, `admin_forms_events_order`, `admin_forms_events_dataset_id`, `admin_forms_events_ask`, `users_id`) VALUES (360, 1213, 142, 'get_position', '', 0, 0, 0, -1, 0, 19);
INSERT INTO `admin_forms_events_table` (`admin_forms_events_id`, `admin_words_id`, `admin_forms_id`, `admin_forms_events_function`, `admin_forms_events_picture`, `admin_forms_events_show_button`, `admin_forms_events_group_operation`, `admin_forms_events_order`, `admin_forms_events_dataset_id`, `admin_forms_events_ask`, `users_id`) VALUES (362, 1216, 82, 'copy_node', '/admin/images/copy.gif', 1, 1, 17, -1, 0, 19);


INSERT INTO `admin_words_table` (`admin_words_id`, `users_id`) VALUES (1159, 19);
INSERT INTO `admin_words_table` (`admin_words_id`, `users_id`) VALUES (1160, 19);
INSERT INTO `admin_words_table` (`admin_words_id`, `users_id`) VALUES (1161, 19);
INSERT INTO `admin_words_table` (`admin_words_id`, `users_id`) VALUES (1162, 19);
INSERT INTO `admin_words_table` (`admin_words_id`, `users_id`) VALUES (1163, 19);
INSERT INTO `admin_words_table` (`admin_words_id`, `users_id`) VALUES (1164, 19);
INSERT INTO `admin_words_table` (`admin_words_id`, `users_id`) VALUES (1205, 19);
INSERT INTO `admin_words_table` (`admin_words_id`, `users_id`) VALUES (1203, 19);
INSERT INTO `admin_words_table` (`admin_words_id`, `users_id`) VALUES (1202, 19);
INSERT INTO `admin_words_table` (`admin_words_id`, `users_id`) VALUES (1201, 19);
INSERT INTO `admin_words_table` (`admin_words_id`, `users_id`) VALUES (1200, 19);
INSERT INTO `admin_words_table` (`admin_words_id`, `users_id`) VALUES (1204, 19);
INSERT INTO `admin_words_table` (`admin_words_id`, `users_id`) VALUES (1199, 19);
INSERT INTO `admin_words_table` (`admin_words_id`, `users_id`) VALUES (1172, 19);
INSERT INTO `admin_words_table` (`admin_words_id`, `users_id`) VALUES (1173, 19);
INSERT INTO `admin_words_table` (`admin_words_id`, `users_id`) VALUES (1198, 19);
INSERT INTO `admin_words_table` (`admin_words_id`, `users_id`) VALUES (1196, 19);
INSERT INTO `admin_words_table` (`admin_words_id`, `users_id`) VALUES (1195, 19);
INSERT INTO `admin_words_table` (`admin_words_id`, `users_id`) VALUES (1194, 19);
INSERT INTO `admin_words_table` (`admin_words_id`, `users_id`) VALUES (1209, 19);
INSERT INTO `admin_words_table` (`admin_words_id`, `users_id`) VALUES (1192, 19);
INSERT INTO `admin_words_table` (`admin_words_id`, `users_id`) VALUES (1191, 19);
INSERT INTO `admin_words_table` (`admin_words_id`, `users_id`) VALUES (1190, 19);
INSERT INTO `admin_words_table` (`admin_words_id`, `users_id`) VALUES (1189, 19);
INSERT INTO `admin_words_table` (`admin_words_id`, `users_id`) VALUES (1188, 19);
INSERT INTO `admin_words_table` (`admin_words_id`, `users_id`) VALUES (1187, 19);
INSERT INTO `admin_words_table` (`admin_words_id`, `users_id`) VALUES (1186, 19);
INSERT INTO `admin_words_table` (`admin_words_id`, `users_id`) VALUES (1206, 19);
INSERT INTO `admin_words_table` (`admin_words_id`, `users_id`) VALUES (1207, 19);
INSERT INTO `admin_words_table` (`admin_words_id`, `users_id`) VALUES (1210, 19);
INSERT INTO `admin_words_table` (`admin_words_id`, `users_id`) VALUES (1211, 19);
INSERT INTO `admin_words_table` (`admin_words_id`, `users_id`) VALUES (1213, 19);
INSERT INTO `admin_words_table` (`admin_words_id`, `users_id`) VALUES (1216, 19);


INSERT INTO `admin_words_value_table` (`admin_words_value_id`, `admin_words_id`, `admin_language_id`, `admin_words_value_name`, `admin_words_value_description`) VALUES (1912, 1159, 1, 'Код', 'Уникальный идентификатор элемента');
INSERT INTO `admin_words_value_table` (`admin_words_value_id`, `admin_words_id`, `admin_language_id`, `admin_words_value_name`, `admin_words_value_description`) VALUES (1913, 1160, 1, '', '');
INSERT INTO `admin_words_value_table` (`admin_words_value_id`, `admin_words_id`, `admin_language_id`, `admin_words_value_name`, `admin_words_value_description`) VALUES (1914, 1161, 1, 'Поисковая оптимизация', '');
INSERT INTO `admin_words_value_table` (`admin_words_value_id`, `admin_words_id`, `admin_language_id`, `admin_words_value_name`, `admin_words_value_description`) VALUES (1915, 1162, 1, 'Дата', '');
INSERT INTO `admin_words_value_table` (`admin_words_value_id`, `admin_words_id`, `admin_language_id`, `admin_words_value_name`, `admin_words_value_description`) VALUES (1916, 1163, 1, 'тИЦ', '');
INSERT INTO `admin_words_value_table` (`admin_words_value_id`, `admin_words_id`, `admin_language_id`, `admin_words_value_name`, `admin_words_value_description`) VALUES (1917, 1164, 1, 'PR', '');
INSERT INTO `admin_words_value_table` (`admin_words_value_id`, `admin_words_id`, `admin_language_id`, `admin_words_value_name`, `admin_words_value_description`) VALUES (1958, 1205, 1, 'GoGo', '');
INSERT INTO `admin_words_value_table` (`admin_words_value_id`, `admin_words_id`, `admin_language_id`, `admin_words_value_name`, `admin_words_value_description`) VALUES (1957, 1204, 1, 'Апорт', '');
INSERT INTO `admin_words_value_table` (`admin_words_value_id`, `admin_words_id`, `admin_language_id`, `admin_words_value_name`, `admin_words_value_description`) VALUES (1956, 1203, 1, 'Google', '');
INSERT INTO `admin_words_value_table` (`admin_words_value_id`, `admin_words_id`, `admin_language_id`, `admin_words_value_name`, `admin_words_value_description`) VALUES (1955, 1202, 1, 'Рамблер', '');
INSERT INTO `admin_words_value_table` (`admin_words_value_id`, `admin_words_id`, `admin_language_id`, `admin_words_value_name`, `admin_words_value_description`) VALUES (1953, 1200, 1, 'Дата', '');
INSERT INTO `admin_words_value_table` (`admin_words_value_id`, `admin_words_id`, `admin_language_id`, `admin_words_value_name`, `admin_words_value_description`) VALUES (1954, 1201, 1, 'Яндекс', '');
INSERT INTO `admin_words_value_table` (`admin_words_value_id`, `admin_words_id`, `admin_language_id`, `admin_words_value_name`, `admin_words_value_description`) VALUES (1952, 1199, 1, 'Код', '');
INSERT INTO `admin_words_value_table` (`admin_words_value_id`, `admin_words_id`, `admin_language_id`, `admin_words_value_name`, `admin_words_value_description`) VALUES (1925, 1172, 1, 'Ссылки с Yandex', '');
INSERT INTO `admin_words_value_table` (`admin_words_value_id`, `admin_words_id`, `admin_language_id`, `admin_words_value_name`, `admin_words_value_description`) VALUES (1926, 1173, 1, 'Ссылки с Google', '');
INSERT INTO `admin_words_value_table` (`admin_words_value_id`, `admin_words_id`, `admin_language_id`, `admin_words_value_name`, `admin_words_value_description`) VALUES (1951, 1198, 1, 'Статистика', '');
INSERT INTO `admin_words_value_table` (`admin_words_value_id`, `admin_words_id`, `admin_language_id`, `admin_words_value_name`, `admin_words_value_description`) VALUES (1949, 1196, 1, 'Добавить', '');
INSERT INTO `admin_words_value_table` (`admin_words_value_id`, `admin_words_id`, `admin_language_id`, `admin_words_value_name`, `admin_words_value_description`) VALUES (1948, 1195, 1, 'Удалить', '');
INSERT INTO `admin_words_value_table` (`admin_words_value_id`, `admin_words_id`, `admin_language_id`, `admin_words_value_name`, `admin_words_value_description`) VALUES (1947, 1194, 1, 'Редактировать', '');
INSERT INTO `admin_words_value_table` (`admin_words_value_id`, `admin_words_id`, `admin_language_id`, `admin_words_value_name`, `admin_words_value_description`) VALUES (1962, 1209, 1, 'Статистика', '');
INSERT INTO `admin_words_value_table` (`admin_words_value_id`, `admin_words_id`, `admin_language_id`, `admin_words_value_name`, `admin_words_value_description`) VALUES (1945, 1192, 1, 'Запрос', '');
INSERT INTO `admin_words_value_table` (`admin_words_value_id`, `admin_words_id`, `admin_language_id`, `admin_words_value_name`, `admin_words_value_description`) VALUES (1944, 1191, 1, 'Код', '');
INSERT INTO `admin_words_value_table` (`admin_words_value_id`, `admin_words_id`, `admin_language_id`, `admin_words_value_name`, `admin_words_value_description`) VALUES (1943, 1190, 1, 'Поисковые запросы', '');
INSERT INTO `admin_words_value_table` (`admin_words_value_id`, `admin_words_id`, `admin_language_id`, `admin_words_value_name`, `admin_words_value_description`) VALUES (1942, 1189, 1, 'Запросить для сайта', '');
INSERT INTO `admin_words_value_table` (`admin_words_value_id`, `admin_words_id`, `admin_language_id`, `admin_words_value_name`, `admin_words_value_description`) VALUES (1941, 1188, 1, 'Удалить', '');
INSERT INTO `admin_words_value_table` (`admin_words_value_id`, `admin_words_id`, `admin_language_id`, `admin_words_value_name`, `admin_words_value_description`) VALUES (1940, 1187, 1, 'Редактировать', '');
INSERT INTO `admin_words_value_table` (`admin_words_value_id`, `admin_words_id`, `admin_language_id`, `admin_words_value_name`, `admin_words_value_description`) VALUES (1939, 1186, 1, ' ', '');
INSERT INTO `admin_words_value_table` (`admin_words_value_id`, `admin_words_id`, `admin_language_id`, `admin_words_value_name`, `admin_words_value_description`) VALUES (1959, 1206, 1, 'Yahoo', '');
INSERT INTO `admin_words_value_table` (`admin_words_value_id`, `admin_words_id`, `admin_language_id`, `admin_words_value_name`, `admin_words_value_description`) VALUES (1960, 1207, 1, 'LiveSearch', '');
INSERT INTO `admin_words_value_table` (`admin_words_value_id`, `admin_words_id`, `admin_language_id`, `admin_words_value_name`, `admin_words_value_description`) VALUES (1963, 1210, 1, 'Удалить', '');
INSERT INTO `admin_words_value_table` (`admin_words_value_id`, `admin_words_id`, `admin_language_id`, `admin_words_value_name`, `admin_words_value_description`) VALUES (1964, 1211, 1, 'Редактировать', '');
INSERT INTO `admin_words_value_table` (`admin_words_value_id`, `admin_words_id`, `admin_language_id`, `admin_words_value_name`, `admin_words_value_description`) VALUES (1966, 1213, 1, 'Определить позиции', '');
INSERT INTO `admin_words_value_table` (`admin_words_value_id`, `admin_words_id`, `admin_language_id`, `admin_words_value_name`, `admin_words_value_description`) VALUES (1969, 1216, 1, 'Копировать', '');
INSERT INTO `admin_words_value_table` (`admin_words_value_id`, `admin_words_id`, `admin_language_id`, `admin_words_value_name`, `admin_words_value_description`) VALUES (1968, 1215, 1, ' ', '');


INSERT INTO `admin_forms_field_table` (`admin_forms_field_id`, `admin_forms_id`, `admin_words_id`, `admin_forms_field_name`, `admin_forms_field_order`, `admin_forms_field_type`, `admin_forms_field_format`, `admin_forms_field_allow_order`, `admin_forms_field_allow_filter`, `admin_forms_field_align_title`, `admin_forms_field_align`, `admin_forms_field_width`, `admin_forms_field_style`, `admin_forms_field_attrib`, `admin_forms_field_image`, `admin_forms_field_link`, `admin_forms_field_onclick`, `admin_forms_field_list`, `users_id`) VALUES (655, 141, 1162, 'seo_characteristic_date_time', 10, 5, '', 1, 1, 'left', 'left', '', '', '', '', '', '', '', 19);
INSERT INTO `admin_forms_field_table` (`admin_forms_field_id`, `admin_forms_id`, `admin_words_id`, `admin_forms_field_name`, `admin_forms_field_order`, `admin_forms_field_type`, `admin_forms_field_format`, `admin_forms_field_allow_order`, `admin_forms_field_allow_filter`, `admin_forms_field_align_title`, `admin_forms_field_align`, `admin_forms_field_width`, `admin_forms_field_style`, `admin_forms_field_attrib`, `admin_forms_field_image`, `admin_forms_field_link`, `admin_forms_field_onclick`, `admin_forms_field_list`, `users_id`) VALUES (656, 141, 1163, 'seo_characteristic_yc', 30, 1, '', 1, 1, 'left', 'left', '', '', '', '', '', '', '', 19);
INSERT INTO `admin_forms_field_table` (`admin_forms_field_id`, `admin_forms_id`, `admin_words_id`, `admin_forms_field_name`, `admin_forms_field_order`, `admin_forms_field_type`, `admin_forms_field_format`, `admin_forms_field_allow_order`, `admin_forms_field_allow_filter`, `admin_forms_field_align_title`, `admin_forms_field_align`, `admin_forms_field_width`, `admin_forms_field_style`, `admin_forms_field_attrib`, `admin_forms_field_image`, `admin_forms_field_link`, `admin_forms_field_onclick`, `admin_forms_field_list`, `users_id`) VALUES (657, 141, 1164, 'seo_characteristic_pr', 20, 1, '', 1, 1, 'left', 'left', '', '', '', '', '', '', '', 19);
INSERT INTO `admin_forms_field_table` (`admin_forms_field_id`, `admin_forms_id`, `admin_words_id`, `admin_forms_field_name`, `admin_forms_field_order`, `admin_forms_field_type`, `admin_forms_field_format`, `admin_forms_field_allow_order`, `admin_forms_field_allow_filter`, `admin_forms_field_align_title`, `admin_forms_field_align`, `admin_forms_field_width`, `admin_forms_field_style`, `admin_forms_field_attrib`, `admin_forms_field_image`, `admin_forms_field_link`, `admin_forms_field_onclick`, `admin_forms_field_list`, `users_id`) VALUES (694, 51, 1217, 'type', 15, 7, '', 0, 0, 'left', 'left', '16px', 'width: 16px;', '', '', '', '', '', 19);
INSERT INTO `admin_forms_field_table` (`admin_forms_field_id`, `admin_forms_id`, `admin_words_id`, `admin_forms_field_name`, `admin_forms_field_order`, `admin_forms_field_type`, `admin_forms_field_format`, `admin_forms_field_allow_order`, `admin_forms_field_allow_filter`, `admin_forms_field_align_title`, `admin_forms_field_align`, `admin_forms_field_width`, `admin_forms_field_style`, `admin_forms_field_attrib`, `admin_forms_field_image`, `admin_forms_field_link`, `admin_forms_field_onclick`, `admin_forms_field_list`, `users_id`) VALUES (691, 144, 1207, 'seo_position_search_query_livesearch', 90, 1, '', 1, 1, 'left', 'left', '', '', '', '', '', '', '', 19);
INSERT INTO `admin_forms_field_table` (`admin_forms_field_id`, `admin_forms_id`, `admin_words_id`, `admin_forms_field_name`, `admin_forms_field_order`, `admin_forms_field_type`, `admin_forms_field_format`, `admin_forms_field_allow_order`, `admin_forms_field_allow_filter`, `admin_forms_field_align_title`, `admin_forms_field_align`, `admin_forms_field_width`, `admin_forms_field_style`, `admin_forms_field_attrib`, `admin_forms_field_image`, `admin_forms_field_link`, `admin_forms_field_onclick`, `admin_forms_field_list`, `users_id`) VALUES (690, 144, 1206, 'seo_position_search_query_yahoo', 80, 1, '', 1, 1, 'left', 'left', '', '', '', '', '', '', '', 19);
INSERT INTO `admin_forms_field_table` (`admin_forms_field_id`, `admin_forms_id`, `admin_words_id`, `admin_forms_field_name`, `admin_forms_field_order`, `admin_forms_field_type`, `admin_forms_field_format`, `admin_forms_field_allow_order`, `admin_forms_field_allow_filter`, `admin_forms_field_align_title`, `admin_forms_field_align`, `admin_forms_field_width`, `admin_forms_field_style`, `admin_forms_field_attrib`, `admin_forms_field_image`, `admin_forms_field_link`, `admin_forms_field_onclick`, `admin_forms_field_list`, `users_id`) VALUES (665, 141, 1172, 'seo_characteristic_links_yandex', 40, 1, '', 1, 1, 'left', 'left', '', '', '', '', '', '', '', 19);
INSERT INTO `admin_forms_field_table` (`admin_forms_field_id`, `admin_forms_id`, `admin_words_id`, `admin_forms_field_name`, `admin_forms_field_order`, `admin_forms_field_type`, `admin_forms_field_format`, `admin_forms_field_allow_order`, `admin_forms_field_allow_filter`, `admin_forms_field_align_title`, `admin_forms_field_align`, `admin_forms_field_width`, `admin_forms_field_style`, `admin_forms_field_attrib`, `admin_forms_field_image`, `admin_forms_field_link`, `admin_forms_field_onclick`, `admin_forms_field_list`, `users_id`) VALUES (666, 141, 1173, 'seo_characteristic_links_google', 50, 1, '', 1, 1, 'left', 'left', '', '', '', '', '', '', '', 19);
INSERT INTO `admin_forms_field_table` (`admin_forms_field_id`, `admin_forms_id`, `admin_words_id`, `admin_forms_field_name`, `admin_forms_field_order`, `admin_forms_field_type`, `admin_forms_field_format`, `admin_forms_field_allow_order`, `admin_forms_field_allow_filter`, `admin_forms_field_align_title`, `admin_forms_field_align`, `admin_forms_field_width`, `admin_forms_field_style`, `admin_forms_field_attrib`, `admin_forms_field_image`, `admin_forms_field_link`, `admin_forms_field_onclick`, `admin_forms_field_list`, `users_id`) VALUES (689, 144, 1205, 'seo_position_search_query_gogo', 70, 1, '', 1, 1, 'left', 'left', '', '', '', '', '', '', '', 19);
INSERT INTO `admin_forms_field_table` (`admin_forms_field_id`, `admin_forms_id`, `admin_words_id`, `admin_forms_field_name`, `admin_forms_field_order`, `admin_forms_field_type`, `admin_forms_field_format`, `admin_forms_field_allow_order`, `admin_forms_field_allow_filter`, `admin_forms_field_align_title`, `admin_forms_field_align`, `admin_forms_field_width`, `admin_forms_field_style`, `admin_forms_field_attrib`, `admin_forms_field_image`, `admin_forms_field_link`, `admin_forms_field_onclick`, `admin_forms_field_list`, `users_id`) VALUES (688, 144, 1204, 'seo_position_search_query_aport', 60, 1, '', 1, 1, 'left', 'left', '', '', '', '', '', '', '', 19);
INSERT INTO `admin_forms_field_table` (`admin_forms_field_id`, `admin_forms_id`, `admin_words_id`, `admin_forms_field_name`, `admin_forms_field_order`, `admin_forms_field_type`, `admin_forms_field_format`, `admin_forms_field_allow_order`, `admin_forms_field_allow_filter`, `admin_forms_field_align_title`, `admin_forms_field_align`, `admin_forms_field_width`, `admin_forms_field_style`, `admin_forms_field_attrib`, `admin_forms_field_image`, `admin_forms_field_link`, `admin_forms_field_onclick`, `admin_forms_field_list`, `users_id`) VALUES (687, 144, 1203, 'seo_position_search_query_google', 50, 1, '', 1, 1, 'left', 'left', '', '', '', '', '', '', '', 19);
INSERT INTO `admin_forms_field_table` (`admin_forms_field_id`, `admin_forms_id`, `admin_words_id`, `admin_forms_field_name`, `admin_forms_field_order`, `admin_forms_field_type`, `admin_forms_field_format`, `admin_forms_field_allow_order`, `admin_forms_field_allow_filter`, `admin_forms_field_align_title`, `admin_forms_field_align`, `admin_forms_field_width`, `admin_forms_field_style`, `admin_forms_field_attrib`, `admin_forms_field_image`, `admin_forms_field_link`, `admin_forms_field_onclick`, `admin_forms_field_list`, `users_id`) VALUES (686, 144, 1202, 'seo_position_search_query_rambler', 40, 1, '', 1, 1, 'left', 'left', '', '', '', '', '', '', '', 19);
INSERT INTO `admin_forms_field_table` (`admin_forms_field_id`, `admin_forms_id`, `admin_words_id`, `admin_forms_field_name`, `admin_forms_field_order`, `admin_forms_field_type`, `admin_forms_field_format`, `admin_forms_field_allow_order`, `admin_forms_field_allow_filter`, `admin_forms_field_align_title`, `admin_forms_field_align`, `admin_forms_field_width`, `admin_forms_field_style`, `admin_forms_field_attrib`, `admin_forms_field_image`, `admin_forms_field_link`, `admin_forms_field_onclick`, `admin_forms_field_list`, `users_id`) VALUES (685, 144, 1201, 'seo_position_search_query_yandex', 30, 1, '', 1, 1, 'left', 'left', '', '', '', '', '', '', '', 19);
INSERT INTO `admin_forms_field_table` (`admin_forms_field_id`, `admin_forms_id`, `admin_words_id`, `admin_forms_field_name`, `admin_forms_field_order`, `admin_forms_field_type`, `admin_forms_field_format`, `admin_forms_field_allow_order`, `admin_forms_field_allow_filter`, `admin_forms_field_align_title`, `admin_forms_field_align`, `admin_forms_field_width`, `admin_forms_field_style`, `admin_forms_field_attrib`, `admin_forms_field_image`, `admin_forms_field_link`, `admin_forms_field_onclick`, `admin_forms_field_list`, `users_id`) VALUES (684, 144, 1200, 'seo_position_search_query_date_time', 20, 5, '', 1, 1, 'left', 'left', '', '', '', '', '', '', '', 19);
INSERT INTO `admin_forms_field_table` (`admin_forms_field_id`, `admin_forms_id`, `admin_words_id`, `admin_forms_field_name`, `admin_forms_field_order`, `admin_forms_field_type`, `admin_forms_field_format`, `admin_forms_field_allow_order`, `admin_forms_field_allow_filter`, `admin_forms_field_align_title`, `admin_forms_field_align`, `admin_forms_field_width`, `admin_forms_field_style`, `admin_forms_field_attrib`, `admin_forms_field_image`, `admin_forms_field_link`, `admin_forms_field_onclick`, `admin_forms_field_list`, `users_id`) VALUES (692, 142, 1209, 'statist_field', 30, 7, '', 0, 0, 'left', 'center', '', '', '', '', '', '', '', 19);
INSERT INTO `admin_forms_field_table` (`admin_forms_field_id`, `admin_forms_id`, `admin_words_id`, `admin_forms_field_name`, `admin_forms_field_order`, `admin_forms_field_type`, `admin_forms_field_format`, `admin_forms_field_allow_order`, `admin_forms_field_allow_filter`, `admin_forms_field_align_title`, `admin_forms_field_align`, `admin_forms_field_width`, `admin_forms_field_style`, `admin_forms_field_attrib`, `admin_forms_field_image`, `admin_forms_field_link`, `admin_forms_field_onclick`, `admin_forms_field_list`, `users_id`) VALUES (683, 144, 1199, 'seo_position_search_query_id', 10, 1, '', 1, 1, 'left', 'left', '', '', '', '', '', '', '', 19);
INSERT INTO `admin_forms_field_table` (`admin_forms_field_id`, `admin_forms_id`, `admin_words_id`, `admin_forms_field_name`, `admin_forms_field_order`, `admin_forms_field_type`, `admin_forms_field_format`, `admin_forms_field_allow_order`, `admin_forms_field_allow_filter`, `admin_forms_field_align_title`, `admin_forms_field_align`, `admin_forms_field_width`, `admin_forms_field_style`, `admin_forms_field_attrib`, `admin_forms_field_image`, `admin_forms_field_link`, `admin_forms_field_onclick`, `admin_forms_field_list`, `users_id`) VALUES (693, 135, 1215, 'type', 15, 7, '', 0, 0, 'left', 'left', '16px', 'width: 16px;', '', '', '', '', '', 19);
INSERT INTO `admin_forms_field_table` (`admin_forms_field_id`, `admin_forms_id`, `admin_words_id`, `admin_forms_field_name`, `admin_forms_field_order`, `admin_forms_field_type`, `admin_forms_field_format`, `admin_forms_field_allow_order`, `admin_forms_field_allow_filter`, `admin_forms_field_align_title`, `admin_forms_field_align`, `admin_forms_field_width`, `admin_forms_field_style`, `admin_forms_field_attrib`, `admin_forms_field_image`, `admin_forms_field_link`, `admin_forms_field_onclick`, `admin_forms_field_list`, `users_id`) VALUES (681, 142, 1192, 'seo_search_query_value', 20, 1, '', 1, 1, 'left', 'left', '', '', '', '', '', '', '', 19);
INSERT INTO `admin_forms_field_table` (`admin_forms_field_id`, `admin_forms_id`, `admin_words_id`, `admin_forms_field_name`, `admin_forms_field_order`, `admin_forms_field_type`, `admin_forms_field_format`, `admin_forms_field_allow_order`, `admin_forms_field_allow_filter`, `admin_forms_field_align_title`, `admin_forms_field_align`, `admin_forms_field_width`, `admin_forms_field_style`, `admin_forms_field_attrib`, `admin_forms_field_image`, `admin_forms_field_link`, `admin_forms_field_onclick`, `admin_forms_field_list`, `users_id`) VALUES (680, 142, 1191, 'seo_search_query_id', 10, 1, '', 1, 0, 'left', 'left', '20', '', '', '', '', '', '', 19);
INSERT INTO `admin_forms_field_table` (`admin_forms_field_id`, `admin_forms_id`, `admin_words_id`, `admin_forms_field_name`, `admin_forms_field_order`, `admin_forms_field_type`, `admin_forms_field_format`, `admin_forms_field_allow_order`, `admin_forms_field_allow_filter`, `admin_forms_field_align_title`, `admin_forms_field_align`, `admin_forms_field_width`, `admin_forms_field_style`, `admin_forms_field_attrib`, `admin_forms_field_image`, `admin_forms_field_link`, `admin_forms_field_onclick`, `admin_forms_field_list`, `users_id`) VALUES (679, 50, 1186, 'type', 15, 7, '', 0, 0, 'left', 'left', '16px', 'width: 16px;', '', '', '', '', '', 19);
INSERT INTO `admin_forms_field_table` (`admin_forms_field_id`, `admin_forms_id`, `admin_words_id`, `admin_forms_field_name`, `admin_forms_field_order`, `admin_forms_field_type`, `admin_forms_field_format`, `admin_forms_field_allow_order`, `admin_forms_field_allow_filter`, `admin_forms_field_align_title`, `admin_forms_field_align`, `admin_forms_field_width`, `admin_forms_field_style`, `admin_forms_field_attrib`, `admin_forms_field_image`, `admin_forms_field_link`, `admin_forms_field_onclick`, `admin_forms_field_list`, `users_id`) VALUES (700, 66, 1230, 'view', 43, 10, '', 0, 0, 'left', 'center', '16px', 'width: 16px;', '', '=/admin/images/comment_view.gif', '', '', '', 19);


CREATE TABLE IF NOT EXISTS `seo_characteristic_table` (
  `seo_characteristic_id` int(11) NOT NULL auto_increment,
  `site_id` int(11) NOT NULL,
  `seo_characteristic_date_time` datetime default NULL,
  `seo_characteristic_pr` int(11) default NULL,
  `seo_characteristic_yc` int(11) default NULL,
  `seo_characteristic_yc_rubric` varchar(200) NOT NULL,
  `seo_characteristic_catalog_yandex` tinyint(1) default NULL,
  `seo_characteristic_catalog_rambler` tinyint(1) default NULL,
  `seo_characteristic_catalog_aport` tinyint(1) default NULL,
  `seo_characteristic_catalog_dmoz` tinyint(1) default NULL,
  `seo_characteristic_catalog_mail` tinyint(1) default NULL,
  `seo_characteristic_links_google` int(11) default NULL,
  `seo_characteristic_links_yandex` int(11) default NULL,
  `seo_characteristic_links_yahoo` int(11) default NULL,
  `seo_characteristic_links_msn` int(11) default NULL,
  `seo_characteristic_indexed_yandex` int(11) default NULL,
  `seo_characteristic_indexed_rambler` int(11) default NULL,
  `seo_characteristic_indexed_google` int(11) default NULL,
  `seo_characteristic_indexed_aport` int(11) default NULL,
  `seo_characteristic_indexed_yahoo` int(11) default NULL,
  `seo_characteristic_indexed_msn` int(11) NOT NULL,
  `seo_characteristic_counter_rambler` tinyint(1) default NULL,
  `seo_characteristic_counter_spylog` tinyint(1) default NULL,
  `seo_characteristic_counter_hotlog` tinyint(1) default NULL,
  `seo_characteristic_counter_liveinternet` tinyint(1) default NULL,
  `seo_characteristic_counter_mail` tinyint(1) default NULL,
  PRIMARY KEY  (`seo_characteristic_id`),
  KEY `site_id` (`site_id`)
) ENGINE=MyISAM AUTO_INCREMENT=1 DEFAULT CHARSET=cp1251 AUTO_INCREMENT=1 ;

CREATE TABLE IF NOT EXISTS `seo_position_search_query_table` (
  `seo_position_search_query_id` int(11) NOT NULL auto_increment,
  `seo_search_query_id` int(11) NOT NULL,
  `seo_position_search_query_date_time` datetime default NULL,
  `seo_position_search_query_yandex` int(11) default NULL,
  `seo_position_search_query_rambler` int(11) default NULL,
  `seo_position_search_query_google` int(11) default NULL,
  `seo_position_search_query_aport` int(11) default NULL,
  `seo_position_search_query_gogo` int(11) default NULL,
  `seo_position_search_query_yahoo` int(11) default NULL,
  `seo_position_search_query_livesearch` int(11) default NULL,
  PRIMARY KEY  (`seo_position_search_query_id`),
  KEY `seo_search_query_id` (`seo_search_query_id`)
) ENGINE=MyISAM AUTO_INCREMENT=1 DEFAULT CHARSET=cp1251 AUTO_INCREMENT=1 ;

CREATE TABLE IF NOT EXISTS `seo_search_query_table` (
  `seo_search_query_id` int(11) NOT NULL auto_increment,
  `site_id` int(11) NOT NULL,
  `seo_search_query_value` varchar(255) default NULL,
  PRIMARY KEY  (`seo_search_query_id`),
  KEY `site_id` (`site_id`)
) ENGINE=MyISAM AUTO_INCREMENT=1 DEFAULT CHARSET=cp1251 AUTO_INCREMENT=1 ;

INSERT INTO `modules_table` (`modules_name`, `modules_description`, `modules_status`, `modules_path`, `modules_order`) VALUES ('Поисковая оптимизация (SEO)', 'Модуль позволяет анализировать динамику продвижения сайта.', 1, 'seo', 0);

UPDATE `constants_table` SET `constants_value` = '5.1.2' WHERE `constants_name` = 'CURRENT_VERSION';
