/** @var array $arParams */ /** @var array $arResult */ /** @global CMain $APPLICATION */ /** @var string $strElementEdit */ /** @var string $strElementDelete */ /** @var array $arElementDeleteParams */ /** @var array $arSkuTemplate */ /** @var array $templateData */ //error_reporting(E_ALL & ~E_NOTICE & ~E_STRICT); //ini_set("display_errors", 1); //test_dump($arResult["ITEMS"]); //foreach ($arResult["ITEMS"] as $item) { // test_dump($item["IBLOCK_SECTION_ID"]); //} global $APPLICATION; $Fav = new wfHighLoadBlock(3); $favList = $Fav->elemGet(); $favIds = array(); foreach ($favList as $fv) { $favIds[$fv["ID"]] = $fv["UF_FAV_ID"]; } $arResult["FAVS"] = array_flip($favIds); ?> <ul class="tab-list"> <li><a href="javascript:void(0);" class="active" data-selector="wf-hit"><span class="icon40px icon-hits"></span><strong><?php echo GetMessage("WF_HIT_WARES"); ?> </strong></a></li> <li><a href="javascript:void(0);" data-selector="wf-new"><span class="icon40px icon-new"></span><strong><?php echo GetMessage("WF_NEW_WARES"); ?>
<?require($_SERVER["DOCUMENT_ROOT"]."/bitrix/modules/main/include/prolog_before.php");?> <? include_once '../wfunctions/highloadblocks.php'; $Set = new wfHighLoadBlock("7"); if(isset($_POST["action"]) and ($_POST["action"] == "reset")) $data = array("UF_THEME" => "default", "UF_BUTTONS" => "default", "UF_SHADOWS" => "default", "UF_BG" => "default"); else $data = array("UF_THEME" => $_POST["theme"], "UF_BUTTONS" => $_POST["actives"], "UF_SHADOWS" => $_POST["shadow"], "UF_BG" => $_POST["bg"]); $Set->elemModify(1,$data); ?>
<?php if (!defined("B_PROLOG_INCLUDED") || B_PROLOG_INCLUDED !== true) { die; } require 'wfunctions/strings.php'; require 'wfunctions/iblocks.php'; require 'wfunctions/highloadblocks.php'; require 'wfunctions/utility.php'; $Set = new wfHighLoadBlock("4"); $settings = $Set->elemGetEx(1); $WF_Settings["theme"] = $settings[0]["UF_THEME"]; $WF_Settings["buttons"] = $settings[0]["UF_BUTTONS"]; $WF_Settings["shadows"] = $settings[0]["UF_SHADOWS"]; $WF_Settings["bg"] = $settings[0]["UF_BG"]; $themes = array("default", "sunny", "sweet", "coral"); $actives = array("coral", "sky", "sunny", "sweet"); $shadows = array("default", "flat"); $bg = array("default", "agsquare", "wild_oliva", "kindajean"); if (!empty($_POST["pult_theme"]) and in_array($_POST["pult_theme"], $themes)) { $WF_Settings["theme"] = $_POST["pult_theme"]; } if (!empty($_POST["pult_buttons"]) and in_array($_POST["pult_buttons"], $actives)) { $WF_Settings["buttons"] = $_POST["pult_buttons"]; } if (!empty($_POST["pult_shadows"]) and in_array($_POST["pult_shadows"], $shadows)) { $WF_Settings["shadows"] = $_POST["pult_shadows"]; } if (!empty($_POST["pult_bg"]) and in_array($_POST["pult_bg"], $bg)) { $WF_Settings["bg"] = $_POST["pult_bg"]; }
<?php require $_SERVER["DOCUMENT_ROOT"] . "/bitrix/modules/main/include/prolog_before.php"; include_once '../wfunctions/highloadblocks.php'; $action = $_POST["action"]; $elemId = $_POST["elemId"]; $Fav = new wfHighLoadBlock("#HLB_FAV#"); switch ($action) { case 'delete': $Fav->elemDelete($elemId); break; case 'add': default: echo $Fav->elemAdd($elemId); } die;