function GetPropertyFieldHtml($arProperty, $value, $strHTMLControlName) {
global $USER;
if (!$USER->IsAdmin())
$strTemp = ' readonly ';
$db_res = CIBlockElement::GetByID($value['VALUE']);
$ar_res = $db_res->GetNext();
$return = '<input name="KOLVO[' . $GLOBALS['local_counter'] . ']" size="5" type="text">' .
$return = '<input name="' . $strHTMLControlName['VALUE'] . '" id="' . $strHTMLControlName['VALUE'] . '[n' . $GLOBALS['local_counter'] . ']" value="' . htmlspecialcharsex($value['VALUE']) . '" size="5" type="text" readonly="readonly">' .
'<input type="button" value="..." onC lick="jsUtils.OpenWindow (\'/bitrix/admin/iblock_element_search.php?lang=' . LANG . '&IBLOCK_ID=' . $property_fields["LINK_IBLOCK_ID"] . '&n=' . $strHTMLControlName['VALUE'] . '&k=n' . $GLOBALS['local_counter'] . '\', 600, 500);">' .
' <span id="sp_' . md5($strHTMLControlName['VALUE']) . '_n' . $GLOBALS['local_counter'] . '" >' . $ar_res['NAME'] . '</span>';
$GLOBALS['local_counter']++;
return $return;
}
|