4.7 -- NetCat 4.7 Extra [0] component file, generated 2012-03-14 11:38:21 INSERT INTO `Class` SET `Class_Name` = 'Минимагазин: Заказы', `Class_Group` = 'Минимагазин', `DaysToHold` = '0', `AllowTags` = '0', `FormPrefix` = '$f_AdminCommon\n
\n$searchForm\n\n', `FormSuffix` = '".( $totRows ? "
" : "" )."\n\n
\n".( !$totRows ? "Нет заказов" : "\nВсего $totRows ".nc_numeral_inclination($totRows, array(\'заказ\',\'заказов\', \'заказа\')))."\n
\n\n
', `RecordTemplate` = '"; $order = new nc_minishop_order($f_RowID); $result .= "\n
\n
\n
\n

Заказ №$f_RowID, $f_Created_date

\n изменить\n удалить\n
\n Статус заказа: \n \n \n \n \n \n \n \n ".nc_list_select(\'MinishopStatus\',\'Status\', $f_Status_id )."\n \n \n
\n
\n
\n\n$f_AdminButtons\n\n";\n// вывод позиций заказа\nforeach ( $order->content() as $position ) { \n $result .= $position[\'uri\'] ? "".$position[\'name\']."" : $position[\'name\'];\n $result .= ", cтоимость: ".$position[\'price\']." * ".$position[\'quantity\']." = ".($position[\'price\']*$position[\'quantity\'])." $currency";\n $result .= "
";\n}\n$result .= "\n
\n".( $f_Discount ? "Сумма без скидки: $f_Cost $currency, скидка - $f_Discount%
" : "" )."\nИтоговая сумма: $f_FinalCost $currency \n

\n$f_Name \n".opt($f_Phone, ", телефон: $f_Phone")."\n".opt($f_Email, ", $f_Email")."\n

\n".opt($f_Delivery, "Вариант доставки: $f_Delivery
")."\n".opt($f_Address, "Адрес: $f_Address
")."\n".opt($f_Note, "Примечание: $f_Note")."\n\n
\n', `RecordsPerPage` = '0', `SortBy` = '', `RecordTemplateFull` = '', `TitleTemplate` = '', `TitleList` = '', `UseAltTitle` = '0', `AddTemplate` = '".( $warnText ? "
$warnText
" : NULL )."\n";\nglobal $nc_minishop;\n// получение инфы о старом заказе\nif ( $AUTH_USER_ID ) {\n $info = $nc_core->db->get_row("SELECT * FROM `Message".$nc_minishop->order_class_id()."` WHERE `User_ID` = \'".$AUTH_USER_ID."\' ORDER BY `Message_ID` DESC LIMIT 1 ", ARRAY_A);\n}\n$name = $nc_core->input->fetch_get_post(\'f_Name\') ? $nc_core->input->fetch_get_post(\'f_Name\') : ($info[\'Name\'] ? $info[\'Name\'] : ( ($a=$nc_core->user->get_by_id($AUTH_USER_ID, $nc_core->AUTHORIZE_BY)) ? $a : \'\'));\n$phone = $nc_core->input->fetch_get_post(\'f_Phone\') ? $nc_core->input->fetch_get_post(\'f_Phone\') : ($info[\'Phone\'] ? $info[\'Phone\'] : ( ($a=$nc_core->user->get_by_id($AUTH_USER_ID, \'Phone\')) ? $a : \'\'));\n$email = $nc_core->input->fetch_get_post(\'f_Email\') ? $nc_core->input->fetch_get_post(\'f_Email\') : ($info[\'Email\'] ? $info[\'Email\'] : ( ($a=$nc_core->user->get_by_id($AUTH_USER_ID, \'Email\')) ? $a : \'\'));\n$address = $nc_core->input->fetch_get_post(\'f_Address\') ? $nc_core->input->fetch_get_post(\'f_Address\') : ($info[\'Address\'] ? $info[\'Address\'] : ( ($a=$nc_core->user->get_by_id($AUTH_USER_ID, \'Address\')) ? $a : \'\'));\n// вывод позиций заказа\nif ( $cc == $nc_core->sub_class->get_current(\'Sub_Class_ID\') ) {\n $currency = $nc_minishop->get_currency();\n $addForm .= "

Позиции заказа


