44 $this->value_container=uniqid();
50 function input($p_name=NULL, $p_value=NULL)
56 $this->
value=$p_value;
58 if ( $this->icon==
"") $this->icon=uniqid (
"inputSwitch");
60 if ( trim($this->value_container) ===
"" || trim($this->
value) ===
"") {
61 throw new Exception(_(
"Valeur invalide"),1);
68 $this->
javascript=sprintf(
'toggle_onoff(\'%s\',\'%s\');%s;',$this->icon,$this->value_container,$this->
javascript);
70 if ($this->
value==
'1') {
79 if ($this->
value==
'1') {
catch(Exception $exc) if(! $g_user->can_write_action($ag_id)) $r
static iconoff($p_id, $p_javascript, $p_style="")
Display a icon OFF.
static iconon($p_id, $p_javascript, $p_style="")
Display a icon ON.