src/Easy/Element/IDCardReader.php
public function render()
    {
    	if($this->value!=null){
    		$value = $this->value;
    	}else{
    		$value = $this->getText();
    	} 
    	
    	if($value==""){
    		$value = $this->getDefaultValue();
    	}    	
        $disabledStr = ($this->getEnabled() == "N") ? "READONLY=\"true\"" : "";        
        $style = $this->getStyle();        
        $func = $this->getFunction();
        
        $formobj = $this->GetFormObj();
    	if($formobj->errors[$this->objectName]){
			$func .= "onchange=\"this.className='$this->cssClass'\"";
		}else{
			$func .= "onfocus=\"this.className='$this->cssFocusClass'\" onblur=\"this.className='$this->cssClass'\"";
		}        
        
        //$sHTML = "<INPUT ReadOnly=\"Enabled\" NAME=\"" . $this->objectName . "\" ID=\"" . $this->objectName ."\" VALUE=\"" . $value . "\" $disabledStr $this->htmlAttr $style $func />";
        //$sHTML .= "<br/><span ID=\"" . $this->objectName ."_status\" >Standing By</span>";
        
        $sHTML = " <div id=\"" . $this->objectName . "_reader\" $disabledStr $this->htmlAttr $style $func >
        				<span class=\"cardcode\" ID=\"" . $this->objectName ."_code\" >$value</span>
        				<div style=\"display:none;\" ><input ReadOnly=\"Enabled\" type=\"hidden\" NAME=\"" . $this->objectName . "\" ID=\"" . $this->objectName ."\" VALUE=\"\" /></div>
        			</div>"; 
        
		$elementName = $this->objectName;
        $sHTML .= "<script>Openbizx.IDCardReader.init('$elementName');\n</script>";
        return $sHTML;
    }
public function render()
    {
    	if($this->value!=null){
    		$value = $this->value;
    	}else{
    		$value = $this->getText();
    	} 
    	
    	if($value==""){
    		$value = $this->getDefaultValue();
    	}    	
        $disabledStr = ($this->getEnabled() == "N") ? "READONLY=\"true\"" : "";        
        $style = $this->getStyle();        
        $func = $this->getFunction();
        
        $formobj = $this->GetFormObj();
    	if($formobj->errors[$this->objectName]){
			$func .= "onchange=\"this.className='$this->cssClass'\"";
		}else{
			$func .= "onfocus=\"this.className='$this->cssFocusClass'\" onblur=\"this.className='$this->cssClass'\"";
		}        
        
        //$sHTML = "<INPUT ReadOnly=\"Enabled\" NAME=\"" . $this->objectName . "\" ID=\"" . $this->objectName ."\" VALUE=\"" . $value . "\" $disabledStr $this->htmlAttr $style $func />";
        //$sHTML .= "<br/><span ID=\"" . $this->objectName ."_status\" >Standing By</span>";
        
        $sHTML = " <div id=\"" . $this->objectName . "_reader\" $disabledStr $this->htmlAttr $style $func >
        				<span class=\"cardcode\" ID=\"" . $this->objectName ."_code\" >$value</span>
        				<div style=\"display:none;\" ><input ReadOnly=\"Enabled\" type=\"hidden\" NAME=\"" . $this->objectName . "\" ID=\"" . $this->objectName ."\" VALUE=\"\" /></div>
        			</div>"; 
        
		$elementName = $this->objectName;
        $sHTML .= "<script>Openbizx.IDCardReader.init('$elementName');\n</script>";
        return $sHTML;
    }
Render, draw the control according to the mode

@return string HTML text