Task #1249 - Recherche dans CUSTOMER , SUPPLIER

#1249 : avoir un champs pour recherche
This commit is contained in:
Dany De Bontridder 2015-12-13 23:29:06 +01:00
parent dbc0c3b280
commit f7b180b621
7 changed files with 23 additions and 10 deletions

View file

@ -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= "
<span>
<input id=\"lk_".$p_table_id."\" name=\"$p_name\" value=\"$p_old_value\"autocomplete=\"off\" class=\"input_text\" name=\"filter\" onkeyup=\"filter_table(this, '$p_table_id','$p_col',$start_row )\" type=\"text\">
<input type=\"button\" class=\"smallbutton\" onclick=\"$('lk_".$p_table_id."').value='';filter_table($('lk_".$p_table_id."'), '$p_table_id','$p_col',$start_row );\" value=\"X\">
</span>
";
$r.=' <span class="notice" id="info_'.$p_table_id.'"></span>';
return $r;
}
static function filter_table($p_table_id,$p_col,$start_row)
{
$r= "