Exemple #1
0
/**
 * Bitrix vars
 *
 * @var array $arParams
 * @var array $arResult
 * @var CBitrixComponentTemplate $this
 * @var CBitrixComponent $component
 * @global CMain $APPLICATION
 * @global CUser $USER
 */
if (!defined("B_PROLOG_INCLUDED") || B_PROLOG_INCLUDED !== true) {
    die;
}
//color schemes
if ($arParams["USE_THEMES"]) {
    $arThemes = CGridOptions::GetThemes($this->GetFolder());
} else {
    $arThemes = array();
}
?>

<?php 
if (!empty($arParams["FILTER"])) {
    ?>

<?php 
    $APPLICATION->IncludeComponent("bitrix:main.interface.filter", $arParams["FILTER_TEMPLATE_NAME"], array("GRID_ID" => $arParams["~GRID_ID"], "FILTER" => $arParams["~FILTER"], "FILTER_ROWS" => $arResult["FILTER_ROWS"], "FILTER_FIELDS" => $arResult["FILTER"], "OPTIONS" => $arResult["OPTIONS"]), $component, array("HIDE_ICONS" => true));
    ?>

<?php 
}