diff --git a/include/adm.inc.php b/include/adm.inc.php
index 330825330..c6cf215a0 100644
--- a/include/adm.inc.php
+++ b/include/adm.inc.php
@@ -78,8 +78,8 @@ if ( $low_action == "list" )
echo '
' . "Exercice " . $g_user->get_exercice() . '
';
echo dossier::hidden();
$a=(isset($_GET['query']))?$_GET['query']:"";
- printf (_('Recherche').' ',
- $a);
+ echo _("Cherche ").HtmlInput::filter_table_form("tiers_tb", '0,1,2', 1,"query",$a);
+
echo HtmlInput::request_to_hidden(array('ac'));
$choice_cat=HtmlInput::default_value_request("choice_cat", 1);
if ( $choice_cat == 1 )
diff --git a/include/bank.inc.php b/include/bank.inc.php
index d0b0a1580..a0a265f1a 100644
--- a/include/bank.inc.php
+++ b/include/bank.inc.php
@@ -71,8 +71,8 @@ if ( $low_action == "list" )
echo dossier::hidden();
echo '' ._( "Exercice")." " . $g_user->get_exercice() . '
';
$a=(isset($_GET['query']))?$_GET['query']:"";
- printf (_('Recherche').' ',
- $a);
+ echo _("Cherche ").HtmlInput::filter_table_form("tiers_tb", '0,1,2', 1,"query",$a);
+
$choice_cat=HtmlInput::default_value_request("choice_cat", 1);
if ( $choice_cat == 1 )
diff --git a/include/contact.inc.php b/include/contact.inc.php
index b4452b02a..ec0f3c0d8 100644
--- a/include/contact.inc.php
+++ b/include/contact.inc.php
@@ -74,7 +74,8 @@ if ($low_action == "list")
value = $cn->make_array('select fd_id, fd_label from fiche_def ' .
' where frd_id=' . FICHE_TYPE_CONTACT .
diff --git a/include/customer.inc.php b/include/customer.inc.php
index f08255646..1a3faaa97 100644
--- a/include/customer.inc.php
+++ b/include/customer.inc.php
@@ -74,8 +74,8 @@ if ($low_action == "list")
' . "Exercice " . $g_user->get_exercice() . '';
$a=(isset($_GET['query']))?$_GET['query']:"";
- printf (_('Recherche').' ',
- $a);
+ echo _("Cherche ").HtmlInput::filter_table_form("tiers_tb", '0,1,2', 1,"query",$a);
+
$choice_cat=HtmlInput::default_value_request("choice_cat", 1);
if ( $choice_cat == 1 )
diff --git a/include/lib/class_html_input.php b/include/lib/class_html_input.php
index 24aa7c385..b808350c5 100755
--- a/include/lib/class_html_input.php
+++ b/include/lib/class_html_input.php
@@ -824,6 +824,17 @@ class HtmlInput
return $sel;
}
}
+ static function filter_table_form($p_table_id,$p_col,$start_row,$p_name,$p_old_value)
+ {
+ $r= "
+
+
+
+
+ ";
+ $r.=' ';
+ return $r;
+ }
static function filter_table($p_table_id,$p_col,$start_row)
{
$r= "
diff --git a/include/manager.inc.php b/include/manager.inc.php
index eea029084..f21bdfd91 100644
--- a/include/manager.inc.php
+++ b/include/manager.inc.php
@@ -78,7 +78,8 @@ if ($low_action == "list")
echo '' . "Exercice " . $g_user->get_exercice() . '
';
echo dossier::hidden();
$a = (isset($_GET['query'])) ? $_GET['query'] : "";
- printf(_('Recherche') . ' ', $a);
+ echo _("Cherche ").HtmlInput::filter_table_form("tiers_tb", '0,1,2', 1,"query",$a);
+
echo HtmlInput::request_to_hidden(array('ac'));
$choice_cat=HtmlInput::default_value_request("choice_cat", 1);
if ( $choice_cat == 1 )
diff --git a/include/supplier.inc.php b/include/supplier.inc.php
index cb6a13315..bfae2d126 100644
--- a/include/supplier.inc.php
+++ b/include/supplier.inc.php
@@ -78,8 +78,8 @@ if ( $low_action == "list" )
echo '' . "Exercice " . $g_user->get_exercice() . '
';
echo dossier::hidden();
$a=(isset($_GET['query']))?$_GET['query']:"";
- printf (_('Recherche').' ',
- $a);
+ echo _("Cherche ").HtmlInput::filter_table_form("tiers_tb", '0,1,2', 1,"query",$a);
+
$choice_cat=HtmlInput::default_value_request("choice_cat", 1);
if ( $choice_cat == 1 )
{