Beispiel #1
0
                $result .= '<br/>';
            }
            $result .= htmlspecialcharsbx($value) . ' ' . htmlspecialcharsbx($legend);
        }
        return $result;
    }
}
$UID = $arResult['UID'];
$prefix = htmlspecialcharsbx($UID);
$entity = $arResult['ENTITY'];
$dataItem = CCrmMobileHelper::PrepareContactData($entity);
$typeInfos = CCrmFieldMulti::GetEntityTypes();
//ADDRESS
$address = '';
$addressCut = '';
$hasAddress = CCrmMobileHelper::PrepareCut(isset($entity['FULL_ADDRESS']) ? $entity['FULL_ADDRESS'] : '', $address, $addressCut);
?>
<div id="<?php 
echo htmlspecialcharsbx($UID);
?>
" class="crm_wrapper">
	<div class="crm_block_container">
		<div class="crm_card">
			<div class="crm_card_image">
				<img src="<?php 
echo htmlspecialcharsbx($dataItem['VIEW_IMAGE_URL']);
?>
"/>
			</div>
			<div class="crm_card_name"><?php 
echo $entity['FORMATTED_NAME'];
Beispiel #2
0
$title = isset($entity['SUBJECT']) ? $entity['SUBJECT'] : '';
$ownerTypeID = $entity['OWNER_TYPE_ID'];
$ownerTitle = $entity['OWNER_TITLE'];
$ownerShowUrl = $entity['OWNER_SHOW_URL'];
//DESCRIPTION
$fullDescription = isset($entity['DESCRIPTION']) ? $entity['DESCRIPTION'] : '';
$descriptionType = isset($entity['DESCRIPTION_TYPE']) ? intval($entity['DESCRIPTION_TYPE']) : CCrmContentType::PlainText;
if ($descriptionType === CCrmContentType::BBCode) {
    $bbCodeParser = new CTextParser();
    $fullDescription = $bbCodeParser->convertText($fullDescription);
} elseif ($descriptionType !== CCrmContentType::Html) {
    $fullDescription = htmlspecialcharsbx($fullDescription);
}
$description = '';
$descriptionCut = '';
$hasDescription = CCrmMobileHelper::PrepareCut($fullDescription, $description, $descriptionCut);
$location = isset($entity['LOCATION']) ? $entity['LOCATION'] : '';
$direction = $entity['DIRECTION'];
$storageTypeID = $entity['STORAGE_TYPE_ID'];
$webdavElements = isset($entity['WEBDAV_ELEMENTS']) ? $entity['WEBDAV_ELEMENTS'] : array();
$files = isset($entity['FILES']) ? $entity['FILES'] : array();
$diskFiles = isset($entity['DISK_FILES']) ? $entity['DISK_FILES'] : array();
if (!function_exists('__CrmActivityViewPrepareNameForJson')) {
    function __CrmActivityViewPrepareNameForJson($string)
    {
        if (!\Bitrix\Main\Application::getInstance()->isUtfMode()) {
            return \Bitrix\Main\Text\Encoding::convertEncodingArray($string, SITE_CHARSET, 'UTF-8');
        }
        return $string;
    }
}
Beispiel #3
0
$prefix = htmlspecialcharsbx($UID);
$entity = $arResult['ENTITY'];
$dataItem = CCrmMobileHelper::PrepareCompanyData($entity);
$typeInfos = CCrmFieldMulti::GetEntityTypes();
//ADDRESS
$address = '';
$addressCut = '';
$hasAddress = CCrmMobileHelper::PrepareCut(isset($entity['~ADDRESS']) ? $entity['~ADDRESS'] : '', $address, $addressCut);
//ADDRESS_LEGAL
$addressLegal = '';
$addressLegalCut = '';
$hasAddressLegal = CCrmMobileHelper::PrepareCut(isset($entity['~ADDRESS_LEGAL']) ? $entity['~ADDRESS_LEGAL'] : '', $addressLegal, $addressLegalCut);
//BANKING_DETAILS
$bankDetails = '';
$bankDetailsCut = '';
$hasBankDetails = CCrmMobileHelper::PrepareCut(isset($entity['~BANKING_DETAILS']) ? $entity['~BANKING_DETAILS'] : '', $bankDetails, $bankDetailsCut);
$titleHtml = isset($entity['TITLE']) ? $entity['TITLE'] : '';
?>
<div id="<?php 
echo htmlspecialcharsbx($UID);
?>
" class="crm_wrapper">
	<div class="crm_block_container">
		<div class="crm_card">
			<div class="crm_card_image">
				<img src="<?php 
echo htmlspecialcharsbx($dataItem['VIEW_IMAGE_URL']);
?>
"/>
			</div>
			<div class="crm_card_name"><?php