X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/timetracker.git/blobdiff_plain/06ec4ba10585fef2bc42a70a099e6c619ae41f87..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 db59a3b2..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\""; @@ -418,7 +418,7 @@ class DateField extends TextField { if (APP_NAME) $app_root = '/'.APP_NAME; - $html .= " mName."');\">\n"; + $html .= " name."');\">\n"; } return $html;