<?php require_once "../admin/includes/sessioncheck.php"; $etel_debug_mode = 1; require_once "ivr.class.php"; require_once "lookup.class.php"; require_once '../includes/dbconnection.php'; require_once '../includes/transaction.class.php'; $_REQUEST = array_merge($_POST, $_GET); $log = new ivr_class(); $page_sums = $log->get_page_summary(strtotime("1/1/1980"), strtotime("12/31/2030")); echo "<center><table width='800px' cellspacing=0 cellpadding=0>"; echo "\r\n\t<tr>\r\n\t\t<td><b>Page</b></td>\r\n\t\t<td><b>Count</b></td>\r\n\t</tr>\r\n"; $j = 0; $cols = array('#E6E6E6', '#EEEEEE'); foreach ($page_sums as $index => $page_sum) { $bgcolor = $cols[++$j % 2]; echo "\r\n\t\t<tr bgcolor='{$bgcolor}'>\r\n\t\t\t<td>" . $page_sum['iv_page_name'] . "</td>\r\n\t\t\t<td>" . $page_sum['views'] . "</td>\r\n\t\t</tr>\r\n\t"; } echo "</table></center>"; $sums = $log->get_summary(strtotime("1/1/1980"), strtotime("12/31/2030")); echo "<center><table width='800px'>"; echo "\r\n\t<tr>\r\n\t\t<td><b>Call ID</b></td>\r\n\t\t<td><b>Start</b></td>\r\n\t\t<td><b>End</b></td>\r\n\t\t<td><b>Phone Number</b></td>\r\n\t\t<td><b>Duration</b></td>\r\n\t</tr>\r\n"; foreach ($sums as $index => $sum) { echo "\r\n\t\t<tr>\r\n\t\t\t<td><a href='cs_log_detail.php?callid=" . $sum['iv_call_id'] . "'>" . $sum['iv_call_id'] . "</a></td>\r\n\t\t\t<td>" . $sum['call_start'] . "</td>\r\n\t\t\t<td>" . $sum['call_end'] . "</td>\r\n\t\t\t<td>" . $sum['iv_phone'] . "</td>\r\n\t\t\t<td>" . $sum['call_duration'] . "</td>\r\n\t\t</tr>\r\n\t"; } echo "</table></center>";
<?php require_once "../admin/includes/sessioncheck.php"; $etel_debug_mode = 1; require_once "ivr.class.php"; require_once "lookup.class.php"; require_once '../includes/dbconnection.php'; require_once '../includes/transaction.class.php'; $_REQUEST = array_merge($_POST, $_GET); $log = new ivr_class(); $details = $log->get_call_details($_REQUEST['callid']); /* [iv_call_id] => 13073306 [iv_datetime] => 2006-08-03 14:02:03 [iv_phone] => 3144508965 [iv_page_name] => angel_greeting [iv_query] => a:5:{s:12:"CallDuration";s:1:"1";s:8:"CallGUID";s:8:"13073306";s:4:"page";s:2:"10";s:12:"subscriberID";s:5:"32235";s:8:"CallerID";s:10:"3144508965";} [iv_duration] => 1 */ $callid = $details[1]['iv_call_id']; $phone = $details[1]['iv_phone']; $today = $log->get_calls_today($phone); $add_calls = $log->get_phone_summary($phone); echo "<p><a href='cs_log.php'>View All Calls</a></p>"; echo "<center><h3>{$phone} ({$today})</h3><table width='800px'>"; echo "\r\n\t<tr>\r\n\t\t<td><b>Call ID</b></td>\r\n\t\t<td><b>Start</b></td>\r\n\t\t<td><b>End</b></td>\r\n\t\t<td><b>Phone Number</b></td>\r\n\t\t<td><b>Duration</b></td>\r\n\t</tr>\r\n"; foreach ($add_calls as $index => $sum) { if ($sum['iv_call_id'] != $callid) { echo "\r\n\t\t\t<tr>\r\n\t\t\t\t<td><a href='cs_log_detail.php?callid=" . $sum['iv_call_id'] . "'>" . $sum['iv_call_id'] . "</a></td>\r\n\t\t\t\t<td>" . $sum['call_start'] . "</td>\r\n\t\t\t\t<td>" . $sum['call_end'] . "</td>\r\n\t\t\t\t<td>" . $sum['iv_phone'] . "</td>\r\n\t\t\t\t<td>" . $sum['call_duration'] . "</td>\r\n\t\t\t</tr>\r\n\t\t"; } else { echo "\r\n\t\t\t<tr>\r\n\t\t\t\t<td><b>" . $sum['iv_call_id'] . "</b></td>\r\n\t\t\t\t<td>" . $sum['call_start'] . "</td>\r\n\t\t\t\t<td>" . $sum['call_end'] . "</td>\r\n\t\t\t\t<td>" . $sum['iv_phone'] . "</td>\r\n\t\t\t\t<td>" . $sum['call_duration'] . "</td>\r\n\t\t\t</tr>\r\n\t\t";