Ejemplo n.º 1
0
    $APPLICATION->IncludeComponent("bitrix:main.user.link", '', array("AJAX_ONLY" => "Y", "PATH_TO_SONET_USER_PROFILE" => $arParams["~PATH_TO_USER_PROFILE"], "PATH_TO_SONET_MESSAGES_CHAT" => $arParams["~PATH_TO_MESSAGES_CHAT"], "DATE_TIME_FORMAT" => $arParams["~DATE_TIME_FORMAT"], "SHOW_YEAR" => $arParams["SHOW_YEAR"], "NAME_TEMPLATE" => $arParams["NAME_TEMPLATE"], "SHOW_LOGIN" => $arParams["SHOW_LOGIN"], "PATH_TO_CONPANY_DEPARTMENT" => $arParams["~PATH_TO_CONPANY_DEPARTMENT"], "PATH_TO_VIDEO_CALL" => $arParams["~PATH_TO_VIDEO_CALL"]), false, array("HIDE_ICONS" => "Y"));
    define('TASKS_MUL_INCLUDED', 1);
}
?>
<div class="task-report">
	<div class="tasks-whole-company-efficiency"><?php 
echo GetMessage("TASKS_REPORT_EMPLOYEES_COUNT");
?>
: <?php 
echo CTaskReport::GetEmployeesCount();
?>
. <?php 
echo GetMessage("TASKS_REPORT_USE_TASKS");
?>
: <?php 
echo CTaskReport::GetEmployeesCount() > 0 ? round($arResult["COMPANY_STATS"]["RESPONSIBLES"] / CTaskReport::GetEmployeesCount() * 100) : 0;
?>
% (<?php 
echo $arResult["COMPANY_STATS"]["RESPONSIBLES"];
?>
). <?php 
echo GetMessage("TASKS_REPORT_WHOLE_COMPANY_EFFICIENCY");
?>
: <?php 
echo $arResult["COMPANY_STATS"]["MARKED_IN_REPORT"] > 0 ? round($arResult["COMPANY_STATS"]["POSITIVE"] / $arResult["COMPANY_STATS"]["MARKED_IN_REPORT"] * 100) : 0;
?>
%</div>
	<div class="task-report-left-corner"></div>
	<div class="task-report-right-corner"></div>
	<table class="task-report-table" cellspacing="0" id="task-report-table">