  |
1 | 1 | | <?php |
| |
2 | 2 | | /* |
  |
3 | | - | $Id: currencies.php,v 1.16 2003/06/05 23:16:46 hpdl Exp $ |
| |
| 3 | + | $Id: currencies.php 1803 2008-01-11 18:16:37Z hpdl $ |
|
4 | 4 | | |
| |
5 | 5 | | osCommerce, Open Source E-Commerce Solutions |
| |
6 | 6 | | http://www.oscommerce.com |
| |
7 | 7 | | |
  |
8 | | - | Copyright (c) 2003 osCommerce |
| |
| 8 | + | Copyright (c) 2008 osCommerce |
|
9 | 9 | | |
| |
10 | 10 | | Released under the GNU General Public License |
| |
11 | 11 | | */ |
| |
|
|
 |
… |
|
40 | 40 | | if ($calculate_currency_value == true) { |
| |
41 | 41 | | $rate = (tep_not_null($currency_value)) ? $currency_value : $this->currencies[$currency_type]['value']; |
| |
42 | 42 | | $format_string = $this->currencies[$currency_type]['symbol_left'] . number_format(tep_round($number * $rate, $this->currencies[$currency_type]['decimal_places']), $this->currencies[$currency_type]['decimal_places'], $this->currencies[$currency_type]['decimal_point'], $this->currencies[$currency_type]['thousands_point']) . $this->currencies[$currency_type]['symbol_right']; |
  |
43 | | - | // if the selected currency is in the european euro-conversion and the default currency is euro, |
| |
44 | | - | // the currency will displayed in the national currency and euro currency |
| |
45 | | - | if ( (DEFAULT_CURRENCY == 'EUR') && ($currency_type == 'DEM' || $currency_type == 'BEF' || $currency_type == 'LUF' || $currency_type == 'ESP' || $currency_type == 'FRF' || $currency_type == 'IEP' || $currency_type == 'ITL' || $currency_type == 'NLG' || $currency_type == 'ATS' || $currency_type == 'PTE' || $currency_type == 'FIM' || $currency_type == 'GRD') ) { |
| |
46 | | - | $format_string .= ' <small>[' . $this->format($number, true, 'EUR') . ']</small>'; |
| |
47 | | - | } |
  |
48 | 43 | | } else { |
| |
49 | 44 | | $format_string = $this->currencies[$currency_type]['symbol_left'] . number_format(tep_round($number, $this->currencies[$currency_type]['decimal_places']), $this->currencies[$currency_type]['decimal_places'], $this->currencies[$currency_type]['decimal_point'], $this->currencies[$currency_type]['thousands_point']) . $this->currencies[$currency_type]['symbol_right']; |
| |
50 | 45 | | } |