Improve custom graph interface - #66
This commit is contained in:
parent
09e1b8ce1c
commit
48a04d6c47
|
@ -2411,16 +2411,10 @@ function ui_print_page_header ($title, $icon = "", $return = false, $help = "",
|
|||
$separator_class = "separator_view";
|
||||
}
|
||||
|
||||
|
||||
$buffer = '<div id="'.$type2.'" style=""><div id="menu_tab_left">';
|
||||
|
||||
|
||||
$buffer .= '<ul class="mn"><li class="' . $type . '"> ' . ' ';
|
||||
|
||||
if(strpos($title, "Monitoring » Services »") != -1){
|
||||
$title = str_replace("Monitoring » Services » Service Map » ",'',$title);
|
||||
}
|
||||
|
||||
$buffer .= '<span style="margin-right:10px;">' .
|
||||
ui_print_truncate_text($title, $numChars);
|
||||
|
||||
|
|
|
@ -132,6 +132,9 @@ if ($view_graph) {
|
|||
|
||||
if (check_acl ($config['id_user'], 0, "RW")) {
|
||||
$options = array(
|
||||
'graph_list' => array('active' => false,
|
||||
'text' => '<a href="index.php?sec=reporting&sec2=godmode/reporting/graphs">' .
|
||||
html_print_image("images/list.png", true, array ("title" => __('Graph list'))) .'</a>'),
|
||||
'main' => array('active' => false,
|
||||
'text' => '<a href="index.php?sec=reporting&sec2=godmode/reporting/graph_builder&tab=main&edit_graph=1&id=' . $id_graph . '">' .
|
||||
html_print_image("images/chart.png", true, array ("title" => __('Main data'))) .'</a>'),
|
||||
|
@ -161,9 +164,9 @@ if ($view_graph) {
|
|||
}
|
||||
|
||||
// Header
|
||||
ui_print_page_header (__('Reporting') . " » " .
|
||||
__('Custom graphs') . " - " . $graph['name'],
|
||||
"images/chart.png", false, "", false, $options);
|
||||
|
||||
ui_print_page_header ($graph['name'],
|
||||
"images/chart.png", false, "", false, $options);
|
||||
|
||||
$graph_return = custom_graphs_print($id_graph, $height, $width, $period, $stacked, true, $unixdate, false, 'white',
|
||||
array(), '', array(), array(), true, true, true, true, 1, false, false, $percentil, false);
|
||||
|
|
Loading…
Reference in New Issue