src/Easy/Element/Radio.php
public function render()
    {
        $fromList = array();
        $this->getFromList($fromList);
        $disabledStr = ($this->getEnabled() == "N") ? "DISABLED=\"true\"" : "";
        if(!$this->style){
        	$this->style.="margin-right:8px;";
        }
        $style = $this->getStyle();
        $func = $this->getFunction();

        $value = $this->getValue()!='null' ? $this->getValue() : $this->getDefaultValue();
        
        $value = $value===null?$this->getDefaultValue():$value;
        
        if($this->width){
        	
        	$width = (int)$this->width."px;";
        }else{
        	$width = "auto;";
        }
        foreach ($fromList as $option) {        	
            $checkedStr = ($option['val'] == $value) ? "CHECKED" : "";            
            if($option['pic'])
            {
            	$option_display = "<img src=\"".Expression::evaluateExpression($option['pic'],$this->getFormObj())."\" />";
            }
            else 
            {
            	$option_display = $option['txt'];
            }
            $sHTML .= "<label style=\"text-align:left;width:$width\" class=\"radio_option\"><INPUT TYPE=RADIO NAME='".$this->objectName."' ID=\"" . $this->objectName ."_".$option['val']."\" VALUE=\"" . $option['val'] . "\" $checkedStr $disabledStr $style $this->htmlAttr $func />" . $option_display . "</label>";
        }
        
        return $sHTML;
    }
public function render()
    {
        $fromList = array();
        $this->getFromList($fromList);
        $disabledStr = ($this->getEnabled() == "N") ? "DISABLED=\"true\"" : "";
        if(!$this->style){
        	$this->style.="margin-right:8px;";
        }
        $style = $this->getStyle();
        $func = $this->getFunction();

        $value = $this->getValue()!='null' ? $this->getValue() : $this->getDefaultValue();
        
        $value = $value===null?$this->getDefaultValue():$value;
        
        if($this->width){
        	
        	$width = (int)$this->width."px;";
        }else{
        	$width = "auto;";
        }
        foreach ($fromList as $option) {        	
            $checkedStr = ($option['val'] == $value) ? "CHECKED" : "";            
            if($option['pic'])
            {
            	$option_display = "<img src=\"".Expression::evaluateExpression($option['pic'],$this->getFormObj())."\" />";
            }
            else 
            {
            	$option_display = $option['txt'];
            }
            $sHTML .= "<label style=\"text-align:left;width:$width\" class=\"radio_option\"><INPUT TYPE=RADIO NAME='".$this->objectName."' ID=\"" . $this->objectName ."_".$option['val']."\" VALUE=\"" . $option['val'] . "\" $checkedStr $disabledStr $style $this->htmlAttr $func />" . $option_display . "</label>";
        }
        
        return $sHTML;
    }
Render, draw the control according to the mode

@return string HTML text