name=($p_name==null)?$this->name:$p_name;
$this->value=($p_value==null)?$this->value:$p_value;
if ( $this->readOnly==true) return $this->display();
$this->id=($this->id=="")?$this->name:$this->id;
$check=( $this->selected==true )?"checked":"unchecked";
$r='disabled." ".$this->javascript.'>';
$r=$r." $this->label";
return $r;
}
/*!\brief print in html the readonly value of the widget*/
public function display()
{
$check=( $this->selected==true )?"checked":"unchecked";
$r='';
return $r;
}
/**
*set selected to true (checked) if the value equal the parameter
* @param $p_value value to compare
*/
public function set_check($p_value)
{
if ($this->value==$p_value)$this->selected=true;
}
static function toggle_checkbox($p_name,$p_form) {
$a=new ICheckBox($p_name);
$a->javascript='onclick="toggle_checkbox(\''.$p_form.'\')"';
return $a->input();
}
static public function test_me()
{
}
}