X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=WEB-INF%2Flib%2Fform%2FHidden.class.php;h=6e59bc8e1a43b1e218a90890672e95827bc5e151;hb=fcb232f2236dd0105525b0239fa7b212aaf72a2a;hp=e06466e1f1700f0219fb44c597142582b303a3dc;hpb=61efd9d023ae34c1290ef2e1ae25829c509caaee;p=timetracker.git
diff --git a/WEB-INF/lib/form/Hidden.class.php b/WEB-INF/lib/form/Hidden.class.php
index e06466e1..6e59bc8e 100644
--- a/WEB-INF/lib/form/Hidden.class.php
+++ b/WEB-INF/lib/form/Hidden.class.php
@@ -27,26 +27,19 @@
// +----------------------------------------------------------------------+
import('form.FormElement');
-
+
class Hidden extends FormElement {
- var $class = 'Hidden';
- function __construct($name,$value="")
- {
- $this->name = $name;
- $this->value = $value;
- }
+ function __construct($name) {
+ $this->class = 'Hidden';
+ $this->name = $name;
+ }
+
+ function getHtml() {
+ if ($this->id == '') $this->id = $this->name;
- function getHtml() {
-
- if ($this->id=="") $this->id = $this->name;
-
- $html = "\n\tname\" id=\"$this->id\"";
-
- $html .= " value=\"".$this->getValue()."\"";
- $html .= ">";
-
- return $html;
- }
+ $html = "\n\tid\" name=\"$this->name\"";
+ $html.= ' value="'.$this->getValue().'">';
+ return $html;
+ }
}