diff --git a/htdocs/telephonie/facturation/cdr.php b/htdocs/telephonie/facturation/cdr.php index 5d3d62a00f3..5099652a212 100644 --- a/htdocs/telephonie/facturation/cdr.php +++ b/htdocs/telephonie/facturation/cdr.php @@ -82,6 +82,15 @@ if ($_GET["search_ligne"]) $sel = ereg_replace(" ","",$sel); $sql .= " AND ligne LIKE '%".$sel."%'"; } + +if ($_GET["search_num"]) +{ + $sel =urldecode($_GET["search_num"]); + $sel = ereg_replace("\.","",$sel); + $sel = ereg_replace(" ","",$sel); + $sql .= " AND num LIKE '%".$sel."%'"; +} + $sql .= " ORDER BY $sortfield $sortorder " . $db->plimit($conf->liste_limit+1, $offset); $resql = $db->query($sql);