4.2 -- NetCat 4.2 Extra [0] component file, generated 2010-10-01 18:17:02 INSERT INTO `Class` SET `Class_Name` = 'Люди, работа: Персоналии', `Class_Group` = 'Люди, работа', `DaysToHold` = '0', `AllowTags` = '1', `FormPrefix` = '$f_AdminCommon\n
\n".opt( $cc_settings[\'ShowSearch\'],"\n
\n\n\n
\n")."\n\n".opt($colNums>1,str_repeat("" , $colNums))."\n', `FormSuffix` = '".opt_case( $cc_settings[\'Group\'] ,\nopt( ($dNum+1)%$colNums , str_repeat( \'\' , $colNums-(($dNum+1)%$colNums) ) ),\nopt($f_RowNum%$colNums , str_repeat( \'\' , ($colNums-$f_RowNum%$colNums) ) )\n)."\n\n
  
\n".opt( $totRows>$f_RowNum , "
Страницы: ".browse_messages($cc_env, 5)."
" )."\n
', `RecordTemplate` = '".opt_case( $cc_settings[\'Group\'] ,\nopt( $depHeader=( $curDep == $f_Department ? NULL : $curDep=$f_Department ) , NULL )\n.opt( $depHeader && $f_RowNum && (($dNum+1)%$colNums) , str_repeat( \' \' , $colNums-(($dNum+1)%$colNums) ) )\n.opt( ( $depHeader ? $dNum=0 : $dNum++ ) , NULL )\n.opt( $depHeader && $f_RowNum , \'\' )\n.opt( !($dNum%$colNums) && $dNum , \'\' )\n.opt( $depHeader,"

$depHeader

" )\n,\nopt( !($f_RowNum%$colNums) && $f_RowNum , \'\' )\n)."\n\n\n$f_AdminButtons\n".opt($f_PhotoLarge,"")."\n\'$f_Surname\n".opt($f_PhotoLarge,"")."\n\n

$f_Surname $f_Name $f_Patronymic

\n".opt(!$cc_settings[\'Group\'] && $f_Department,"

$f_Department

")\n.opt($f_Post,"
$f_Post
")\n.opt($f_Birthday,"
Дата рождения: $f_Birthday
")\n\n.opt($ShowContacts,\nopt($f_Email,"
E-mail: $f_Email
").\nopt($f_PhoneHome,"
Телефон (домашний): $f_PhoneHome
").\nopt($f_PhoneWork,"
Телефон (рабочий): $f_PhoneWork
").\nopt($f_PhoneMobile,"
Телефон (мобильный): $f_PhoneMobile
").\nopt($f_Text,"
$f_Text
")\n)\n.opt($cc_settings[ShowLink], "подробнее..." )."\n\n\n', `RecordsPerPage` = '20', `SortBy` = 'Priority', `RecordTemplateFull` = '
\n".opt($f_PhotoLarge,"")."\n\'$f_Surname\n".opt($f_PhotoLarge,"")."\n\n

$f_Surname $f_Name $f_Patronymic

\n".opt(!$cc_settings[\'Group\'] && $f_Department,"

$f_Department

")\n.opt($f_Post,"
$f_Post
")\n.opt($f_Birthday,"
Дата рождения: $f_Birthday
")\n.opt($f_Email,"
E-mail: $f_Email
")\n.opt($f_PhoneHome,"
Телефон (домашний): $f_PhoneHome
")\n.opt($f_PhoneWork,"
Телефон (рабочий): $f_PhoneWork
")\n.opt($f_PhoneMobile,"
Телефон (мобильный): $f_PhoneMobile
")\n.opt($f_Text,"
$f_Text
")."\n
', `TitleTemplate` = '', `AddTemplate` = '', `EditTemplate` = '', `AddActionTemplate` = '', `EditActionTemplate` = '', `SearchTemplate` = '', `FullSearchTemplate` = '', `SubscribeTemplate` = '', `System_Table_ID` = '0', `Settings` = 'global $current_user;\n( !isset($nc_num_cols) ? $colNums = &$cc_settings[CollsNum] : $colNums = (int)$nc_num_cols );\n$colWidth = ( $colNums>1 ? \'width="\'.(floor(100/$colNums)).\'%"\' : NULL);\nif($cc_settings[Sort]!=\'no\') $query_order = $cc_settings[Sort];\nif($cc_settings[\'Group\']) $query_order = \'Department\'.( $cc_settings[Sort]==\'Surname\' ? \',Surname\' : \',Priority\' );\n$curDep = NULL;\n$dNum = 0;\nif( ($cc_settings[\'ShowContacts\']==\'auth\' && $current_user[\'User_ID\']) || $cc_settings[\'ShowContacts\']==\'all\' ) $ShowContacts = true;\nelse $ShowContacts = false;\n', `AddCond` = '', `EditCond` = '', `SubscribeCond` = '', `DeleteCond` = '', `NL2BR` = '0', `UseCaptcha` = '0', `CheckActionTemplate` = '', `DeleteActionTemplate` = '', `CustomSettingsTemplate` = '$settings_array = array(\n \'CollsNum\' => array(\'type\' => \'string\',\n \'default_value\' => \'3\',\n \'caption\' => \'Количество колонок\',\n \'size\' => \'3\',\n \'validate_regexp\' => \'/^\\d+$/\',\n \'validate_error\' => \'Введите целое число\'\n ),\n \'Sort\' => array(\'type\' => \'select\',\n \'default_value\' => \'Surname\',\n \'caption\' => \'Сортировать по\',\n \'values\' => array(\'Surname\' => \'фамилии\', \'Department\' => \'отделу\', \'no\'=>\'не сортировать\')\n ),\n \'Group\' => array(\'type\' => \'checkbox\',\n \'default_value\' => \'\',\n \'caption\' => \'Группировать по отделам\'\n ),\n \'ShowLink\' => array(\'type\' => \'checkbox\',\n \'default_value\' => \'\',\n \'caption\' => \'Выводить ссылку на подробную страницу\'\n ),\n \'ShowContacts\' => array(\'type\' => \'select\',\n \'default_value\' => \'all\',\n \'caption\' => \'Вывод контактов\',\n \'values\' => array(\'all\' => \'всем\', \'auth\' => \'только авторизованным\', \'no\'=>\'не выводить\')\n ),\n \'ShowSearch\' => array(\'type\' => \'checkbox\',\n \'default_value\' => \'\',\n \'caption\' => \'Выводить форму поиска по фамилии\'\n )\n);', `ClassDescription` = 'Компонент предназначен для организации разделов «Руководство», \n«Менеджмент» и другие случаи, когда необходимо опубликовать \nкакой-либо список сотрудников компании.\n\nПоля: ФИО, отдел, должность, дата рождения, фото, e-mail, \nтелефоны, текстовой комментарий (краткий и подробный).', `DeleteTemplate` = '', `ClassTemplate` = '0', `Type` = 'useful', `CacheForUser` = '0'; INSERT INTO `Class` SET `Class_Name` = 'Люди, работа: Персоналии (Титульная)', `Class_Group` = 'Шаблоны компонентов', `DaysToHold` = '0', `AllowTags` = '1', `FormPrefix` = '$f_AdminCommon\n
\n\n\n".opt($colNums>1,str_repeat("" , $colNums))."\n', `FormSuffix` = '".opt_case( $cc_settings[\'Group\'] ,\nopt( ($dNum+1)%$colNums , str_repeat( \'\' , $colNums-(($dNum+1)%$colNums) ) ),\nopt($f_RowNum%$colNums , str_repeat( \'\' , ($colNums-$f_RowNum%$colNums) ) )\n)."\n\n
  
\n
', `RecordTemplate` = '".opt_case( $cc_settings[\'Group\'] ,\nopt( $depHeader=( $curDep == $f_Department ? NULL : $curDep=$f_Department ) , NULL )\n.opt( $depHeader && $f_RowNum && (($dNum+1)%$colNums) , str_repeat( \' \' , $colNums-(($dNum+1)%$colNums) ) )\n.opt( ( $depHeader ? $dNum=0 : $dNum++ ) , NULL )\n.opt( $depHeader && $f_RowNum , \'\' )\n.opt( !($dNum%$colNums) && $dNum , \'\' )\n.opt( $depHeader,"

$depHeader

" )\n,\nopt( !($f_RowNum%$colNums) && $f_RowNum , \'\' )\n)."\n\n\n$f_AdminButtons\n".opt($f_PhotoLarge,"")."\n\'$f_Surname\n".opt($f_PhotoLarge,"")."\n\n

$f_Surname $f_Name $f_Patronymic

\n".opt(!$cc_settings[\'Group\'] && $f_Department,"

$f_Department

")\n.opt($f_Post,"
$f_Post
")\n.opt($f_Birthday,"
Дата рождения: $f_Birthday
")\n\n.opt($ShowContacts,\nopt($f_Email,"
E-mail: $f_Email
").\nopt($f_PhoneHome,"
Телефон (домашний): $f_PhoneHome
").\nopt($f_PhoneWork,"
Телефон (рабочий): $f_PhoneWork
").\nopt($f_PhoneMobile,"
Телефон (мобильный): $f_PhoneMobile
").\nopt($f_Text,"
$f_Text
")\n)\n.opt($cc_settings[ShowLink], "подробнее..." )."\n\n\n', `RecordsPerPage` = '20', `SortBy` = 'Priority', `RecordTemplateFull` = '
\n".opt($f_PhotoLarge,"")."\n\'$f_Surname\n".opt($f_PhotoLarge,"")."\n\n

$f_Surname $f_Name $f_Patronymic

\n".opt(!$cc_settings[\'Group\'] && $f_Department,"

$f_Department

")\n.opt($f_Post,"
$f_Post
")\n.opt($f_Birthday,"
Дата рождения: $f_Birthday
")\n.opt($f_Email,"
E-mail: $f_Email
")\n.opt($f_PhoneHome,"
Телефон (домашний): $f_PhoneHome
")\n.opt($f_PhoneWork,"
Телефон (рабочий): $f_PhoneWork
")\n.opt($f_PhoneMobile,"
Телефон (мобильный): $f_PhoneMobile
")\n.opt($f_Text,"
$f_Text
")."\n
', `TitleTemplate` = '', `AddTemplate` = '', `EditTemplate` = '', `AddActionTemplate` = '', `EditActionTemplate` = '', `SearchTemplate` = '', `FullSearchTemplate` = '', `SubscribeTemplate` = '', `System_Table_ID` = '0', `Settings` = 'global $current_user;\n( !isset($nc_num_cols) ? $colNums = &$cc_settings[CollsNum] : $colNums = (int)$nc_num_cols );\n$colWidth = ( $colNums>1 ? \'width="\'.(floor(100/$colNums)).\'%"\' : NULL);\nif($cc_settings[Sort]!=\'no\') $query_order = $cc_settings[Sort];\nif($cc_settings[\'Group\']) $query_order = \'Department\'.( $cc_settings[Sort]==\'Surname\' ? \',Surname\' : \',Priority\' );\n$curDep = NULL;\n$dNum = 0;\nif( ($cc_settings[\'ShowContacts\']==\'auth\' && $current_user[\'User_ID\']) || $cc_settings[\'ShowContacts\']==\'all\' ) $ShowContacts = true;\nelse $ShowContacts = false;\n', `AddCond` = '', `EditCond` = '', `SubscribeCond` = '', `DeleteCond` = '', `NL2BR` = '0', `UseCaptcha` = '0', `CheckActionTemplate` = '', `DeleteActionTemplate` = '', `CustomSettingsTemplate` = '$settings_array = array(\n \'CollsNum\' => array(\'type\' => \'string\',\n \'default_value\' => \'3\',\n \'caption\' => \'Количество колонок\',\n \'size\' => \'3\',\n \'validate_regexp\' => \'/^\\d+$/\',\n \'validate_error\' => \'Введите целое число\'\n ),\n \'Sort\' => array(\'type\' => \'select\',\n \'default_value\' => \'Surname\',\n \'caption\' => \'Сортировать по\',\n \'values\' => array(\'Surname\' => \'фамилии\', \'Department\' => \'отделу\', \'no\'=>\'не сортировать\')\n ),\n \'Group\' => array(\'type\' => \'checkbox\',\n \'default_value\' => \'\',\n \'caption\' => \'Группировать по отделам\'\n ),\n \'ShowLink\' => array(\'type\' => \'checkbox\',\n \'default_value\' => \'\',\n \'caption\' => \'Выводить ссылку на подробную страницу\'\n ),\n \'ShowContacts\' => array(\'type\' => \'select\',\n \'default_value\' => \'all\',\n \'caption\' => \'Вывод контактов\',\n \'values\' => array(\'all\' => \'всем\', \'auth\' => \'только авторизованным\', \'no\'=>\'не выводить\')\n ),\n \'ShowSearch\' => array(\'type\' => \'checkbox\',\n \'default_value\' => \'\',\n \'caption\' => \'Выводить форму поиска по фамилии\'\n )\n);', `ClassDescription` = 'Компонент предназначен для организации разделов «Руководство», \n«Менеджмент» и другие случаи, когда необходимо опубликовать \nкакой-либо список сотрудников компании.\n\nПоля: ФИО, отдел, должность, дата рождения, фото, e-mail, \nтелефоны, текстовой комментарий (краткий и подробный).', `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, `PhoneMobile` char(255) NULL, `PhoneWork` char(255) NULL, `PhoneHome` char(255) NULL, `Email` char(255) NULL, `Birthday` char(255) NULL, `Post` char(255) NULL, `Department` char(255) NULL, `Patronymic` char(255) NULL, `Name` char(255) NOT NULL, `Surname` char(255) NOT NULL, `TextFull` text NULL, `Text` text NULL, `PhotoLarge` char(255) NULL, `PhotoSmall` 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%, 'PhoneMobile', 'Телефон мобильный', 1, '', 0, 11, 0, '', 1); INSERT INTO Field (`Class_ID`, `Field_Name`, `Description`, `TypeOfData_ID`, `Format`, `NotNull`, `Priority`, `DoSearch`, `DefaultState`, `TypeOfEdit_ID`) VALUES (%INSERT_ID%, 'PhoneWork', 'Телефон рабочий', 1, '', 0, 11, 0, '', 1); INSERT INTO Field (`Class_ID`, `Field_Name`, `Description`, `TypeOfData_ID`, `Format`, `NotNull`, `Priority`, `DoSearch`, `DefaultState`, `TypeOfEdit_ID`) VALUES (%INSERT_ID%, 'PhoneHome', 'Телефон домашний', 1, '', 0, 10, 0, '', 1); INSERT INTO Field (`Class_ID`, `Field_Name`, `Description`, `TypeOfData_ID`, `Format`, `NotNull`, `Priority`, `DoSearch`, `DefaultState`, `TypeOfEdit_ID`) VALUES (%INSERT_ID%, 'Email', 'E-mail', 1, 'email', 0, 9, 0, '', 1); INSERT INTO Field (`Class_ID`, `Field_Name`, `Description`, `TypeOfData_ID`, `Format`, `NotNull`, `Priority`, `DoSearch`, `DefaultState`, `TypeOfEdit_ID`) VALUES (%INSERT_ID%, 'Birthday', 'Дата рождения', 1, '', 0, 5, 0, '', 1); INSERT INTO Field (`Class_ID`, `Field_Name`, `Description`, `TypeOfData_ID`, `Format`, `NotNull`, `Priority`, `DoSearch`, `DefaultState`, `TypeOfEdit_ID`) VALUES (%INSERT_ID%, 'Post', 'Должность', 1, '', 0, 4, 0, '', 1); INSERT INTO Field (`Class_ID`, `Field_Name`, `Description`, `TypeOfData_ID`, `Format`, `NotNull`, `Priority`, `DoSearch`, `DefaultState`, `TypeOfEdit_ID`) VALUES (%INSERT_ID%, 'Department', 'Отдел', 1, '', 0, 3, 0, '', 1); INSERT INTO Field (`Class_ID`, `Field_Name`, `Description`, `TypeOfData_ID`, `Format`, `NotNull`, `Priority`, `DoSearch`, `DefaultState`, `TypeOfEdit_ID`) VALUES (%INSERT_ID%, 'Patronymic', 'Отчество', 1, '', 0, 2, 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, 1, 0, '', 1); INSERT INTO Field (`Class_ID`, `Field_Name`, `Description`, `TypeOfData_ID`, `Format`, `NotNull`, `Priority`, `DoSearch`, `DefaultState`, `TypeOfEdit_ID`) VALUES (%INSERT_ID%, 'Surname', 'Фамилия', 1, '', 1, 0, 1, '', 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, 13, 0, '', 1); INSERT INTO Field (`Class_ID`, `Field_Name`, `Description`, `TypeOfData_ID`, `Format`, `NotNull`, `Priority`, `DoSearch`, `DefaultState`, `TypeOfEdit_ID`) VALUES (%INSERT_ID%, 'Text', 'Текст', 3, '4:60', 0, 12, 0, '', 1); INSERT INTO Field (`Class_ID`, `Field_Name`, `Description`, `TypeOfData_ID`, `Format`, `NotNull`, `Priority`, `DoSearch`, `DefaultState`, `TypeOfEdit_ID`) VALUES (%INSERT_ID%, 'PhotoLarge', 'Фото (большое)', 6, '200000:image/*', 0, 7, 0, '', 1); INSERT INTO Field (`Class_ID`, `Field_Name`, `Description`, `TypeOfData_ID`, `Format`, `NotNull`, `Priority`, `DoSearch`, `DefaultState`, `TypeOfEdit_ID`) VALUES (%INSERT_ID%, 'PhotoSmall', 'Фото (маленькое)', 6, '50000:image/*', 0, 6, 0, '', 1);