E-INVOICE : VATEX filter on the country
This commit is contained in:
parent
55d7fda8d1
commit
71f8a7fc82
5 changed files with 71 additions and 22 deletions
|
|
@ -1011,6 +1011,30 @@ class HtmlInput
|
|||
return $sel;
|
||||
}
|
||||
}
|
||||
/**
|
||||
* @brief filter the rows in a table and keep the colored row in alternance
|
||||
* @param dom_id $p_table_id table
|
||||
* @param string $p_col , column to search example 0,1,2
|
||||
* @param int $start_row row to always keep (header)
|
||||
* @param string $p_name name of the input field
|
||||
* @param string $domid domid containing the second filter, it could be an HIDDEN, TEXT, SELECT field
|
||||
* @return string HTML
|
||||
*/
|
||||
static function filter_table_DOM($p_table_id, $p_col, $start_row, $p_name
|
||||
,$domid)
|
||||
{
|
||||
|
||||
$r="
|
||||
<span>
|
||||
<span class=\"icon\" ></span>
|
||||
<input id=\"lk_".$p_table_id."\" name=\"$p_name\" autocomplete=\"off\" class=\"input_text\" name=\"filter\" onkeyup=\"filter_table(this, '$p_table_id','$p_col',$start_row ,'$domid')\" type=\"text\" placeholder=\""._("Filtre rapide")."\">
|
||||
<input type=\"button\" class=\"smallbutton\" onclick=\"$('lk_".$p_table_id."').value='';filter_table($('lk_".$p_table_id."'), '$p_table_id','$p_col',$start_row,'$domid' );\" value=\"X\">
|
||||
</span>
|
||||
";
|
||||
$r.=' <span class="notice" style="display:none" id="info_'.$p_table_id.'"></span>';
|
||||
return $r;
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief filter the rows in a table and keep the colored row in alternance
|
||||
* @param dom_id $p_table_id table
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue