X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=WEB-INF%2Flib%2Fform%2FUploadFile.class.php;fp=WEB-INF%2Flib%2Fform%2FUploadFile.class.php;h=98fbe0aa687f0c7982a9fe9f40360173d320766c;hb=6e59f47d1baf9e3d420b4a368dcc005d54b6e599;hp=1055125df6a3576220e9e1a12ce9d7a9837bbd11;hpb=06ec4ba10585fef2bc42a70a099e6c619ae41f87;p=timetracker.git
diff --git a/WEB-INF/lib/form/UploadFile.class.php b/WEB-INF/lib/form/UploadFile.class.php
index 1055125d..98fbe0aa 100644
--- a/WEB-INF/lib/form/UploadFile.class.php
+++ b/WEB-INF/lib/form/UploadFile.class.php
@@ -35,7 +35,7 @@ class UploadFile extends FormElement {
function __construct($name,$value="")
{
- $this->mName = $name;
+ $this->name = $name;
$this->mValue = $value;
}
@@ -45,24 +45,15 @@ class UploadFile extends FormElement {
function toStringControl() {
if (!$this->isRenderable()) return "";
- if ($this->mId=="") $this->mId = $this->mName;
+ if ($this->id=="") $this->id = $this->name;
$html = "\n\tmMaxSize."\"/>";
$html .= "\n\tmName\" id=\"$this->mId\"";
+ $html .= " name=\"$this->name\" id=\"$this->id\"";
$html .= " type=\"file\"";
$html .= ">";
-
- // only IE
- /*$html = "mName."\" id=\"".$this->mId."\" style=\"display: none;\">\n";
- $html .= "mName."file\">\n";
- $html .= "mName.".click();".$this->mName."file.value=".$this->mName.".value;".$this->mName.".disabled=true;\"";
- $html .= " value=\"".$this->getValue()."\">\n";
- $html .= "mMaxSize."\"/>";*/
-
-
- return $html;
+
+ return $html;
}
}