• Модуль: sale
  • Путь к файлу: ~/bitrix/modules/sale/lib/internals/input.php
  • Класс: BitrixSaleInternalsInputConcreteProduct
  • Вызов: ConcreteProduct::getEditHtml
static function getEditHtml($name, array $input, $values = null) : string
{
if (!is_array($values))
	{
		$values = [];
	}

	$nodeId = &$input['ID'];

	$input['FORM_NAME'] = md5($input['FORM_NAME']);
	$url = "cat_product_search.php?func_name={$input['FORM_NAME']}&new_value=Y";
	$addProductScript = "window.".$input['FORM_NAME']."=function(id, name, url){".$input["JS_HANDLER"].".addRestrictionByConcreteProduct('".$nodeId."', id, name, this);};";

	$addInputTranslate = Loc::getMessage('SALE_CONCRETE_PRODUCT_INP_ADD');
	$deleteInputTranslate = Loc::getMessage('SALE_CONCRETE_PRODUCT_INP_DELETE');

	$editSection = "
		
{$addInputTranslate}

"; $productsList = self::getProductsList($values); $existProductsHtml = ""; foreach ($productsList as $productId => $productName) { $existProductsHtml .= " "; } $existProductsHtml .= "
- {$productName}   {$deleteInputTranslate}
"; return $existProductsHtml.$editSection; }