4.2 -- NetCat 4.2 Extra [0] component file, generated 2010-10-01 18:17:03 INSERT INTO `Class` SET `Class_Name` = 'Витрина товаров: Каталог товаров', `Class_Group` = 'Витрина товаров', `DaysToHold` = '0', `AllowTags` = '1', `FormPrefix` = '$f_AdminCommon\r\n
\r\n\r\n".( $NumCols>1 ? str_repeat("",$NumCols) : NULL )."\r\n', `FormSuffix` = '".( $f_RowNum%$NumCols ? str_repeat(\'\',($NumCols-$f_RowNum%$NumCols)) : NULL )."\r\n\r\n
 
\r\n\r\n".opt( $totRows>$f_RowNum && !$nc_title && !$srchPat ,\r\n"
\r\n".opt($cc_settings[\'PaginationMode\']!=\'nums\',"\r\n
\r\n ".opt_case($prevLink , "Назад","Назад")."\r\n ".opt_case($nextLink, "Далее","Далее")."\r\n
\r\n").opt($cc_settings[\'PaginationMode\']!=\'next_prev\',"\r\n
Страницы: ".browse_messages($cc_env, 5)."
\r\n")."\r\n
\r\n")."\r\n\r\n
', `RecordTemplate` = '".opt( !($f_RowNum%$NumCols) && $f_RowNum , \'\' )."\r\n\r\n$f_AdminButtons\r\n\r\n

".( $cc_settings[\'Link\'] != \'photo\' ? "$f_Title" : $f_Title )."

\r\n".( $f_PhotoSmall ? ( $cc_settings[\'Link\'] != \'title\' ? "\'$f_Title\'" : "\'$f_Title\'" ) : NULL )."\r\n".( !$cc_settings[\'ShowPrice\'] && $f_Price ? "
Цена: $f_Price $Pay
" : NULL )."\r\n".( $f_Description ? "
$f_Description
" : NULL )."\r\n\r\n', `RecordsPerPage` = '20', `SortBy` = '', `RecordTemplateFull` = '
\r\n

$f_Title

\r\n".( $f_PhotoSmall ? opt( $f_PhotoLarge , "" )."\'$f_Title\'".opt( $f_PhotoLarge , \'\' ) : NULL )."\r\n".( $f_TextFull ? "
$f_TextFull
" : NULL )."\r\n".( $f_Price ? "
Цена: $f_Price $Pay
" : NULL )."\r\n
\r\n\r\n
\r\n
\r\n\r\nЗаказать сейчас!
\r\n\r\n\r\n\r\n
\r\n

\r\n".( $warnText ? "
$warnText
" : NULL )."\r\n
\r\n
\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n".nc_int_field("Count", "maxlength=\'12\' size=\'12\' onchange=\'new_count(); return false;\'", $cc_order[\'class\'], 1)."\r\nСумма:
\r\n
\r\n".nc_string_field("Surname", "maxlength=\'255\' size=\'50\'",$cc_order[\'class\'], 1)."
\r\n
\r\n".nc_string_field("Name", "maxlength=\'255\' size=\'50\'", $cc_order[\'class\'], 1)."
\r\n
\r\n".nc_string_field("Phone", "maxlength=\'255\' size=\'50\'", $cc_order[\'class\'], 1)."
\r\n
\r\n".nc_string_field("Email", "maxlength=\'255\' size=\'50\'", $cc_order[\'class\'], 1)."
\r\n
\r\n".nc_string_field("Adress", "maxlength=\'255\' size=\'50\'", $cc_order[\'class\'], 1)."
\r\n
\r\n".nc_string_field("PaymentType", "maxlength=\'255\' size=\'50\'", $cc_order[\'class\'], 1)."
\r\n
\r\n".(!$AUTH_USER_ID && $current_cc[\'UseCaptcha\'] && $MODULE_VARS[\'captcha\'] ? nc_captcha_formfield()."

".NETCAT_MODERATION_CAPTCHA." (*):


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