";\n foreach ( $nc_minishop->cart_content() as $position ) { \n $addForm .= "".$position[\'name\']."";\n $addForm .= ", cтоимость: ".$position[\'price\']." * ".$position[\'quantity\']." = ".($position[\'price\']*$position[\'quantity\'])." $currency";\n $addForm .= "
";\n }\n $addForm .= "

Оформить заказ


";\n}\n$addForm .= "\n\n
\n
\n\n".$nc_core->token->get_input()."\n\n\n\n\n\n\n" . $nc_core->token->get_input() . "\n".( $admin_mode && !$systemTableID ? "".($moderationID==1 && !isset($f_Checked) ? opt($f_Checked=1,"") : "")."\n
\n ".($admin_mode ? "
\n ".CONTROL_CONTENT_SUBDIVISION_FUNCS_MAINDATA_KEYWORD." \n
\n
\n \'Приоритет\'\n \n
" : "")."\n ".(CheckUserRights( $current_cc[\'Sub_Class_ID\'], "moderate", $posting )? "\n
\n \n
"\n : "")."\n
\n" : NULL )."
\n ".($admin_mode ? "SEO\n
\n
".NETCAT_MODERATION_SEO_TITLE.":

\n
".NETCAT_MODERATION_SEO_KEYWORDS.":

\n
".NETCAT_MODERATION_SEO_DESCRIPTION.":

\n
" :"")."
\n\n".nc_string_field("Name", "maxlength=\'255\' size=\'50\'", $nc_minishop->order_class_id(), 1, $name )."
\n
\n".nc_string_field("Phone", "maxlength=\'255\' size=\'50\'", $nc_minishop->order_class_id(), 1, $phone)."
\n
\n".nc_string_field("Email", "maxlength=\'255\' size=\'50\'", $nc_minishop->order_class_id(), 1, $email)."
\n
\n".nc_text_field("Address", "", $nc_minishop->order_class_id(), 1, 0, $address)."
\n
\n".( nc_Core::get_object()->get_settings(\'delivery_allow\', \'minishop\' ) ? \nnc_list_field("Delivery", "", $nc_minishop->order_class_id(),1)."
\n
" : "" )."\n\n".( nc_Core::get_object()->get_settings(\'payment_allow\', \'minishop\' ) ? \nnc_list_field("Payment", "", $nc_minishop->order_class_id(),1)."
\n
" : "" )."\n\n".nc_text_field("Note", "", $nc_minishop->order_class_id(), 1)."
\n
\n\n".(!$AUTH_USER_ID && $MODULE_VARS[\'captcha\'] && $nc_core->get_settings(\'orderform_captcha\', \'minishop\') ? nc_captcha_formfield()."

".NETCAT_MODERATION_CAPTCHA." (*):


" : "")."\n
".NETCAT_MODERATION_INFO_REQFIELDS."

\n".nc_submit_button(NETCAT_MODULE_MINISHOP_CART_ORDER)."\n
', `EditTemplate` = '"; $order = new nc_minishop_order($message); echo "\nSUB_FOLDER.$nc_core->HTTP_ROOT_PATH."modules/minishop/admin.css\'>\n
\n".( $warnText ? "
$warnText
" : NULL )."\n

Заказ №$message, ".substr($f_Created,0,10)."


\n
SUB_FOLDER.$nc_core->HTTP_ROOT_PATH."message.php\'>\n
\n\n".$nc_core->token->get_input()." \n\n\n\n\n\n\n\n" . $nc_core->token->get_input() . "\n".( $admin_mode && !$systemTableID ? "
\n ".($admin_mode ? "
\n ".CONTROL_CONTENT_SUBDIVISION_FUNCS_MAINDATA_KEYWORD." \n
\n
\n \'Приоритет\'\n \n
" : "")."\n ".(CheckUserRights( $current_cc[\'Sub_Class_ID\'], "moderate", $posting )? "\n
\n \n
"\n : "")."\n
\n" : NULL )."".($admin_mode ? "
".( $f_LastUserID ?"": NULL )."
".CLASS_TAB_CUSTOM_ADD.":
".$f_Created."
".( $f_newAdminInterface_user_add ? $f_newAdminInterface_user_add : $f_AdminButtons_user_add )."
(".$f_IP.")
".CLASS_TAB_CUSTOM_EDIT.":
".$f_LastUpdated."
".( $f_newAdminInterface_user_change ? $f_newAdminInterface_user_change : $f_AdminButtons_user_change )."
(".$f_LastIP.")
" : "")."
\n ".($admin_mode ? "SEO\n
\n
".NETCAT_MODERATION_SEO_TITLE.":

\n
".NETCAT_MODERATION_SEO_KEYWORDS.":

\n
".NETCAT_MODERATION_SEO_DESCRIPTION.":

\n
" :"")."
\n\n\n

Позиции заказа

\n
\n
Название
\n
URL
\n
Кол.
\n
Цена
\n
\n
\n
\n
\n
ADMIN_TEMPLATE."img/i_obj_add.gif\' alt=\'\' title=\'Добавить\'/>Добавить
\n\n\n\n

Стоимость заказа

\n
\nСтоимость без скидки: ".$nc_minishop->get_currency()."
\nСкидка: %
\nОкончательная стоимость: ".$nc_minishop->get_currency()."
\n
\n\n

Свойства заказа

\n".nc_list_field("Status", "", $classID, 1)."
\n
\n".nc_list_field("Delivery", "", $classID, 1)."
\n
\n".nc_list_field("Payment", "", $classID, 1)."
\n
\n".nc_text_field("Note", "", $classID, 1)."
\n
\n\n\n

Контактные данные

\n".nc_string_field("Name", "maxlength=\'255\' size=\'50\'", $classID, 1)."
\n
\n".nc_string_field("Phone", "maxlength=\'255\' size=\'50\'", $classID, 1)."
\n
\n".nc_string_field("Email", "maxlength=\'255\' size=\'50\'", $classID, 1)."
\n
\n".nc_text_field("Address", "", $classID, 1)."
\n
\n\n
".NETCAT_MODERATION_INFO_REQFIELDS."

\n".nc_submit_button(NETCAT_MODERATION_BUTTON_CHANGE)."\n
\n\n
\n\n', `AddActionTemplate` = '";\n$nc_minishop->save_order ( $message ) ;\n\n// отправка писем\n$mailer = new CMIMEMail();\n$settings = $nc_core->get_settings(\'\',\'minishop\');\n$from = $settings[\'shop_email\'] ? $settings[\'shop_email\'] : $system_env[\'SpamFromEmail\'];;\n$fromname = $system_env[\'SpamFromName\'];\n$manager_email = $settings[\'admin_email\'] ? $settings[\'admin_email\'] : $system_env[\'SpamFromEmail\'];;\n\n// отправка письма покупателю\nif ( $settings[\'notify_mail\'] ) {\n $mailinfo = $nc_minishop->get_mail( \'customer\', $message );\n $mailer->mailbody( strip_tags($mailinfo[\'body\']), $mailinfo[\'html\'] ? $mailinfo[\'body\'] : "");\n $mailer->send($f_Email, $from, $manager_email, $mailinfo[\'subject\'], $fromname);\n}\n\n//отправка письма менеджеру\nif ( $manager_email ) {\n $mailinfo = $nc_minishop->get_mail( \'admin\', $message );\n $mailer->mailbody( strip_tags($mailinfo[\'body\']), $mailinfo[\'html\'] ? $mailinfo[\'body\'] : "");\n $mailer->send($manager_email, $from, $from, $mailinfo[\'subject\'], $fromname);\n}\necho $nc_minishop->get_afterorder_text($message)."', `EditActionTemplate` = '";\nif ( $changeStatus ) {\n ob_end_clean();\n header("Location: ".$goBackLink);\n exit;\n}\n\n$nc_minishop->edit_order($message,$goods);\n\nif($inside_admin) {\n ob_end_clean();\n header("Location: ".$goBackLink."&inside_admin=1");\n exit;\n}\nelse {\n echo "Заказ $message изменен";\n echo "

