8use Bitrix\Main\Page\Asset;
13if (Loader::requireModule(
'bizproc'))
15 class UserTypePropertyElist
extends UserTypeProperty
42 $iblockId = $element[
'IBLOCK_ID'];
44 if ($iblockId <= 0 && (
int) $fieldType->getOptions() > 0)
45 $iblockId = (
int) $fieldType->getOptions();
49 $result =
'<select id="WFSFormOptionsX" onchange="'.Main\Text\HtmlFilter::encode(
$callbackFunctionName).
'(this.options[this.selectedIndex].value)">';
53 $result .=
'<optgroup label="'.Main\Text\HtmlFilter::encode(
$iblockTypeName).
'">';
58 $result .=
'<option value="'.$iblock[
'ID'].
'"'.(($iblock[
'ID'] == $iblockId) ?
' selected' :
'').
'>'
59 .Main\Text\HtmlFilter::encode($iblock[
'NAME']).
'</option>';
64 $result .=
'</optgroup>';
66 $result .=
'</select><!--__defaultOptionsValue:'.$defaultIBlockId.
'--><!--__modifyOptionsPromt:'.
Loc::getMessage(
'UTP_ELIST_DOCUMENT_MOPROMT').
'-->';
82 static::initControlHelpers();
96 static::initControlHelpers();
102 if (!static::$controlIsRendered)
104 Asset::getInstance()->addJs(
'/bitrix/js/iblock/iblock_edit.js');
105 static::$controlIsRendered =
true;
static loadMessages($file)
static getMessage($code, $replace=null, $language=null)