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
|
||||
|
|
|
|||
|
|
@ -105,15 +105,15 @@ class ISmallButton extends IButton
|
|||
$extra= ( isset($this->extra))?$this->extra:"";
|
||||
$this->id=($this->id=="")?$this->name:$this->id;
|
||||
$tab=(isset($this->tabindex))?' tabindex="'.$this->tabindex.'"':"";
|
||||
$attr=$this->get_node_attribute();
|
||||
|
||||
$r='<input type="BUTTON" name="'.$this->name.'"'.
|
||||
' class="smallbutton" '.
|
||||
$this->extra.
|
||||
$tab.
|
||||
' id="'.$this->id.'"'.
|
||||
' value="'.$this->label.'"'.
|
||||
' onClick="'.$this->javascript.'"'.$extra.'>';
|
||||
$attr=$this->get_js_attr();
|
||||
$r.=$attr;
|
||||
' onClick="'.$this->javascript.'"'.$extra." $attr ".'>';
|
||||
return $r;
|
||||
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue