diff --git a/lam/lib/account.inc b/lam/lib/account.inc index 356e563b..91dda9da 100644 --- a/lam/lib/account.inc +++ b/lam/lib/account.inc @@ -505,6 +505,9 @@ function get_preg($argument, $regexp) { case "digit": // Normal number $pregexpr = '/^[[:digit:]]*$/'; break; + case "float": // float value + $pregexpr = '/^[[:digit:]]+(\\.[[:digit:]]+)?$/'; + break; case "UNC": // UNC Path, e.g. \\server\share\folder\... $pregexpr = '/^((([\\\][\\\])|(%))([a-zA-Z0-9%\\.-])+)([\\\]([[:alnum:]%\\.\\$\\ \\_-])+)+$/u'; break; diff --git a/lam/lib/html.inc b/lam/lib/html.inc index c9a2c49a..eccdf279 100644 --- a/lam/lib/html.inc +++ b/lam/lib/html.inc @@ -426,6 +426,8 @@ class htmlInputField extends htmlElement { protected $showCalendar = false; /** calendar format */ protected $calendarFormat = ''; + /** title attribute */ + protected $title = null; /** * Constructor @@ -509,7 +511,11 @@ class htmlInputField extends htmlElement { if ($this->onKeyPress != null) { $onKeyPress = ' onkeypress="' . $this->onKeyPress . '"'; } - echo ''; + $title = ''; + if (!empty($this->title)) { + $title = ' title="' . $this->title . '"'; + } + echo ''; // autocompletion if ($this->autocomplete) { echo "