• Модуль: iblock
  • Путь к файлу: ~/bitrix/modules/iblock/classes/general/prop_element_list.php
  • Класс: CIBlockPropertyElementList
  • Вызов: CIBlockPropertyElementList::GetAdminFilterHTML
static function GetAdminFilterHTML($arProperty, $strHTMLControlName)
{
	$lAdmin = new CAdminList($strHTMLControlName["TABLE_ID"]);
	$lAdmin->InitFilter(array($strHTMLControlName["VALUE"]));
	$filterValue = $GLOBALS[$strHTMLControlName["VALUE"]];

	if(isset($filterValue) && is_array($filterValue))
		$values = $filterValue;
	else
		$values = array();

	$settings = CIBlockPropertyElementList::PrepareSettings($arProperty);
	if($settings["size"] > 1)
		$size = ' size="'.$settings["size"].'"';
	else
		$size = '';

	if($settings["width"] > 0)
		$width = ' style="width:'.$settings["width"].'px"';
	else
		$width = '';

	$bWasSelect = false;
	$options = CIBlockPropertyElementList::GetOptionsHtml($arProperty, $values, $bWasSelect);

	$html = '';
	return  $html;
}