".$goBack;\n}\necho "', `SearchTemplate` = '', `FullSearchTemplate` = '
\n".($admin_mode ? "" : "" )."\n ".( $inside_admin ? "\n\n" : "")." \n\n \n \n \n
\n Статус заказа:\n \n ".str_replace(\'f_\', \'\', nc_list_select(\'MinishopStatus\', \'srchPat[0]\', $srchPat[0],false,false, "", "", "", ""))."\n\n \n \n \n
\n\n
', `SubscribeTemplate` = '', `System_Table_ID` = '0', `Settings` = '$currency = $nc_minishop->get_currency();\nif ( $srchPat[0] === 0 ) unset($srchPat[0]);\n\n// на случай, если в разделе права выставлены неверно\nif ( !is_object($perm) || !$perm->isSubClass($cc, MASK_MODERATE) ) $query_where = " 0 ";', `AddCond` = '// проверка каптчи\nif( !$AUTH_USER_ID && !$current_cc["UseCaptcha"] && $nc_core->get_settings(\'orderform_captcha\', \'minishop\') && $MODULE_VARS["captcha"] && !nc_captcha_verify_code($nc_captcha_code) ) {\n $warnText = NETCAT_MODULE_CAPTCHA_WRONG_CODE;\n $posting = 0;\n}\n\n// нет смысла оформлять заказ без товаров\nif ( !$nc_minishop->cart_count() ) {\n $posting=0;\n $warnText = "Корзина пуста";\n}\n\n// статус заказа по умолчанию\n$f_Status = 1;\n', `EditCond` = '', `SubscribeCond` = '', `DeleteCond` = '', `NL2BR` = '1', `UseCaptcha` = '0', `CheckActionTemplate` = '', `DeleteActionTemplate` = '', `CustomSettingsTemplate` = '', `ClassDescription` = '', `DeleteTemplate` = 'Компонент отвечает за систему заказов и относится к модулю "Минимагазин".\n\nПоля: имя, телефон, email, адрес, способ оплаты и доставки, примечание, цена, скидка и статус заказа.', `ClassTemplate` = '0', `Type` = 'useful', `CacheForUser` = '0'; INSERT INTO `Class` SET `Class_Name` = 'Режим администрирования', `Class_Group` = 'Шаблоны компонентов', `DaysToHold` = '0', `AllowTags` = '0', `FormPrefix` = '$f_AdminCommon\n".( $searchForm ? "\n
\n
\n ".NETCAT_MODERATION_FILTER."\n $searchForm\n
\n
\n " : "" )."\n', `FormSuffix` = '".( $totRows ? "
" : "" )."\n\n
\n".( !$totRows ? "Нет заказов" : "\nВсего $totRows ".nc_numeral_inclination($totRows, array(\'заказ\',\'заказов\', \'заказа\')))."\n
\n\n', `RecordTemplate` = '"; $order = new nc_minishop_order($f_RowID); $result .= "\n
\n\n\n \n \n\n \n \n\n\n\n\n
\n

Заказ №$f_RowID, $f_Created_date

\n
\n
\n
\n Статус заказа: \n \n \n \n \n \n \n \n ".nc_list_select(\'MinishopStatus\',\'Status\', $f_Status_id )."\n \n \n
\n
\n
\n $f_AdminButtons\n
\n\n\n";\n// вывод позиций заказа\nforeach ( $order->content() as $position ) { \n $result .= $position[\'uri\'] ? "".$position[\'name\']."" : $position[\'name\'];\n $result .= ", cтоимость: ".$position[\'price\']." * ".$position[\'quantity\']." = ".($position[\'price\']*$position[\'quantity\'])." $currency";\n $result .= "
";\n}\n$result .= "\n
\n".( $f_Discount ? "Сумма без скидки: $f_Cost $currency, скидка - $f_Discount%
" : "" )."\nИтоговая сумма: $f_FinalCost $currency \n

\n$f_Name \n".opt($f_Phone, ", телефон: $f_Phone")."\n".opt($f_Email, ", $f_Email")."\n

\n".opt($f_Delivery, "Вариант доставки: $f_Delivery
")."\n".opt($f_Address, "Адрес: $f_Address
")."\n".opt($f_Note, "Примечание: $f_Note")."\n\n
\n
\n', `RecordsPerPage` = '20', `SortBy` = '', `RecordTemplateFull` = '%Full%', `TitleTemplate` = '', `TitleList` = '', `UseAltTitle` = '0', `AddTemplate` = '', `EditTemplate` = '', `AddActionTemplate` = '', `EditActionTemplate` = '', `SearchTemplate` = '', `FullSearchTemplate` = '', `SubscribeTemplate` = '', `System_Table_ID` = '0', `Settings` = '%Settings%', `AddCond` = '', `EditCond` = '', `SubscribeCond` = '', `DeleteCond` = '', `NL2BR` = '1', `UseCaptcha` = '0', `CheckActionTemplate` = '', `DeleteActionTemplate` = '', `CustomSettingsTemplate` = '', `ClassDescription` = '', `DeleteTemplate` = '', `ClassTemplate` = '%INSERT_ID%', `Type` = 'inside_admin', `CacheForUser` = '0'; INSERT INTO `Class` SET `Class_Name` = 'Минимагазин: Заказы для личного кабинета', `Class_Group` = 'Шаблоны компонентов', `DaysToHold` = '0', `AllowTags` = '0', `FormPrefix` = '
\n\n\n', `FormSuffix` = '".( $totRows ? "
" : "" )."\n\n
\n".( !$totRows ? "Нет заказов" : "\nВсего $totRows ".nc_numeral_inclination($totRows, array(\'заказ\',\'заказов\', \'заказа\')))."\n
\n\n
', `RecordTemplate` = '"; $order = new nc_minishop_order($f_RowID); $result .= "\n
\n
\n
\n

