mirror of
https://github.com/fusionpbx/fusionpbx.git
synced 2025-12-30 00:53:50 +00:00
CDR Search: Added support for asterisk ("*") as a wildcard character in Source, Destination and CID Name fields.
This commit is contained in:
@@ -25,6 +25,11 @@
|
||||
$text['description-4']['pt-pt'] = "Veja as chamadas na lista ou descarregue-as como arquivo, separadas por vírgulas, usando o botão 'csv'.";
|
||||
$text['description-4']['fr-fr'] = "Ensuite visualisez les informations dans la liste ci-dessous, ou téléchargez les sous forme d'un fichier CSV.";
|
||||
|
||||
$text['description_search']['en-us'] = "<u>Note</u>: Source, Destination and Caller ID (CID) Name fields support the use of an <i>asterisk</i> (\"*\") as a wildcard character.";
|
||||
$text['description_search']['es-cl'] = "<u>Atención</u>: Origen, Destino y el identificador de llamadas (CID) campos Nombre apoyan el uso de un <i>asterisco</i> (\"*\") como carácter comodín.";
|
||||
$text['description_search']['pt-pt'] = "<u>Atenção</u>: origem, destino e identificação do chamador (CID) campos Nome apoiar o uso de um <i>asterisco</i> (\"*\") como um caractere curinga.";
|
||||
$text['description_search']['fr-fr'] = "<u>Attention</u>: Source, Destination et identification de l'appelant (CID) champs Nom appuient l'utilisation de <i>l'astérisque</i> (\"*\") comme un caractère générique.";
|
||||
|
||||
$text['label-direction']['en-us'] = "Direction";
|
||||
$text['label-direction']['es-cl'] = "Dirección";
|
||||
$text['label-direction']['pt-pt'] = "Direção";
|
||||
|
||||
@@ -263,7 +263,10 @@ else {
|
||||
echo "</td>";
|
||||
echo "</tr>";
|
||||
echo "<tr>";
|
||||
echo "<td colspan='3' style='padding-top: 8px;' align='right'>";
|
||||
echo "<td colspan='2' style='padding-top: 8px;' align='left'>";
|
||||
echo $text['description_search'];
|
||||
echo "</td>";
|
||||
echo "<td style='padding-top: 8px;' align='right'>";
|
||||
|
||||
echo "<input type='button' class='btn' value='".$text['button-reset']."' onclick=\"document.location.href='xml_cdr.php';\">\n";
|
||||
echo "<input type='submit' class='btn' name='submit' value='".$text['button-search']."'>\n";
|
||||
|
||||
@@ -80,9 +80,18 @@ else {
|
||||
}
|
||||
if (strlen($cdr_id) > 0) { $sql_where_ands[] = "cdr_id like '%".$cdr_id."%'"; }
|
||||
if (strlen($direction) > 0) { $sql_where_ands[] = "direction = '".$direction."'"; }
|
||||
if (strlen($caller_id_name) > 0) { $sql_where_ands[] = "caller_id_name like '".$caller_id_name."'"; }
|
||||
if (strlen($caller_id_number) > 0) { $sql_where_ands[] = "caller_id_number like '".$caller_id_number."'"; }
|
||||
if (strlen($destination_number) > 0) { $sql_where_ands[] = "destination_number like '".$destination_number."'"; }
|
||||
if (strlen($caller_id_name) > 0) {
|
||||
$mod_caller_id_name = str_replace("*", "%", $caller_id_name);
|
||||
$sql_where_ands[] = "caller_id_name like '".$mod_caller_id_name."'";
|
||||
}
|
||||
if (strlen($caller_id_number) > 0) {
|
||||
$mod_caller_id_number = str_replace("*", "%", $caller_id_number);
|
||||
$sql_where_ands[] = "caller_id_number like '".$mod_caller_id_number."'";
|
||||
}
|
||||
if (strlen($destination_number) > 0) {
|
||||
$mod_destination_number = str_replace("*", "%", $destination_number);
|
||||
$sql_where_ands[] = "destination_number like '".$mod_destination_number."'";
|
||||
}
|
||||
if (strlen($context) > 0) { $sql_where_ands[] = "context like '%".$context."%'"; }
|
||||
if ($db_type == "sqlite") {
|
||||
if (strlen($start_stamp) > 0) { $sql_where_ands[] = "start_stamp like '%".$start_stamp."%'"; }
|
||||
|
||||
Reference in New Issue
Block a user