From 2276b22e18912251cecf88460c3ea5ddaefa0961 Mon Sep 17 00:00:00 2001 From: Adam Amstrong Date: Sat, 12 Nov 2011 15:19:05 +0000 Subject: [PATCH] billing interface improvements git-svn-id: http://www.observium.org/svn/observer/trunk@2721 61d68cd4-352d-0410-923a-c4978735b2b8 --- html/pages/bill.inc.php | 9 ++--- html/pages/bills.inc.php | 49 +------------------------- html/pages/bills/search.inc.php | 61 +++++++++++++++++++++++++++++++++ 3 files changed, 64 insertions(+), 55 deletions(-) create mode 100644 html/pages/bills/search.inc.php diff --git a/html/pages/bill.inc.php b/html/pages/bill.inc.php index 1a5475b41c..ce123f5d56 100644 --- a/html/pages/bill.inc.php +++ b/html/pages/bill.inc.php @@ -102,11 +102,6 @@ if (bill_permitted($bill_id)) if ($_SESSION['userlevel'] == "10") { -# echo(" | "); -# if ($_GET['optb'] == "admin_history") { echo(""); } -# echo("Previous Billing Period"); -# if ($_GET['optb'] == "admin_history") { echo(""); } - echo(" | "); if ($_GET['optb'] == "edit") { echo(""); } echo("Edit"); @@ -118,7 +113,7 @@ if (bill_permitted($bill_id)) if ($_GET['optb'] == "delete") { echo(""); } } - echo("
Back to Bills
"); + echo('
Back to Bills
'); print_optionbar_end(); @@ -354,7 +349,7 @@ if (bill_permitted($bill_id)) else { echo("

Billing View

$bi"); - echo("

Previous Bill View

$li"); +# echo("

Previous Bill View

$li"); echo("

24 Hour View

$di"); echo("

Monthly View

$mi"); # echo("
Graph All Data (SLOW)"); diff --git a/html/pages/bills.inc.php b/html/pages/bills.inc.php index c94e00617c..c2af10a4a0 100644 --- a/html/pages/bills.inc.php +++ b/html/pages/bills.inc.php @@ -76,54 +76,7 @@ elseif ($_GET['opta'] == "add") } else { - include("pages/bill/search.inc.php"); - print_optionbar_start('40'); - -?> - - - - - - - - - - - - - - -
Bills
- - - - - - - - - - - Previous Billing Period Previous Billing Period - - Add Add Bill -
- - diff --git a/html/pages/bills/search.inc.php b/html/pages/bills/search.inc.php new file mode 100644 index 0000000000..67432a5dd7 --- /dev/null +++ b/html/pages/bills/search.inc.php @@ -0,0 +1,61 @@ + + + + + + + + + + + + + + + +
Bills
+ + + + + + + + + + +Current Billing Period Current Billing Period'); + } else + { + echo('Previous Billing Period Previous Billing Period'); + } + +?> + + Add Add Bill +
+ +