...Человеческий поиск в разработке...
- Модуль: bizproc
- Путь к файлу: ~/bitrix/modules/bizproc/classes/general/helper.php
- Класс: CBPHelper
- Вызов: CBPHelper::getFieldInputControl
static function getFieldInputControl($documentType, $arFieldType, $arFieldName, $fieldValue, $bAllowSelection = false) { if (!is_array($fieldValue) || is_array($fieldValue) && CBPHelper::IsAssociativeArray($fieldValue)) { $fieldValue = array($fieldValue); } ob_start(); if ($arFieldType["Type"] == "select") { $fieldValueTmp = $fieldValue; ?> if ($bAllowSelection) { ?>
_text" name="= $arFieldName["Field"] ?>_text" value=" if (count($fieldValueTmp) > 0) { $a = array_values($fieldValueTmp); echo htmlspecialcharsbx($a[0]); } ?>"> echo CBPHelper::renderControlSelectorButton('id_'.$arFieldName["Field"].'_text', 'select'); } } elseif ($arFieldType["Type"] == "user") { $fieldValue = CBPHelper::UsersArrayToString($fieldValue, null, $documentType); ?>" name="= $arFieldName["Field"] ?>" value="= htmlspecialcharsbx($fieldValue) ?>"> echo CBPHelper::renderControlSelectorButton('id_'.$arFieldName["Field"], 'user'); } else { if (!array_key_exists("CBPVirtualDocumentCloneRowPrinted", $GLOBALS) && $arFieldType["Multiple"]) { $GLOBALS["CBPVirtualDocumentCloneRowPrinted"] = 1; ?> } if ($arFieldType["Multiple"]) echo '
'; switch ($arFieldType["Type"]) { case "int": case "double": unset($fieldValueTmp[$key]); ?> break; case "file": unset($fieldValueTmp[$key]); ?> break; case "bool": if (in_array($value, array("Y", "N"))) unset($fieldValueTmp[$key]); ?> break; case "text": unset($fieldValueTmp[$key]); ?> break; case "date": case "datetime": $v = ""; if (!CBPActivity::isExpression($value)) { $v = $value; unset($fieldValueTmp[$key]); } echo CAdminCalendar::CalendarDate($fieldNameName, $v, 19, ($arFieldType["Type"] == "date")); break; default: unset($fieldValueTmp[$key]); ?> } if ($bAllowSelection) { if (!in_array($arFieldType["Type"], array("file", "bool", "date", "datetime"))) { echo CBPHelper::renderControlSelectorButton($fieldNameId, $arFieldType["BaseType"]); } } if ($arFieldType["Multiple"]) echo ' |
'; if ($bAllowSelection) { if (in_array($arFieldType["Type"], array("file", "bool", "date", "datetime"))) { ?> _text" name="= $arFieldName["Field"] ?>_text" value=" if (count($fieldValueTmp) > 0) { $a = array_values($fieldValueTmp); echo htmlspecialcharsbx($a[0]); } ?>"> echo CBPHelper::renderControlSelectorButton('id_'.$arFieldName["Field"].'_text', $arFieldType["BaseType"]); } } } $s = ob_get_contents(); ob_end_clean(); return $s; }