25 require_once NOALYSS_INCLUDE.
'/lib/class_html_input.php';
29 public function input($p_name=null,$p_value=null)
31 $this->
name=($p_name==null)?$this->
name:$p_name;
32 $this->
value=($p_value==null)?$this->
value:$p_value;
34 $this->
id=($this->
id==
"")?$this->
name:$this->
id;
37 $r=
'<input type="CHECKBOX" id="'.$this->id.
'" name="'.$this->
name.
'"'.
' value="'.$this->value.
'"';
41 $r=
$r.
" $this->label";
51 $r=
'<input type="CHECKBOX" id="'.$this->name.
'" name="'.$this->
name.
'"';
68 $a->javascript=
'onclick="toggle_checkbox(\''.$p_form.
'\')
"';
71 static public function test_me()
display()
print in html the readonly value of the widget
set_check($p_value)
set selected to true (checked) if the value equal the parameter
for($e=0;$e< count($array);$e++) $desc readOnly
input($p_name=null, $p_value=null)
show the html input of the widget
static toggle_checkbox($p_name, $p_form)