/** * Devuelve el código HTML para mostrar el campo. * @return string */ public function render() { $util = new RMUtils(); $ret = '<input type="text" size="' . $this->_size . '" name="' . $this->getName() . '" id="' . $this->getName() . '" maxlength="' . $this->getMax() . '" value="" '; if ($this->getClass() != '') { $ret .= 'class="' . $this->getClass() . '" ' . $this->getExtra() . ' />'; } else { $ret .= $this->getExtra() . ' />'; } $code = $util->imageFromCode($util->randomString($this->_lencode, true, false, true)); $ret .= "<br /><img src='" . ABSURL . "/uploads/rmccodes/{$code}.png' alt='' style='margin-top: 5px;' />\n\t\t\t<input type='hidden' name='rmseccode' value='{$code}' /><br />\n\t\t\t<a href='javascript:;' onclick=\"" . $this->_refreshlink . "\">" . _RMS_CF_IFNOTVIEW . "</a>"; return $ret; }