src/Easy/Element/AutoSuggest.php
public function render ()
    {
        if (defined('OPENBIZ_JSLIB_BASE') && OPENBIZ_JSLIB_BASE == 'JQUERY') {
			$inputName = $this->objectName;
			$style = $this->getStyle();
			$sHTML = "<input type=\"text\" id=\"$inputName\" name=\"$inputName\" value=\"$this->value\"/ $style>\n";
			$sHTML .= "<script>Openbizx.AutoSuggest.init('$this->formName','AutoSuggest','$inputName');</script>";
			return $sHTML;
		}
		
		Openbizx::$app->getClientProxy()->appendScripts("scriptaculous", "scriptaculous.js");
        $selFrom = $this->selectFrom;
        $pos0 = strpos($selFrom, "[");
        $pos1 = strpos($selFrom, "]");
        $first_half = substr($selFrom, 0, $pos1);
        $inputName = $this->objectName;
        $inputChoice = $this->objectName . '_choices';
        $style = $this->getStyle();
        if ($formobj->errors[$this->objectName]) {
            $func .= "onchange=\"this.className='$this->cssClass'\"";
        } else {
            $func .= "onfocus=\"this.className='$this->cssFocusClass'\" onblur=\"this.className='$this->cssClass'\"";
        }
        if (strpbrk($first_half, ':')) {
            $hInputName = $this->objectName . '_hidden';
            $inputChoice = $this->objectName . '_hidden_choices';
            $sHTML = "<input type=\"text\" id=\"$hInputName\" name=\"$hInputName\" value=\"$this->value\" $style $func/>\n";
            $sHTML .= "<div id=\"$inputChoice\" class=\"autocomplete\" style=\"display:none\"></div>\n";
            $sHTML .= "<script>Openbizx.AutoSuggest.init('$this->formName','AutoSuggest','$hInputName','$inputChoice');</script>";
            $sHTML .= "<INPUT NAME=\"" . $inputName . "\" ID=\"" . $inputName . "\" VALUE=\"" . $this->value . "\" type=\"hidden\" >";
        } else {
            $sHTML = "<input type=\"text\" id=\"$inputName\" name=\"$inputName\" value=\"$this->value\" $style $func/>\n";
            $sHTML .= "<div id=\"$inputChoice\" class=\"autocomplete\" style=\"display:none\"></div>\n";
            $sHTML .= "<script>Openbizx.AutoSuggest.init('$this->formName','AutoSuggest','$inputName','$inputChoice');</script>";
        }
        return $sHTML;
    }
public function render ()
    {
        if (defined('OPENBIZ_JSLIB_BASE') && OPENBIZ_JSLIB_BASE == 'JQUERY') {
			$inputName = $this->objectName;
			$style = $this->getStyle();
			$sHTML = "<input type=\"text\" id=\"$inputName\" name=\"$inputName\" value=\"$this->value\"/ $style>\n";
			$sHTML .= "<script>Openbizx.AutoSuggest.init('$this->formName','AutoSuggest','$inputName');</script>";
			return $sHTML;
		}
		
		Openbizx::$app->getClientProxy()->appendScripts("scriptaculous", "scriptaculous.js");
        $selFrom = $this->selectFrom;
        $pos0 = strpos($selFrom, "[");
        $pos1 = strpos($selFrom, "]");
        $first_half = substr($selFrom, 0, $pos1);
        $inputName = $this->objectName;
        $inputChoice = $this->objectName . '_choices';
        $style = $this->getStyle();
        if ($formobj->errors[$this->objectName]) {
            $func .= "onchange=\"this.className='$this->cssClass'\"";
        } else {
            $func .= "onfocus=\"this.className='$this->cssFocusClass'\" onblur=\"this.className='$this->cssClass'\"";
        }
        if (strpbrk($first_half, ':')) {
            $hInputName = $this->objectName . '_hidden';
            $inputChoice = $this->objectName . '_hidden_choices';
            $sHTML = "<input type=\"text\" id=\"$hInputName\" name=\"$hInputName\" value=\"$this->value\" $style $func/>\n";
            $sHTML .= "<div id=\"$inputChoice\" class=\"autocomplete\" style=\"display:none\"></div>\n";
            $sHTML .= "<script>Openbizx.AutoSuggest.init('$this->formName','AutoSuggest','$hInputName','$inputChoice');</script>";
            $sHTML .= "<INPUT NAME=\"" . $inputName . "\" ID=\"" . $inputName . "\" VALUE=\"" . $this->value . "\" type=\"hidden\" >";
        } else {
            $sHTML = "<input type=\"text\" id=\"$inputName\" name=\"$inputName\" value=\"$this->value\" $style $func/>\n";
            $sHTML .= "<div id=\"$inputChoice\" class=\"autocomplete\" style=\"display:none\"></div>\n";
            $sHTML .= "<script>Openbizx.AutoSuggest.init('$this->formName','AutoSuggest','$inputName','$inputChoice');</script>";
        }
        return $sHTML;
    }
Render element, according to the mode

@return string HTML text