| 1234567891011121314151617181920212223242526272829303132333435 |
- <?php
- class NTKPassword
- {
- function NTKPassword($id, $value = "", $style = "")
- {
- $this->id = $id;
- $this->value = $value;
- $this->style = $style;
- $this->events = array();
- }
- function addEvent($event, $action)
- {
- $this->events[] = array($event, $action);
- }
- function getHtml()
- {
- $html = "";
- $html .= "<input id=\"$this->id\" name=\"$this->id\" class=\"entry\" type=\"password\" value=\"$this->value\" style=\"".$this->style."\" ";
- foreach($this->events as $event)
- {
- $html .= " ".$event[0]."=\"".$event[1]."\" ";
- }
- $html .= ">\n";
- return $html;
- }
- }
- ?>
|