Пример #1
0
        }
        $costLastMonth += $arData["COST"];
        $durationLastMonth += $arData["CALL_DURATION"];
    }
    if ($durationLastMonth > 60) {
        $formatTimeMin = floor($durationLastMonth / 60);
        $formatTimeSec = $durationLastMonth - $formatTimeMin * 60;
        $durationLastMonth = $formatTimeMin . " " . GetMessage("TELEPHONY_MIN");
        if ($formatTimeSec > 0) {
            $durationLastMonth = $durationLastMonth . " " . $formatTimeSec . " " . GetMessage("TELEPHONY_SEC");
        }
    } else {
        $durationLastMonth = $durationLastMonth . " " . GetMessage("TELEPHONY_SEC");
    }
    $costLastMonth = $costLastMonth ? CCurrencyLang::CurrencyFormat($costLastMonth, $curPortalCurrency, true) : GetMessage("TELEPHONY_EMPTY");
    $monthlyStat = CVoxImplantMain::GetTelephonyStatistic();
    $monthCount = 0;
    ?>
	<div class="tel-inner-right">
		<div class="tel-history-block">
			<div class="tel-history-title"><?php 
    echo GetMessage('TELEPHONY_HISTORY_2');
    ?>
</div>
			<div class="tel-history-block-info tel-history-block-info-current ">
				<strong><?php 
    echo FormatDate("f", time());
    ?>
 <?php 
    echo date("Y");
    ?>