more code cleanup (last commit for now)

git-svn-id: http://www.observium.org/svn/observer/trunk@2520 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
Tom Laermans
2011-09-20 14:37:54 +00:00
parent f87ed09e1b
commit 9a1bee1458
71 changed files with 296 additions and 293 deletions

View File

@@ -11,7 +11,7 @@ else
echo('<span style="font-weight: bold;">BGP</span> &#187; ');
if(!$_GET['optb']) { $_GET['optb'] = "all"; }
if (!$_GET['optb']) { $_GET['optb'] = "all"; }
if ($_GET['opta'] == "bgp" && $_GET['optb'] == "all") { echo("<span class='pagemenu-selected'>"); }
echo('<a href="routing/bgp/all/'.$graphs.'/">All</a>');
@@ -38,7 +38,7 @@ else
echo('<div style="float: right;">');
if(!$_GET['optc']) { $_GET['optc'] = "nographs"; }
if (!$_GET['optc']) { $_GET['optc'] = "nographs"; }
if ($_GET['opta'] == "bgp" && $_GET['optc'] == "nographs") { echo("<span class='pagemenu-selected'>"); }
echo('<a href="routing/bgp/'.$_GET['optb'].'/nographs/">No Graphs</a>');
@@ -148,9 +148,9 @@ else
echo(" <td></td>
<td width=150>" . $localaddresslink . "<br />".generate_device_link($peer, shorthost($peer['hostname']), 'routing/bgp/')."</td>
<td width=30><b>&#187;</b></td>
<td width=30><b>&#187;</b></td>
<td width=150>" . $peeraddresslink . "</td>
<td width=50><b>$peer_type</b></td>
<td width=50><b>$peer_type</b></td>
<td width=50>".$peer['afi']."</td>
<td><strong>AS" . $peer['bgpPeerRemoteAs'] . "</strong><br />" . $peer['astext'] . "</td>
<td><strong><span style='color: $admin_col;'>" . $peer['bgpPeerAdminStatus'] . "</span><br /><span style='color: $col;'>" . $peer['bgpPeerState'] . "</span></strong></td>
@@ -191,7 +191,7 @@ else
if ($_GET['optc'] == 'updates') { $peer['graph'] = 1; }
if($peer['graph'])
if ($peer['graph'])
{
$graph_array['height'] = "100";
$graph_array['width'] = "220";

View File

@@ -2,9 +2,9 @@
foreach ($datas as $type)
{
if($type != "overview")
if ($type != "overview")
{
if(is_file("pages/routing/overview/".mres($type).".inc.php")) {
if (is_file("pages/routing/overview/".mres($type).".inc.php")) {
$g_i++;
if (!is_integer($g_i/2)) { $row_colour = $list_colour_a; } else { $row_colour = $list_colour_b; }

View File

@@ -2,8 +2,8 @@
if ($_SESSION['userlevel'] >= '5') {
if(!isset($_GET['optb'])) { $_GET['optb'] = "all"; }
if(!isset($_GET['optc'])) { $_GET['optc'] = "basic"; }
if (!isset($_GET['optb'])) { $_GET['optb'] = "all"; }
if (!isset($_GET['optc'])) { $_GET['optc'] = "basic"; }
print_optionbar_start();