openrat-cms

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs

commit f7dd1be70d7fc9b37516fce98731844066b1e473
parent 127d86065d254733327125228a71373f4e565191
Author: dankert <devnull@localhost>
Date:   Sun, 17 Apr 2005 00:25:57 +0200

Methode "error()" zur Darstellung von Eingabefehlern

Diffstat:
serviceClasses/Html.class.php | 10++++++++++
1 file changed, 10 insertions(+), 0 deletions(-)

diff --git a/serviceClasses/Html.class.php b/serviceClasses/Html.class.php @@ -65,6 +65,16 @@ class Html } + function error( $field ) + { + global $inputErrors; + + if ( isset($inputErrors[$field]) ) + return '<span class="error">'.lang($inputErrors[$field]).'</span'; + } + + + /** * Erzeugt eine relative Url innerhalb von Openrat *