public static function showTab($div, $iblockElementInfo) { $engineList = array(); if (Option::get('main', 'vendor', '') == '1c_bitrix') { $engineList[] = array("DIV" => "yandex_direct", "TAB" => Loc::getMessage("SEO_ADV_YANDEX_DIRECT"), "TITLE" => Loc::getMessage("SEO_ADV_YANDEX_DIRECT_TITLE"), "HANDLER" => IO\Path::combine(Application::getDocumentRoot(), BX_ROOT, "/modules/seo/admin/tab/seo_search_yandex_direct.php")); } if (count($engineList) > 0) { $engineTabControl = new \CAdminViewTabControl("engineTabControl", $engineList); ?> <tr> <td colspan="2"> <?php $engineTabControl->begin(); foreach ($engineList as $engineTab) { $engineTabControl->beginNextTab(); $file = new IO\File($engineTab["HANDLER"]); if ($file->isExists()) { require $file->getPath(); } } $engineTabControl->end(); ?> </td> </tr> <?php } }
$date_before_last_week2 = ConvertTimeStamp(AddToTimeStamp(array("DD" => "-" . (8 + $d)), time())); $date_this_month1 = ConvertTimeStamp(mktime(0, 0, 0, date("n"), 1, date("Y"))); $date_last_month1 = ConvertTimeStamp(AddToTimeStamp(array("DD" => 0, "MM" => -1, "YYYY" => 0, "HH" => 0, "MI" => 0, "SS" => 0), mktime(0, 0, 0, date("n"), 1, date("Y")))); $date_before_last_month1 = ConvertTimeStamp(AddToTimeStamp(array("DD" => 0, "MM" => -2, "YYYY" => 0, "HH" => 0, "MI" => 0, "SS" => 0), mktime(0, 0, 0, date("n"), 1, date("Y")))); $date_this_month2 = $date_today; $date_last_month2 = ConvertTimeStamp(AddToTimeStamp(array("DD" => -1, "MM" => 0, "YYYY" => 0, "HH" => 0, "MI" => 0, "SS" => 0), mktime(0, 0, 0, date("n"), 1, date("Y")))); $date_before_last_month2 = ConvertTimeStamp(AddToTimeStamp(array("MM" => -1, "DD" => -1, "YYYY" => 0, "HH" => 0, "MI" => 0, "SS" => 0), mktime(0, 0, 0, date("n"), 1, date("Y")))); ?> <script type="text/javascript"> var gdSaleTabControl_<?php echo $arGadgetParams["RND_STRING"]; ?> = false; </script><?php $aTabs = array(array("DIV" => "bx_gd_sale_stats_" . $arGadgetParams["RND_STRING"], "TAB" => GetMessage("GD_ORDERS_TAB_STATS"), "ICON" => "", "TITLE" => "", "ONSELECT" => "gdSaleTabControl_" . $arGadgetParams["RND_STRING"] . ".SelectTab('bx_gd_sale_stats_" . $arGadgetParams["RND_STRING"] . "');"), array("DIV" => "bx_gd_sale_orders_" . $arGadgetParams["RND_STRING"], "TAB" => GetMessage("GD_ORDERS_TAB_ORDERS"), "ICON" => "", "TITLE" => "", "ONSELECT" => "gdSaleTabControl_" . $arGadgetParams["RND_STRING"] . ".SelectTab('bx_gd_sale_orders_" . $arGadgetParams["RND_STRING"] . "');")); $tabControl = new CAdminViewTabControl("saleTabControl_" . $arGadgetParams["RND_STRING"], $aTabs); ?> <div class="bx-gadgets-tabs-wrap" id="bx_gd_tabset_sale_<?php echo $arGadgetParams["RND_STRING"]; ?> "><?php $tabControl->Begin(); $countTabs = count($aTabs); for ($i = 0; $i < $countTabs; $i++) { $tabControl->BeginNextTab(); } $tabControl->End(); ?> <div class="bx-gadgets-tabs-cont"><?php $countTab = count($aTabs); for ($i = 0; $i < $countTab; $i++) {
?> &lang=<?php echo urlencode(LANGUAGE_ID); ?> "> <? $tabControl->Begin(); $tabControl->BeginNextTab(); ?> <tr><td colspan="2"> <? $aSiteTabs = array(array("DIV" => "opt_common", "TAB" => GetMessage("socserv_sett_common"), 'TITLE' => GetMessage("socserv_sett_common_title"), 'ONSELECT'=>"document.forms['socserv_settings'].siteTabControl_active_tab.value='opt_common'")); foreach($arSites as $arSite) $aSiteTabs[] = array("DIV" => "opt_site_".$arSite["ID"], "TAB" => '['.$arSite["ID"].'] '.htmlspecialcharsbx($arSite["NAME"]), 'TITLE' => GetMessage("socserv_sett_site").' ['.$arSite["ID"].'] '.htmlspecialcharsbx($arSite["NAME"]), 'ONSELECT'=>"document.forms['socserv_settings'].siteTabControl_active_tab.value='opt_site_".$arSite["ID"]."'"); $siteTabControl = new CAdminViewTabControl("siteTabControl", $aSiteTabs); $siteTabControl->Begin(); $arUseOnSites = unserialize(COption::GetOptionString("socialservices", "use_on_sites", "")); foreach($arSiteList as $site): $suffix = ($site <> ''? '_bx_site_'.$site:''); $hash = COption::GetOptionString("socialservices", "twitter_search_hash".$suffix, "#b24"); $twitHashInput = "<input type=\"text\" name=\"twitter_search_hash".$suffix."\" id=\"twitter_search_hash".$suffix."\" size=15 value=\"".htmlspecialcharsbx($hash)."\">"; $siteTabControl->BeginNextTab(); ?> <?if($site <> ''):?> <table cellpadding="0" cellspacing="0" border="0" class="edit-table"> <tr> <td width="50%" class="field-name"><label for="use_on_sites<?php
array("DIV" => "opt_user_gender_m_".$arSite["ID"], "TAB" => GetMessage("SONET_GENDER_M"), 'TITLE' => GetMessage('SONET_SUBTAB_USER_TITLE_GENDER_M')), array("DIV" => "opt_user_gender_f_".$arSite["ID"], "TAB" => GetMessage("SONET_GENDER_F"), 'TITLE' => GetMessage('SONET_SUBTAB_USER_TITLE_GENDER_F')), array("DIV" => "opt_user_gender_u_".$arSite["ID"], "TAB" => GetMessage("SONET_GENDER_U"), 'TITLE' => GetMessage('SONET_SUBTAB_USER_TITLE_GENDER_U')), ); $arChildTabControlUserGender[$arSite["ID"]] = new CAdminViewTabControl("childTabControlUserGender_".$arSite["ID"], $aSubTabsGender); $aSubTabs = array(); foreach ($arFeatures as $key => $value) { $aSubTabs[] = array("DIV" => "opt_group_feature_".$key."_".$arSite["ID"], "TAB" => $value, 'TITLE' => GetMessage('SONET_SUBTAB_GROUP_TITLE_FEATURE').' "'.$value.'"'); } $arChildTabControlGroup[$arSite["ID"]] = new CAdminViewTabControl("childTabControlGroup_".$arSite["ID"], $aSubTabs); } $arChildTabControlSite = new CAdminViewTabControl("childTabControlSite", $aSiteTabs); $siteList = array( array("ID" => "all", "NAME" => GetMessage("SONET_ALL_SITES")) ); $rsSites = CSite::GetList($by="sort", $order="asc", array("ACTIVE" => "Y")); $i = 1; while($arRes = $rsSites->Fetch()) { $siteList[$i]["ID"] = $arRes["ID"]; $siteList[$i]["NAME"] = $arRes["NAME"]; $i++; } $siteCount = $i; ?>
echo CUtil::JSEscape(GetMessage('SOE_AJAX_WAIT')); ?> '}; </script> <?php $APPLICATION->IncludeComponent('bitrix:sale.ajax.delivery.calculator', 'input', $arParams); ?> </td> </tr> <?php $obDeliveryHandlers = ob_get_contents(); ob_end_clean(); /***************************************************************/ if ($bUseDelivery && $bUseDeliveryHandlers) { $aSubTabs = array(array("DIV" => "delivery", "TAB" => GetMessage('SOE_DELIVERY_TAB'), "ONSELECT" => 'document.forms.forder_edit.DELIVERY_type.value=\'\''), array("DIV" => "delivery_handler", "TAB" => GetMessage('SOE_DELIVERY_HANDLER_TAB'), "ONSELECT" => 'document.forms.forder_edit.DELIVERY_type.value=\'handler\'')); $childTabControl = new CAdminViewTabControl("childTabControl", $aSubTabs); ?> <tr> <td colspan="2"><input type="hidden" name="DELIVERY_type" value="" /> <?php $childTabControl->Begin(); // simple delivery services $childTabControl->BeginNextTab(); ?> <table width="100%"><tr><?php echo $obDelivery; ?> </tr></table> <?php // automated delivery services $childTabControl->BeginNextTab();
</tr> <tr> <td valign="top" colspan="2"> <?php $aTabs1 = array(); $aTabs1[] = array("DIV" => "subcat_edit1", "TAB" => GetMessage("C2IT_PRICES"), "TITLE" => GetMessage("C2IT_PRICES_D")); $aTabs1[] = array("DIV" => "subcat_edit3", "TAB" => GetMessage("C2IT_PARAMS"), "TITLE" => GetMessage("C2IT_PARAMS_D")); if ($arCatalog["SUBSCRIPTION"] == "Y") { $aTabs1[] = array("DIV" => "subcat_edit4", "TAB" => GetMessage("C2IT_GROUPS"), "TITLE" => GetMessage("C2IT_GROUPS_D")); } $aTabs1[] = array("DIV" => "subcat_edit6", "TAB" => GetMessage("C2IT_DISCOUNTS"), "TITLE" => GetMessage("C2IT_DISCOUNTS_D")); $aTabs1[] = array("DIV" => "subcat_edit5", "TAB" => GetMessage("C2IT_STORE"), "TITLE" => GetMessage("C2IT_STORE_D")); if ($bUseStoreControl) { $aTabs1[] = array("DIV" => "subcat_edit7", "TAB" => GetMessage("C2IT_BAR_CODE"), "TITLE" => GetMessage("C2IT_BAR_CODE_D")); } $subtabControl1 = new CAdminViewTabControl("subtabControl1", $aTabs1); $subtabControl1->Begin(); // Define boundaries $arProductFilter = array("PRODUCT_ID" => $PRODUCT_ID); if (!CBXFeatures::IsFeatureEnabled('CatMultiPrice')) { $arProductFilter['BASE'] = 'Y'; } $arPriceBoundariesError = array(); $arPriceBoundaries = array(); $dbPrice = CPrice::GetList(array("BASE" => "DESC", "CATALOG_GROUP_ID" => "ASC", "QUANTITY_FROM" => "ASC", "QUANTITY_TO" => "ASC"), $arProductFilter); while ($arPrice = $dbPrice->Fetch()) { if ($arPrice["BASE"] == "Y") { $arPriceBoundaries[] = array("FROM" => intval($arPrice["QUANTITY_FROM"]), "TO" => intval($arPrice["QUANTITY_TO"])); if (intval($arPrice["QUANTITY_FROM"]) > intval($arPrice["QUANTITY_TO"]) && intval($arPrice["QUANTITY_TO"]) != 0) { $arPriceBoundariesError[] = str_replace("#RIGHT#", $arPrice["QUANTITY_TO"], str_replace("#LEFT#", $arPrice["QUANTITY_FROM"], GetMessage("C2IT_BOUND_LR"))); }
</script> </td> </tr> <tr id="bx-cal-opt-sites-pathes-tr" <?php if ($commonForSites) { echo 'style="display:none;"'; } ?> > <td colSpan="2" align="center"> <?php $aSubTabs = array(); foreach ($arSites as $siteId => $siteName) { $aSubTabs[] = array("DIV" => "opt_cal_path_" . $siteId, "TAB" => $siteName, 'TITLE' => $siteName); } $arChildTabControlUserCommon = new CAdminViewTabControl("childTabControlUserCommon", $aSubTabs); $arChildTabControlUserCommon->Begin(); ?> <?php foreach ($arSites as $siteId => $siteName) { ?> <?php $arChildTabControlUserCommon->BeginNextTab(); ?> <table> <?php foreach ($arPathes as $pathName) { $val = $SET['pathes'][$siteId][$pathName]; if (!isset($val) || empty($val)) { $val = $SET[$pathName]; }
{ if ($arRatingsTmp['AUTHORITY'] == 'Y') $arRatingsTmp['NAME'] = '<span class="required">[A]</span> '.$arRatingsTmp['NAME']; $aTabs2[] = array("DIV"=>"rating_".$i, "TAB" => $arRatingsTmp['NAME'], "TITLE" => GetMessage('RATING_TAB_INFO')); $arRatings[$arRatingsTmp['ID']] = $arRatingsTmp; $i++; } if (is_array($arRatings) && !empty($arRatings)) { $ratingWeightType = COption::GetOptionString("main", "rating_weight_type", "auto"); $authorityRatingId = CRatings::GetAuthorityRating(); $arAuthorityUserProp = CRatings::GetRatingUserPropEx($authorityRatingId, $ID); $viewTabControl = new CAdminViewTabControl("tabControlRating", $aTabs2); $viewTabControl->Begin(); foreach($arRatings as $ratingId => $arRating) { $arRatingResult = CRatings::GetRatingResult($ratingId, $ID); $arRatingUserProp = CRatings::GetRatingUserPropEx($ratingId, $ID); if ($ratingId == $authorityRatingId && $arRatingUserProp['BONUS'] == 0) $arRatingUserProp['BONUS'] = COption::GetOptionString("main", "rating_start_authority", 3); $viewTabControl->BeginNextTab(); ?> <table cellspacing="7" cellpadding="0" border="0" width="100%" class="edit-table"> <? if ($USER->CanDoOperation('edit_ratings') && ($selfEdit || $ID!=$uid)): ?> <tr>
if ($sum_show > 0 || $sum_click > 0 || $sum_ctr > 0 || $sum_visitor > 0) { if (!function_exists("ImageCreate")) { echo CAdminMessage::ShowMessage(GetMessage("AD_GD_NOT_INSTALLED")); } else { reset($arShow); $aTabs = array(); $i = 0; foreach ($arShow as $ctype) { $counter_type = strtoupper($ctype); if (${"sum_" . strtolower($counter_type)} > 0) { $i++; $aTabs[] = array("DIV" => "ttab" . $i, "TAB" => GetMessage("AD_" . $counter_type . "_DIAGRAM"), "TITLE" => GetMessage("AD_CONTRACT_DIAGRAM_TITLE")); } } reset($arShow); $viewTabContract = new CAdminViewTabControl("viewTabContract", $aTabs); if (count($aTabs) > 0) { $viewTabContract->Begin(); } foreach ($arShow as $ctype) { $counter_type = strtoupper($ctype); if (${"sum_" . strtolower($counter_type)} > 0) { ?> <?php $viewTabContract->BeginNextTab(); ?> <div class="graph"> <table cellspacing=0 cellpadding=2 class="graph"> <tr> <td valign="top"><img class="graph" src="/bitrix/admin/adv_diagram.php?<?php echo GetFilterParams($FilterArr);
if ($sum_show > 0 || $sum_click > 0 || $sum_ctr > 0 || $sum_visitor > 0) { if (!function_exists("ImageCreate")) { echo CAdminMessage::ShowMessage(GetMessage("AD_GD_NOT_INSTALLED") . "<br>"); } else { reset($arShow); $aTabs = array(); $i = 0; foreach ($arShow as $ctype) { $counter_type = strtoupper($ctype); if (${"sum_" . strtolower($counter_type)} > 0) { $i++; $aTabs[] = array("DIV" => "tttab" . $i, "TAB" => GetMessage("AD_" . $counter_type . "_DIAGRAM"), "TITLE" => GetMessage("AD_GROUP_DIAGRAM_TITLE")); } } reset($arShow); $viewTabGroup = new CAdminViewTabControl("viewTabGroup", $aTabs); if (count($aTabs) > 0) { $viewTabGroup->Begin(); } foreach ($arShow as $ctype) { $counter_type = strtoupper($ctype); if (in_array($ctype, $arShow) && ${"sum_" . $ctype} > 0) { $viewTabGroup->BeginNextTab(); ?> <div class="graph"> <table cellspacing=0 cellpadding=0 class="graph"> <tr> <td valign="top"><img class="graph" src="/bitrix/admin/adv_diagram.php?<?php echo GetFilterParams($FilterArr); ?> &diagram_type=<?php