id = $id; $this->value = $value; $this->checked = $checked; $this->style = $style; } function getHtml() { $html = ""; $html .= "id\" name=\"$this->id\" class=\"checkbox\" type=\"checkbox\" value=\"$this->value\" style=\"".$this->style."\""; if($this->checked) $html .= " checked=\"checked\""; $html .= ">\n"; return $html; } } ?>