\r\n".nc_submit_button(NETCAT_MODERATION_BUTTON_ADD)."\r\n\r\n
', `TitleTemplate` = '', `AddTemplate` = '', `EditTemplate` = '', `AddActionTemplate` = '";\n eval(listQuery("SELECT CustomSettings FROM Sub_Class WHERE Sub_Class_ID=\'$cc\'","\\$data[CustomSettings]"));\n global $nc_core;\n require_once($nc_core->INCLUDE_FOLDER."classes/nc_imagetransform.class.php");\n if ($_FILES[f_PhotoLarge][size]!=0 && $_FILES[f_PhotoLarge][type]!=\'\')\n {\n $photo_path = $DOCUMENT_ROOT.nc_file_path($classID, $message, \'PhotoLarge\', "");\n if ($photo_path) nc_ImageTransform::imgResize("$photo_path","$photo_path",$CustomSettings[ImgWidthFull],$CustomSettings[ImgHeightFull]);\n }\n if ($_FILES[f_PhotoLarge][size]!=0 && $_FILES[f_PhotoLarge][type]!=\'\' && $_FILES[f_PhotoSmall][size]== 0)\n {\n nc_ImageTransform::createThumb(\'PhotoLarge\',\'PhotoSmall\',$CustomSettings[ImgWidth],$CustomSettings[ImgHeight]);\n }\n if ($_FILES[f_PhotoSmall][size]!=0 && $_FILES[f_PhotoSmall][type]!=\'\')\n {\n $photo_path = $DOCUMENT_ROOT.nc_file_path($classID, $message, \'PhotoSmall\', "");\n if ($photo_path) nc_ImageTransform::imgResize("$photo_path","$photo_path",$CustomSettings[ImgWidth],$CustomSettings[ImgHeight]);\n }\n \n### default\nif($inside_admin) {\n ob_end_clean();\n header("Location: ".$goBackLink."&inside_admin=1");\n exit;\n}\nelse {\n echo NETCAT_MODERATION_MSG_OBJADD;\n echo "

".$goBack;\n}\necho "', `EditActionTemplate` = '";\n eval(listQuery("SELECT CustomSettings FROM Sub_Class WHERE Sub_Class_ID=\'$cc\'","\\$data[CustomSettings]"));\n global $nc_core;\n require_once($nc_core->INCLUDE_FOLDER."classes/nc_imagetransform.class.php");\n if ($_FILES[f_PhotoLarge][size]!=0 && $_FILES[f_PhotoLarge][type]!=\'\')\n {\n $photo_path = $DOCUMENT_ROOT.nc_file_path($classID, $message, \'PhotoLarge\', "");\n if ($photo_path) nc_ImageTransform::imgResize("$photo_path","$photo_path",$CustomSettings[ImgWidthFull],$CustomSettings[ImgHeightFull]);\n }\n if ($_FILES[f_PhotoLarge][size]!=0 && $_FILES[f_PhotoLarge][type]!=\'\' && $_FILES[f_PhotoSmall][size]== 0)\n {\n nc_ImageTransform::createThumb(\'PhotoLarge\',\'PhotoSmall\',$CustomSettings[ImgWidth],$CustomSettings[ImgHeight]);\n }\n if ($_FILES[f_PhotoSmall][size]!=0 && $_FILES[f_PhotoSmall][type]!=\'\')\n {\n $photo_path = $DOCUMENT_ROOT.nc_file_path($classID, $message, \'PhotoSmall\', "");\n if ($photo_path) nc_ImageTransform::imgResize("$photo_path","$photo_path",$CustomSettings[ImgWidth],$CustomSettings[ImgHeight]);\n }\n// default\nif($inside_admin) {\n ob_end_clean();\n header("Location: ".$goBackLink."&inside_admin=1");\n exit;\n}\nelse {\n echo "

".$goBack;\n}\necho "', `SearchTemplate` = '', `FullSearchTemplate` = '', `SubscribeTemplate` = '', `System_Table_ID` = '0', `Settings` = '( !isset($nc_num_cols) ? $NumCols = &$cc_settings[NumCols] : $NumCols= (int)$nc_num_cols );\r\n$ColWidth= ( $NumCols>1 ? \'width="\'.(floor(100/$NumCols)).\'%"\' : NULL);\r\n$Pay = array(\'rur\'=>\'руб.\',\'usd\'=>\'$\',\'eu\'=>\'€\',\'no\'=>\'\',\'other\'=>$cc_settings[\'OtherPay\']);\r\n$Pay = $Pay[$cc_settings[\'Pay\']];\r\n\r\nglobal $init_order;\r\nglobal $cc_order;\r\nif ( !$init_order ) {\r\n $init_order = 1;\r\n $cc_order = $db->get_row("SELECT `Class_ID` as class, `Sub_Class_ID` as cc, `Subdivision_ID` as sub FROM `Sub_Class` WHERE `Subdivision_ID` = \'".intval($cc_settings[\'OrderSub\'])."\'", ARRAY_A);\r\n}', `AddCond` = '', `EditCond` = '', `SubscribeCond` = '', `DeleteCond` = '', `NL2BR` = '0', `UseCaptcha` = '0', `CheckActionTemplate` = '', `DeleteActionTemplate` = '', `CustomSettingsTemplate` = '$settings_array = array(\r\n \'PaginationMode\' => array(\'type\' => \'select\',\r\n \'default_value\' => \'next_prev\',\r\n \'caption\' => \'Листинг по страницам\',\r\n \'values\' => array(\'next_prev\' => \'вперед/назад\', \'nums\' => \'по номерам страниц\', \'all\'=>\'оба варианта\')\r\n ),\r\n \'NumCols\' => array(\'type\' => \'string\',\r\n \'default_value\' => \'3\',\r\n \'caption\' => \'Количество колонок\',\r\n \'size\' => \'3\',\r\n \'validate_regexp\' => \'/^\\d+$/\',\r\n \'validate_error\' => \'Введите целое число\'\r\n ),\r\n \'ShowPrice\' => array(\'type\' => \'checkbox\',\r\n \'caption\' => \'Не выводить цену в списке\' \r\n ),\r\n \'Pay\' => array(\'type\' => \'select\',\r\n \'default_value\' => \'rur\',\r\n \'caption\' => \'Цена в\',\r\n \'values\' => array(\'rur\' => \'рубли\', \'usd\' => \'доллары\', \'eu\'=>\'евро\', \'no\'=>\'не выводить\', \'other\'=>\'другая валюта\' )\r\n ),\r\n \'OtherPay\' => array(\'type\' => \'string\',\r\n \'default_value\' => \'\',\r\n \'caption\' => \'Другая валюта\',\r\n \'size\' => \'21\'\r\n ),\r\n \'Link\' => array(\'type\' => \'select\',\r\n \'default_value\' => \'all\',\r\n \'caption\' => \'Ссылка на полный вид\',\r\n \'values\' => array( \'photo\' => \'на фото\', \'title\' => \'на названии\', \'all\'=>\'на фото и на названии\' )\r\n ),\r\n \'ShopName\' => array(\'type\' => \'string\',\r\n \'default_value\' => \'Мой магазин\',\r\n \'caption\' => \'Название магазина\',\r\n \'size\' => \'21\'\r\n ),\r\n \'email\' => array(\'type\' => \'string\',\r\n \'default_value\' => \'\',\r\n \'caption\' => \'Email менеджера\',\r\n \'size\' => \'21\'\r\n ),\r\n \'OrderSub\' => array(\'type\' => \'string\',\r\n \'default_value\' => \'\',\r\n \'caption\' => \'Номер раздела с заказами\',\r\n \'size\' => \'3\'\r\n ),\r\n \'ImgWidth\' => array(\'type\' => \'string\',\r\n \'default_value\' => 150,\r\n \'caption\' => \'Ширина (превью)\',\r\n \'size\' => 5,\r\n \'validate_regexp\' => \'/^\\d+$/\',\r\n \'validate_error\' => \'Введите целое число\'\r\n ),\r\n \'ImgHeight\' => array(\'type\' => \'string\',\r\n \'default_value\' => 150,\r\n \'caption\' => \'Высота (превью)\',\r\n \'size\' => 5,\r\n \'validate_regexp\' => \'/^\\d+$/\',\r\n \'validate_error\' => \'Введите целое число\'\r\n ),\r\n \'ImgWidthFull\' => array(\'type\' => \'string\',\r\n \'default_value\' => 800,\r\n \'caption\' => \'Ширина\',\r\n \'size\' => 5,\r\n \'validate_regexp\' => \'/^\\d+$/\',\r\n \'validate_error\' => \'Введите целое число\'\r\n ),\r\n \'ImgHeightFull\' => array(\'type\' => \'string\',\r\n \'default_value\' => 600,\r\n \'caption\' => \'Высота\',\r\n \'size\' => 5,\r\n \'validate_regexp\' => \'/^\\d+$/\',\r\n \'validate_error\' => \'Введите целое число\'\r\n )\r\n);', `ClassDescription` = '', `DeleteTemplate` = '', `ClassTemplate` = '0', `Type` = 'useful', `CacheForUser` = '0'; INSERT INTO `Class` SET `Class_Name` = 'Витрина товаров: Каталог товаров (Титульная)', `Class_Group` = 'Шаблоны компонентов', `DaysToHold` = '0', `AllowTags` = '1', `FormPrefix` = '$f_AdminCommon\r\n
\r\n\r\n".( $NumCols>1 ? str_repeat("",$NumCols) : NULL )."\r\n', `FormSuffix` = '".( $f_RowNum%$NumCols ? str_repeat(\'\',($NumCols-$f_RowNum%$NumCols)) : NULL )."\r\n\r\n
 
\r\n\r\n
', `RecordTemplate` = '".opt( !($f_RowNum%$NumCols) && $f_RowNum , \'\' )."\r\n\r\n$f_AdminButtons\r\n\r\n

".( $cc_settings[\'Link\'] != \'photo\' ? "$f_Title" : $f_Title )."

\r\n".( $f_PhotoSmall ? ( $cc_settings[\'Link\'] != \'title\' ? "\'$f_Title\'" : "\'$f_Title\'" ) : NULL )."\r\n".( !$cc_settings[\'ShowPrice\'] && $f_Price ? "
Цена: $f_Price $Pay
" : NULL )."\r\n".( $f_Description ? "
$f_Description
" : NULL )."\r\n\r\n', `RecordsPerPage` = '20', `SortBy` = '', `RecordTemplateFull` = '
\r\n

$f_Title

\r\n".( $f_PhotoSmall ? opt( $f_PhotoLarge , "" )."\'$f_Title\'".opt( $f_PhotoLarge , \'\' ) : NULL )."\r\n".( $f_TextFull ? "
$f_TextFull
" : NULL )."\r\n".( $f_Price ? "
Цена: $f_Price $Pay
" : NULL )."\r\n
\r\n\r\n
\r\n
\r\n\r\nЗаказать сейчас!
\r\n\r\n\r\n\r\n
\r\n

\r\n".( $warnText ? "
$warnText
" : NULL )."\r\n
\r\n
\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n".nc_int_field("Count", "maxlength=\'12\' size=\'12\' onchange=\'new_count(); return false;\'", $cc_order[\'class\'], 1)."\r\nСумма:
\r\n
\r\n".nc_string_field("Surname", "maxlength=\'255\' size=\'50\'",$cc_order[\'class\'], 1)."
\r\n
\r\n".nc_string_field("Name", "maxlength=\'255\' size=\'50\'", $cc_order[\'class\'], 1)."
\r\n
\r\n".nc_string_field("Phone", "maxlength=\'255\' size=\'50\'", $cc_order[\'class\'], 1)."
\r\n
\r\n".nc_string_field("Email", "maxlength=\'255\' size=\'50\'", $cc_order[\'class\'], 1)."
\r\n
\r\n".nc_string_field("Adress", "maxlength=\'255\' size=\'50\'", $cc_order[\'class\'], 1)."
\r\n
\r\n".nc_string_field("PaymentType", "maxlength=\'255\' size=\'50\'", $cc_order[\'class\'], 1)."
\r\n
\r\n".(!$AUTH_USER_ID && $current_cc[\'UseCaptcha\'] && $MODULE_VARS[\'captcha\'] ? nc_captcha_formfield()."

".NETCAT_MODERATION_CAPTCHA." (*):


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

\r\n".nc_submit_button(NETCAT_MODERATION_BUTTON_ADD)."\r\n\r\n
', `TitleTemplate` = '', `AddTemplate` = '', `EditTemplate` = '', `AddActionTemplate` = '";\n eval(listQuery("SELECT CustomSettings FROM Sub_Class WHERE Sub_Class_ID=\'$cc\'","\\$data[CustomSettings]"));\n global $nc_core;\n require_once($nc_core->INCLUDE_FOLDER."classes/nc_imagetransform.class.php");\n if ($_FILES[f_PhotoLarge][size]!=0 && $_FILES[f_PhotoLarge][type]!=\'\')\n {\n $photo_path = $DOCUMENT_ROOT.nc_file_path($classID, $message, \'PhotoLarge\', "");\n if ($photo_path) nc_ImageTransform::imgResize("$photo_path","$photo_path",$CustomSettings[ImgWidthFull],$CustomSettings[ImgHeightFull]);\n }\n if ($_FILES[f_PhotoLarge][size]!=0 && $_FILES[f_PhotoLarge][type]!=\'\' && $_FILES[f_PhotoSmall][size]== 0)\n {\n nc_ImageTransform::createThumb(\'PhotoLarge\',\'PhotoSmall\',$CustomSettings[ImgWidth],$CustomSettings[ImgHeight]);\n }\n if ($_FILES[f_PhotoSmall][size]!=0 && $_FILES[f_PhotoSmall][type]!=\'\')\n {\n $photo_path = $DOCUMENT_ROOT.nc_file_path($classID, $message, \'PhotoSmall\', "");\n if ($photo_path) nc_ImageTransform::imgResize("$photo_path","$photo_path",$CustomSettings[ImgWidth],$CustomSettings[ImgHeight]);\n }\n \n### default\nif($inside_admin) {\n ob_end_clean();\n header("Location: ".$goBackLink."&inside_admin=1");\n exit;\n}\nelse {\n echo NETCAT_MODERATION_MSG_OBJADD;\n echo "

".$goBack;\n}\necho "', `EditActionTemplate` = '";\n eval(listQuery("SELECT CustomSettings FROM Sub_Class WHERE Sub_Class_ID=\'$cc\'","\\$data[CustomSettings]"));\n global $nc_core;\n require_once($nc_core->INCLUDE_FOLDER."classes/nc_imagetransform.class.php");\n if ($_FILES[f_PhotoLarge][size]!=0 && $_FILES[f_PhotoLarge][type]!=\'\')\n {\n $photo_path = $DOCUMENT_ROOT.nc_file_path($classID, $message, \'PhotoLarge\', "");\n if ($photo_path) nc_ImageTransform::imgResize("$photo_path","$photo_path",$CustomSettings[ImgWidthFull],$CustomSettings[ImgHeightFull]);\n }\n if ($_FILES[f_PhotoLarge][size]!=0 && $_FILES[f_PhotoLarge][type]!=\'\' && $_FILES[f_PhotoSmall][size]== 0)\n {\n nc_ImageTransform::createThumb(\'PhotoLarge\',\'PhotoSmall\',$CustomSettings[ImgWidth],$CustomSettings[ImgHeight]);\n }\n if ($_FILES[f_PhotoSmall][size]!=0 && $_FILES[f_PhotoSmall][type]!=\'\')\n {\n $photo_path = $DOCUMENT_ROOT.nc_file_path($classID, $message, \'PhotoSmall\', "");\n if ($photo_path) nc_ImageTransform::imgResize("$photo_path","$photo_path",$CustomSettings[ImgWidth],$CustomSettings[ImgHeight]);\n }\n// default\nif($inside_admin) {\n ob_end_clean();\n header("Location: ".$goBackLink."&inside_admin=1");\n exit;\n}\nelse {\n echo "

".$goBack;\n}\necho "', `SearchTemplate` = '', `FullSearchTemplate` = '', `SubscribeTemplate` = '', `System_Table_ID` = '0', `Settings` = '( !isset($nc_num_cols) ? $NumCols = &$cc_settings[NumCols] : $NumCols= (int)$nc_num_cols );\r\n$ColWidth= ( $NumCols>1 ? \'width="\'.(floor(100/$NumCols)).\'%"\' : NULL);\r\n$Pay = array(\'rur\'=>\'руб.\',\'usd\'=>\'$\',\'eu\'=>\'€\',\'no\'=>\'\',\'other\'=>$cc_settings[\'OtherPay\']);\r\n$Pay = $Pay[$cc_settings[\'Pay\']];\r\n\r\nglobal $init_order;\r\nglobal $cc_order;\r\nif ( !$init_order ) {\r\n $init_order = 1;\r\n $cc_order = $db->get_row("SELECT `Class_ID` as class, `Sub_Class_ID` as cc, `Subdivision_ID` as sub FROM `Sub_Class` WHERE `Subdivision_ID` = \'".intval($cc_settings[\'OrderSub\'])."\'", ARRAY_A);\r\n}', `AddCond` = '', `EditCond` = '', `SubscribeCond` = '', `DeleteCond` = '', `NL2BR` = '0', `UseCaptcha` = '0', `CheckActionTemplate` = '', `DeleteActionTemplate` = '', `CustomSettingsTemplate` = '$settings_array = array(\r\n \'PaginationMode\' => array(\'type\' => \'select\',\r\n \'default_value\' => \'next_prev\',\r\n \'caption\' => \'Листинг по страницам\',\r\n \'values\' => array(\'next_prev\' => \'вперед/назад\', \'nums\' => \'по номерам страниц\', \'all\'=>\'оба варианта\')\r\n ),\r\n \'NumCols\' => array(\'type\' => \'string\',\r\n \'default_value\' => \'3\',\r\n \'caption\' => \'Количество колонок\',\r\n \'size\' => \'3\',\r\n \'validate_regexp\' => \'/^\\d+$/\',\r\n \'validate_error\' => \'Введите целое число\'\r\n ),\r\n \'ShowPrice\' => array(\'type\' => \'checkbox\',\r\n \'caption\' => \'Не выводить цену в списке\' \r\n ),\r\n \'Pay\' => array(\'type\' => \'select\',\r\n \'default_value\' => \'rur\',\r\n \'caption\' => \'Цена в\',\r\n \'values\' => array(\'rur\' => \'рубли\', \'usd\' => \'доллары\', \'eu\'=>\'евро\', \'no\'=>\'не выводить\', \'other\'=>\'другая валюта\' )\r\n ),\r\n \'OtherPay\' => array(\'type\' => \'string\',\r\n \'default_value\' => \'\',\r\n \'caption\' => \'Другая валюта\',\r\n \'size\' => \'21\'\r\n ),\r\n \'Link\' => array(\'type\' => \'select\',\r\n \'default_value\' => \'all\',\r\n \'caption\' => \'Ссылка на полный вид\',\r\n \'values\' => array( \'photo\' => \'на фото\', \'title\' => \'на названии\', \'all\'=>\'на фото и на названии\' )\r\n ),\r\n \'ShopName\' => array(\'type\' => \'string\',\r\n \'default_value\' => \'Мой магазин\',\r\n \'caption\' => \'Название магазина\',\r\n \'size\' => \'21\'\r\n ),\r\n \'email\' => array(\'type\' => \'string\',\r\n \'default_value\' => \'\',\r\n \'caption\' => \'Email менеджера\',\r\n \'size\' => \'21\'\r\n ),\r\n \'OrderSub\' => array(\'type\' => \'string\',\r\n \'default_value\' => \'\',\r\n \'caption\' => \'Номер раздела с заказами\',\r\n \'size\' => \'3\'\r\n ),\r\n \'ImgWidth\' => array(\'type\' => \'string\',\r\n \'default_value\' => 150,\r\n \'caption\' => \'Ширина (превью)\',\r\n \'size\' => 5,\r\n \'validate_regexp\' => \'/^\\d+$/\',\r\n \'validate_error\' => \'Введите целое число\'\r\n ),\r\n \'ImgHeight\' => array(\'type\' => \'string\',\r\n \'default_value\' => 150,\r\n \'caption\' => \'Высота (превью)\',\r\n \'size\' => 5,\r\n \'validate_regexp\' => \'/^\\d+$/\',\r\n \'validate_error\' => \'Введите целое число\'\r\n ),\r\n \'ImgWidthFull\' => array(\'type\' => \'string\',\r\n \'default_value\' => 800,\r\n \'caption\' => \'Ширина\',\r\n \'size\' => 5,\r\n \'validate_regexp\' => \'/^\\d+$/\',\r\n \'validate_error\' => \'Введите целое число\'\r\n ),\r\n \'ImgHeightFull\' => array(\'type\' => \'string\',\r\n \'default_value\' => 600,\r\n \'caption\' => \'Высота\',\r\n \'size\' => 5,\r\n \'validate_regexp\' => \'/^\\d+$/\',\r\n \'validate_error\' => \'Введите целое число\'\r\n )\r\n);', `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, `Checked` tinyint(4) NOT NULL default '1', `TimeToDelete` date default NULL, `TimeToUncheck` date default NULL, `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, `Title` char(255) NOT NULL, `Price` int NULL, `Description` text NULL, `TextFull` text NULL, `PhotoSmall` char(255) NULL, `PhotoLarge` char(255) 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`) ) TYPE=MyISAM; INSERT INTO Field (`Class_ID`, `Field_Name`, `Description`, `TypeOfData_ID`, `Format`, `NotNull`, `Priority`, `DoSearch`, `DefaultState`, `TypeOfEdit_ID`) VALUES (%INSERT_ID%, 'Title', 'Название', 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%, 'Price', 'Цена', 2, '', 0, 1, 0, '', 1); INSERT INTO Field (`Class_ID`, `Field_Name`, `Description`, `TypeOfData_ID`, `Format`, `NotNull`, `Priority`, `DoSearch`, `DefaultState`, `TypeOfEdit_ID`) VALUES (%INSERT_ID%, 'Description', 'Краткое описание', 3, '4:60', 0, 4, 0, '', 1); INSERT INTO Field (`Class_ID`, `Field_Name`, `Description`, `TypeOfData_ID`, `Format`, `NotNull`, `Priority`, `DoSearch`, `DefaultState`, `TypeOfEdit_ID`) VALUES (%INSERT_ID%, 'TextFull', 'Подробное описание', 3, '6:60', 0, 5, 0, '', 1); INSERT INTO Field (`Class_ID`, `Field_Name`, `Description`, `TypeOfData_ID`, `Format`, `NotNull`, `Priority`, `DoSearch`, `DefaultState`, `TypeOfEdit_ID`) VALUES (%INSERT_ID%, 'PhotoSmall', 'Маленькое фото', 6, '500000:image/*:fs3', 0, 2, 0, '', 1); INSERT INTO Field (`Class_ID`, `Field_Name`, `Description`, `TypeOfData_ID`, `Format`, `NotNull`, `Priority`, `DoSearch`, `DefaultState`, `TypeOfEdit_ID`) VALUES (%INSERT_ID%, 'PhotoLarge', 'Большое фото', 6, '2000000:image/*:fs3', 0, 3, 0, '', 1);