• Модуль: sale
  • Путь к файлу: ~/bitrix/modules/sale/lib/services/company/inputs.php
  • Класс: Bitrix\Sale\Company\Inputs\LocationMulti
  • Вызов: LocationMulti::getViewHtml
static function getViewHtml(array $input, $value = null)
{
	$result = "";

	$res = CompanyLocationTable::getConnectedLocations(
		$input["COMPANY_ID"],
		array(
			'select' => array('LNAME' => 'NAME.NAME'),
			'filter' => array('NAME.LANGUAGE_ID' => LANGUAGE_ID)
		)
	);

	while($loc = $res->fetch())
		$result .= htmlspecialcharsbx($loc["LNAME"])."
\n"; $res = CompanyLocationTable::getConnectedGroups( $input["COMPANY_ID"], array( 'select' => array('LNAME' => 'NAME.NAME'), 'filter' => array('NAME.LANGUAGE_ID' => LANGUAGE_ID) ) ); while($loc = $res->fetch()) $result .= htmlspecialcharsbx($loc["LNAME"])."
\n"; return $result; }