From bde0dfd023cb2b69f83c87459bdadf3540b51f85 Mon Sep 17 00:00:00 2001 From: Adam Amstrong Date: Sun, 27 May 2012 15:29:54 +0000 Subject: [PATCH] fix adding bills. needs more work to standardise URLs. git-svn-id: http://www.observium.org/svn/observer/trunk@3245 61d68cd4-352d-0410-923a-c4978735b2b8 --- html/pages/bills.inc.php | 4 ++-- html/pages/bills/search.inc.php | 7 ++++--- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/html/pages/bills.inc.php b/html/pages/bills.inc.php index ae54227d9..ef69e3738 100644 --- a/html/pages/bills.inc.php +++ b/html/pages/bills.inc.php @@ -45,12 +45,12 @@ $pagetitle[] = "Billing"; echo(""); -if ($_GET['opta'] == "history") +if ($vars['view'] == "history") { include("pages/bills/search.inc.php"); include("pages/bills/pmonth.inc.php"); } -elseif ($_GET['opta'] == "add") +elseif ($vars['view'] == "add") { if (is_numeric($vars['port'])) { diff --git a/html/pages/bills/search.inc.php b/html/pages/bills/search.inc.php index 67432a5dd..d2e073b46 100644 --- a/html/pages/bills/search.inc.php +++ b/html/pages/bills/search.inc.php @@ -37,18 +37,19 @@ Current Billing Period Current Billing Period'); } else { - echo('Previous Billing Period Previous Billing Period'); + // FIXME - generate_url + echo('Previous Billing Period Previous Billing Period'); } ?> - Add Add Bill + Add Add Bill