src/Forms/CurrencyField_Disabled.php
public function Field($properties = array())
    {
        if ($this->value) {
            $val = Convert::raw2xml($this->value);
            $val = DBCurrency::config()->get('currency_symbol')
                . number_format(preg_replace('/[^0-9.-]/', '', $val), 2);
            $valforInput = Convert::raw2att($val);
        } else {
            $valforInput = '';
        }
        return "<input class=\"text\" type=\"text\" disabled=\"disabled\""
        . " name=\"" . $this->name . "\" value=\"" . $valforInput . "\" />";
    }
public function Field($properties = array())
    {
        if ($this->value) {
            $val = Convert::raw2xml($this->value);
            $val = DBCurrency::config()->get('currency_symbol')
                . number_format(preg_replace('/[^0-9.-]/', '', $val), 2);
            $valforInput = Convert::raw2att($val);
        } else {
            $valforInput = '';
        }
        return "<input class=\"text\" type=\"text\" disabled=\"disabled\""
        . " name=\"" . $this->name . "\" value=\"" . $valforInput . "\" />";
    }
public function Field ( $ properties = array ( ) ) { if ( $ this -> value ) { $ val = Convert :: raw2xml ( $ this -> value ) ; $ val = DBCurrency :: config ( ) -> get ( 'currency_symbol' ) . number_format ( preg_replace ( '/[^0-9.-]/' , '' , $ val ) , 2 ) ; $ valforInput = Convert :: raw2att ( $ val ) ; } else { $ valforInput = '' ; } return "<input class=\"text\" type=\"text\" disabled=\"disabled\"" . " name=\"" . $ this -> name . "\" value=\"" . $ valforInput . "\" />" ; }
Overloaded to display the correctly formatted value for this data type

@param array $properties
@return string
Overloaded to display the correctly formatted value for this data type