To check or uncheck everything with one button in the operation for paid and unpaid
add new function to IButton move toogle_checkbox to scripts.js
This commit is contained in:
parent
82d856acc1
commit
82b69cde15
6 changed files with 67 additions and 26 deletions
|
|
@ -50,6 +50,24 @@ require_once('class_html_input.php');
|
|||
{
|
||||
return "";
|
||||
}
|
||||
static function tooggle_checkbox($p_form) {
|
||||
$select_all=new IButton('select_all');
|
||||
$select_all->label=_('Inverser la sélection');
|
||||
$select_all->javascript="toggle_checkbox($p_form)";
|
||||
return $select_all->input();
|
||||
}
|
||||
static function select_checkbox($p_form) {
|
||||
$select_all=new IButton('select_all');
|
||||
$select_all->label=_('Cocher tous');
|
||||
$select_all->javascript="select_checkbox($p_form)";
|
||||
return $select_all->input();
|
||||
}
|
||||
static function unselect_checkbox($p_form) {
|
||||
$select_all=new IButton('select_all');
|
||||
$select_all->label=_('Décocher tous');
|
||||
$select_all->javascript="unselect_checkbox($p_form)";
|
||||
return $select_all->input();
|
||||
}
|
||||
static public function test_me()
|
||||
{
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue