- 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"]);
*/
}