/**
  * Vrátí HTML strukturu pro zobrazní fieldu
  *
  * @author Tomáš Kocifaj
  * @link http://www.ktstudio.cz
  *
  * @return string
  */
 public function getField()
 {
     $html = "";
     $html .= "<div {$this->getAttrClassString()}>";
     $html .= "<span for=\"{$this->getAttrValueByName("id")}\" {$this->getAttrClassString()} title=\"{$this->getToolTip()}\"></span>";
     $html .= "<input type=\"hidden\" ";
     $html .= $this->getBasicHtml();
     $html .= " value=\"{$this->getValue()}\" ";
     $html .= "/>";
     $html .= "</div>";
     if ($this->hasErrorMsg()) {
         $html .= parent::getHtmlErrorMsg();
     }
     return $html;
 }
 /**
  * Vrátí HTML strukturu pro zobrazní fieldu
  *
  * @author Tomáš Kocifaj
  * @link http://www.ktstudio.cz
  *
  * @return string
  */
 public function getField()
 {
     $html = "";
     $value = htmlentities($this->getValue());
     $html .= "<input type=\"text\" ";
     $html .= $this->getBasicHtml();
     $html .= " value=\"{$value}\" ";
     if (KT::notIssetOrEmpty($this->getDefaultColor())) {
         $html .= " data-default-color=\"{$this->getDefaultColor()}\"";
     }
     $html .= "/>";
     if ($this->hasErrorMsg()) {
         $html .= parent::getHtmlErrorMsg();
     }
     return $html;
 }
 public function getField()
 {
     $fieldValue = $this->getValue();
     $accept = $this->getAcceptFileTypeString();
     $html = "<input type=\"file\"";
     $html .= $this->getBasicHtml();
     if (KT::issetAndNotEmpty($fieldValue)) {
         $html .= " value=\"{$fieldValue}\" ";
     }
     if (KT::issetAndNotEmpty($accept)) {
         $html .= "accept=\"{$accept}\" ";
     }
     $html .= "/>";
     if ($this->hasErrorMsg()) {
         $html .= parent::getHtmlErrorMsg();
     }
     return $html;
 }
 /**
  * Vrátí HTML strukturu pro zobrazní fieldu
  *
  * @author Martin Hlaváč
  * @link http://www.ktstudio.cz
  *
  * @return string
  */
 public function getField()
 {
     $html = "<div class=\"file-load-box\">";
     $html .= $this->getFullSpanUrl();
     $html .= "<input type=\"hidden\" {$this->getBasicHtml()} value=\"{$this->getValue()}\" />";
     $multiple = $this->getIsMultiple() ? "true" : "false";
     $html .= "<span id=\"{$this->getAttrValueByName("id")}\" {$this->getAttrClassString()} data-multiple=\"{$multiple}\">" . __("Vybrat soubor", "KT_CORE_DOMAIN") . "</span>";
     if ($this->hasErrorMsg()) {
         $html .= parent::getHtmlErrorMsg();
     }
     return $html;
 }