diff --git a/htdocs/telephonie/tarifs/config/prefixs.php b/htdocs/telephonie/tarifs/config/prefixs.php
index 475f4d23aa9..a30dc3ecc46 100644
--- a/htdocs/telephonie/tarifs/config/prefixs.php
+++ b/htdocs/telephonie/tarifs/config/prefixs.php
@@ -102,8 +102,10 @@ if ($resql)
{
$num = $db->num_rows($resql);
$i = 0;
+
+ $urladd = "&type=".$_GET["type"]."&search_prefix=".$_GET["search_prefix"]."&search_libelle=".$_GET["search_libelle"];
- print_barre_liste("Prefixs", $page, "prefixs.php", "&type=".$_GET["type"], $sortfield, $sortorder, '', $num);
+ print_barre_liste("Prefixs", $page, "prefixs.php", $urladd, $sortfield, $sortorder, '', $num);
print '
';
print '';
diff --git a/htdocs/telephonie/tarifs/prefix.php b/htdocs/telephonie/tarifs/prefix.php
index 4ff75e95a3b..33fd1833b11 100644
--- a/htdocs/telephonie/tarifs/prefix.php
+++ b/htdocs/telephonie/tarifs/prefix.php
@@ -1,5 +1,5 @@
+/* Copyright (C) 2004-2007 Rodolphe Quiedeville
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@ -21,7 +21,6 @@
*/
require("./pre.inc.php");
-
$page = $_GET["page"];
$sortorder = $_GET["sortorder"];
$sortfield = $_GET["sortfield"];
@@ -61,8 +60,6 @@ $offset = $conf->liste_limit * $page ;
$pageprev = $page - 1;
$pagenext = $page + 1;
-
-
/*
* Mode Liste
*
@@ -70,7 +67,6 @@ $pagenext = $page + 1;
*
*/
-
$sql = "SELECT t.libelle as tarif, p.prefix";
$sql .= " FROM ".MAIN_DB_PREFIX."telephonie_tarif as t";
$sql .= "," . MAIN_DB_PREFIX."telephonie_prefix as p";
@@ -96,12 +92,14 @@ if ($result)
$num = $db->num_rows();
$i = 0;
- print_barre_liste("Prefix", $page, "prefix.php", "&type=".$_GET["type"], $sortfield, $sortorder, '', $num);
+ $urladd = "&type=".$_GET["type"]."&search_prefix=".$_GET["search_prefix"]."&search_tarif=".$_GET["search_tarif"];
+
+ print_barre_liste("Prefix", $page, "prefix.php", $urladd, $sortfield, $sortorder, '', $num);
print '';
print '';
- print_liste_field_titre("Tarif","prefix.php","f.nom");
+ print_liste_field_titre("Tarif","prefix.php","f.nom","&search_prefix=");
print_liste_field_titre("Prefix","prefix.php","libelle", "&type=".$_GET["type"]);
print '| | ';
@@ -111,8 +109,8 @@ if ($result)
print '
';
print '';