/**
  * Vrátí HTML strukturu pro zobrazní fieldu
  *
  * @author Tomáš Kocifaj
  * @link http://www.ktstudio.cz
  *
  * @return string
  */
 public function getField()
 {
     $html = "";
     $html .= "<textarea " . $this->getBasicHtml() . ">";
     $html .= KT::stringHtmlDecode($this->getValue());
     $html .= "</textarea>";
     if ($this->hasErrorMsg()) {
         $html .= parent::getHtmlErrorMsg();
     }
     return $html;
 }
Ejemplo n.º 2
0
 /**
  * Vrátí HTML strukturu pro zobrazní fieldu
  *
  * @author Tomáš Kocifaj
  * @link http://www.ktstudio.cz
  *
  * @return string
  */
 public function getField()
 {
     $html = "";
     $fieldType = $this->getInputType() == self::INPUT_DATE ? "text" : $this->getInputType();
     $value = KT::stringHtmlDecode($this->getValue());
     $html .= "<input type=\"{$fieldType}\" ";
     $html .= $this->getBasicHtml();
     $html .= " value=\"{$value}\" ";
     $html .= "/>";
     if ($this->hasErrorMsg()) {
         $html .= parent::getHtmlErrorMsg();
     }
     return $html;
 }