diff --git a/html/pages/bill/history.inc.php b/html/pages/bill/history.inc.php
index 6770271c82..95de8a76b2 100644
--- a/html/pages/bill/history.inc.php
+++ b/html/pages/bill/history.inc.php
@@ -9,9 +9,18 @@ $img['his'] = '
';
+?>
-echo $img['his'];
+
Historical Usage
+
+
+ 'yes'));
$url = $PHP_SELF.'/bill/'.$bill_id.'/history/detail=all/';
-echo '
+echo '
+
- |
- Period |
- Type |
- Allowed |
- Inbound |
- Outbound |
- Total |
- 95th %ile |
- Overusage |
-
+ | |
+ Period |
+ Type |
+ Allowed |
+ Inbound |
+ Outbound |
+ Total |
+ 95th %ile |
+ Overusage |
+
Show all details
-
- |
';
+
+
+
+ ';
foreach (dbFetchRows('SELECT * FROM `bill_history` WHERE `bill_id` = ? ORDER BY `bill_datefrom` DESC LIMIT 24', array($bill_id)) as $history) {
if (bill_permitted($history['bill_id'])) {
@@ -68,7 +80,6 @@ foreach (dbFetchRows('SELECT * FROM `bill_history` WHERE `bill_id` = ? ORDER BY
$total_data = format_number($history['traf_total'], $config['billing']['base']);
$background = get_percentage_colours($percent);
- $row_colour = ((!is_integer($i / 2)) ? $list_colour_a : $list_colour_b);
if ($type == 'CDR') {
$allowed = formatRates($history['bill_allowed']);
@@ -91,7 +102,7 @@ foreach (dbFetchRows('SELECT * FROM `bill_history` WHERE `bill_id` = ? ORDER BY
$url = generate_url($vars, array('detail' => $history['bill_hist_id']));
echo '
-
+
|
'.strftime('%Y-%m-%d', strtotime($datefrom)).' to '.strftime('%Y-%m-%d', strtotime($dateto))." |
$type |
@@ -123,9 +134,8 @@ foreach (dbFetchRows('SELECT * FROM `bill_history` WHERE `bill_id` = ? ORDER BY
';
}
-
- $i++;
} //end if
}//end foreach
-echo '
';
+echo '
+
';