diff options
author | xue <> | 2005-12-12 03:58:51 +0000 |
---|---|---|
committer | xue <> | 2005-12-12 03:58:51 +0000 |
commit | ab7c1394e8087a311e57e3b5be99b2805535062d (patch) | |
tree | 2c685c2bcab37dc067bf35ecda6aff830f91a147 /framework/Web/UI/TForm.php | |
parent | 2c84645d5e0df37560d61dfab99d04345f7ba9b6 (diff) |
Added TFileUpload control.
Diffstat (limited to 'framework/Web/UI/TForm.php')
-rw-r--r-- | framework/Web/UI/TForm.php | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/framework/Web/UI/TForm.php b/framework/Web/UI/TForm.php index 72eb2e10..dc19fc6d 100644 --- a/framework/Web/UI/TForm.php +++ b/framework/Web/UI/TForm.php @@ -14,6 +14,8 @@ class TForm extends TControl // $writer->addAttribute('name',$this->getName());
$writer->addAttribute('method',$this->getMethod());
$writer->addAttribute('action',$this->getApplication()->getRequest()->getRequestURI());
+ if(($enctype=$this->getEnctype())!=='')
+ $writer->addAttribute('enctype',$enctype);
$attributes->remove('name');
$attributes->remove('method');
$attributes->remove('action');
|