show ports/sensors on the device list page. add option to use php-snmp functions for snmp_get()s

git-svn-id: http://www.observium.org/svn/observer/trunk@1716 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
Adam Amstrong
2010-09-26 22:10:04 +00:00
parent 5f67749a3f
commit 038bc8c20e
11 changed files with 228 additions and 137 deletions

View File

@@ -2,7 +2,10 @@
$bill_id = mres($_GET['opta']);
include("bill/actions.inc.php");
if($_SESSION['userlevel'] == "10")
{
include("pages/bill/actions.inc.php");
}
if(bill_permitted($bill_id)) {
@@ -68,6 +71,11 @@ if(bill_permitted($bill_id)) {
if($_GET['optb'] == "edit") { echo("<strong>"); }
echo("<a href='bill/".$bill_id."/edit/'>Edit</a>");
if($_GET['optb'] == "edit") { echo("</strong>"); }
echo(" | ");
if($_GET['optb'] == "delete") { echo("<strong>"); }
echo("<a href='bill/".$bill_id."/delete/'>Delete</a>");
if($_GET['optb'] == "delete") { echo("</strong>"); }
}
print_optionbar_end();
@@ -79,7 +87,11 @@ if(bill_permitted($bill_id)) {
include("pages/bill/edit.inc.php");
}elseif($_GET['optb'] == "details") {
} elseif($_GET['optb'] == "delete" && $_SESSION['userlevel'] == "10") {
include("pages/bill/delete.inc.php");
} elseif($_GET['optb'] == "details") {
echo("<h3>Billed Ports</h3>");