• Модуль: bizproc
  • Путь к файлу: ~/bitrix/modules/bizproc/classes/general/document.php
  • Класс: CBPDocument
  • Вызов: CBPDocument::showParameterField
static function showParameterField($type, $name, $values, $arParams = Array())
{
	$id = !empty($arParams['id']) ? $arParams['id'] : md5(uniqid());

	$cols = !empty($arParams['size']) ? intval($arParams['size']) : 70;
	$defaultRows = $type == "user" ? 3 : 1;
	$rows = max((isset($arParams['rows']) && $arParams['rows']>0?intval($arParams['rows']):$defaultRows), min(5, ceil(mb_strlen((string)$values) / $cols)));

	if($type == "user")
	{
		$s = '';
		$s .= '
'; $s .= ''; $s .= CBPHelper::renderControlSelectorButton($id, $type); $s .= '
'; } elseif ($type == 'datetime') { $s = ''; $s .= '
'; $s .= CBPHelper::renderControlSelectorButton($id, $type); $s .= '
'; } return $s; }