{ switch (LANG) { case 'ru': case 'ua': $p = $n % 10 == 1 && $n % 100 != 11 ? 0 : ($n % 10 >= 2 && $n % 10 <= 4 && ($n % 100 < 10 || $n % 100 >= 20) ? 1 : 2); break; case 'en': case 'de': case 'es': $p = $n == 1 ? 0 : 1; break; } return isset($forms[$p]) ? $forms[$p] : end($forms); } if (!empty($conversionRates)) { CUtil::initJSCore(array('amcharts', 'amcharts_funnel', 'amcharts_serial')); } $APPLICATION->setTitle(empty($abtest['NAME']) ? str_replace('#ID#', $ID, getMessage('ABTEST_REPORT_TITLE1')) : str_replace('#NAME#', $abtest['NAME'], getMessage('ABTEST_REPORT_TITLE2'))); require $_SERVER['DOCUMENT_ROOT'] . '/bitrix/modules/main/include/prolog_admin_after.php'; $aMenu = array(array('ICON' => 'btn_list', 'TEXT' => getMessage('ABTEST_GOTO_LIST'), 'LINK' => 'abtest_admin.php?lang=' . LANG)); $context = new CAdminContextMenu($aMenu); $context->Show(); $aTabs = array(array('DIV' => 'edit1', 'TAB' => getMessage('ABTEST_TAB_NAME'), 'TITLE' => getMessage('ABTEST_TAB_TITLE'))); $tabControl = new CAdminTabControl("tabControl", $aTabs, false); ?> <?php $tabControl->Begin(); $tabControl->BeginNextTab(); ?>