- 01
- 02
- 03
- 04
- 05
- 06
- 07
- 08
- 09
- 10
- 11
- 12
- 13
- 14
- 15
- 16
- 17
- 18
- 19
- 20
- 21
- 22
function FormatCurrency($fSum, $strCurrency)
{
return CurrencyFormat($fSum, $strCurrency);
/*
if (!isset($fSum) || strlen($fSum)<=0) return "";
$arCurFormat = CCurrencyLang::GetCurrencyFormat($strCurrency);
if (!isset($arCurFormat["DECIMALS"])) $arCurFormat["DECIMALS"] = 2;
$arCurFormat["DECIMALS"] = IntVal($arCurFormat["DECIMALS"]);
if (!isset($arCurFormat["DEC_POINT"])) $arCurFormat["DEC_POINT"] = ".";
if (!isset($arCurFormat["THOUSANDS_SEP"])) $arCurFormat["THOUSANDS_SEP"] = "\\"."xA0";
$tmpTHOUSANDS_SEP = $arCurFormat["THOUSANDS_SEP"];
eval("\$tmpTHOUSANDS_SEP = \"$tmpTHOUSANDS_SEP\";");
$arCurFormat["THOUSANDS_SEP"] = $tmpTHOUSANDS_SEP;
if (!isset($arCurFormat["FORMAT_STRING"])) $arCurFormat["FORMAT_STRING"] = "#";
$num = number_format($fSum, $arCurFormat["DECIMALS"], $arCurFormat["DEC_POINT"], $arCurFormat["THOUSANDS_SEP"]);
return str_replace("#", $num, $arCurFormat["FORMAT_STRING"]);
*/
}
Lure Of Chaos 12.10.2010 17:27 # +3
{
return FormatCurrency($fSum, $strCurrency);
}
Lure Of Chaos 12.10.2010 17:28 # 0
netrain 12.10.2010 18:50 # −1
Uchkuma 12.10.2010 22:04 # +1
sectus 13.10.2010 04:55 # 0