} ?> <!-- --></div><!-- --></td> <td class="pulse-info-cell pulse-info-cell-center"> <span class="pulse-info-index-text"> <?php echo GetMessage('INTRANET_USTAT_COMPANY_ACTIVITY_TITLE'); ?> <span class="pulse-info-index-info" id="pulse-company-activity-help-icon"></span> </span> <span class="pulse-info-index"> <?php foreach (UStat::getFormattedNumber($arResult['SUM_ACTIVITY']) as $number) { ?> <!-- --><span class="pulse-num pulse-num-<?php echo $number['code']; ?> "><?php echo $number['char']; ?> </span><!-- --><?php } ?> </span> </td> <td class="pulse-info-cell pulse-info-cell-center">
<div class="pulse-popup-bar-wrap"> <span class="pulse-popup-bar"> <span class="pulse-popup-bar-inner" style="width: <?php echo $topActivity ? round($data['ACTIVITY'] / $topActivity * 100) : 0; ?> %;"></span> <span class="pulse-popup-bar-caption"><?php if (!$arParams['SECTION']) { echo $data['SERVICES_COUNT'] . ' ' . getNumberEnding($data['SERVICES_COUNT'], array(GetMessage('INTRANET_USTAT_RATING_SERVICE_COUNT_1'), GetMessage('INTRANET_USTAT_RATING_SERVICE_COUNT_2'), GetMessage('INTRANET_USTAT_RATING_SERVICE_COUNT_5'))); } ?> </span> </span> <?php $activity = ''; $formattedAcitivty = \Bitrix\Intranet\UStat\UStat::getFormattedNumber($data['ACTIVITY']); foreach ($formattedAcitivty as $numPart) { $activity .= $numPart['char']; } ?> <span class="pulse-popup-bar-size"><?php echo $activity; ?> </span> </div> </div> </div> <?php } ?>