Translation to portuguese from Portugal (pt-pt) in app xml_cdr

This commit is contained in:
Nuno Miguel Reis
2012-10-06 18:02:17 +00:00
parent ba56a2ab8a
commit df9175de27
4 changed files with 93 additions and 75 deletions

View File

@@ -146,5 +146,5 @@
$content_fax['tabel-size']['en-us'] = 'Size';
$content_fax['tabel-size']['pt-pt'] = 'Tamanho';
?>

View File

@@ -26,6 +26,7 @@
require_once "root.php";
require_once "includes/require.php";
require_once "includes/checkauth.php";
require_once "app_languages.php";
if (permission_exists('xml_cdr_view')) {
//access granted
}
@@ -34,6 +35,11 @@ else {
exit;
}
//prepare the languages
foreach($content_cdr as $key => $value) {
$content_cdr[$key] = $value[$_SESSION['domain']['language']['code']];
}
//import xml_cdr files
require_once "v_xml_cdr_import.php";
@@ -65,12 +71,12 @@ else {
echo "<div align='center'>";
echo "<table width='100%' border='0' cellpadding='0' cellspacing='0'>\n";
echo "<tr>\n";
echo "<td align='left' width='50%' nowrap='nowrap'><b>Call Detail Records</b></td>\n";
echo "<td align='left' width='50%' nowrap='nowrap'><b>".$content_cdr['title']."</b></td>\n";
echo "<td align='right' width='100%'>\n";
echo "<table>\n";
echo "<tr>\n";
echo "<td>\n";
echo " <input type='button' class='btn' value='Statistics' onclick=\"document.location.href='xml_cdr_statistics.php';\">\n";
echo " <input type='button' class='btn' value='".$content_cdr['label-statistics']."' onclick=\"document.location.href='xml_cdr_statistics.php';\">\n";
echo "</td>\n";
echo "<form method='post' action='xml_cdr_csv.php'>";
echo "<td>\n";
@@ -102,10 +108,10 @@ else {
echo "<tr>\n";
echo "<td align='left' colspan='2'>\n";
echo "Call Detail Records (CDRs) are detailed information on the calls. \n";
echo "The information contains source, destination, duration, and other useful call details. \n";
echo "Use the fields to filter the information for the specific call records that are desired. \n";
echo "Then view the calls in the list or download them as comma seperated file by using the 'csv' button. \n";
echo "".$content_cdr['description']." \n";
echo "".$content_cdr['description2']." \n";
echo "".$content_cdr['description3']." \n";
echo "".$content_cdr['description4']." \n";
//To do an advanced search of the call detail records click on the following advanced button.
echo "<br />\n";
@@ -123,34 +129,34 @@ else {
echo "<td width='33.3%'>\n";
echo "<table width='100%' border='0'>\n";
echo " <tr>\n";
echo " <td align='left' width='25%'>Direction:</td>\n";
echo " <td align='left' width='25%'>".$content_cdr['label-description'].":</td>\n";
echo " <td align='left' width='75%'>\n";
echo " <select name='direction' style='width:100%' class='formfld'>\n";
echo " <option value=''> </option>\n";
if ($direction == "inbound") {
echo " <option value='inbound' selected='selected'>inbound</option>\n";
echo " <option value='inbound' selected='selected'>".$content_cdr['label-inbound']."</option>\n";
}
else {
echo " <option value='inbound'>inbound</option>\n";
echo " <option value='inbound'>".$content_cdr['label-inbound']."</option>\n";
}
if ($direction == "outbound") {
echo " <option value='outbound' selected='selected'>outbound</option>\n";
echo " <option value='outbound' selected='selected'>".$content_cdr['label-outbound']."</option>\n";
}
else {
echo " <option value='outbound'>outbound</option>\n";
echo " <option value='outbound'>".$content_cdr['label-outbound']."</option>\n";
}
if ($direction == "local") {
echo " <option value='local' selected='selected'>local</option>\n";
echo " <option value='local' selected='selected'>".$content_cdr['label-local']."</option>\n";
}
else {
echo " <option value='local'>local</option>\n";
echo " <option value='local'>".$content_cdr['label-local']."</option>\n";
}
echo " </select>\n";
echo " </td>\n";
echo " </tr>\n";
echo " <tr>\n";
echo " <td align=\"left\">CID Name:</td>\n";
echo " <td align=\"left\">".$content_cdr['label-cidname'].":</td>\n";
echo " <td align=\"left\"><input type='text' class='formfld' name='caller_id_name' style='width:100%' value='$caller_id_name'></td>\n";
echo " </tr>\n";
@@ -161,11 +167,11 @@ else {
echo "<table width='100%'>\n";
echo " <tr>\n";
echo " <td align='left' width='25%'>Source:</td>\n";
echo " <td align='left' width='25%'>".$content_cdr['label-source'].":</td>\n";
echo " <td align='left' width='75%'><input type='text' class='formfld' name='caller_id_number' style='width:100%' value='$caller_id_number'></td>\n";
echo " </tr>\n";
echo " <tr>\n";
echo " <td align='left' width='25%'>Destination:</td>\n";
echo " <td align='left' width='25%'>".$content_cdr['label-destination'].":</td>\n";
echo " <td align='left' width='75%'><input type='text' class='formfld' name='destination_number' style='width:100%' value='$destination_number'></td>\n";
echo " </tr>\n";
echo "</table>\n";
@@ -188,12 +194,12 @@ else {
//echo " </tr>";
echo " <tr>\n";
echo " <td align='left' width='25%'>Start:</td>\n";
echo " <td align='left' width='25%'>".$content_cdr['label-start'].":</td>\n";
echo " <td align='left' width='75%'><input type='text' class='formfld' name='start_stamp' style='width:100%' value='$start_stamp'></td>\n";
echo " </tr>\n";
echo " <tr>\n";
echo " <td align='left' width='25%'>Status:</td>\n";
echo " <td align='left' width='25%'>".$content_cdr['label-status'].":</td>\n";
echo " <td align='left' width='75%'>\n";
echo " <select name=\"hangup_cause\" style='width:100%' class='formfld'>\n";
echo " <option value='".$hangup_cause."' selected='selected'>".$hangup_cause."</option>\n";
@@ -313,16 +319,16 @@ else {
//echo th_order_by('default_language', 'Language', $order_by, $order);
//echo th_order_by('context', 'Context', $order_by, $order);
//echo th_order_by('leg', 'Leg', $order_by, $order);
echo th_order_by('caller_id_name', 'Name', $order_by, $order);
echo th_order_by('caller_id_number', 'Number', $order_by, $order);
echo th_order_by('destination_number', 'Destination', $order_by, $order);
echo th_order_by('start_stamp', 'Start', $order_by, $order);
echo th_order_by('caller_id_name', $content_cdr['label-name'], $order_by, $order);
echo th_order_by('caller_id_number', $content_cdr['label-number'], $order_by, $order);
echo th_order_by('destination_number', $content_cdr['label-destination'], $order_by, $order);
echo th_order_by('start_stamp', $content_cdr['label-start'], $order_by, $order);
//echo th_order_by('end_stamp', 'End', $order_by, $order);
echo th_order_by('duration', 'Length', $order_by, $order);
echo th_order_by('duration', $content_cdr['label-length'], $order_by, $order);
if (if_group("admin") || if_group("superadmin")) {
echo th_order_by('pdd_ms', 'PDD', $order_by, $order);
}
echo th_order_by('hangup_cause', 'Status', $order_by, $order);
echo th_order_by('hangup_cause', $content_cdr['label-status'], $order_by, $order);
echo "</tr>\n";
if ($result_count > 0) {

View File

@@ -26,6 +26,7 @@
include "root.php";
require_once "includes/require.php";
require_once "includes/checkauth.php";
require_once "app_languages.php";
if (permission_exists('xml_cdr_view')) {
//access granted
}
@@ -34,6 +35,11 @@ else {
exit;
}
//prepare the languages
foreach($content_cdr as $key => $value) {
$content_cdr[$key] = $value[$_SESSION['domain']['language']['code']];
}
//get the http values and set them to a variable
if (strlen($_REQUEST["uuid"]) > 0) {
$uuid = trim($_REQUEST["uuid"]);
@@ -74,16 +80,16 @@ else {
echo "<br>";
echo "<table width='100%' border='0' cellpadding='0' cellspacing='0'>\n";
echo "<tr>\n";
echo "<td width='30%' align='left' valign='top' nowrap='nowrap'><b>Call Details</b></td>\n";
echo "<td width='30%' align='left' valign='top' nowrap='nowrap'><b>".$content_cdr['title2']."</b></td>\n";
echo "<td width='70%' align='right' valign='top'>\n";
echo " <input type='button' class='btn' name='' alt='back' onclick=\"window.location='xml_cdr.php'\" value='Back'>\n";
echo " <input type='button' class='btn' name='' alt='back' onclick=\"window.location='xml_cdr.php'\" value='".$content_cdr['button-back']."'>\n";
echo "</td>\n";
echo "</tr>\n";
echo "<tr>\n";
echo "<td align='left' colspan='2'>\n";
echo "A detailed view of the call and all information regarding it. \n";
echo "The information contains caller id name and number, channel data, \n";
echo "call variables, call flow, timing information, and other useful call details. \n";
echo "".$content_cdr['description5']." \n";
echo "".$content_cdr['description6']." \n";
echo "".$content_cdr['description7']." \n";
echo "</td>\n";
echo "</tr>\n";
echo "</table>\n";
@@ -139,23 +145,23 @@ else {
echo "<div align='center'>\n";
echo "<table width='100%' border='0' cellpadding='0' cellspacing='0'>\n";
echo "<tr>\n";
echo "<td align='left'><b>Summary</b>&nbsp;</td>\n";
echo "<td align='left'><b>".$content_cdr['label-summary']."</b>&nbsp;</td>\n";
echo "<td></td>\n";
echo "</tr>\n";
echo "</table>\n";
echo "<table width='100%' border='0' cellpadding='0' cellspacing='0'>\n";
echo "<tr>\n";
echo "<th>Direction</th>\n";
echo "<th>".$content_cdr['tabel-direction']."</th>\n";
//echo "<th>Language</th>\n";
//echo "<th>Context</th>\n";
echo "<th>Name (play)</th>\n";
echo "<th>Number (download)</th>\n";
echo "<th>Destination</th>\n";
echo "<th>Start</th>\n";
echo "<th>End</th>\n";
echo "<th>Length</th>\n";
echo "<th>Status</th>\n";
echo "<th>".$content_cdr['tabel-name']."</th>\n";
echo "<th>".$content_cdr['tabel-download']."</th>\n";
echo "<th>".$content_cdr['label-destination']."</th>\n";
echo "<th>".$content_cdr['label-start']."</th>\n";
echo "<th>".$content_cdr['tabel-end']."</th>\n";
echo "<th>".$content_cdr['label-length']."</th>\n";
echo "<th>".$content_cdr['label-status']."</th>\n";
echo "</tr>\n";
echo "<tr >\n";
@@ -205,7 +211,7 @@ else {
echo "<div align='center'>\n";
echo "<table width='100%' border='0' cellpadding='0' cellspacing='0'>\n";
echo "<tr>\n";
echo "<td align='left'><b>Channel Data</b>&nbsp;</td>\n";
echo "<td align='left'><b>".$content_cdr['label-channel']."</b>&nbsp;</td>\n";
echo "<td></td>\n";
echo "</tr>\n";
echo "</table>\n";
@@ -244,8 +250,8 @@ else {
echo "<table width='100%' border='0' cellpadding='0' cellspacing='0'>\n";
echo "<tr>\n";
echo "<th>Name</th>\n";
echo "<th>Value</th>\n";
echo "<th>".$content_cdr['label-name']."</th>\n";
echo "<th>".$content_cdr['label-value']."</th>\n";
echo "</tr>\n";
foreach($xml->variables->children() as $child) {
$key = $child->getName();
@@ -300,15 +306,15 @@ else {
echo "<div align='center'>\n";
echo "<table width='100%' border='0' cellpadding='0' cellspacing='0'>\n";
echo "<tr>\n";
echo "<td align='left'><b>Application Log</b>&nbsp;</td>\n";
echo "<td align='left'><b>".$content_cdr['label-applog']."</b>&nbsp;</td>\n";
echo "<td></td>\n";
echo "</tr>\n";
echo "</table>\n";
echo "<table width='100%' border='0' cellpadding='0' cellspacing='0'>\n";
echo "<tr>\n";
echo "<th>Name</th>\n";
echo "<th>Data</th>\n";
echo "<th>".$content_cdr['label-name']."</th>\n";
echo "<th>".$content_cdr['label-data']."</th>\n";
echo "</tr>\n";
foreach ($xml->app_log->application as $row) {
@@ -340,15 +346,15 @@ else {
//attributes
echo " <table width='95%' border='0' cellpadding='0' cellspacing='0'>\n";
echo " <tr>\n";
echo " <td><b>Call Flow: Attributes</b>&nbsp;</td>\n";
echo " <td><b>".$content_cdr['label-callflow']."</b>&nbsp;</td>\n";
echo " <td></td>\n";
echo " </tr>\n";
echo " </table>\n";
echo "<table width='100%' border='0' cellpadding='0' cellspacing='0'>\n";
echo " <tr>\n";
echo " <th>Name</th>\n";
echo " <th>Value</th>\n";
echo " <th>".$content_cdr['label-name']."</th>\n";
echo " <th>".$content_cdr['label-value']."</th>\n";
echo " </tr>\n";
foreach($row->attributes() as $key => $value) {
echo " <tr>\n";
@@ -365,15 +371,15 @@ else {
//extension->attributes
echo "<table width='100%' border='0' cellpadding='0' cellspacing='0'>\n";
echo " <tr>\n";
echo " <td><b>Call Flow: Extension: Attributes</b>&nbsp;</td>\n";
echo " <td><b>".$content_cdr['label-callflow2']."</b>&nbsp;</td>\n";
echo " <td></td>\n";
echo " </tr>\n";
echo "</table>\n";
echo "<table width='100%' border='0' cellpadding='0' cellspacing='0'>\n";
echo " <tr>\n";
echo " <th>Name</th>\n";
echo " <th>Value</th>\n";
echo " <th>".$content_cdr['label-name']."</th>\n";
echo " <th>".$content_cdr['label-value']."</th>\n";
echo " </tr>\n";
foreach($row->extension->attributes() as $key => $value) {
echo " <tr >\n";
@@ -390,15 +396,15 @@ else {
//extension->application
echo "<table width='100%' border='0' cellpadding='0' cellspacing='0'>\n";
echo " <tr>\n";
echo " <td><b>Call Flow: Extension: Application</b>&nbsp;</td>\n";
echo " <td><b>".$content_cdr['label-callflow3']."</b>&nbsp;</td>\n";
echo " <td></td>\n";
echo " </tr>\n";
echo "</table>\n";
echo "<table width='100%' border='0' cellpadding='0' cellspacing='0'>\n";
echo " <tr>\n";
echo " <th>Name</th>\n";
echo " <th>Data</th>\n";
echo " <th>".$content_cdr['label-name']."</th>\n";
echo " <th>".$content_cdr['label-data']."</th>\n";
echo " </tr>\n";
foreach ($row->extension->application as $tmp_row) {
$app_name = $tmp_row->attributes()->app_name;
@@ -417,15 +423,15 @@ else {
//caller_profile
echo "<table width='100%' border='0' cellpadding='0' cellspacing='0'>\n";
echo " <tr>\n";
echo " <td><b>Call Flow: Caller Profile</b>&nbsp;</td>\n";
echo " <td><b>".$content_cdr['label-callflow4']."</b>&nbsp;</td>\n";
echo " <td></td>\n";
echo " </tr>\n";
echo "</table>\n";
echo "<table width='100%' border='0' cellpadding='0' cellspacing='0'>\n";
echo " <tr>\n";
echo " <th>Name</th>\n";
echo " <th>Value</th>\n";
echo " <th>".$content_cdr['label-name']."</th>\n";
echo " <th>".$content_cdr['label-value']."</th>\n";
echo " </tr>\n";
foreach($row->caller_profile->children() as $child) {
$key = $child->getName();
@@ -467,13 +473,13 @@ else {
//times
echo "<table width='100%' border='0' cellpadding='0' cellspacing='0'>\n";
echo " <tr>\n";
echo " <td><b>Call Flow: Times</b>&nbsp;</td>\n";
echo " <td><b>".$content_cdr['label-callflow5']."</b>&nbsp;</td>\n";
echo " <td></td>\n";
echo " </tr>\n";
echo " <tr>\n";
echo " <th>Name</th>\n";
echo " <th>Value</th>\n";
echo " <th>".$content_cdr['label-name']."</th>\n";
echo " <th>".$content_cdr['label-value']."</th>\n";
echo " </tr>\n";
foreach($row->times->children() as $child) {
$key = $child->getName();

View File

@@ -26,6 +26,7 @@
require_once "root.php";
require_once "includes/require.php";
require_once "includes/checkauth.php";
require_once "app_languages.php";
if (permission_exists('xml_cdr_view')) {
//access granted
}
@@ -34,6 +35,11 @@ else {
exit;
}
//prepare the languages
foreach($content_cdr as $key => $value) {
$content_cdr[$key] = $value[$_SESSION['domain']['language']['code']];
}
//additional includes
require_once "xml_cdr_statistics_inc.php";
require_once "includes/header.php";
@@ -42,15 +48,15 @@ else {
echo "<div align='center'>";
echo "<table width='100%' border='0' cellpadding='0' cellspacing='0'>\n";
echo "<tr>\n";
echo " <td width='30%' align='left' valign='top' nowrap='nowrap'><b>Call Detail Record Statistics</b></td>\n";
echo " <td width='30%' align='left' valign='top' nowrap='nowrap'><b>".$content_cdr['label-callstatistics']."</b></td>\n";
echo " <td width='70%' align='right' valign='top'>\n";
echo " <input type='button' class='btn' value='CSV' onclick=\"document.location.href='xml_cdr_statistics_csv.php';\">\n";
echo " <input type='button' class='btn' name='' alt='back' onclick=\"window.location='xml_cdr.php'\" value='Back'>\n";
echo " <input type='button' class='btn' name='' alt='back' onclick=\"window.location='xml_cdr.php'\" value='".$content_cdr['button-back']."'>\n";
echo " </td>\n";
echo "</tr>\n";
echo "<tr>\n";
echo " <td align='left' colspan='2'>\n";
echo " Call Detail Records Statics summarize the call information. \n";
echo " ".$content_cdr['label-callstatisticsdescription']." \n";
echo " <br />\n";
echo " <br />\n";
echo " </td>\n";
@@ -148,13 +154,13 @@ else {
//show the results
echo "<table width='100%' cellpadding='0' cellspacing='0'>\n";
echo "<tr>\n";
echo " <th>Hours</th>\n";
echo " <th>Date</th>\n";
echo " <th nowrap='nowrap'>Time</th>\n";
echo " <th>".$content_cdr['tabel-hours']."</th>\n";
echo " <th>".$content_cdr['tabel-date']."</th>\n";
echo " <th nowrap='nowrap'>".$content_cdr['tabel-time']."</th>\n";
echo " <th>Volume</th>\n";
echo " <th>Minutes</th>\n";
echo " <th>Calls Per Min</th>\n";
echo " <th>Missed</th>\n";
echo " <th>".$content_cdr['tabel-minutes']."</th>\n";
echo " <th>".$content_cdr['tabel-callsminutes']."</th>\n";
echo " <th>".$content_cdr['tabel-missed']."</th>\n";
echo " <th>ASR</th>\n";
echo " <th>ALOC</th>\n";
echo "</tr>\n";
@@ -174,13 +180,13 @@ else {
echo " </td>\n";
echo "</tr>\n";
echo "<tr>\n";
echo " <th nowrap='nowrap'>Days</th>\n";
echo " <th nowrap='nowrap'>Date</th>\n";
echo " <th nowrap='nowrap'>Time</th>\n";
echo " <th nowrap='nowrap'>".$content_cdr['tabel-days']."</th>\n";
echo " <th nowrap='nowrap'>".$content_cdr['tabel-date']."</th>\n";
echo " <th nowrap='nowrap'>".$content_cdr['tabel-time']."</th>\n";
echo " <th>Volume</th>\n";
echo " <th>Minutes</th>\n";
echo " <th nowrap='nowrap'>Calls Per Min</th>\n";
echo " <th>Missed</th>\n";
echo " <th>".$content_cdr['tabel-minutes']."</th>\n";
echo " <th nowrap='nowrap'>".$content_cdr['tabel-callsminutes']."</th>\n";
echo " <th>".$content_cdr['tabel-missed']."</th>\n";
echo " <th>ASR</th>\n";
echo " <th>ALOC</th>\n";
echo "</tr>\n";