Commit version 24.12.13800
This commit is contained in:
@ -4,43 +4,41 @@
|
||||
*
|
||||
* This file is part of Observium.
|
||||
*
|
||||
* @package observium
|
||||
* @subpackage web
|
||||
* @copyright (C) 2006-2013 Adam Armstrong, (C) 2013-2020 Observium Limited
|
||||
* @package observium
|
||||
* @subpackage web
|
||||
* @copyright (C) Adam Armstrong
|
||||
*
|
||||
*/
|
||||
|
||||
$link_array = [
|
||||
'page' => 'device',
|
||||
'device' => $device['device_id'],
|
||||
'tab' => 'routing',
|
||||
'proto' => 'vrf'
|
||||
'page' => 'device',
|
||||
'device' => $device['device_id'],
|
||||
'tab' => 'routing',
|
||||
'proto' => 'vrf'
|
||||
];
|
||||
|
||||
$navbar = array('brand' => "VRFs", 'class' => "navbar-narrow");
|
||||
$navbar = ['brand' => "VRFs", 'class' => "navbar-narrow"];
|
||||
|
||||
$navbar['options']['basic']['text'] = 'Basic';
|
||||
$navbar['options']['basic']['text'] = 'Basic';
|
||||
// $navbar['options']['details']['text'] = 'Details';
|
||||
$navbar['options']['graphs'] = array('text' => 'Graphs', 'class' => 'pull-right', 'icon' => $config['icon']['graphs']);
|
||||
$navbar['options']['graphs'] = ['text' => 'Graphs', 'class' => 'pull-right', 'icon' => $config['icon']['graphs']];
|
||||
|
||||
foreach ($navbar['options'] as $option => $array)
|
||||
{
|
||||
if ($vars['view'] == $option) { $navbar['options'][$option]['class'] .= " active"; }
|
||||
$navbar['options'][$option]['url'] = generate_url($link_array,array('view' => $option));
|
||||
foreach ($navbar['options'] as $option => $array) {
|
||||
if ($vars['view'] == $option) {
|
||||
$navbar['options'][$option]['class'] .= " active";
|
||||
}
|
||||
$navbar['options'][$option]['url'] = generate_url($link_array, ['view' => $option]);
|
||||
}
|
||||
|
||||
foreach (array('graphs') as $type)
|
||||
{
|
||||
foreach ($config['graph_types']['port'] as $option => $data)
|
||||
{
|
||||
if ($vars['view'] == $type && $vars['graph'] == $option)
|
||||
{
|
||||
$navbar['options'][$type]['suboptions'][$option]['class'] = 'active';
|
||||
$navbar['options'][$type]['text'] .= ' ('.$data['name'].')';
|
||||
foreach (['graphs'] as $type) {
|
||||
foreach ($config['graph_types']['port'] as $option => $data) {
|
||||
if ($vars['view'] == $type && $vars['graph'] == $option) {
|
||||
$navbar['options'][$type]['suboptions'][$option]['class'] = 'active';
|
||||
$navbar['options'][$type]['text'] .= ' (' . $data['name'] . ')';
|
||||
}
|
||||
$navbar['options'][$type]['suboptions'][$option]['text'] = $data['name'];
|
||||
$navbar['options'][$type]['suboptions'][$option]['url'] = generate_url($link_array, ['view' => $type, 'graph' => $option]);
|
||||
}
|
||||
$navbar['options'][$type]['suboptions'][$option]['text'] = $data['name'];
|
||||
$navbar['options'][$type]['suboptions'][$option]['url'] = generate_url($link_array, array('view' => $type, 'graph' => $option));
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@ -50,9 +48,8 @@ unset($navbar);
|
||||
echo generate_box_open();
|
||||
|
||||
echo '<table class="table table-striped">';
|
||||
foreach (dbFetchRows("SELECT * FROM `vrfs` WHERE `device_id` = ? ORDER BY `vrf_name`", array($device['device_id'])) as $vrf)
|
||||
{
|
||||
include($config['html_dir']."/includes/print-vrf.inc.php");
|
||||
foreach (dbFetchRows("SELECT * FROM `vrfs` WHERE `device_id` = ? ORDER BY `vrf_name`", [$device['device_id']]) as $vrf) {
|
||||
include($config['html_dir'] . "/includes/print-vrf.inc.php");
|
||||
}
|
||||
|
||||
echo "</table>";
|
||||
|
Reference in New Issue
Block a user