Task #1249 - Recherche dans CUSTOMER , SUPPLIER
#1249 : avoir un champs pour recherche
This commit is contained in:
parent
dbc0c3b280
commit
f7b180b621
7 changed files with 23 additions and 10 deletions
|
|
@ -78,8 +78,8 @@ if ( $low_action == "list" )
|
|||
echo '<h2>' . "Exercice " . $g_user->get_exercice() . '</h2>';
|
||||
echo dossier::hidden();
|
||||
$a=(isset($_GET['query']))?$_GET['query']:"";
|
||||
printf (_('Recherche').' <input class="input_text" type="text" name="query" value="%s">',
|
||||
$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 )
|
||||
|
|
|
|||
|
|
@ -71,8 +71,8 @@ if ( $low_action == "list" )
|
|||
echo dossier::hidden();
|
||||
echo '<h2>' ._( "Exercice")." " . $g_user->get_exercice() . '</h2>';
|
||||
$a=(isset($_GET['query']))?$_GET['query']:"";
|
||||
printf (_('Recherche').' <input class="input_text" type="text" name="query" value="%s">',
|
||||
$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 )
|
||||
|
|
|
|||
|
|
@ -74,7 +74,8 @@ if ($low_action == "list")
|
|||
<?php
|
||||
echo dossier::hidden();
|
||||
$a = (isset($_GET['query'])) ? $_GET['query'] : "";
|
||||
printf(_('Cherche') . HtmlInput::filter_table("contact_tb", "0,1,2,3,4,5,6", 1));
|
||||
echo _("Cherche ").HtmlInput::filter_table_form("contact_tb", '0,1,2,3,4,5,6', 1,"query",$a);
|
||||
|
||||
$sel_card = new ISelect('cat');
|
||||
$sel_card->value = $cn->make_array('select fd_id, fd_label from fiche_def ' .
|
||||
' where frd_id=' . FICHE_TYPE_CONTACT .
|
||||
|
|
|
|||
|
|
@ -74,8 +74,8 @@ if ($low_action == "list")
|
|||
<?php
|
||||
echo '<h2>' . "Exercice " . $g_user->get_exercice() . '</h2>';
|
||||
$a=(isset($_GET['query']))?$_GET['query']:"";
|
||||
printf (_('Recherche').' <input class="input_text" type="text" name="query" value="%s">',
|
||||
$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 )
|
||||
|
|
|
|||
|
|
@ -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= "
|
||||
|
|
|
|||
|
|
@ -78,7 +78,8 @@ if ($low_action == "list")
|
|||
echo '<h2>' . "Exercice " . $g_user->get_exercice() . '</h2>';
|
||||
echo dossier::hidden();
|
||||
$a = (isset($_GET['query'])) ? $_GET['query'] : "";
|
||||
printf(_('Recherche') . ' <input class="input_text" type="text" name="query" value="%s">', $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 )
|
||||
|
|
|
|||
|
|
@ -78,8 +78,8 @@ if ( $low_action == "list" )
|
|||
echo '<h2>' . "Exercice " . $g_user->get_exercice() . '</h2>';
|
||||
echo dossier::hidden();
|
||||
$a=(isset($_GET['query']))?$_GET['query']:"";
|
||||
printf (_('Recherche').' <input class="input_text" type="text" name="query" value="%s">',
|
||||
$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 )
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue