src/Easy/Element/Button.php
public function render()
    {
        $style = $this->getStyle();
        $func = $this->getEnabled() == 'N' ? "" : $this->getFunction();
        $id	   = $this->objectName;

        if ($this->image)
        {
            $imagesPath = Openbizx::$app->getImageUrl();
            $out = "<img src=\"$imagesPath/" . $this->image . "\" border=0 title=\"" . $this->text . "\" />";
            if ($func != "") {
                $out = "<a href='javascript:void(0);' $this->htmlAttr $style $func>" . $out . "</a>";
            }
        }
        else
        {
            $out = $this->getText();
            //$out = "<input id=\"$id\" type='button' value='$out' $this->htmlAttr $style $func>";
            $out = "<a href='javascript:void(0);' $this->htmlAttr $style $func>".$out."</a>";
        }

        return $out . "\n" . $this->addSCKeyScript();
    }
public function render()
    {
        $style = $this->getStyle();
        $func = $this->getEnabled() == 'N' ? "" : $this->getFunction();
        $id	   = $this->objectName;

        if ($this->image)
        {
            $imagesPath = Openbizx::$app->getImageUrl();
            $out = "<img src=\"$imagesPath/" . $this->image . "\" border=0 title=\"" . $this->text . "\" />";
            if ($func != "") {
                $out = "<a href='javascript:void(0);' $this->htmlAttr $style $func>" . $out . "</a>";
            }
        }
        else
        {
            $out = $this->getText();
            //$out = "<input id=\"$id\" type='button' value='$out' $this->htmlAttr $style $func>";
            $out = "<a href='javascript:void(0);' $this->htmlAttr $style $func>".$out."</a>";
        }

        return $out . "\n" . $this->addSCKeyScript();
    }
Render element, according to the mode

@return string HTML text