本文整理汇总了PHP中GetIBlockDropDownList函数的典型用法代码示例。如果您正苦于以下问题:PHP GetIBlockDropDownList函数的具体用法?PHP GetIBlockDropDownList怎么用?PHP GetIBlockDropDownList使用的例子?那么, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了GetIBlockDropDownList函数的10个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: GetSettingsHTML
function GetSettingsHTML($arUserField = false, $arHtmlControl, $bVarsFromForm)
{
$result = '';
if ($bVarsFromForm) {
$iblock_id = $GLOBALS[$arHtmlControl["NAME"]]["IBLOCK_ID"];
} elseif (is_array($arUserField)) {
$iblock_id = $arUserField["SETTINGS"]["IBLOCK_ID"];
} else {
$iblock_id = "";
}
if (CModule::IncludeModule('iblock')) {
$result .= '
<tr>
<td>' . GetMessage("USER_TYPE_WEBDAV_FILE_IBLOCK_ID") . ':</td>
<td>
' . GetIBlockDropDownList($iblock_id, $arHtmlControl["NAME"] . '[IBLOCK_TYPE_ID]', $arHtmlControl["NAME"] . '[IBLOCK_ID]', false, 'class="adm-detail-iblock-types"', 'class="adm-detail-iblock-list"') . '
</td>
</tr>
';
} else {
$result .= '
<tr>
<td>' . GetMessage("USER_TYPE_WEBDAV_FILE_IBLOCK_ID") . ':</td>
<td>
<input type="text" size="6" name="' . $arHtmlControl["NAME"] . '[IBLOCK_ID]" value="' . htmlspecialcharsbx($value) . '">
</td>
</tr>
';
}
if ($bVarsFromForm) {
$value = $GLOBALS[$arHtmlControl["NAME"]]["UF_TO_SAVE_ALLOW_EDIT"];
} elseif (is_array($arUserField)) {
$value = $arUserField["SETTINGS"]["UF_TO_SAVE_ALLOW_EDIT"];
} else {
$value = '';
}
$result .= '
<tr>
<td>' . GetMessage("USER_TYPE_WEBDAV_FILE_UF_TO_SAVE_ALLOW_EDIT") . ':</td>
<td>
<input type="text" name="' . $arHtmlControl["NAME"] . '[UF_TO_SAVE_ALLOW_EDIT]" size="40" maxlength="20" value="' . $value . '">
</td>
</tr>
';
/*if($bVarsFromForm)
$SECTION_ID = $GLOBALS[$arHtmlControl["NAME"]]["SECTION_ID"] === "Y"? "Y": "N";
elseif(is_array($arUserField))
$SECTION_ID = $arUserField["SETTINGS"]["SECTION_ID"] === "Y"? "Y": "N";
else
$SECTION_ID = "N";*/
if ($bVarsFromForm) {
$value = $GLOBALS[$arHtmlControl["NAME"]]["DEFAULT_VALUE"];
} elseif (is_array($arUserField)) {
$value = $arUserField["SETTINGS"]["DEFAULT_VALUE"];
} else {
$value = "";
}
return $result;
}
示例2: htmlspecialcharsbx
<input type="hidden" name="PROPERTY_COL_COUNT" value="<?php
echo htmlspecialcharsbx($arPropertyFields["SET"]["COL_COUNT"]);
?>
">
<?php
}
?>
<tr>
<td width="40%"><?php
echo GetMessage("BT_ADM_IEP_PROP_LINK_IBLOCK");
?>
</td>
<td>
<?php
$b_f = $arProperty['PROPERTY_TYPE'] == "G" || $arProperty['PROPERTY_TYPE'] == 'E' && $arProperty['USER_TYPE'] == BT_UT_SKU_CODE ? array("!ID" => $intIBlockID) : array();
echo GetIBlockDropDownList($arProperty['LINK_IBLOCK_ID'], "PROPERTY_LINK_IBLOCK_TYPE_ID", "PROPERTY_LINK_IBLOCK_ID", $b_f, 'class="adm-detail-iblock-types"', 'class="adm-detail-iblock-list"');
?>
</td>
</tr>
<?php
} else {
$bShow = true;
if ($hideKeyExist && in_array("COL_COUNT", $arPropertyFields["HIDE"])) {
$bShow = false;
} elseif ($hideKeyExist && in_array("ROW_COUNT", $arPropertyFields["HIDE"])) {
$bShow = false;
}
if ($bShow) {
?>
<tr>
<td width="40%"><?php
示例3: GetMessage
echo GetMessage("IBLOCK_CML2_OPEN");
?>
" OnClick="BtnClick()">
<?php
CAdminFileDialog::ShowScript(array("event" => "BtnClick", "arResultDest" => array("FORM_NAME" => "form1", "FORM_ELEMENT_NAME" => "URL_DATA_FILE"), "arPath" => array("SITE" => SITE_ID, "PATH" => "/upload"), "select" => 'F', "operation" => 'S', "showUploadTab" => true, "showAddToMenuTab" => false, "fileFilter" => 'xml', "allowAllFiles" => true, "SaveConfig" => true));
?>
</td>
</tr>
<tr>
<td><?php
echo GetMessage("IBLOCK_CML2_IBLOCK_ID");
?>
:</td>
<td>
<?php
echo GetIBlockDropDownList($IBLOCK_ID, 'IBLOCK_TYPE_ID', 'IBLOCK_ID', false, 'class="adm-detail-iblock-types"', 'class="adm-detail-iblock-list"');
?>
</td>
</tr>
<tr>
<td><?php
echo GetMessage("IBLOCK_CML2_INTERVAL");
?>
:</td>
<td>
<input type="text" id="INTERVAL" name="INTERVAL" size="5" value="<?php
echo intval($INTERVAL);
?>
">
</td>
</tr>
示例4: GetIBlockDropDownList
</tr>
<tr>
<td width="40%" title="access_token">Токен доступа:</td>
<td><input type="text" name="options[access_token]" value="<?php
echo $arResult['OPTIONS']['access_token'];
?>
" size="40"/></td>
</tr>
<? endif; ?>
<? $tabControl->BeginNextTab(); ?>
<tr class="heading">
<td colspan="2">Выберите инфоблок для выгрузки</td>
</tr>
<tr>
<td width="40%" title="iblock_id">Инфоблок торгового каталога:</td>
<td><?echo GetIBlockDropDownList($arResult['OPTIONS']['iblock_id'], 'options[iblock_type_id]', 'options[iblock_id]', false, 'class="adm-detail-iblock-types"', 'class="adm-detail-iblock-list"');?></td>
</tr>
<tr class="heading">
<td colspan="2">Работайте</td>
</tr>
<tr>
<td width="40%" title=""></td>
<td><input type="submit" name="action[Syns]" value="Инициализировать"/></td>
</tr>
<tr>
<td width="40%" title=""></td>
<td><input type="submit" name="action[Run]" value="Запустить 1 цикл"/></td>
</tr>
<? $tabControl->Buttons(); ?>
<input type="submit" name="save" value="Сохранить" title="Сохранить и вернуться" class="adm-btn-save">
<? $tabControl->End(); ?>
示例5: __AdmSettingsDrawList
<?php
$tabControl->BeginNextTab();
__AdmSettingsDrawList('wiki', $arAllOptions);
if (IsModuleInstalled('socialnetwork')) {
$socnet_iblock_id = COption::GetOptionString($module_id, 'socnet_iblock_id');
$socnet_enable = COption::GetOptionString($module_id, 'socnet_enable') == 'Y' && CWikiSocnet::IsEnabledSocnet() ? 'Y' : 'N';
$tabControl->BeginNextTab();
__AdmSettingsDrawRow('wiki', array('socnet_enable', GetMessage('WIKI_OPTIONS_SOCNET_ENABLE'), $socnet_enable, array('checkbox')));
?>
<tr>
<td><?php
echo GetMessage('WIKI_OPTIONS_SOCNET_IBLOCK_ID');
?>
</td>
<td><?php
echo GetIBlockDropDownList($socnet_iblock_id, 'socnet_iblock_type_id', 'socnet_iblock_id');
?>
</td>
</tr>
<?php
if (IsModuleInstalled('forum')) {
__AdmSettingsDrawList('wiki', $arForumOptions);
}
}
$tabControl->BeginNextTab();
require_once $_SERVER['DOCUMENT_ROOT'] . '/bitrix/modules/main/admin/group_rights.php';
$tabControl->Buttons();
?>
<script language="JavaScript">
function RestoreDefaults()
{
示例6: GetSettingsHTML
public static function GetSettingsHTML($arUserField = false, $arHtmlControl, $bVarsFromForm)
{
$result = '';
if ($bVarsFromForm) {
$iblock_id = $GLOBALS[$arHtmlControl["NAME"]]["IBLOCK_ID"];
} elseif (is_array($arUserField)) {
$iblock_id = $arUserField["SETTINGS"]["IBLOCK_ID"];
} else {
$iblock_id = "";
}
if (CModule::IncludeModule('iblock')) {
$result .= '
<tr>
<td>' . GetMessage("USER_TYPE_IBSEC_DISPLAY") . ':</td>
<td>
' . GetIBlockDropDownList($iblock_id, $arHtmlControl["NAME"] . '[IBLOCK_TYPE_ID]', $arHtmlControl["NAME"] . '[IBLOCK_ID]', false, 'class="adm-detail-iblock-types"', 'class="adm-detail-iblock-list"') . '
</td>
</tr>
';
} else {
$result .= '
<tr>
<td>' . GetMessage("USER_TYPE_IBSEC_DISPLAY") . ':</td>
<td>
<input type="text" size="6" name="' . $arHtmlControl["NAME"] . '[IBLOCK_ID]" value="' . htmlspecialcharsbx($value) . '">
</td>
</tr>
';
}
if ($bVarsFromForm) {
$ACTIVE_FILTER = $GLOBALS[$arHtmlControl["NAME"]]["ACTIVE_FILTER"] === "Y" ? "Y" : "N";
} elseif (is_array($arUserField)) {
$ACTIVE_FILTER = $arUserField["SETTINGS"]["ACTIVE_FILTER"] === "Y" ? "Y" : "N";
} else {
$ACTIVE_FILTER = "N";
}
if ($bVarsFromForm) {
$value = $GLOBALS[$arHtmlControl["NAME"]]["DEFAULT_VALUE"];
} elseif (is_array($arUserField)) {
$value = $arUserField["SETTINGS"]["DEFAULT_VALUE"];
} else {
$value = "";
}
if ($iblock_id > 0 && CModule::IncludeModule('iblock')) {
$result .= '
<tr>
<td>' . GetMessage("USER_TYPE_IBSEC_DEFAULT_VALUE") . ':</td>
<td>
<select name="' . $arHtmlControl["NAME"] . '[DEFAULT_VALUE]" size="5">
<option value="">' . GetMessage("IBLOCK_VALUE_ANY") . '</option>
';
$arFilter = array("IBLOCK_ID" => $iblock_id);
if ($ACTIVE_FILTER === "Y") {
$arFilter["GLOBAL_ACTIVE"] = "Y";
}
$rsSections = CIBlockSection::GetList(array("left_margin" => "asc"), $arFilter, false, array("ID", "DEPTH_LEVEL", "NAME"));
while ($arSection = $rsSections->GetNext()) {
$result .= '<option value="' . $arSection["ID"] . '"' . ($arSection["ID"] == $value ? " selected" : "") . '>' . str_repeat(" . ", $arSection["DEPTH_LEVEL"]) . $arSection["NAME"] . '</option>';
}
$result .= '</select>';
} else {
$result .= '
<tr>
<td>' . GetMessage("USER_TYPE_IBSEC_DEFAULT_VALUE") . ':</td>
<td>
<input type="text" size="8" name="' . $arHtmlControl["NAME"] . '[DEFAULT_VALUE]" value="' . htmlspecialcharsbx($value) . '">
</td>
</tr>
';
}
if ($bVarsFromForm) {
$value = $GLOBALS[$arHtmlControl["NAME"]]["DISPLAY"];
} elseif (is_array($arUserField)) {
$value = $arUserField["SETTINGS"]["DISPLAY"];
} else {
$value = "LIST";
}
$result .= '
<tr>
<td class="adm-detail-valign-top">' . GetMessage("USER_TYPE_ENUM_DISPLAY") . ':</td>
<td>
<label><input type="radio" name="' . $arHtmlControl["NAME"] . '[DISPLAY]" value="LIST" ' . ("LIST" == $value ? 'checked="checked"' : '') . '>' . GetMessage("USER_TYPE_IBSEC_LIST") . '</label><br>
<label><input type="radio" name="' . $arHtmlControl["NAME"] . '[DISPLAY]" value="CHECKBOX" ' . ("CHECKBOX" == $value ? 'checked="checked"' : '') . '>' . GetMessage("USER_TYPE_IBSEC_CHECKBOX") . '</label><br>
</td>
</tr>
';
if ($bVarsFromForm) {
$value = intval($GLOBALS[$arHtmlControl["NAME"]]["LIST_HEIGHT"]);
} elseif (is_array($arUserField)) {
$value = intval($arUserField["SETTINGS"]["LIST_HEIGHT"]);
} else {
$value = 5;
}
$result .= '
<tr>
<td>' . GetMessage("USER_TYPE_IBSEC_LIST_HEIGHT") . ':</td>
<td>
<input type="text" name="' . $arHtmlControl["NAME"] . '[LIST_HEIGHT]" size="10" value="' . $value . '">
</td>
</tr>
//.........这里部分代码省略.........
示例7: GetMessage
var n = document.getElementById('name_'+v).value;
SelEl(v, n);
}
}
}
window.close();
}
}
</script>
<tr>
<td><b><?php
echo GetMessage("IBLOCK_ELSEARCH_IBLOCK");
?>
</b></td>
<td><?php
echo GetIBlockDropDownList($IBLOCK_ID, "filter_type", "filter_iblock_id");
?>
</td>
</tr>
<tr>
<td><?php
echo GetMessage("IBLOCK_ELSEARCH_FROMTO_ID");
?>
</td>
<td>
<nobr>
<input type="text" name="filter_id_start" size="10" value="<?php
echo htmlspecialcharsex($filter_id_start);
?>
">
示例8: __drawRowFromField
unset($arEditFields["TIMESTAMP_X"]);
$tabControl->AddViewField($field->getName(), $field->getTitle() . ":", ${"str_" . $field->getName()});
}
}
__drawRowFromField($tabControl, $arEditFields["NAME"]);
__drawRowFromField($tabControl, $arEditFields["ACTIVE"]);
__drawRowFromField($tabControl, $arEditFields["SORT"]);
__drawRowFromField($tabControl, $arEditFields["FULL_URL"]);
__drawRowFromField($tabControl, $arEditFields["TIME_LIMIT"]);
$tabControl->BeginCustomField("IBLOCK_ID", GetMessage("SM_ENTITY_IBLOCK_ID_FIELD") . ":", true);
?><tr>
<td> <? echo $tabControl->GetCustomLabelHTML(); ?></td>
<td><? echo GetIBlockDropDownList($str_IBLOCK_ID, "IBLOCK_TYPE", "IBLOCK_ID"); ?></td>
</tr><?
$tabControl->EndCustomField("IBLOCK_ID");
$tabControl->BeginNextFormTab();
$tabControl->BeginCustomField("SELECTOR_NOTES1", GetMessage("SM_ENTITY_IBLOCK_ID_FIELD") . ":", true);
?><tr>
<td width="40%"></td><td><? echo BeginNote(), GetMessage("SM_ENTITY_SELECTOR_NOTES"), EndNote(); ?></td>
</tr><?
$tabControl->EndCustomField("SELECTOR_NOTES1");
__drawRowFromField($tabControl, $arEditFields["SPS_ITEM"]);
示例9: __AdmSettingsDrawList
<?php
$tabControl->BeginNextTab();
__AdmSettingsDrawList('wiki', $arAllOptions);
if (IsModuleInstalled('socialnetwork')) {
$socnet_iblock_id = COption::GetOptionString($module_id, 'socnet_iblock_id');
$socnet_enable = COption::GetOptionString($module_id, 'socnet_enable') == 'Y' && CWikiSocnet::IsEnabledSocnet() ? 'Y' : 'N';
$tabControl->BeginNextTab();
__AdmSettingsDrawRow('wiki', array('socnet_enable', GetMessage('WIKI_OPTIONS_SOCNET_ENABLE'), $socnet_enable, array('checkbox')));
?>
<tr>
<td><?php
echo GetMessage('WIKI_OPTIONS_SOCNET_IBLOCK_ID');
?>
</td>
<td><?php
echo GetIBlockDropDownList($socnet_iblock_id, 'socnet_iblock_type_id', 'socnet_iblock_id', false, 'class="adm-detail-iblock-types"', 'class="adm-detail-iblock-list"');
?>
</td>
</tr>
<?php
if (IsModuleInstalled('forum')) {
__AdmSettingsDrawList('wiki', $arForumOptions);
}
}
$tabControl->BeginNextTab();
require_once $_SERVER['DOCUMENT_ROOT'] . '/bitrix/modules/main/admin/group_rights.php';
$tabControl->Buttons();
?>
<script language="JavaScript">
function RestoreDefaults()
{
示例10: GetAdditionalFields
public static function GetAdditionalFields($entityType, $fieldValue = array())
{
$arFields = array();
switch ($entityType) {
case 'string':
$arFields[] = array('id' => 'ROWS', 'name' => GetMessage('CRM_FIELDS_TEXT_ROW_COUNT'), 'type' => 'text');
$arFields[] = array('id' => 'DEFAULT_VALUE', 'name' => GetMessage('CRM_FIELDS_DEFAULT_VALUE'), 'type' => 'text');
break;
case 'integer':
case 'double':
$arFields[] = array('id' => 'DEFAULT_VALUE', 'name' => GetMessage('CRM_FIELDS_DEFAULT_VALUE'), 'type' => 'text');
break;
case 'boolean':
$arFields[] = array('id' => 'B_DEFAULT_VALUE', 'name' => GetMessage('CRM_FIELDS_TYPE_B_VALUE'), 'type' => 'list', 'items' => array('1' => GetMessage('CRM_FIELDS_TYPE_B_VALUE_YES'), '0' => GetMessage('CRM_FIELDS_TYPE_B_VALUE_NO')));
$arFields[] = array('id' => 'B_DISPLAY', 'name' => GetMessage('CRM_FIELDS_TYPE_B_DISPLAY'), 'type' => 'list', 'items' => array('CHECKBOX' => GetMessage('CRM_FIELDS_TYPE_B_DISPLAY_CHECKBOX'), 'RADIO' => GetMessage('CRM_FIELDS_TYPE_B_DISPLAY_RADIO'), 'DROPDOWN' => GetMessage('CRM_FIELDS_TYPE_B_DISPLAY_DROPDOWN')));
break;
case 'datetime':
$arFields[] = array('id' => 'DT_TYPE', 'name' => GetMessage('CRM_FIELDS_TYPE_DT_TYPE'), 'type' => 'list', 'items' => array('NONE' => GetMessage('CRM_FIELDS_TYPE_DT_TYPE_NONE'), 'NOW' => GetMessage('CRM_FIELDS_TYPE_DT_TYPE_NOW'), 'FIXED' => GetMessage('CRM_FIELDS_TYPE_DT_TYPE_FIXED')));
$arFields[] = array('id' => 'DT_DEFAULT_VALUE', 'name' => GetMessage('CRM_FIELDS_TYPE_DT_FIXED'), 'type' => 'date', 'params' => array('size' => 25));
break;
case 'enumeration':
$arFields[] = array('id' => 'E_DISPLAY', 'name' => GetMessage('CRM_FIELDS_TYPE_E_DISPLAY'), 'type' => 'list', 'items' => array('LIST' => GetMessage('CRM_FIELDS_TYPE_E_DISPLAY_LIST'), 'CHECKBOX' => GetMessage('CRM_FIELDS_TYPE_E_DISPLAY_CHECKBOX')));
$arFields[] = array('id' => 'E_LIST_HEIGHT', 'name' => GetMessage('CRM_FIELDS_TYPE_E_LIST_HEIGHT'), 'type' => 'text');
break;
case 'iblock_section':
$id = isset($fieldValue['IB_IBLOCK_ID']) ? $fieldValue['IB_IBLOCK_ID'] : 0;
$bActiveFilter = isset($fieldValue['IB_ACTIVE_FILTER']) && $fieldValue['IB_ACTIVE_FILTER'] == 'Y' ? 'Y' : 'N';
$arFields[] = array('id' => 'IB_IBLOCK_TYPE_ID', 'name' => GetMessage('CRM_FIELDS_TYPE_IB_IBLOCK_TYPE_ID'), 'type' => 'custom', 'value' => GetIBlockDropDownList($id, 'IB_IBLOCK_TYPE_ID', 'IB_IBLOCK_ID'));
$arFilter = array("IBLOCK_ID" => $id);
if ($bActiveFilter === "Y") {
$arFilter["GLOBAL_ACTIVE"] = "Y";
}
$rs = CIBlockElement::GetList(array("SORT" => "DESC", "NAME" => "ASC"), $arFilter, false, false, array("ID", "NAME"));
$rsSections = CIBlockSection::GetList(array("left_margin" => "asc"), $arFilter, false, array("ID", "DEPTH_LEVEL", "NAME"));
$arDefault = array('' => GetMessage('CRM_FIELDS_TYPE_IB_DEFAULT_VALUE_ANY'));
while ($arSection = $rsSections->GetNext()) {
$arDefaul[$arSection["ID"]] = str_repeat(" . ", $arSection["DEPTH_LEVEL"]) . $arSection["NAME"];
}
$arFields[] = array('id' => 'IB_DEFAULT_VALUE', 'name' => GetMessage('CRM_FIELDS_TYPE_IB_DEFAULT_VALUE'), 'items' => $arDefault, 'type' => 'list');
$arFields[] = array('id' => 'IB_DISPLAY', 'name' => GetMessage('CRM_FIELDS_TYPE_IB_DISPLAY'), 'type' => 'list', 'items' => array('LIST' => GetMessage('CRM_FIELDS_TYPE_IB_DISPLAY_LIST'), 'CHECKBOX' => GetMessage('CRM_FIELDS_TYPE_IB_DISPLAY_CHECKBOX')));
$arFields[] = array('id' => 'IB_LIST_HEIGHT', 'name' => GetMessage('CRM_FIELDS_TYPE_IB_LIST_HEIGHT'), 'type' => 'text');
$arFields[] = array('id' => 'IB_ACTIVE_FILTER', 'name' => GetMessage('CRM_FIELDS_TYPE_IB_ACTIVE_FILTER'), 'type' => 'checkbox');
break;
case 'iblock_element':
$id = isset($fieldValue['IB_IBLOCK_ID']) ? $fieldValue['IB_IBLOCK_ID'] : 0;
$bActiveFilter = isset($fieldValue['IB_ACTIVE_FILTER']) && $fieldValue['IB_ACTIVE_FILTER'] == 'Y' ? 'Y' : 'N';
$arFields[] = array('id' => 'IB_IBLOCK_TYPE_ID', 'name' => GetMessage('CRM_FIELDS_TYPE_IB_IBLOCK_TYPE_ID'), 'type' => 'custom', 'value' => GetIBlockDropDownList($id, 'IB_IBLOCK_TYPE_ID', 'IB_IBLOCK_ID'));
$arFilter = array("IBLOCK_ID" => $id);
if ($bActiveFilter === "Y") {
$arFilter["ACTIVE"] = "Y";
}
$rs = CIBlockElement::GetList(array("SORT" => "DESC", "NAME" => "ASC"), $arFilter, false, false, array("ID", "NAME"));
$arDefault = array('' => GetMessage('CRM_FIELDS_TYPE_IB_DEFAULT_VALUE_ANY'));
while ($ar = $rs->GetNext()) {
$arDefault[$ar["ID"]] = $ar["NAME"];
}
$arFields[] = array('id' => 'IB_DEFAULT_VALUE', 'name' => GetMessage('CRM_FIELDS_TYPE_IB_DEFAULT_VALUE'), 'items' => $arDefault, 'type' => 'list');
$arFields[] = array('id' => 'IB_DISPLAY', 'name' => GetMessage('CRM_FIELDS_TYPE_IB_DISPLAY'), 'type' => 'list', 'items' => array('LIST' => GetMessage('CRM_FIELDS_TYPE_IB_DISPLAY_LIST'), 'CHECKBOX' => GetMessage('CRM_FIELDS_TYPE_IB_DISPLAY_CHECKBOX')));
$arFields[] = array('id' => 'IB_LIST_HEIGHT', 'name' => GetMessage('CRM_FIELDS_TYPE_IB_LIST_HEIGHT'), 'type' => 'text');
$arFields[] = array('id' => 'IB_ACTIVE_FILTER', 'name' => GetMessage('CRM_FIELDS_TYPE_IB_ACTIVE_FILTER'), 'type' => 'checkbox');
break;
case 'crm_status':
$arItems = array();
$ar = CCrmStatus::GetEntityTypes();
foreach ($ar as $data) {
$arItems[$data['ID']] = $data['NAME'];
}
$arFields[] = array('id' => 'ENTITY_TYPE', 'name' => GetMessage('CRM_FIELDS_TYPE_CRM_STATUS_ENTITY_TYPE'), 'type' => 'list', 'items' => $arItems);
break;
case 'crm':
$entityTypeLead = isset($fieldValue['ENTITY_TYPE_LEAD']) && $fieldValue['ENTITY_TYPE_LEAD'] == 'Y' ? 'Y' : 'N';
$entityTypeContact = isset($fieldValue['ENTITY_TYPE_CONTACT']) && $fieldValue['ENTITY_TYPE_CONTACT'] == 'Y' ? 'Y' : 'N';
$entityTypeCompany = isset($fieldValue['ENTITY_TYPE_COMPANY']) && $fieldValue['ENTITY_TYPE_COMPANY'] == 'Y' ? 'Y' : 'N';
$entityTypeDeal = isset($fieldValue['ENTITY_TYPE_DEAL']) && $fieldValue['ENTITY_TYPE_DEAL'] == 'Y' ? 'Y' : 'N';
$sVal = '
<input type="checkbox" name="ENTITY_TYPE_LEAD" value="Y" ' . ($entityTypeLead == "Y" ? 'checked="checked"' : '') . '> ' . GetMessage('USER_TYPE_CRM_ENTITY_TYPE_LEAD') . ' <br/>
<input type="checkbox" name="ENTITY_TYPE_CONTACT" value="Y" ' . ($entityTypeContact == "Y" ? 'checked="checked"' : '') . '> ' . GetMessage('USER_TYPE_CRM_ENTITY_TYPE_CONTACT') . '<br/>
<input type="checkbox" name="ENTITY_TYPE_COMPANY" value="Y" ' . ($entityTypeCompany == "Y" ? 'checked="checked"' : '') . '> ' . GetMessage('USER_TYPE_CRM_ENTITY_TYPE_COMPANY') . '<br/>
<input type="checkbox" name="ENTITY_TYPE_DEAL" value="Y" ' . ($entityTypeDeal == "Y" ? 'checked="checked"' : '') . '> ' . GetMessage('USER_TYPE_CRM_ENTITY_TYPE_DEAL') . '<br/>
';
$arFields[] = array('id' => 'ENTITY_TYPE', 'name' => GetMessage('CRM_FIELDS_TYPE_CRM_ELEMENT_ENTITY_TYPE'), 'type' => 'custom', 'value' => $sVal);
break;
}
return $arFields;
}