X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/timetracker.git/blobdiff_plain/04bc6bdd39d67bcf9f63d8af4b067f1fafc06f8a..61efd9d023ae34c1290ef2e1ae25829c509caaee:/WEB-INF/lib/form/Form.class.php diff --git a/WEB-INF/lib/form/Form.class.php b/WEB-INF/lib/form/Form.class.php index 2c16f251..f8a32ec5 100644 --- a/WEB-INF/lib/form/Form.class.php +++ b/WEB-INF/lib/form/Form.class.php @@ -141,7 +141,7 @@ class Form { if ($el!=null) { $el->setFormName($this->name); if (isset($arguments["id"])) $el->setId($arguments["id"]); - if (isset($GLOBALS["I18N"])) $el->setLocalization($GLOBALS["I18N"]); + if (isset($GLOBALS["I18N"])) $el->localize($GLOBALS["I18N"]); if (isset($arguments["enable"])) $el->setEnabled($arguments["enable"]); if (isset($arguments["style"])) $el->setStyle($arguments["style"]); @@ -159,10 +159,10 @@ class Form { function addInputElement(&$el) { if ($el && is_object($el)) { - if (isset($GLOBALS["I18N"])) $el->setLocalization($GLOBALS["I18N"]); + if (isset($GLOBALS["I18N"])) $el->localize($GLOBALS["I18N"]); $el->setFormName($this->name); - $this->elements[$el->getName()] = &$el; + $this->elements[$el->name] = &$el; } } @@ -188,7 +188,7 @@ class Form { $html = "\n"; foreach ($this->elements as $elname=>$el) { if (strtolower(get_class($this->elements[$elname]))=="hidden") { - $html .= $this->elements[$elname]->toStringControl()."\n"; + $html .= $this->elements[$elname]->getHtml()."\n"; } } $html .= "";