IsAdmin()) { return; } if (!Loader::includeModule('asd.iblock')) { return; } Loc::loadMessages(__FILE__); $currentUrl = $APPLICATION->GetCurPage().'?mid='.urlencode($mid).'&lang='.LANGUAGE_ID; $list = array( 'keep_old_sections_for_copy', 'multiple_copy' ); if( $_SERVER["REQUEST_METHOD"] == "POST" && check_bitrix_sessid() ) { if ( (isset ($_POST['update']) && $_POST['update'] === 'Y') ) { foreach ($list as $name) { $value = ''; if (isset($_POST[$name])) { $value = $_POST[$name]; } if ($value === 'Y' || $value === 'N') { Main\Config\Option::set('asd.iblock', $name, $value, ''); } } LocalRedirect($currentUrl); } } $options = array(); foreach ($list as $name) { $options[$name] = (string)Main\Config\Option::get('asd.iblock', $name); } $tabList = array( array( 'DIV' => 'edit1', 'TAB' => Loc::getMessage('ASD_IBLOCK_MAIN_TAB_SET'), 'ICON' => 'ib_settings', 'TITLE' => Loc::getMessage('ASD_IBLOCK_MAIN_TAB_TITLE_SET') ) ); $tabControl = new CAdminTabControl("asd_iblock_options", $tabList); $tabControl->Begin(); ?>
$tabControl->End();