本文整理汇总了PHP中CCrmOwnerType::GetAllCategoryCaptions方法的典型用法代码示例。如果您正苦于以下问题:PHP CCrmOwnerType::GetAllCategoryCaptions方法的具体用法?PHP CCrmOwnerType::GetAllCategoryCaptions怎么用?PHP CCrmOwnerType::GetAllCategoryCaptions使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类CCrmOwnerType
的用法示例。
在下文中一共展示了CCrmOwnerType::GetAllCategoryCaptions方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: array
<?php
if (!defined('B_PROLOG_INCLUDED') || B_PROLOG_INCLUDED !== true) {
die;
}
global $APPLICATION;
$APPLICATION->SetAdditionalCSS("/bitrix/themes/.default/crm-entity-show.css");
$arTabs = array();
$arTabs[] = array('id' => 'tab_1', 'name' => GetMessage('CRM_TAB_1'), 'title' => GetMessage('CRM_TAB_1_TITLE'), 'icon' => '', 'fields' => $arResult['FIELDS']['tab_1']);
$entityTypeCategories = CCrmOwnerType::GetAllCategoryCaptions();
$elementID = isset($arResult['ELEMENT']['ID']) ? $arResult['ELEMENT']['ID'] : 0;
$arResult['CRM_CUSTOM_PAGE_TITLE'] = $elementID > 0 ? GetMessage('CRM_COMPANY_EDIT_TITLE', array('#ID#' => $elementID, '#TITLE#' => isset($arResult['ELEMENT']['TITLE']) ? $arResult['ELEMENT']['TITLE'] : '')) : GetMessage('CRM_COMPANY_CREATE_TITLE');
$formCustomHtml = '<input type="hidden" name="company_id" value="' . $elementID . '"/>';
$APPLICATION->IncludeComponent('bitrix:crm.interface.form', 'edit', array('FORM_ID' => $arResult['FORM_ID'], 'GRID_ID' => $arResult['GRID_ID'], 'TABS' => $arTabs, 'BUTTONS' => array('standard_buttons' => true, 'back_url' => $arResult['BACK_URL'], 'custom_html' => $formCustomHtml), 'IS_NEW' => $elementID <= 0, 'USER_FIELD_ENTITY_ID' => CCrmCompany::$sUFEntityID, 'TITLE' => $arResult['CRM_CUSTOM_PAGE_TITLE'], 'ENABLE_TACTILE_INTERFACE' => 'Y', 'DATA' => $arResult['ELEMENT'], 'SHOW_SETTINGS' => 'Y'));
if ($arResult['DUPLICATE_CONTROL']['ENABLED']) {
?>
<script type="text/javascript">
BX.ready(
function()
{
var formID = "form_" + "<?php
echo CUtil::JSEscape($arResult['FORM_ID']);
?>
";
var form = BX(formID);
BX.CrmDuplicateSummaryPopup.messages =
{
title: "<?php
echo GetMessageJS("CRM_COMPANY_EDIT_DUP_CTRL_SHORT_SUMMARY_TITLE");
?>