more title sets

git-svn-id: http://www.observium.org/svn/observer/trunk@2691 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
Tom Laermans
2011-10-18 14:41:19 +00:00
parent ab2668981c
commit a0a1939995
23 changed files with 58 additions and 2 deletions

View File

@@ -32,6 +32,8 @@ if ($_POST['hostname'])
}
}
$pagetitle[] = "Add host";
?>
<form name="form1" method="post" action="">

View File

@@ -33,6 +33,8 @@ else
if ($updated) { print_message("Device Settings Saved"); }
$pagetitle[] = "Add service";
echo("
<h4>Add Service</h4>
<form id='addsrv' name='addsrv' method='post' action=''>

View File

@@ -9,6 +9,8 @@ if ($_SESSION['userlevel'] < '10')
else
{
echo("<h3>Add User</h3>");
$pagetitle[] = "Add user";
if (auth_usermanagement())
{

View File

@@ -25,7 +25,13 @@ if ($_SESSION['userlevel'] == '10')
");
}
$pagetitle[] = "Authlog";
echo("</table>");
}
else
{
include("includes/error-no-perm.inc.php");
}
?>

View File

@@ -13,6 +13,8 @@ if ($_POST['addbill'] == "yes")
$message_break .= "<br />";
}
$pagetitle[] = "Billing";
echo("<meta http-equiv='refresh' content='10000'>");
if ($_GET['opta'] == "add")

View File

@@ -16,6 +16,8 @@ echo("
$i = 1;
$pagetitle[] = "Customers";
foreach (dbFetchRows("SELECT * FROM `ports` WHERE `port_descr_type` = 'cust' GROUP BY `port_descr_descr` ORDER BY `port_descr_descr`") as $customer)
{
$i++;

View File

@@ -1,5 +1,7 @@
<?php
$pagetitle[] = "Deleted ports";
if ($vars['purge'] == "all")
{
foreach (dbFetchRows("SELECT * FROM `ports` AS P, `devices` as D WHERE P.`deleted` = '1' AND D.device_id = P.device_id") as $interface)

View File

@@ -8,6 +8,8 @@ if ($_SESSION['userlevel'] < 10)
exit;
}
$pagetitle[] = "Delete device";
if (is_numeric($_REQUEST['id']))
{
if ($_REQUEST['confirm'])

View File

@@ -4,6 +4,9 @@ if ($_SESSION['userlevel'] < '5')
{
include("includes/error-no-perm.inc.php");
} else {
$pagetitle[] = "Delete service";
if ($_POST['delsrv'])
{
if ($_SESSION['userlevel'] > "5")

View File

@@ -6,6 +6,8 @@ if ($_SESSION['userlevel'] < '10') { include("includes/error-no-perm.inc.php");
{
echo("<h3>Delete User</h3>");
$pagetitle[] = "Delete user";
if (auth_usermanagement())
{
if ($vars['action'] == "del")

View File

@@ -16,6 +16,8 @@ if ($vars['type']) { $where .= " AND type = ?"; $sql_param[] = $vars[
if ($vars['location'] == "Unset") { $location_filter = ''; }
if ($vars['location']) { $location_filter = $vars['location']; }
$pagetitle[] = "Devices";
print_optionbar_start();
if($vars['searchbar'] != "hide")

View File

@@ -4,6 +4,8 @@ include("includes/javascript-interfacepicker.inc.php");
echo("<div style='margin: 10px;'>");
$pagetitle[] = "Edit user";
if ($_SESSION['userlevel'] != '10') { include("includes/error-no-perm.inc.php"); } else
{
if ($vars['user_id'])

View File

@@ -10,6 +10,8 @@ if ($vars['action'] == "expunge" && $_SESSION['userlevel'] >= '10')
$numresults = 250;
$pagetitle[] = "Eventlog";
print_optionbar_start();
if (is_numeric($vars['page']))

View File

@@ -29,6 +29,8 @@ if (!$vars['view']) { $vars['view'] = "detail"; }
$link_array = array('page' => 'health');
$pagetitle[] = "Health";
print_optionbar_start('', '');
echo('<span style="font-weight: bold;">Health</span> &#187; ');

View File

@@ -43,6 +43,8 @@
<?php
$pagetitle[] = "Inventory";
print_optionbar_end();
$param = array();

View File

@@ -1,5 +1,7 @@
<?php
$pagetitle[] = "Locations";
print_optionbar_start();
echo('<span style="font-weight: bold;">Locations</span> &#187; ');

View File

@@ -1,5 +1,7 @@
<?php
$pagetitle[] = "Ports";
### Set Defaults here
if(!isset($vars['format'])) { $vars['format'] = "list_basic"; }

View File

@@ -1,4 +1,7 @@
<?php
$pagetitle[] = "Preferences";
echo("<div style='margin: 10px'>");
echo("<h3>User Preferences</h3>");

View File

@@ -1,5 +1,7 @@
<?php
$pagetitle[] = "Pseudowires";
if(!isset($vars['view'])) { $vars['view'] = 'detail'; }
$link_array = array('page' => 'pseudowires');

View File

@@ -1,5 +1,7 @@
<?php
$pagetitle[] = "Routing";
if ($_GET['optb'] == "graphs" || $_GET['optc'] == "graphs") { $graphs = "graphs"; } else { $graphs = "nographs"; }
#$datas[] = 'overview';

View File

@@ -1,5 +1,7 @@
<?php
$pagetitle[] = "Search";
$sections = array('ipv4' => 'IPv4 Address', 'ipv6' => 'IPv6 Address', 'mac' => 'MAC Address');
if (!isset($vars['search'])) { $vars['search'] = "ipv4"; }

View File

@@ -1,5 +1,7 @@
<?php
$pagetitle[] = "Services";
print_optionbar_start();
echo('<span style="font-weight: bold;">Services</span> &#187; ');

View File

@@ -1,6 +1,12 @@
<?php if ($_GET['opta'] == "expunge" && $_SESSION['userlevel'] >= '10') { dbFetchCell("TRUNCATE TABLE `syslog`"); } ?>
<?php
<?php print_optionbar_start('25'); ?>
if ($_vars['action'] == "expunge" && $_SESSION['userlevel'] >= '10') { dbFetchCell("TRUNCATE TABLE `syslog`"); }
print_optionbar_start('25');
$pagetitle[] = "Syslog";
?>
<form method="post" action="">
<span style="font-weight: bold;">Syslog</span> &#187;