From dbe4bc6552bc6a7480fe050b76120a205a111f63 Mon Sep 17 00:00:00 2001 From: chjacobsen <chjacobsen@ispconfig3> Date: Tue, 05 Apr 2011 09:59:05 -0400 Subject: [PATCH] CHECKBOXARRAY looks much better in vertical if there are many elements --- interface/lib/classes/functions.inc.php | 9 +++++++++ 1 files changed, 9 insertions(+), 0 deletions(-) diff --git a/interface/lib/classes/functions.inc.php b/interface/lib/classes/functions.inc.php index fb6d4b7..7934efb 100644 --- a/interface/lib/classes/functions.inc.php +++ b/interface/lib/classes/functions.inc.php @@ -87,6 +87,15 @@ return $out; } + public function currency_format($number) { + global $app; + $number_format_decimals = (int)$app->lng('number_format_decimals'); + $number_format_dec_point = $app->lng('number_format_dec_point'); + $number_format_thousands_sep = $app->lng('number_format_thousands_sep'); + if($number_format_thousands_sep == 'number_format_thousands_sep') $number_format_thousands_sep = ''; + return number_format((double)$number, $number_format_decimals, $number_format_dec_point, $number_format_thousands_sep); + } + } -- Gitblit v1.9.1