- Модуль: crm
- Путь к файлу: ~/bitrix/modules/crm/classes/general/crm_view_helper.php
- Класс: \CCrmViewHelper
- Вызов: CCrmViewHelper::RenderMultipleClientSummaryPanel
static function RenderMultipleClientSummaryPanel($arParams, $arOptions = array())
{
$count = isset($arOptions['COUNT']) ? (int)$arOptions['COUNT'] : 0;
$selectedIndex = isset($arOptions['SELECTED_INDEX']) ? (int)$arOptions['SELECTED_INDEX'] : 0;
$boxWidth = 100 * $count;
$slideWidth = round(100 / $count, 6);
echo '';
echo '
';
echo '
';
for($i = 0; $i < $count; $i++)
{
$childParams = isset($arParams[$i]) ? $arParams[$i] : null;
if(is_array($childParams))
{
//region Client slide
$prefix = isset($childParams['PREFIX']) ? $childParams['PREFIX'] : '';
$entityID = isset($childParams['ENTITY_ID']) ? $childParams['ENTITY_ID'] : '';
$wrapperID = $prefix !== '' ? "{$prefix}_{$entityID}" : $entityID;
$childParams['CONTAINER_ID'] = "{$wrapperID}_container";
echo '
';
self::RenderClientSummaryPanel($childParams, array_merge(array('ENABLE_WRAPPER' => false), $arOptions));
//region Counter
echo '
',
'
', ($selectedIndex + 1), ' / ', $count, '
',
'
';
//endregion
echo '
';
//endregion
}
}
echo '
'; //...slide-box
echo '
'; //...slider-container-overflow
echo '
';
echo '
';
echo '
'; //...slider-container
}