| 1234567891011121314151617181920212223242526 |
- <?php
- class NTKCheckbox
- {
- function NTKCheckbox($id, $value = "", $checked = False, $style = "")
- {
- $this->id = $id;
- $this->value = $value;
- $this->checked = $checked;
- $this->style = $style;
- }
-
- function getHtml()
- {
- $html = "";
-
- $html .= "<input id=\"$this->id\" name=\"$this->id\" class=\"checkbox\" type=\"checkbox\" value=\"$this->value\" style=\"".$this->style."\"";
- if($this->checked)
- $html .= " checked=\"checked\"";
- $html .= ">\n";
-
- return $html;
- }
- }
- ?>
|