Add translations for the CDR advanced search
This commit is contained in:
parent
8f676d1053
commit
0cfe8298bb
|
|
@ -40,6 +40,11 @@
|
|||
$text['label-cid-name']['pt-pt'] = "Nome CID";
|
||||
$text['label-cid-name']['fr-fr'] = "Nom de l'Appelant";
|
||||
|
||||
$text['label-cid-number']['en-us'] = "CID Number";
|
||||
$text['label-cid-number']['es-cl'] = "Número CID";
|
||||
$text['label-cid-number']['pt-pt'] = "Número CID";
|
||||
$text['label-cid-number']['fr-fr'] = "Nombre de l'Appelant";
|
||||
|
||||
$text['label-inbound']['en-us'] = "Inbound";
|
||||
$text['label-inbound']['es-cl'] = "Entrada";
|
||||
$text['label-inbound']['pt-pt'] = "Entrada";
|
||||
|
|
@ -268,6 +273,92 @@
|
|||
$text['label-call-flow-5']['pt-pt'] = "Fluxo de chamada: Tempos";
|
||||
$text['label-call-flow-5']['fr-fr'] = "Flux d'appel: temporisations ";
|
||||
|
||||
//xml_cdr_search
|
||||
$text['label-caller_id_name']['en-us'] = "CID Name";
|
||||
$text['label-caller_id_name']['es-cl'] = "Nombre CID";
|
||||
$text['label-caller_id_name']['pt-pt'] = "Nome CID";
|
||||
$text['label-caller_id_name']['fr-fr'] = "Nom de l'Appelant";
|
||||
|
||||
$text['label-caller_id_number']['en-us'] = "CID Number";
|
||||
$text['label-caller_id_number']['es-cl'] = "Número CID";
|
||||
$text['label-caller_id_number']['pt-pt'] = "Número CID";
|
||||
$text['label-caller_id_number']['fr-fr'] = "Nombre de l'Appelant";
|
||||
|
||||
$text['label-destination']['en-us'] = "Destination Number";
|
||||
$text['label-destination']['es-cl'] = "Número de destino";
|
||||
$text['label-destination']['pt-pt'] = "Número Destino";
|
||||
$text['label-destination']['fr-fr'] = "Nombre de Destinations";
|
||||
|
||||
$text['label-context']['en-us'] = "Context";
|
||||
$text['label-context']['es-cl'] = "Contexto";
|
||||
$text['label-context']['pt-pt'] = "Contexto";
|
||||
$text['label-context']['fr-fr'] = "Contexte";
|
||||
|
||||
$text['label-start']['en-us'] = "Start";
|
||||
$text['label-start']['es-cl'] = "Comienzo";
|
||||
$text['label-start']['pt-pt'] = "Começo";
|
||||
$text['label-start']['fr-fr'] = "Démarrer";
|
||||
|
||||
$text['label-answer']['en-us'] = "Answer";
|
||||
$text['label-answer']['es-cl'] = "Respuesta";
|
||||
$text['label-answer']['pt-pt'] = "Resposta";
|
||||
$text['label-answer']['fr-fr'] = "Réponse";
|
||||
|
||||
$text['label-end_stamp']['en-us'] = "End";
|
||||
$text['label-end_stamp']['es-cl'] = "Fin";
|
||||
$text['label-end_stamp']['pt-pt'] = "Fim";
|
||||
$text['label-end_stamp']['fr-fr'] = "Fin";
|
||||
|
||||
$text['label-duration']['en-us'] = "Duration";
|
||||
$text['label-duration']['es-cl'] = "Duración";
|
||||
$text['label-duration']['pt-pt'] = "Duração";
|
||||
$text['label-duration']['fr-fr'] = "Durée";
|
||||
|
||||
$text['label-billsec']['en-us'] = "Bill Seconds";
|
||||
$text['label-billsec']['es-cl'] = "Segundos Bill";
|
||||
$text['label-billsec']['pt-pt'] = "Segundos Bill";
|
||||
$text['label-billsec']['fr-fr'] = "Secondes de Factures";
|
||||
|
||||
$text['label-hangup_cause']['en-us'] = "Status";
|
||||
$text['label-hangup_cause']['es-cl'] = "Estado";
|
||||
$text['label-hangup_cause']['pt-pt'] = "Estado";
|
||||
$text['label-hangup_cause']['fr-fr'] = "Statut";
|
||||
|
||||
$text['label-uuid']['en-us'] = "UUID";
|
||||
$text['label-uuid']['es-cl'] = "UUID";
|
||||
$text['label-uuid']['pt-pt'] = "UUID";
|
||||
$text['label-uuid']['fr-fr'] = "UUID";
|
||||
|
||||
$text['label-bridge_uuid']['en-us'] = "Bridge UUID";
|
||||
$text['label-bridge_uuid']['es-cl'] = "UUID Puente";
|
||||
$text['label-bridge_uuid']['pt-pt'] = "Ponte UUID";
|
||||
$text['label-bridge_uuid']['fr-fr'] = "Pont UUID";
|
||||
|
||||
$text['label-accountcode']['en-us'] = "Account Code";
|
||||
$text['label-accountcode']['es-cl'] = "Código de Cuenta";
|
||||
$text['label-accountcode']['pt-pt'] = "Código de Conta";
|
||||
$text['label-accountcode']['fr-fr'] = "Centre de frais";
|
||||
|
||||
$text['label-read_codec']['en-us'] = "Read Codec";
|
||||
$text['label-read_codec']['es-cl'] = "Leer Códec";
|
||||
$text['label-read_codec']['pt-pt'] = "Leia Codec";
|
||||
$text['label-read_codec']['fr-fr'] = "lire Codec";
|
||||
|
||||
$text['label-write_codec']['en-us'] = "Write Codec";
|
||||
$text['label-write_codec']['es-cl'] = "Escribe Códec";
|
||||
$text['label-write_codec']['pt-pt'] = "Escrever Codec";
|
||||
$text['label-write_codec']['fr-fr'] = "Ecrire Codec";
|
||||
|
||||
$text['label-remote_media_ip']['en-us'] = "Remote Media IP";
|
||||
$text['label-remote_media_ip']['es-cl'] = "Remoto IP Media";
|
||||
$text['label-remote_media_ip']['pt-pt'] = "IP Media Remote";
|
||||
$text['label-remote_media_ip']['fr-fr'] = "IP Media Remote";
|
||||
|
||||
$text['label-network_addr']['en-us'] = "Network Address";
|
||||
$text['label-network_addr']['es-cl'] = "Dirección de red";
|
||||
$text['label-network_addr']['pt-pt'] = "Network Address";
|
||||
$text['label-network_addr']['fr-fr'] = "Adresse réseau";
|
||||
|
||||
//xml_cdr_statistics
|
||||
$text['label-call-statistics']['en-us'] = "Call Detail Record Statistics";
|
||||
$text['label-call-statistics']['es-cl'] = "Estadísticas de ñps detalles de grabación de llamadas";
|
||||
|
|
|
|||
|
|
@ -34,156 +34,139 @@ else {
|
|||
exit;
|
||||
}
|
||||
|
||||
if (count($_POST) > 0) {
|
||||
$direction = $_POST["direction"];
|
||||
$cdr_id = $_POST["cdr_id"];
|
||||
$caller_id_name = $_POST["caller_id_name"];
|
||||
$caller_id_number = $_POST["caller_id_number"];
|
||||
$destination_number = $_POST["destination_number"];
|
||||
$context = $_POST["context"];
|
||||
$start_stamp = $_POST["start_stamp"];
|
||||
$answer_stamp = $_POST["answer_stamp"];
|
||||
$end_stamp = $_POST["end_stamp"];
|
||||
$duration = $_POST["duration"];
|
||||
$billsec = $_POST["billsec"];
|
||||
$hangup_cause = $_POST["hangup_cause"];
|
||||
$uuid = $_POST["uuid"];
|
||||
$bleg_uuid = $_POST["bleg_uuid"];
|
||||
$accountcode = $_POST["accountcode"];
|
||||
$read_codec = $_POST["read_codec"];
|
||||
$write_codec = $_POST["write_codec"];
|
||||
$remote_media_ip = $_POST["remote_media_ip"];
|
||||
$network_addr = $_POST["network_addr"];
|
||||
|
||||
//add multi-lingual support
|
||||
require_once "app_languages.php";
|
||||
foreach($text as $key => $value) {
|
||||
$text[$key] = $value[$_SESSION['domain']['language']['code']];
|
||||
}
|
||||
|
||||
require_once "resources/header.php";
|
||||
echo "<div align='center'>";
|
||||
echo "<table width='100%' border='0' cellpadding='0' cellspacing='2'>\n";
|
||||
echo "<tr class='border'>\n";
|
||||
echo " <td align=\"left\">\n";
|
||||
echo " <br>";
|
||||
|
||||
echo "<form method='post' action='xml_cdr.php'>\n";
|
||||
echo "<table width='100%' cellpadding='6' cellspacing='0'>\n";
|
||||
|
||||
echo "<tr>\n";
|
||||
echo "<td width='30%' nowrap valign='top'><b>Advanced Search</b></td>\n";
|
||||
echo "<td width='70%' align='right' valign='top'>";
|
||||
echo " <input type='button' class='btn' name='' alt='back' onclick=\"window.location='xml_cdr.php'\" value='Back'>";
|
||||
echo " <input type='submit' name='submit' class='btn' value='Search'>";
|
||||
echo " <br /><br />";
|
||||
echo "</td>\n";
|
||||
echo "</tr>\n";
|
||||
|
||||
echo " <tr>\n";
|
||||
echo " <td class='vncell' valign='top' nowrap='nowrap' width='30%'>\n";
|
||||
echo " ".$text['label-direction']."\n";
|
||||
echo " </td>\n";
|
||||
echo " <td class='vtable' width='70%' align='left'>\n";
|
||||
echo " <select name='direction' class='formfld'>\n";
|
||||
echo " <option value=''></option>\n";
|
||||
if ($direction == "inbound") {
|
||||
echo " <option value='inbound' selected='selected'>".$text['label-inbound']."</option>\n";
|
||||
}
|
||||
else {
|
||||
echo " <option value='inbound'>".$text['label-inbound']."</option>\n";
|
||||
}
|
||||
if ($direction == "outbound") {
|
||||
echo " <option value='outbound' selected='selected'>".$text['label-outbound']."</option>\n";
|
||||
}
|
||||
else {
|
||||
echo " <option value='outbound'>".$text['label-outbound']."</option>\n";
|
||||
}
|
||||
if ($direction == "local") {
|
||||
echo " <option value='local' selected='selected'>".$text['label-local']."</option>\n";
|
||||
}
|
||||
else {
|
||||
echo " <option value='local'>".$text['label-local']."</option>\n";
|
||||
}
|
||||
echo " </select>\n";
|
||||
echo " </td>\n";
|
||||
echo " </tr>\n";
|
||||
echo " <tr>";
|
||||
echo " <td class='vncell'>".$text['label-caller_id_name']."</td>"; //source name
|
||||
echo " <td class='vtable'><input type='text' class='formfld' name='caller_id_name' value='$caller_id_name'></td>";
|
||||
echo " </tr>";
|
||||
echo " <tr>";
|
||||
echo " <td class='vncell'>".$text['label-caller_id_number']."</td>"; //source number
|
||||
echo " <td class='vtable'><input type='text' class='formfld' name='caller_id_number' value='$caller_id_number'></td>";
|
||||
echo " </tr>";
|
||||
echo " <tr>";
|
||||
echo " <td class='vncell'>".$text['label-destination']."</td>";
|
||||
echo " <td class='vtable'><input type='text' class='formfld' name='destination_number' value='$destination_number'></td>";
|
||||
echo " </tr>";
|
||||
echo " <tr>";
|
||||
echo " <td class='vncell'>".$text['label-context']."</td>";
|
||||
echo " <td class='vtable'><input type='text' class='formfld' name='context' value='$context'></td>";
|
||||
echo " </tr>";
|
||||
echo " <tr>";
|
||||
echo " <td class='vncell'>".$text['label-start']."</td>";
|
||||
echo " <td class='vtable'><input type='text' class='formfld' name='start_stamp' value='$start_stamp'></td>";
|
||||
echo " </tr>";
|
||||
echo " <tr>";
|
||||
echo " <td class='vncell'>".$text['label-answer']."</td>";
|
||||
echo " <td class='vtable'><input type='text' class='formfld' name='answer_stamp' value='$answer_stamp'></td>";
|
||||
echo " </tr>";
|
||||
echo " <tr>";
|
||||
echo " <td class='vncell'>".$text['label-end_stamp']."</td>";
|
||||
echo " <td class='vtable'><input type='text' class='formfld' name='end_stamp' value='$end_stamp'></td>";
|
||||
echo " </tr>";
|
||||
echo " <tr>";
|
||||
echo " <td class='vncell'>".$text['label-duration']."</td>";
|
||||
echo " <td class='vtable'><input type='text' class='formfld' name='duration' value='$duration'></td>";
|
||||
echo " </tr>";
|
||||
echo " <tr>";
|
||||
echo " <td class='vncell'>".$text['label-billsec']."</td>";
|
||||
echo " <td class='vtable'><input type='text' class='formfld' name='billsec' value='$billsec'></td>";
|
||||
echo " </tr>";
|
||||
echo " <tr>";
|
||||
echo " <td class='vncell'>".$text['label-hangup_cause']."</td>";
|
||||
echo " <td class='vtable'><input type='text' class='formfld' name='hangup_cause' value='$hangup_cause'></td>";
|
||||
echo " </tr>";
|
||||
echo " <tr>";
|
||||
echo " <td class='vncell'>".$text['label-uuid']."</td>";
|
||||
echo " <td class='vtable'><input type='text' class='formfld' name='uuid' value='$uuid'></td>";
|
||||
echo " </tr>";
|
||||
echo " <tr>";
|
||||
echo " <td class='vncell'>".$text['label-bridge_uuid']."</td>";
|
||||
echo " <td class='vtable'><input type='text' class='formfld' name='bleg_uuid' value='$bridge_uuid'></td>";
|
||||
echo " </tr>";
|
||||
echo " <tr>";
|
||||
echo " <td class='vncell'>".$text['label-accountcode']."</td>";
|
||||
echo " <td class='vtable'><input type='text' class='formfld' name='accountcode' value='$accountcode'></td>";
|
||||
echo " </tr>";
|
||||
echo " <tr>";
|
||||
echo " <td class='vncell'>".$text['label-read_codec']."</td>";
|
||||
echo " <td class='vtable'><input type='text' class='formfld' name='read_codec' value='$read_codec'></td>";
|
||||
echo " </tr>";
|
||||
echo " <tr>";
|
||||
echo " <td class='vncell'>".$text['label-write_codec']."</td>";
|
||||
echo " <td class='vtable'><input type='text' class='formfld' name='write_codec' value='$write_codec'></td>";
|
||||
echo " </tr>";
|
||||
echo " <tr>";
|
||||
echo " <td class='vncell'>".$text['label-remote_media_ip']."</td>";
|
||||
echo " <td class='vtable'><input type='text' class='formfld' name='remote_media_ip' value='$remote_media_ip'></td>";
|
||||
echo " </tr>";
|
||||
echo " <tr>";
|
||||
echo " <td class='vncell'>".$text['label-network_addr']."</td>";
|
||||
echo " <td class='vtable'><input type='text' class='formfld' name='network_addr' value='$network_addr'></td>";
|
||||
echo " </tr>";
|
||||
echo " <tr>";
|
||||
echo " <td colspan='2' align='right'><input type='submit' name='submit' class='btn' value='".$text['button-search']."'></td>";
|
||||
echo " </tr>";
|
||||
echo "</table>";
|
||||
echo "</form>";
|
||||
|
||||
require_once "resources/header.php";
|
||||
echo "<div align='center'>";
|
||||
echo "<table width='100%' border='0' cellpadding='0' cellspacing='2'>\n";
|
||||
echo "<tr class='border'>\n";
|
||||
echo " <td align=\"left\">\n";
|
||||
echo " <br>";
|
||||
echo " </td>";
|
||||
echo " </tr>";
|
||||
echo "</table>";
|
||||
echo "</div>";
|
||||
|
||||
echo "<form method='post' action='xml_cdr.php'>\n";
|
||||
echo "<table width='100%' cellpadding='6' cellspacing='0'>\n";
|
||||
require_once "resources/footer.php";
|
||||
|
||||
echo "<tr>\n";
|
||||
echo "<td width='30%' nowrap valign='top'><b>Advanced Search</b></td>\n";
|
||||
echo "<td width='70%' align='right' valign='top'>";
|
||||
echo " <input type='button' class='btn' name='' alt='back' onclick=\"window.location='xml_cdr.php'\" value='Back'>";
|
||||
echo " <input type='submit' name='submit' class='btn' value='Search'>";
|
||||
echo " <br /><br />";
|
||||
echo "</td>\n";
|
||||
echo "</tr>\n";
|
||||
|
||||
echo " <tr>\n";
|
||||
echo " <td class='vncell' valign='top' nowrap='nowrap' width='30%'>\n";
|
||||
echo " ".$text['label-direction']."\n";
|
||||
echo " </td>\n";
|
||||
echo " <td class='vtable' width='70%' align='left'>\n";
|
||||
echo " <select name='direction' class='formfld'>\n";
|
||||
echo " <option value=''></option>\n";
|
||||
if ($direction == "inbound") {
|
||||
echo " <option value='inbound' selected='selected'>".$text['label-inbound']."</option>\n";
|
||||
}
|
||||
else {
|
||||
echo " <option value='inbound'>".$text['label-inbound']."</option>\n";
|
||||
}
|
||||
if ($direction == "outbound") {
|
||||
echo " <option value='outbound' selected='selected'>".$text['label-outbound']."</option>\n";
|
||||
}
|
||||
else {
|
||||
echo " <option value='outbound'>".$text['label-outbound']."</option>\n";
|
||||
}
|
||||
if ($direction == "local") {
|
||||
echo " <option value='local' selected='selected'>".$text['label-local']."</option>\n";
|
||||
}
|
||||
else {
|
||||
echo " <option value='local'>".$text['label-local']."</option>\n";
|
||||
}
|
||||
echo " </select>\n";
|
||||
echo " </td>\n";
|
||||
echo " </tr>\n";
|
||||
echo " <tr>";
|
||||
echo " <td class='vncell'>Source Name:</td>";
|
||||
echo " <td class='vtable'><input type='text' class='formfld' name='caller_id_name' value='$caller_id_name'></td>";
|
||||
echo " </tr>";
|
||||
echo " <tr>";
|
||||
echo " <td class='vncell'>Source Number:</td>";
|
||||
echo " <td class='vtable'><input type='text' class='formfld' name='caller_id_number' value='$caller_id_number'></td>";
|
||||
echo " </tr>";
|
||||
echo " <tr>";
|
||||
echo " <td class='vncell'>Destination Number:</td>";
|
||||
echo " <td class='vtable'><input type='text' class='formfld' name='destination_number' value='$destination_number'></td>";
|
||||
echo " </tr>";
|
||||
echo " <tr>";
|
||||
echo " <td class='vncell'>Context:</td>";
|
||||
echo " <td class='vtable'><input type='text' class='formfld' name='context' value='$context'></td>";
|
||||
echo " </tr>";
|
||||
echo " <tr>";
|
||||
echo " <td class='vncell'>Start:</td>";
|
||||
echo " <td class='vtable'><input type='text' class='formfld' name='start_stamp' value='$start_stamp'></td>";
|
||||
echo " </tr>";
|
||||
echo " <tr>";
|
||||
echo " <td class='vncell'>Answer:</td>";
|
||||
echo " <td class='vtable'><input type='text' class='formfld' name='answer_stamp' value='$answer_stamp'></td>";
|
||||
echo " </tr>";
|
||||
echo " <tr>";
|
||||
echo " <td class='vncell'>End:</td>";
|
||||
echo " <td class='vtable'><input type='text' class='formfld' name='end_stamp' value='$end_stamp'></td>";
|
||||
echo " </tr>";
|
||||
echo " <tr>";
|
||||
echo " <td class='vncell'>Duration:</td>";
|
||||
echo " <td class='vtable'><input type='text' class='formfld' name='duration' value='$duration'></td>";
|
||||
echo " </tr>";
|
||||
echo " <tr>";
|
||||
echo " <td class='vncell'>Bill Sec:</td>";
|
||||
echo " <td class='vtable'><input type='text' class='formfld' name='billsec' value='$billsec'></td>";
|
||||
echo " </tr>";
|
||||
echo " <tr>";
|
||||
echo " <td class='vncell'>Status:</td>";
|
||||
echo " <td class='vtable'><input type='text' class='formfld' name='hangup_cause' value='$hangup_cause'></td>";
|
||||
echo " </tr>";
|
||||
echo " <tr>";
|
||||
echo " <td class='vncell'>UUID:</td>";
|
||||
echo " <td class='vtable'><input type='text' class='formfld' name='uuid' value='$uuid'></td>";
|
||||
echo " </tr>";
|
||||
echo " <tr>";
|
||||
echo " <td class='vncell'>Bridge UUID:</td>";
|
||||
echo " <td class='vtable'><input type='text' class='formfld' name='bleg_uuid' value='$bridge_uuid'></td>";
|
||||
echo " </tr>";
|
||||
echo " <tr>";
|
||||
echo " <td class='vncell'>Account Code:</td>";
|
||||
echo " <td class='vtable'><input type='text' class='formfld' name='accountcode' value='$accountcode'></td>";
|
||||
echo " </tr>";
|
||||
echo " <tr>";
|
||||
echo " <td class='vncell'>Read Codec:</td>";
|
||||
echo " <td class='vtable'><input type='text' class='formfld' name='read_codec' value='$read_codec'></td>";
|
||||
echo " </tr>";
|
||||
echo " <tr>";
|
||||
echo " <td class='vncell'>Write Codec:</td>";
|
||||
echo " <td class='vtable'><input type='text' class='formfld' name='write_codec' value='$write_codec'></td>";
|
||||
echo " </tr>";
|
||||
echo " <tr>";
|
||||
echo " <td class='vncell'>Remote Media IP:</td>";
|
||||
echo " <td class='vtable'><input type='text' class='formfld' name='remote_media_ip' value='$remote_media_ip'></td>";
|
||||
echo " </tr>";
|
||||
echo " <tr>";
|
||||
echo " <td class='vncell'>Network Address:</td>";
|
||||
echo " <td class='vtable'><input type='text' class='formfld' name='network_addr' value='$network_addr'></td>";
|
||||
echo " </tr>";
|
||||
echo " <tr>";
|
||||
echo " <td colspan='2' align='right'><input type='submit' name='submit' class='btn' value='Search'></td>";
|
||||
echo " </tr>";
|
||||
echo "</table>";
|
||||
echo "</form>";
|
||||
|
||||
echo " </td>";
|
||||
echo " </tr>";
|
||||
echo "</table>";
|
||||
echo "</div>";
|
||||
|
||||
require_once "resources/footer.php";
|
||||
|
||||
} //end if not post
|
||||
?>
|
||||
?>
|
||||
Loading…
Reference in New Issue