From 7c7fc84609708bdeac3695cbdd98da97f2e54736 Mon Sep 17 00:00:00 2001 From: Adam Amstrong Date: Tue, 21 Sep 2010 15:11:13 +0000 Subject: [PATCH] enable editing of bills once created git-svn-id: http://www.observium.org/svn/observer/trunk@1712 61d68cd4-352d-0410-923a-c4978735b2b8 --- html/pages/bill.inc.php | 8 ++- html/pages/bill/{edit.php => edit.inc.php} | 66 ++++++++++++++++++++-- 2 files changed, 65 insertions(+), 9 deletions(-) rename html/pages/bill/{edit.php => edit.inc.php} (52%) diff --git a/html/pages/bill.inc.php b/html/pages/bill.inc.php index 7c17ece954..b916b1524d 100644 --- a/html/pages/bill.inc.php +++ b/html/pages/bill.inc.php @@ -1,6 +1,8 @@ "); +# echo("
"); if($_GET['optb'] == "edit" && $_SESSION['userlevel'] == "10") { - include("pages/bill/edit.php"); + include("pages/bill/edit.inc.php"); }elseif($_GET['optb'] == "details") { @@ -158,7 +160,7 @@ if(bill_permitted($bill_id)) { } - echo("
"); +# echo(""); # $bi = "Bill Properties + +
+ + + + + + + + + + + + + + + + + + + + + + "); + +echo(' +
Name
Billing Day
Kbps +
Monthly Quota
GB +
CDR with 95th
+
+ Type + + +
+ +
+'); + +echo("
"); $ports_array = mysql_query("SELECT * FROM `bill_ports` AS B, `ports` AS P, `devices` AS D - WHERE B.bill_id = '".$bill_id."' AND P.interface_id = B.port_id + WHERE B.bill_id = '".$bill_data_id."' AND P.interface_id = B.port_id AND D.device_id = P.device_id"); if(mysql_affected_rows()) @@ -36,11 +90,11 @@ if(mysql_affected_rows()) echo(""); } - echo("

Add Billed Port

"); + echo("

Add Port

"); echo("
- +
Device: