X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/timetracker.git/blobdiff_plain/61efd9d023ae34c1290ef2e1ae25829c509caaee..60d2288b7fca6caf0f5d9d3eee972f040eb24fb0:/WEB-INF/lib/form/PasswordField.class.php diff --git a/WEB-INF/lib/form/PasswordField.class.php b/WEB-INF/lib/form/PasswordField.class.php new file mode 100644 index 00000000..7fd6624e --- /dev/null +++ b/WEB-INF/lib/form/PasswordField.class.php @@ -0,0 +1,63 @@ +class = 'PasswordField'; + $this->name = $name; + $this->value = $value; + } + + function getHtml() { + if ($this->id == '') $this->id = $this->name; + + $html = "\n\tid.'"'; + $html.= ' name="'.$this->name.'"'; + + if ($this->size != '') + $html.= ' size="'.$this->size.'"'; + + if ($this->style != '') + $html.= ' style="'.$this->style.'"'; + + if ($this->max_length != '') + $html.= ' maxlength="'.$this->max_length.'"'; + + if ($this->on_change != '') + $html.= ' onchange="'.$this->on_change.'"'; + + $html.= ' value="'.htmlspecialchars($this->getValue()).'"'; + $html.= '>'; + return $html; + } +}