X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/timetracker.git/blobdiff_plain/a07b6f8bccda226991ced6fe25f1c9c508e423e5..6e59f47d1baf9e3d420b4a368dcc005d54b6e599:/WEB-INF/lib/form/DateField.class.php diff --git a/WEB-INF/lib/form/DateField.class.php b/WEB-INF/lib/form/DateField.class.php index 7d388695..24266a39 100644 --- a/WEB-INF/lib/form/DateField.class.php +++ b/WEB-INF/lib/form/DateField.class.php @@ -40,7 +40,7 @@ class DateField extends TextField { var $lCalendarButtons = array('today'=>'Today', 'close'=>'Close'); function __construct($name) { - $this->mName = $name; + $this->name = $name; $this->mDateObj = new DateAndTime(); if (isset($GLOBALS["I18N"])) { @@ -86,10 +86,10 @@ class DateField extends TextField { if (!$this->isEnable()) { $html = htmlspecialchars($this->getValue()). - "mName\" value=\"".htmlspecialchars($this->getValue())."\">\n"; + "name\" value=\"".htmlspecialchars($this->getValue())."\">\n"; } else { - if ($this->mId=="") $this->mId = $this->mName; + if ($this->id=="") $this->id = $this->name; $html = ""; @@ -393,7 +393,7 @@ class DateField extends TextField { $html .= "\n"; $html .= "\n\tmName\" id=\"$this->mId\""; + $html .= " name=\"$this->name\" id=\"$this->id\""; if ($this->mSize!="") $html .= " size=\"$this->mSize\""; @@ -406,9 +406,6 @@ class DateField extends TextField { if ($this->mOnChange!="") $html .= " onchange=\"$this->mOnChange\""; - if ($this->mOnBlur!="") - $html .= " onblur=\"$this->mOnBlur\""; - if ($this->mOnClick!="") $html .= " onclick=\"$this->mOnClick\""; @@ -421,7 +418,7 @@ class DateField extends TextField { if (APP_NAME) $app_root = '/'.APP_NAME; - $html .= " mName."');\">\n"; + $html .= " name."');\">\n"; } return $html;