Заказ №$f_RowID, $f_Created_date

\n
\n Статус заказа: $f_Status\n
\n
\n
\n\n$f_AdminButtons\n\n";\n// вывод позиций заказа\nforeach ( $order->content() as $position ) { \n $result .= $position[\'uri\'] ? "".$position[\'name\']."" : $position[\'name\'];\n $result .= ", cтоимость: ".$position[\'price\']." * ".$position[\'quantity\']." = ".($position[\'price\']*$position[\'quantity\'])." $currency";\n $result .= "
";\n}\n$result .= "\n
\n".( $f_Discount ? "Сумма без скидки: $f_Cost $currency, скидка - $f_Discount%
" : "" )."\nИтоговая сумма: $f_FinalCost $currency \n

\n".opt($f_Delivery, "Вариант доставки: $f_Delivery
")."\n".opt($f_Address, "Адрес: $f_Address
")."\n
\n', `RecordsPerPage` = '0', `SortBy` = '', `RecordTemplateFull` = '', `TitleTemplate` = '', `TitleList` = '', `UseAltTitle` = '0', `AddTemplate` = '', `EditTemplate` = '', `AddActionTemplate` = '', `EditActionTemplate` = '', `SearchTemplate` = '', `FullSearchTemplate` = '', `SubscribeTemplate` = '', `System_Table_ID` = '0', `Settings` = '$currency = $nc_minishop->get_currency();\n$ignore_sub = $ignore_cc = 1;\n$ignore_user = 0;\n\n// на случай, если в разделе права выставлены неверно\nif ( !$AUTH_USER_ID ) $query_where = " 0 ";', `AddCond` = '', `EditCond` = '', `SubscribeCond` = '', `DeleteCond` = '', `NL2BR` = '1', `UseCaptcha` = '0', `CheckActionTemplate` = '', `DeleteActionTemplate` = '', `CustomSettingsTemplate` = '', `ClassDescription` = '', `DeleteTemplate` = '', `ClassTemplate` = '%INSERT_ID%', `Type` = 'useful', `CacheForUser` = '0'; CREATE TABLE `Message%INSERT_ID%` ( `Message_ID` int(11) NOT NULL auto_increment, `User_ID` int(11) NOT NULL, `Subdivision_ID` int(11) NOT NULL, `Sub_Class_ID` int(11) NOT NULL, `Priority` int(11) NOT NULL default '0', `Keyword` char(255) NOT NULL, `ncTitle` varchar(255) default NULL, `ncKeywords` varchar(255) default NULL, `ncDescription` text, `Checked` tinyint(4) NOT NULL default '1', `IP` char(15) default NULL, `UserAgent` char(255) default NULL, `Parent_Message_ID` int(11) NOT NULL default '0', `Created` datetime NOT NULL, `LastUpdated` timestamp NOT NULL default CURRENT_TIMESTAMP on update CURRENT_TIMESTAMP, `LastUser_ID` int(11) NOT NULL, `LastIP` char(15) default NULL, `LastUserAgent` char(255) default NULL, `Name` char(255) NOT NULL, `Phone` char(255) default NULL, `Email` char(255) default NULL, `Address` text, `Delivery` int(11) default NULL, `Note` longtext, `Cost` double default NULL, `FinalCost` double default NULL, `Discount` double default NULL, `Status` int(11) default NULL, `Payment` int(11) default NULL, PRIMARY KEY (`Message_ID`), UNIQUE KEY `Sub_Class_ID` (`Sub_Class_ID`,`Message_ID`,`Keyword`), KEY `User_ID` (`User_ID`), KEY `LastUser_ID` (`LastUser_ID`), KEY `Subdivision_ID` (`Subdivision_ID`), KEY `Parent_Message_ID` (`Parent_Message_ID`), KEY `Status` (`Status`)) ENGINE=MyISAM; INSERT INTO Field (`Class_ID`, `Field_Name`, `Description`, `TypeOfData_ID`, `Format`, `NotNull`, `Priority`, `DoSearch`, `DefaultState`, `TypeOfEdit_ID`) VALUES (%INSERT_ID%, 'Email', 'Email', 1, 'email', 0, 2, 0, '', 1); INSERT INTO Field (`Class_ID`, `Field_Name`, `Description`, `TypeOfData_ID`, `Format`, `NotNull`, `Priority`, `DoSearch`, `DefaultState`, `TypeOfEdit_ID`) VALUES (%INSERT_ID%, 'Phone', 'Телефон', 1, 'phone', 0, 1, 0, '', 1); INSERT INTO Field (`Class_ID`, `Field_Name`, `Description`, `TypeOfData_ID`, `Format`, `NotNull`, `Priority`, `DoSearch`, `DefaultState`, `TypeOfEdit_ID`) VALUES (%INSERT_ID%, 'Name', 'Имя, фамилия', 1, '', 1, 0, 0, '', 1); INSERT INTO Field (`Class_ID`, `Field_Name`, `Description`, `TypeOfData_ID`, `Format`, `NotNull`, `Priority`, `DoSearch`, `DefaultState`, `TypeOfEdit_ID`) VALUES (%INSERT_ID%, 'Address', 'Адрес доставки', 3, '5:60;html:0;br:0;fck:0;bbcode:0;usereditor:0;', 0, 3, 0, '', 1); INSERT INTO Field (`Class_ID`, `Field_Name`, `Description`, `TypeOfData_ID`, `Format`, `NotNull`, `Priority`, `DoSearch`, `DefaultState`, `TypeOfEdit_ID`) VALUES (%INSERT_ID%, 'Delivery', 'Вариант доставки', 4, 'MinishopDelivery:radio', 0, 4, 0, '', 1); INSERT INTO Field (`Class_ID`, `Field_Name`, `Description`, `TypeOfData_ID`, `Format`, `NotNull`, `Priority`, `DoSearch`, `DefaultState`, `TypeOfEdit_ID`) VALUES (%INSERT_ID%, 'Note', 'Примечание', 3, '5:60;html:0;br:0;fck:0;bbcode:0;usereditor:0;', 0, 6, 0, '', 1); INSERT INTO Field (`Class_ID`, `Field_Name`, `Description`, `TypeOfData_ID`, `Format`, `NotNull`, `Priority`, `DoSearch`, `DefaultState`, `TypeOfEdit_ID`) VALUES (%INSERT_ID%, 'Cost', 'Стоимость без скидки', 7, '', 0, 7, 0, '', 2); INSERT INTO Field (`Class_ID`, `Field_Name`, `Description`, `TypeOfData_ID`, `Format`, `NotNull`, `Priority`, `DoSearch`, `DefaultState`, `TypeOfEdit_ID`) VALUES (%INSERT_ID%, 'FinalCost', 'Стоимость со скидкой', 7, '', 0, 8, 0, '', 2); INSERT INTO Field (`Class_ID`, `Field_Name`, `Description`, `TypeOfData_ID`, `Format`, `NotNull`, `Priority`, `DoSearch`, `DefaultState`, `TypeOfEdit_ID`) VALUES (%INSERT_ID%, 'Discount', 'Скидка', 7, '', 0, 9, 0, '', 2); INSERT INTO Field (`Class_ID`, `Field_Name`, `Description`, `TypeOfData_ID`, `Format`, `NotNull`, `Priority`, `DoSearch`, `DefaultState`, `TypeOfEdit_ID`) VALUES (%INSERT_ID%, 'Status', 'Статус заказа', 4, 'MinishopStatus', 0, 10, 1, '', 2); INSERT INTO Field (`Class_ID`, `Field_Name`, `Description`, `TypeOfData_ID`, `Format`, `NotNull`, `Priority`, `DoSearch`, `DefaultState`, `TypeOfEdit_ID`) VALUES (%INSERT_ID%, 'Payment', 'Способ оплаты', 4, 'MinishopPayment:radio', 0, 5, 0, '', 1);