From dfbcda6e93b79e4ee6900e8f278c635a0671e3e6 Mon Sep 17 00:00:00 2001 From: Adam Amstrong Date: Mon, 3 Nov 2008 13:34:44 +0000 Subject: [PATCH] add billing page git-svn-id: http://www.observium.org/svn/observer/trunk@266 61d68cd4-352d-0410-923a-c4978735b2b8 --- html/pages/bills.php | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/html/pages/bills.php b/html/pages/bills.php index 6ea9f6f18..ccba43827 100644 --- a/html/pages/bills.php +++ b/html/pages/bills.php @@ -4,7 +4,7 @@ echo("
") if($_GET['bill']) { - $bill_id = mres($_GET['bill']); + $bill_id = $_GET['bill']; include("includes/billing.php"); } else { @@ -29,16 +29,13 @@ if($_GET['bill']) { $allowed = formatRates($bill['bill_cdr'] * 1000); $used = formatRates($rate_data['rate_95th'] * 1000); $percent = round(($rate_data['rate_95th'] / $bill['bill_cdr']) * 100,2); - } elseif ($bill['bill_type'] == "quota") { $type = "Quota"; $allowed = formatStorage($bill['bill_gb']* 1024 * 1024 * 1024); $used = formatStorage($rate_data['total_data'] * 1024 * 1024); $percent = round(($rate_data['total_data'] / ($bill['bill_gb'] * 1024)) * 100,2); - } - echo("