Move to the $text array and add dashes between words on the $text named array values.

This commit is contained in:
Mark Crane
2012-10-24 07:35:01 +00:00
parent 2ae59b382e
commit 8554794435
14 changed files with 384 additions and 379 deletions
+98 -98
View File
@@ -1,153 +1,153 @@
<?php
//xml_cdr
$content_cdr['title']['en-us'] = 'Call Detail Records';
$content_cdr['title']['pt-pt'] = 'Detalhes da Gravação de Chamadas';
$text['title']['en-us'] = 'Call Detail Records';
$text['title']['pt-pt'] = 'Detalhes da Gravação de Chamadas';
$content_cdr['description']['en-us'] = 'Call Detail Records (CDRs) are detailed information on the calls.';
$content_cdr['description']['pt-pt'] = 'Detalhes da Gravação de Chamadas, são informações detalhadas sobre as chamadas.';
$text['description']['en-us'] = 'Call Detail Records (CDRs) are detailed information on the calls.';
$text['description']['pt-pt'] = 'Detalhes da Gravação de Chamadas, são informações detalhadas sobre as chamadas.';
$content_cdr['description2']['en-us'] = 'The information contains source, destination, duration, and other useful call details.';
$content_cdr['description2']['pt-pt'] = 'A informação contém fonte, destino, duração e outros detalhes úteis da chamada.';
$text['description-2']['en-us'] = 'The information contains source, destination, duration, and other useful call details.';
$text['description-2']['pt-pt'] = 'A informação contém fonte, destino, duração e outros detalhes úteis da chamada.';
$content_cdr['description3']['en-us'] = 'Use the fields to filter the information for the specific call records that are desired.';
$content_cdr['description3']['pt-pt'] = 'Utilize os campos para filtrar a informação para os registos de chamadas específicas que são desejados.';
$text['description-3']['en-us'] = 'Use the fields to filter the information for the specific call records that are desired.';
$text['description-3']['pt-pt'] = 'Utilize os campos para filtrar a informação para os registos de chamadas específicas que são desejados.';
$content_cdr['description4']['en-us'] = 'Then view the calls in the list or download them as comma seperated file by using the "csv" button.';
$content_cdr['description4']['pt-pt'] = 'Então pode ver as chamadas na lista ou descarrega-las como arquivo separadas por vírgulas usando o botão "csv".';
$text['description-4']['en-us'] = 'Then view the calls in the list or download them as comma seperated file by using the "csv" button.';
$text['description-4']['pt-pt'] = 'Então pode ver as chamadas na lista ou descarrega-las como arquivo separadas por vírgulas usando o botão "csv".';
$content_cdr['label-description']['en-us'] = 'Description';
$content_cdr['label-description']['pt-pt'] = 'Descrição';
$text['label-description']['en-us'] = 'Description';
$text['label-description']['pt-pt'] = 'Descrição';
$content_cdr['label-cid-name']['en-us'] = 'CID Name';
$content_cdr['label-cid-name']['pt-pt'] = 'Nome CID';
$text['label-cid-name']['en-us'] = 'CID Name';
$text['label-cid-name']['pt-pt'] = 'Nome CID';
$content_cdr['label-inbound']['en-us'] = 'inbound';
$content_cdr['label-inbound']['pt-pt'] = 'entrada';
$text['label-inbound']['en-us'] = 'inbound';
$text['label-inbound']['pt-pt'] = 'entrada';
$content_cdr['label-outbound']['en-us'] = 'outbound';
$content_cdr['label-outbound']['pt-pt'] = 'saida';
$text['label-outbound']['en-us'] = 'outbound';
$text['label-outbound']['pt-pt'] = 'saida';
$content_cdr['label-local']['en-us'] = 'local';
$content_cdr['label-local']['pt-pt'] = 'local';
$text['label-local']['en-us'] = 'local';
$text['label-local']['pt-pt'] = 'local';
$content_cdr['label-source']['en-us'] = 'Source';
$content_cdr['label-source']['pt-pt'] = 'Origem';
$text['label-source']['en-us'] = 'Source';
$text['label-source']['pt-pt'] = 'Origem';
$content_cdr['label-destination']['en-us'] = 'Destination';
$content_cdr['label-destination']['pt-pt'] = 'Destino';
$text['label-destination']['en-us'] = 'Destination';
$text['label-destination']['pt-pt'] = 'Destino';
$content_cdr['label-start']['en-us'] = 'Start';
$content_cdr['label-start']['pt-pt'] = 'Inicio';
$text['label-start']['en-us'] = 'Start';
$text['label-start']['pt-pt'] = 'Inicio';
$content_cdr['label-status']['en-us'] = 'Status';
$content_cdr['label-status']['pt-pt'] = 'Estado';
$text['label-status']['en-us'] = 'Status';
$text['label-status']['pt-pt'] = 'Estado';
$content_cdr['label-name']['en-us'] = 'Name';
$content_cdr['label-name']['pt-pt'] = 'Nome';
$text['label-name']['en-us'] = 'Name';
$text['label-name']['pt-pt'] = 'Nome';
$content_cdr['label-number']['en-us'] = 'Number';
$content_cdr['label-number']['pt-pt'] = 'Numero';
$text['label-number']['en-us'] = 'Number';
$text['label-number']['pt-pt'] = 'Numero';
$content_cdr['label-length']['en-us'] = 'Length';
$content_cdr['label-length']['pt-pt'] = 'Comprimento';
$text['label-length']['en-us'] = 'Length';
$text['label-length']['pt-pt'] = 'Comprimento';
$content_cdr['label-tools']['en-us'] = 'Tools';
$content_cdr['label-tools']['pt-pt'] = '';
$text['label-tools']['en-us'] = 'Tools';
$text['label-tools']['pt-pt'] = '';
$content_cdr['label-play']['en-us'] = 'Play';
$content_cdr['label-play']['pt-pt'] = '';
$text['label-play']['en-us'] = 'Play';
$text['label-play']['pt-pt'] = '';
$content_cdr['label-download']['en-us'] = 'Download';
$content_cdr['label-download']['pt-pt'] = '';
$text['label-download']['en-us'] = 'Download';
$text['label-download']['pt-pt'] = '';
$content_cdr['label-statistics']['en-us'] = 'Statistics';
$content_cdr['label-statistics']['pt-pt'] = 'Estatisticas';
$text['label-statistics']['en-us'] = 'Statistics';
$text['label-statistics']['pt-pt'] = 'Estatisticas';
//xml_cdr_details
$content_cdr['title2']['en-us'] = 'Call Details';
$content_cdr['title2']['pt-pt'] = 'Detalhes das Chamadas';
$text['title2']['en-us'] = 'Call Details';
$text['title2']['pt-pt'] = 'Detalhes das Chamadas';
$content_cdr['button-back']['en-us'] = 'Back';
$content_cdr['button-back']['pt-pt'] = 'Voltar';
$text['button-back']['en-us'] = 'Back';
$text['button-back']['pt-pt'] = 'Voltar';
$content_cdr['description5']['en-us'] = 'A detailed view of the call and all information regarding it.';
$content_cdr['description5']['pt-pt'] = 'Uma visão detalhada da chamada e todas as informações sobre ela.';
$text['description-5']['en-us'] = 'A detailed view of the call and all information regarding it.';
$text['description-5']['pt-pt'] = 'Uma visão detalhada da chamada e todas as informações sobre ela.';
$content_cdr['description6']['en-us'] = 'The information contains caller id name and number, channel data, ';
$content_cdr['description6']['pt-pt'] = 'A informação contém o nome e numero de origem, dados do canal, ';
$text['description-6']['en-us'] = 'The information contains caller id name and number, channel data, ';
$text['description-6']['pt-pt'] = 'A informação contém o nome e numero de origem, dados do canal, ';
$content_cdr['description7']['en-us'] = 'call variables, call flow, timing information, and other useful call details.';
$content_cdr['description7']['pt-pt'] = 'variáveis de chamada, fluxo da chamada, informações de tempo e outros detalhes úteis da chamada.';
$text['description-7']['en-us'] = 'call variables, call flow, timing information, and other useful call details.';
$text['description-7']['pt-pt'] = 'variáveis de chamada, fluxo da chamada, informações de tempo e outros detalhes úteis da chamada.';
$content_cdr['label-summary']['en-us'] = 'Summary';
$content_cdr['label-summary']['pt-pt'] = 'Sumario';
$text['label-summary']['en-us'] = 'Summary';
$text['label-summary']['pt-pt'] = 'Sumario';
$content_cdr['table-direction']['en-us'] = 'Direction';
$content_cdr['table-direction']['pt-pt'] = 'Direcção';
$text['table-direction']['en-us'] = 'Direction';
$text['table-direction']['pt-pt'] = 'Direcção';
$content_cdr['table-name']['en-us'] = 'Name (play)';
$content_cdr['table-name']['pt-pt'] = 'None (executar)';
$text['table-name']['en-us'] = 'Name (play)';
$text['table-name']['pt-pt'] = 'None (executar)';
$content_cdr['table-download']['en-us'] = 'Number (download)';
$content_cdr['table-download']['pt-pt'] = 'Numero (descarregar)';
$text['table-download']['en-us'] = 'Number (download)';
$text['table-download']['pt-pt'] = 'Numero (descarregar)';
$content_cdr['table-end']['en-us'] = 'End';
$content_cdr['table-end']['pt-pt'] = 'Final';
$text['table-end']['en-us'] = 'End';
$text['table-end']['pt-pt'] = 'Final';
$content_cdr['label-channel']['en-us'] = 'Channel Data';
$content_cdr['label-channel']['pt-pt'] = 'Dados de Canal';
$text['label-channel']['en-us'] = 'Channel Data';
$text['label-channel']['pt-pt'] = 'Dados de Canal';
$content_cdr['label-value']['en-us'] = 'Value';
$content_cdr['label-value']['pt-pt'] = 'Valor';
$text['label-value']['en-us'] = 'Value';
$text['label-value']['pt-pt'] = 'Valor';
$content_cdr['label-applog']['en-us'] = 'Application Log';
$content_cdr['label-applog']['pt-pt'] = 'Log de Aplicação';
$text['label-application-log']['en-us'] = 'Application Log';
$text['label-application-log']['pt-pt'] = 'Log de Aplicação';
$content_cdr['label-data']['en-us'] = 'Data';
$content_cdr['label-data']['pt-pt'] = 'Dados';
$text['label-data']['en-us'] = 'Data';
$text['label-data']['pt-pt'] = 'Dados';
$content_cdr['label-callflow']['en-us'] = 'Call Flow: Attributes';
$content_cdr['label-callflow']['pt-pt'] = 'Fluxos de chamada: Atributos';
$text['label-call-flow']['en-us'] = 'Call Flow: Attributes';
$text['label-call-flow']['pt-pt'] = 'Fluxos de chamada: Atributos';
$content_cdr['label-callflow2']['en-us'] = 'Call Flow: Extension: Attributes';
$content_cdr['label-callflow2']['pt-pt'] = 'Fluxos de chamada: Extensão: Atributos';
$text['label-call-flow-2']['en-us'] = 'Call Flow: Extension: Attributes';
$text['label-call-flow-2']['pt-pt'] = 'Fluxos de chamada: Extensão: Atributos';
$content_cdr['label-callflow3']['en-us'] = 'Call Flow: Extension: Application';
$content_cdr['label-callflow3']['pt-pt'] = 'Fluxos de chamada: Extensão: Aplicação';
$text['label-call-flow-3']['en-us'] = 'Call Flow: Extension: Application';
$text['label-call-flow-3']['pt-pt'] = 'Fluxos de chamada: Extensão: Aplicação';
$content_cdr['label-callflow4']['en-us'] = 'Call Flow: Caller Profile';
$content_cdr['label-callflow4']['pt-pt'] = 'Fluxos de chamada: Perfil de chamador';
$text['label-call-flow-4']['en-us'] = 'Call Flow: Caller Profile';
$text['label-call-flow-4']['pt-pt'] = 'Fluxos de chamada: Perfil de chamador';
$content_cdr['label-callflow5']['en-us'] = 'Call Flow: Times';
$content_cdr['label-callflow5']['pt-pt'] = 'Fluxos de chamada: Tempos';
$text['label-call-flow-5']['en-us'] = 'Call Flow: Times';
$text['label-call-flow-5']['pt-pt'] = 'Fluxos de chamada: Tempos';
//xml_cdr_statistics
$content_cdr['label-call-statistics']['en-us'] = 'Call Detail Record Statistics';
$content_cdr['label-call-statistics']['pt-pt'] = 'Estatisticas dos Detalhes da Gravação de Chamadas';
$text['label-call-statistics']['en-us'] = 'Call Detail Record Statistics';
$text['label-call-statistics']['pt-pt'] = 'Estatisticas dos Detalhes da Gravação de Chamadas';
$content_cdr['label-call-statistics-description']['en-us'] = 'Call Detail Records Statics summarize the call information.';
$content_cdr['label-call-statistics-description']['pt-pt'] = 'As Estatisticas dos Detalhes da Gravação de Chamadas resumem as informações da chamada.';
$text['label-call-statistics-description']['en-us'] = 'Call Detail Records Statics summarize the call information.';
$text['label-call-statistics-description']['pt-pt'] = 'As Estatisticas dos Detalhes da Gravação de Chamadas resumem as informações da chamada.';
$content_cdr['table-hours']['en-us'] = 'Hours';
$content_cdr['table-hours']['pt-pt'] = 'Horas';
$text['table-hours']['en-us'] = 'Hours';
$text['table-hours']['pt-pt'] = 'Horas';
$content_cdr['table-date']['en-us'] = 'Date';
$content_cdr['table-date']['pt-pt'] = 'Data';
$text['table-date']['en-us'] = 'Date';
$text['table-date']['pt-pt'] = 'Data';
$content_cdr['table-time']['en-us'] = 'Time';
$content_cdr['table-time']['pt-pt'] = 'Tempo';
$text['table-time']['en-us'] = 'Time';
$text['table-time']['pt-pt'] = 'Tempo';
$content_cdr['table-minutes']['en-us'] = 'Minutes';
$content_cdr['table-minutes']['pt-pt'] = 'Minutos';
$text['table-minutes']['en-us'] = 'Minutes';
$text['table-minutes']['pt-pt'] = 'Minutos';
$content_cdr['table-calls-per-minute']['en-us'] = 'Calls Per Min';
$content_cdr['table-calls-per-minute']['pt-pt'] = 'Chamadas por minuto';
$text['table-calls-per-minute']['en-us'] = 'Calls Per Min';
$text['table-calls-per-minute']['pt-pt'] = 'Chamadas por minuto';
$content_cdr['table-missed']['en-us'] = 'Missed';
$content_cdr['table-missed']['pt-pt'] = 'Perdidas';
$text['table-missed']['en-us'] = 'Missed';
$text['table-missed']['pt-pt'] = 'Perdidas';
$content_cdr['table-days']['en-us'] = 'Days';
$content_cdr['table-days']['pt-pt'] = 'Dias';
$text['table-days']['en-us'] = 'Days';
$text['table-days']['pt-pt'] = 'Dias';
?>
+30 -30
View File
@@ -35,9 +35,9 @@ else {
exit;
}
//prepare the languages
foreach($content_cdr as $key => $value) {
$content_cdr[$key] = $value[$_SESSION['domain']['language']['code']];
//add multi-lingual support
foreach($text as $key => $value) {
$text[$key] = $value[$_SESSION['domain']['language']['code']];
}
//import xml_cdr files
@@ -71,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>".$content_cdr['title']."</b></td>\n";
echo "<td align='left' width='50%' nowrap='nowrap'><b>".$text['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='".$content_cdr['label-statistics']."' onclick=\"document.location.href='xml_cdr_statistics.php';\">\n";
echo " <input type='button' class='btn' value='".$text['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";
@@ -108,10 +108,10 @@ else {
echo "<tr>\n";
echo "<td align='left' colspan='2'>\n";
echo "".$content_cdr['description']." \n";
echo "".$content_cdr['description2']." \n";
echo "".$content_cdr['description3']." \n";
echo "".$content_cdr['description4']." \n";
echo "".$text['description']." \n";
echo "".$text['description2']." \n";
echo "".$text['description-3']." \n";
echo "".$text['description-4']." \n";
//To do an advanced search of the call detail records click on the following advanced button.
echo "<br />\n";
@@ -129,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%'>".$content_cdr['label-description'].":</td>\n";
echo " <td align='left' width='25%'>".$text['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'>".$content_cdr['label-inbound']."</option>\n";
echo " <option value='inbound' selected='selected'>".$text['label-inbound']."</option>\n";
}
else {
echo " <option value='inbound'>".$content_cdr['label-inbound']."</option>\n";
echo " <option value='inbound'>".$text['label-inbound']."</option>\n";
}
if ($direction == "outbound") {
echo " <option value='outbound' selected='selected'>".$content_cdr['label-outbound']."</option>\n";
echo " <option value='outbound' selected='selected'>".$text['label-outbound']."</option>\n";
}
else {
echo " <option value='outbound'>".$content_cdr['label-outbound']."</option>\n";
echo " <option value='outbound'>".$text['label-outbound']."</option>\n";
}
if ($direction == "local") {
echo " <option value='local' selected='selected'>".$content_cdr['label-local']."</option>\n";
echo " <option value='local' selected='selected'>".$text['label-local']."</option>\n";
}
else {
echo " <option value='local'>".$content_cdr['label-local']."</option>\n";
echo " <option value='local'>".$text['label-local']."</option>\n";
}
echo " </select>\n";
echo " </td>\n";
echo " </tr>\n";
echo " <tr>\n";
echo " <td align=\"left\">".$content_cdr['label-cid-name'].":</td>\n";
echo " <td align=\"left\">".$text['label-cid-name'].":</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";
@@ -167,11 +167,11 @@ else {
echo "<table width='100%'>\n";
echo " <tr>\n";
echo " <td align='left' width='25%'>".$content_cdr['label-source'].":</td>\n";
echo " <td align='left' width='25%'>".$text['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%'>".$content_cdr['label-destination'].":</td>\n";
echo " <td align='left' width='25%'>".$text['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";
@@ -194,12 +194,12 @@ else {
//echo " </tr>";
echo " <tr>\n";
echo " <td align='left' width='25%'>".$content_cdr['label-start'].":</td>\n";
echo " <td align='left' width='25%'>".$text['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%'>".$content_cdr['label-status'].":</td>\n";
echo " <td align='left' width='25%'>".$text['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";
@@ -319,17 +319,17 @@ 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', $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>".$content_cdr['label-tools']."</th>\n";
echo th_order_by('start_stamp', $content_cdr['label-start'], $order_by, $order);
echo th_order_by('caller_id_name', $text['label-name'], $order_by, $order);
echo th_order_by('caller_id_number', $text['label-number'], $order_by, $order);
echo th_order_by('destination_number', $text['label-destination'], $order_by, $order);
echo "<th>".$text['label-tools']."</th>\n";
echo th_order_by('start_stamp', $text['label-start'], $order_by, $order);
//echo th_order_by('end_stamp', 'End', $order_by, $order);
echo th_order_by('duration', $content_cdr['label-length'], $order_by, $order);
echo th_order_by('duration', $text['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', $content_cdr['label-status'], $order_by, $order);
echo th_order_by('hangup_cause', $text['label-status'], $order_by, $order);
echo "</tr>\n";
if ($result_count > 0) {
@@ -402,11 +402,11 @@ else {
echo " <td valign='top' class='".$row_style[$c]."' nowrap=\"nowrap\">";
if (strlen($tmp_name) > 0 && file_exists($_SESSION['switch']['recordings']['dir'].'/archive/'.$tmp_year.'/'.$tmp_month.'/'.$tmp_day.'/'.$tmp_name)) {
echo " <a href=\"javascript:void(0);\" onclick=\"window.open('".PROJECT_PATH."/app/recordings/v_recordings_play.php?a=download&type=moh&filename=".base64_encode('archive/'.$tmp_year.'/'.$tmp_month.'/'.$tmp_day.'/'.$tmp_name)."', 'play',' width=420,height=150,menubar=no,status=no,toolbar=no')\">\n";
echo " ".$content_cdr['label-play']."\n";
echo " ".$text['label-play']."\n";
echo " </a>\n";
echo " &nbsp;\n";
echo " <a href=\"../recordings/v_recordings.php?a=download&type=rec&t=bin&filename=".base64_encode("archive/".$tmp_year."/".$tmp_month."/".$tmp_day."/".$tmp_name)."\">\n";
echo " ".$content_cdr['label-download']."\n";
echo " ".$text['label-download']."\n";
echo " </a>\n";
}
else {
+40 -39
View File
@@ -26,7 +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
}
@@ -35,9 +35,10 @@ else {
exit;
}
//prepare the languages
foreach($content_cdr as $key => $value) {
$content_cdr[$key] = $value[$_SESSION['domain']['language']['code']];
//add multi-lingual support
require_once "app_languages.php";
foreach($text as $key => $value) {
$text[$key] = $value[$_SESSION['domain']['language']['code']];
}
//get the http values and set them to a variable
@@ -80,16 +81,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>".$content_cdr['title2']."</b></td>\n";
echo "<td width='30%' align='left' valign='top' nowrap='nowrap'><b>".$text['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='".$content_cdr['button-back']."'>\n";
echo " <input type='button' class='btn' name='' alt='back' onclick=\"window.location='xml_cdr.php'\" value='".$text['button-back']."'>\n";
echo "</td>\n";
echo "</tr>\n";
echo "<tr>\n";
echo "<td align='left' colspan='2'>\n";
echo "".$content_cdr['description5']." \n";
echo "".$content_cdr['description6']." \n";
echo "".$content_cdr['description7']." \n";
echo "".$text['description-5']." \n";
echo "".$text['description-6']." \n";
echo "".$text['description-7']." \n";
echo "</td>\n";
echo "</tr>\n";
echo "</table>\n";
@@ -145,23 +146,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>".$content_cdr['label-summary']."</b>&nbsp;</td>\n";
echo "<td align='left'><b>".$text['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>".$content_cdr['table-direction']."</th>\n";
echo "<th>".$text['table-direction']."</th>\n";
//echo "<th>Language</th>\n";
//echo "<th>Context</th>\n";
echo "<th>".$content_cdr['table-name']."</th>\n";
echo "<th>".$content_cdr['table-download']."</th>\n";
echo "<th>".$content_cdr['label-destination']."</th>\n";
echo "<th>".$content_cdr['label-start']."</th>\n";
echo "<th>".$content_cdr['table-end']."</th>\n";
echo "<th>".$content_cdr['label-length']."</th>\n";
echo "<th>".$content_cdr['label-status']."</th>\n";
echo "<th>".$text['table-name']."</th>\n";
echo "<th>".$text['table-download']."</th>\n";
echo "<th>".$text['label-destination']."</th>\n";
echo "<th>".$text['label-start']."</th>\n";
echo "<th>".$text['table-end']."</th>\n";
echo "<th>".$text['label-length']."</th>\n";
echo "<th>".$text['label-status']."</th>\n";
echo "</tr>\n";
echo "<tr >\n";
@@ -211,7 +212,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>".$content_cdr['label-channel']."</b>&nbsp;</td>\n";
echo "<td align='left'><b>".$text['label-channel']."</b>&nbsp;</td>\n";
echo "<td></td>\n";
echo "</tr>\n";
echo "</table>\n";
@@ -250,8 +251,8 @@ else {
echo "<table width='100%' border='0' cellpadding='0' cellspacing='0'>\n";
echo "<tr>\n";
echo "<th>".$content_cdr['label-name']."</th>\n";
echo "<th>".$content_cdr['label-value']."</th>\n";
echo "<th>".$text['label-name']."</th>\n";
echo "<th>".$text['label-value']."</th>\n";
echo "</tr>\n";
foreach($xml->variables->children() as $child) {
$key = $child->getName();
@@ -306,15 +307,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>".$content_cdr['label-applog']."</b>&nbsp;</td>\n";
echo "<td align='left'><b>".$text['label-application-log']."</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>".$content_cdr['label-name']."</th>\n";
echo "<th>".$content_cdr['label-data']."</th>\n";
echo "<th>".$text['label-name']."</th>\n";
echo "<th>".$text['label-data']."</th>\n";
echo "</tr>\n";
foreach ($xml->app_log->application as $row) {
@@ -346,15 +347,15 @@ else {
//attributes
echo " <table width='95%' border='0' cellpadding='0' cellspacing='0'>\n";
echo " <tr>\n";
echo " <td><b>".$content_cdr['label-callflow']."</b>&nbsp;</td>\n";
echo " <td><b>".$text['label-call-flow']."</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>".$content_cdr['label-name']."</th>\n";
echo " <th>".$content_cdr['label-value']."</th>\n";
echo " <th>".$text['label-name']."</th>\n";
echo " <th>".$text['label-value']."</th>\n";
echo " </tr>\n";
foreach($row->attributes() as $key => $value) {
echo " <tr>\n";
@@ -371,15 +372,15 @@ else {
//extension->attributes
echo "<table width='100%' border='0' cellpadding='0' cellspacing='0'>\n";
echo " <tr>\n";
echo " <td><b>".$content_cdr['label-callflow2']."</b>&nbsp;</td>\n";
echo " <td><b>".$text['label-call-flow-2']."</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>".$content_cdr['label-name']."</th>\n";
echo " <th>".$content_cdr['label-value']."</th>\n";
echo " <th>".$text['label-name']."</th>\n";
echo " <th>".$text['label-value']."</th>\n";
echo " </tr>\n";
foreach($row->extension->attributes() as $key => $value) {
echo " <tr >\n";
@@ -396,15 +397,15 @@ else {
//extension->application
echo "<table width='100%' border='0' cellpadding='0' cellspacing='0'>\n";
echo " <tr>\n";
echo " <td><b>".$content_cdr['label-callflow3']."</b>&nbsp;</td>\n";
echo " <td><b>".$text['label-call-flow-3']."</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>".$content_cdr['label-name']."</th>\n";
echo " <th>".$content_cdr['label-data']."</th>\n";
echo " <th>".$text['label-name']."</th>\n";
echo " <th>".$text['label-data']."</th>\n";
echo " </tr>\n";
foreach ($row->extension->application as $tmp_row) {
$app_name = $tmp_row->attributes()->app_name;
@@ -423,15 +424,15 @@ else {
//caller_profile
echo "<table width='100%' border='0' cellpadding='0' cellspacing='0'>\n";
echo " <tr>\n";
echo " <td><b>".$content_cdr['label-callflow4']."</b>&nbsp;</td>\n";
echo " <td><b>".$text['label-call-flow-4']."</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>".$content_cdr['label-name']."</th>\n";
echo " <th>".$content_cdr['label-value']."</th>\n";
echo " <th>".$text['label-name']."</th>\n";
echo " <th>".$text['label-value']."</th>\n";
echo " </tr>\n";
foreach($row->caller_profile->children() as $child) {
$key = $child->getName();
@@ -473,13 +474,13 @@ else {
//times
echo "<table width='100%' border='0' cellpadding='0' cellspacing='0'>\n";
echo " <tr>\n";
echo " <td><b>".$content_cdr['label-callflow5']."</b>&nbsp;</td>\n";
echo " <td><b>".$text['label-call-flow-5']."</b>&nbsp;</td>\n";
echo " <td></td>\n";
echo " </tr>\n";
echo " <tr>\n";
echo " <th>".$content_cdr['label-name']."</th>\n";
echo " <th>".$content_cdr['label-value']."</th>\n";
echo " <th>".$text['label-name']."</th>\n";
echo " <th>".$text['label-value']."</th>\n";
echo " </tr>\n";
foreach($row->times->children() as $child) {
$key = $child->getName();
+3 -5
View File
@@ -63,8 +63,7 @@
//get the list of installed apps from the core and mod directories
if ($xml_cdr_archive == "db") {
//get the xml cdr list
$sql = "";
$sql .= "select xml_cdr, uuid from v_xml_cdr ";
$sql = "select xml_cdr, uuid from v_xml_cdr ";
$sql .= "where waitsec is null ";
//$sql .= "limit 5000 ";
//start the transaction
@@ -96,8 +95,7 @@
$waitsec = urldecode($xml->variables->waitsec);
//update the database
if (strlen($waitsec) > 0) {
$sql = "";
$sql .= "update v_xml_cdr ";
$sql = "update v_xml_cdr ";
$sql .= "set waitsec = '$waitsec' ";
$sql .= "where uuid = '$uuid' ";
echo $sql."\n";
@@ -157,4 +155,4 @@
//echo finished
echo "completed\n";
}
?>
?>
+19 -19
View File
@@ -26,7 +26,6 @@
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
}
@@ -35,9 +34,10 @@ else {
exit;
}
//prepare the languages
foreach($content_cdr as $key => $value) {
$content_cdr[$key] = $value[$_SESSION['domain']['language']['code']];
//add multi-lingual support
require_once "app_languages.php";
foreach($text as $key => $value) {
$text[$key] = $value[$_SESSION['domain']['language']['code']];
}
//additional includes
@@ -48,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>".$content_cdr['label-call-statistics']."</b></td>\n";
echo " <td width='30%' align='left' valign='top' nowrap='nowrap'><b>".$text['label-call-statistics']."</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='".$content_cdr['button-back']."'>\n";
echo " <input type='button' class='btn' name='' alt='back' onclick=\"window.location='xml_cdr.php'\" value='".$text['button-back']."'>\n";
echo " </td>\n";
echo "</tr>\n";
echo "<tr>\n";
echo " <td align='left' colspan='2'>\n";
echo " ".$content_cdr['label-call-statistics-description']." \n";
echo " ".$text['label-call-statistics-description']." \n";
echo " <br />\n";
echo " <br />\n";
echo " </td>\n";
@@ -154,13 +154,13 @@ else {
//show the results
echo "<table width='100%' cellpadding='0' cellspacing='0'>\n";
echo "<tr>\n";
echo " <th>".$content_cdr['table-hours']."</th>\n";
echo " <th>".$content_cdr['table-date']."</th>\n";
echo " <th nowrap='nowrap'>".$content_cdr['table-time']."</th>\n";
echo " <th>".$text['table-hours']."</th>\n";
echo " <th>".$text['table-date']."</th>\n";
echo " <th nowrap='nowrap'>".$text['table-time']."</th>\n";
echo " <th>Volume</th>\n";
echo " <th>".$content_cdr['table-minutes']."</th>\n";
echo " <th>".$content_cdr['table-calls-per-minute']."</th>\n";
echo " <th>".$content_cdr['table-missed']."</th>\n";
echo " <th>".$text['table-minutes']."</th>\n";
echo " <th>".$text['table-calls-per-minute']."</th>\n";
echo " <th>".$text['table-missed']."</th>\n";
echo " <th>ASR</th>\n";
echo " <th>ALOC</th>\n";
echo "</tr>\n";
@@ -180,13 +180,13 @@ else {
echo " </td>\n";
echo "</tr>\n";
echo "<tr>\n";
echo " <th nowrap='nowrap'>".$content_cdr['table-days']."</th>\n";
echo " <th nowrap='nowrap'>".$content_cdr['table-date']."</th>\n";
echo " <th nowrap='nowrap'>".$content_cdr['table-time']."</th>\n";
echo " <th nowrap='nowrap'>".$text['table-days']."</th>\n";
echo " <th nowrap='nowrap'>".$text['table-date']."</th>\n";
echo " <th nowrap='nowrap'>".$text['table-time']."</th>\n";
echo " <th>Volume</th>\n";
echo " <th>".$content_cdr['table-minutes']."</th>\n";
echo " <th nowrap='nowrap'>".$content_cdr['table-calls-per-minute']."</th>\n";
echo " <th>".$content_cdr['table-missed']."</th>\n";
echo " <th>".$text['table-minutes']."</th>\n";
echo " <th nowrap='nowrap'>".$text['table-calls-per-minute']."</th>\n";
echo " <th>".$text['table-missed']."</th>\n";
echo " <th>ASR</th>\n";
echo " <th>ALOC</th>\n";
echo "</tr>\n";