function get_input() { if (!isset($this->estado)) { $this->estado = ''; } $html = ""; if ($this->es_solo_lectura()) { $clase = $this->clase . ' ef-input-solo-lectura'; $html .= toba_form::textarea($this->id_form, $this->estado, $this->lineas, $this->tamano, $clase, $this->wrap, " readonly"); } else { $this->input_extra .= $this->get_info_placeholder(); if ($this->resaltar) { $javascript = " onclick='javascript: document.getElementById('{$this->id_form}').select()'"; $html .= toba_form::button($this->id_form . "_res", "Seleccionar", $javascript); } if ($this->maximo) { $obj = $this->objeto_js(); $this->javascript .= "onkeydown=\"{$obj}.validar()\" onkeyup=\"{$obj}.validar()\""; } $tab = ' tabindex="' . $this->padre->get_tab_index() . '"'; $html .= toba_form::textarea($this->id_form, $this->estado, $this->lineas, $this->tamano, $this->clase, $this->wrap, $this->javascript . ' ' . $this->input_extra . $tab); } $html .= $this->get_html_iconos_utilerias(); return $html; }