10 # ---- PUBLIC INTERFACE --------------------------------------------------
27 $Name, $IsRequired, $Label, $Length, $MaxLength,
28 $ValidFunc = NULL, $ValidMsgs = NULL)
30 $this->MyLength = $Length;
31 $this->MyMaxLength = $MaxLength;
33 $this->
FormField($Name, $IsRequired, $Label, $ValidFunc, $ValidMsgs);
46 function Length($NewVal = NULL) {
return $this->GetOrSet(
"MyLength", $NewVal); }
53 function MaxLength($NewVal = NULL) {
return $this->GetOrSet(
"MyMaxLength", $NewVal); }
66 print(
"<input type=\"".
68 (method_exists($this,
"PasswordFormField") ?
"password" :
"text")
70 .
" name=\"".$this->MyName.
"\""
71 .
" value=\"".htmlspecialchars($this->MyValue).
"\""
72 .
" size=\"".$this->MyLength.
"\""
73 .
" maxlength=\"".$this->MyMaxLength.
"\""
74 .($DisplayErrorIndicator ?
" style=\"background-color: #FFEEEE;\"" :
"")
80 # ---- PRIVATE INTERFACE -------------------------------------------------