• Main Page
  • Related Pages
  • Namespaces
  • Data Structures
  • Files
  • File List

E:/E/GEAMP/www/openbiz/openbiz/bin/easy/element/FileInput.php

00001 <?PHP
00017 include_once("InputElement.php");
00018 
00027 class FileInput extends InputElement
00028 {
00029 
00035     public function render()
00036     {
00037         $disabledStr = ($this->getEnabled() == "N") ? "disabled=\"true\"" : "";
00038         $style = $this->getStyle();
00039         $func = $this->getFunction();
00040               $sHTML .= "<input type=\"file\" name='$this->m_Name' id=\"" . $this->m_Name ."\" value='$this->m_Value' $disabledStr $this->m_HTMLAttr $style $func />";
00041         return $sHTML;
00042     }
00043     
00044     public function getValue()
00045     {
00046        if(!$this->m_Value && strtoupper($this->getFormObj()->m_FormType) !='NEW')
00047        {
00048               $rec = $this->getFormObj()->getActiveRecord();
00049               $this->m_Value = $rec[$this->m_FieldName];
00050        }
00051        return parent::getValue();
00052     }
00053 
00054 }
00055 
00056 ?>

Generated on Thu Apr 19 2012 17:09:13 for openbiz by  doxygen 1.7.2