本文整理匯總了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");
?>