X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/timetracker.git/blobdiff_plain/9a23a8c0a51b7ec38a96f525484134f3cb85dc7e..6e59f47d1baf9e3d420b4a368dcc005d54b6e599:/WEB-INF/lib/form/UploadFile.class.php?ds=sidebyside
diff --git a/WEB-INF/lib/form/UploadFile.class.php b/WEB-INF/lib/form/UploadFile.class.php
index be57fa4c..98fbe0aa 100644
--- a/WEB-INF/lib/form/UploadFile.class.php
+++ b/WEB-INF/lib/form/UploadFile.class.php
@@ -33,9 +33,9 @@ class UploadFile extends FormElement {
var $cClassName = "UploadFile";
var $mMaxSize = 100000; // 100kb
- function UploadFile($name,$value="")
+ function __construct($name,$value="")
{
- $this->mName = $name;
+ $this->name = $name;
$this->mValue = $value;
}
@@ -45,25 +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;
}
}
-?>
\ No newline at end of file