CDR & Enhanced Theme: Added Direction indicator icon.

This commit is contained in:
Nate Jones
2014-06-21 10:38:02 +00:00
parent 572f3e2989
commit 3767f61f61
8 changed files with 47 additions and 3 deletions

View File

@@ -101,9 +101,20 @@
$text['label-download']['fr-fr'] = "Télécharger";
$text['label-phoneip']['en-us'] = "Phone IP";
$text['label-phoneip']['es-cl'] = "Teléfono IP";
$text['label-phoneip']['pt-pt'] = "IP do Telefone";
$text['label-phoneip']['fr-fr'] = "Phone IP";
$text['label-missed']['en-us'] = "Missed";
$text['label-missed']['es-cl'] = "Perdidas";
$text['label-missed']['pt-pt'] = "Perdidas";
$text['label-missed']['fr-fr'] = "Perdus";
$text['label-failed']['en-us'] = "Failed";
$text['label-failed']['es-cl'] = "Fracasado";
$text['label-failed']['pt-pt'] = "Fracassado";
$text['label-failed']['fr-fr'] = "manqué";
$text['button-statistics']['en-us'] = "Statistics";
$text['button-statistics']['es-cl'] = "Estadísticas";
$text['button-statistics']['pt-pt'] = "Estatísticas";

View File

@@ -284,6 +284,7 @@ else {
//show the results
echo "<table width='100%' cellpadding='0' cellspacing='0'>\n";
echo "<tr>\n";
echo "<th>&nbsp;</th>\n";
//echo th_order_by('direction', 'Direction', $order_by, $order);
//echo th_order_by('default_language', 'Language', $order_by, $order);
//echo th_order_by('context', 'Context', $order_by, $order);
@@ -338,9 +339,41 @@ else {
elseif (file_exists($tmp_dir.'/'.$row['uuid'].'_1.mp3')) {
$tmp_name = $row['uuid']."_1.mp3";
}
echo "<tr >\n";
//echo " <td valign='top' class='".$row_style[$c]."'>".$row['direction']."</td>\n";
if (
file_exists($_SERVER["DOCUMENT_ROOT"]."/themes/".$_SESSION['domain']['template']['name']."/images/icon_cdr_inbound_missed.png") &&
file_exists($_SERVER["DOCUMENT_ROOT"]."/themes/".$_SESSION['domain']['template']['name']."/images/icon_cdr_inbound_connected.png") &&
file_exists($_SERVER["DOCUMENT_ROOT"]."/themes/".$_SESSION['domain']['template']['name']."/images/icon_cdr_outbound_failed.png") &&
file_exists($_SERVER["DOCUMENT_ROOT"]."/themes/".$_SESSION['domain']['template']['name']."/images/icon_cdr_outbound_connected.png") &&
file_exists($_SERVER["DOCUMENT_ROOT"]."/themes/".$_SESSION['domain']['template']['name']."/images/icon_cdr_local_failed.png") &&
file_exists($_SERVER["DOCUMENT_ROOT"]."/themes/".$_SESSION['domain']['template']['name']."/images/icon_cdr_local_connected.png")
) {
echo " <td valign='top' class='".$row_style[$c]."' style='text-align: center;'>";
switch ($row['direction']) {
case "inbound" :
if ($row['billsec'] == 0)
echo "<img src='/themes/".$_SESSION['domain']['template']['name']."/images/icon_cdr_inbound_missed.png' style='border: none;' alt='".$text['label-inbound']." ".$text['label-missed']."'>\n";
else
echo "<img src='/themes/".$_SESSION['domain']['template']['name']."/images/icon_cdr_inbound_connected.png' style='border: none;' alt='".$text['label-inbound']."'>\n";
break;
case "outbound" :
if ($row['billsec'] == 0)
echo "<img src='/themes/".$_SESSION['domain']['template']['name']."/images/icon_cdr_outbound_failed.png' style='border: none;' alt='".$text['label-outbound']." ".$text['label-failed']."'>\n";
else
echo "<img src='/themes/".$_SESSION['domain']['template']['name']."/images/icon_cdr_outbound_connected.png' style='border: none;' alt='".$text['label-outbound']."'>\n";
break;
case "local" :
if ($row['billsec'] == 0)
echo "<img src='/themes/".$_SESSION['domain']['template']['name']."/images/icon_cdr_local_failed.png' style='border: none;' alt='".$text['label-local']." ".$text['label-failed']."'>\n";
else
echo "<img src='/themes/".$_SESSION['domain']['template']['name']."/images/icon_cdr_local_connected.png' style='border: none;' alt='".$text['label-local']."'>\n";
break;
}
echo " </td>\n";
}
else {
echo " <td class='".$row_style[$c]."'>&nbsp;</td>";
}
//echo " <td valign='top' class='".$row_style[$c]."'>".$row['default_language']."</td>\n";
//echo " <td valign='top' class='".$row_style[$c]."'>".$row['context']."</td>\n";
//echo " <td valign='top' class='".$row_style[$c]."'>".$row['leg']."</td>\n";
@@ -397,7 +430,7 @@ else {
echo " <td valign='top' class='".$row_style[$c]."'>".number_format($row['pdd_ms']/1000,2)."s</td>\n";
}
if (permission_exists("xml_cdr_mos")) {
echo " <td valign='top' class='".$row_style[$c]."' ".((strlen($row['rtp_audio_in_mos']) > 0) ? "title='".($row['rtp_audio_in_mos'] / 5 * 100)."%'" : null)."'>".((strlen($row['rtp_audio_in_mos']) > 0) ? $row['rtp_audio_in_mos'] : "&nbsp;")."</td>\n";
echo " <td valign='top' class='".$row_style[$c]."' ".((strlen($row['rtp_audio_in_mos']) > 0) ? "title='".($row['rtp_audio_in_mos'] / 5 * 100)."%'" : null).">".((strlen($row['rtp_audio_in_mos']) > 0) ? $row['rtp_audio_in_mos'] : "&nbsp;")."</td>\n";
}
if (if_group("admin") || if_group("superadmin")) {
echo " <td valign='top' class='".$row_style[$c]."'><a href='xml_cdr_details.php?uuid=".$row['uuid']."'>".$hangup_cause."</a></td>\n";

Binary file not shown.

After

Width:  |  Height:  |  Size: 298 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 304 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 303 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 303 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 281 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 281 B