Пример #1
0
'), 'click', function () {
			var el_t = BX.findParent(this, {tagName : 'table'});
			var el_s = BX.findChild(el_t, {tagName : 'select'}, true, false);
			for (i = 0; i < el_s.options.length; i++)
			{
				if (el_s.options[i].value == 'tasks' || el_s.options[i].value == 'calendar')
					el_s.options[i].disabled = this.checked;
			}
			if (this.checked && (el_s.options[el_s.selectedIndex].value == 'tasks' || el_s.options[el_s.selectedIndex].value == 'calendar'))
				el_s.selectedIndex = 0;
		});
	}
});
</script>
<?php 
echo CCrmViewHelper::RenderLeadStatusSettings();
for ($i = 0, $ic = sizeof($arResult['FILTER']); $i < $ic; $i++) {
    $filterField = $arResult['FILTER'][$i];
    $filterID = $filterField['id'];
    $filterType = $filterField['type'];
    $enable_settings = $filterField['enable_settings'];
    if ($filterID === 'PRODUCT_ROW_PRODUCT_ID') {
        $productID = isset($arResult['DB_FILTER'][$filterID]) ? $arResult['DB_FILTER'][$filterID] : 0;
        ob_start();
        $GLOBALS['APPLICATION']->IncludeComponent('bitrix:crm.entity.selector', '', array('ENTITY_TYPE' => 'PRODUCT', 'INPUT_NAME' => $filterID, 'INPUT_VALUE' => $productID, 'FORM_NAME' => $arResult['GRID_ID'], 'MULTIPLE' => 'N', 'FILTER' => true), false, array('HIDE_ICONS' => 'Y'));
        $val = ob_get_contents();
        ob_end_clean();
        $arResult['FILTER'][$i]['type'] = 'custom';
        $arResult['FILTER'][$i]['value'] = $val;
        continue;
    }