51 $this->value_container=
$name;
54 $this->id_hidden=
$p_id;
55 $this->id_icon=uniqid(
$p_id);
60 function input($p_name=NULL, $p_value=0)
64 $this->value_container=$p_name;
66 $this->
value=$p_value;
69 if ( trim($this->value_container) ===
"" || trim($this->
value) ===
"") {
70 throw new Exception(_(
"Valeur invalide"),1);
77 $this->
javascript=sprintf(
'toggle_checkbox_onoff(\'%s\',\'%s\');%s;',
82 if ($this->
value==
'1') {
91 if ($this->
value==
'1') {
catch(Exception $exc) if(! $g_user->can_write_action($ag_id)) $r
static checked($p_id, $p_javascript="", $p_classrange="")
static unchecked($p_id, $p_javascript="", $p_classrange="")