• Модуль: lists
  • Путь к файлу: ~/bitrix/modules/lists/lib/field.php
  • Класс: BitrixListsField
  • Вызов: Field::prepareEditFieldByTypeS
static function prepareEditFieldByTypeS(array $field)
{
	$html = '';
	$disabled = $field['READ'] == 'Y' ? 'disabled' : '';
	if(!is_array($field['VALUE']))
		$field['VALUE'] = array($field['VALUE']);

	if($field['MULTIPLE'] == 'Y')
	{
		$html .= '';
		if ($field["ROW_COUNT"] > 1)
		{
			foreach($field['VALUE'] as $key => $value)
			{
				if($field['READ'] == 'Y')
				{
					if(empty($value['VALUE'])) continue;
					$html .= '';
				}
				$html.='';
			}
		}
		else
		{
			foreach($field['VALUE'] as $key => $value)
			{
				if($field['READ'] == 'Y')
				{
					if(empty($value['VALUE'])) continue;
					$html .= '';
				}
				$html .= '';
			}
		}
		$html .= '
'; if($field['READ'] == 'N') { $html .= ''; } } else { if ($field["ROW_COUNT"] > 1) { foreach($field['VALUE'] as $key => $value) { $html .= ''; if($field['READ'] == 'Y') { if(empty($value['VALUE'])) continue; $html .= ''; } } } else { foreach($field['VALUE'] as $key => $value) { $html .= ''; if($field['READ'] == 'Y') { if(empty($value['VALUE'])) continue; $html .= ''; } } } } $result = array( 'id' => $field['FIELD_ID'], 'name' => $field['NAME'], 'required' => $field['IS_REQUIRED'] == 'Y' ? true : false, 'type' => 'custom', 'show' => $field['SHOW'], 'value' => $html ); return $result; }