require_once 'include/header.php'; require_once 'include/menu.php'; require_once 'modules/statistics.php'; print_menu('statistics'); ?> <br/><br/> <center> <?php $stat = new CallsStatistics(); try { $total_calls = $stat->getTotalCalls(); } catch (StatisticException $e) { $total_calls = "ERROR {$e}"; } try { $total_minutes = $stat->getTotalMinutes(); } catch (StatisticException $e) { $total_minutes = "ERROR {$e}"; } try { $avg_call_duration = $stat->getAverageCallDuration(); } catch (StatisticException $e) { $avg_call_duration = "ERROR {$e}"; } ?> Total calls: <b><?php echo $total_calls; ?> </b> | Total minutes: <b><?php echo $total_minutes;