Some fixes for the new networkmap in the enterprise metaconsole.
This commit is contained in:
parent
42dedd2d23
commit
98bf61fd12
|
@ -102,38 +102,82 @@ if ($edit_networkmap) {
|
|||
}
|
||||
|
||||
//+++++++++++++++TABLE TO CREATE/EDIT NETWORKMAP++++++++++++++++++++++
|
||||
|
||||
$buttons['list'] = array('active' => false,
|
||||
'text' => '<a href="index.php?sec=network&sec2=operation/maps/networkmap_list">' .
|
||||
html_print_image("images/list.png", true,
|
||||
array ('title' => __('List of networkmaps'))) .
|
||||
'</a>');
|
||||
|
||||
if ($create_networkmap) {
|
||||
ui_print_page_header(__('Create networkmap'), "images/bricks.png",
|
||||
false, "network_list", false, $buttons);
|
||||
}
|
||||
else {
|
||||
$buttons['edit'] = array('active' => true,
|
||||
'text' => '<a href="index.php?sec=maps&sec2=operation/maps/networkmap_editor&edit_networkmap=1&id_networkmap=' . $id . '">' .
|
||||
html_print_image("images/cog.png", true,
|
||||
array ('title' => __('Edit networkmap'))) .
|
||||
'</a>');
|
||||
if (enterprise_installed()) {
|
||||
$buttons['deleted'] = array('active' => false,
|
||||
'text' => '<a href="index.php?sec=maps&sec2=enterprise/operation/maps/networkmap_list_deleted&&id_networkmap=' . $id . '">' .
|
||||
html_print_image("images/list.png", true,
|
||||
array ('title' => __('Deleted list'))) .
|
||||
'</a>');
|
||||
}
|
||||
$buttons['networkmap'] = array('active' => false,
|
||||
'text' => '<a href="index.php?sec=network&sec2=operation/maps/networkmap&id=' . $id . '">' .
|
||||
html_print_image("images/op_network.png", true,
|
||||
array ('title' => __('View networkmap'))) .
|
||||
if (enterprise_installed() && defined('METACONSOLE')) {
|
||||
$buttons['list'] = array('active' => true,
|
||||
'text' => '<a href="index.php?sec=screen&sec2=screens/screens&action=networkmap">' .
|
||||
html_print_image("images/list.png", true,
|
||||
array ('title' => __('List of networkmaps'))) .
|
||||
'</a>');
|
||||
|
||||
ui_print_page_header(__('Update networkmap'), "images/bricks.png",
|
||||
false, "network_list", false, $buttons);
|
||||
if ($create_networkmap) {
|
||||
$title_header = __('Create networkmap');
|
||||
}
|
||||
else {
|
||||
$title_header = __('Update networkmap');
|
||||
|
||||
$buttons['edit'] = array('active' => true,
|
||||
'text' => '<a href="index.php?sec=screen&sec2=screens/screens&action=networkmap&edit_networkmap=1&id_networkmap=' . $id . '">' .
|
||||
html_print_image("images/cog.png", true,
|
||||
array ('title' => __('Edit networkmap'))) .
|
||||
'</a>');
|
||||
if (enterprise_installed()) {
|
||||
$buttons['deleted'] = array('active' => false,
|
||||
'text' => '<a href="index.php?sec=screen&sec2=screens/screens&action=networkmap&list_deleted=1&id_networkmap=' . $id . '">' .
|
||||
html_print_image("images/list.png", true,
|
||||
array ('title' => __('Deleted list'))) .
|
||||
'</a>');
|
||||
}
|
||||
$buttons['networkmap'] = array('active' => false,
|
||||
'text' => '<a href="index.php?sec=screen&sec2=screens/screens&action=networkmap&id=' . $id . '">' .
|
||||
html_print_image("images/op_network.png", true,
|
||||
array ('title' => __('View networkmap'))) .
|
||||
'</a>');
|
||||
}
|
||||
|
||||
// Bread crumbs
|
||||
ui_meta_add_breadcrumb(
|
||||
array('link' =>
|
||||
'index.php?sec=screen&sec2=screens/screens&action=networkmap',
|
||||
'text' => $title_header));
|
||||
|
||||
ui_meta_print_page_header($nav_bar);
|
||||
|
||||
//Print header
|
||||
ui_meta_print_header($title_header, "", $buttons);
|
||||
}
|
||||
else {
|
||||
$buttons['list'] = array('active' => false,
|
||||
'text' => '<a href="index.php?sec=network&sec2=operation/maps/networkmap_list">' .
|
||||
html_print_image("images/list.png", true,
|
||||
array ('title' => __('List of networkmaps'))) .
|
||||
'</a>');
|
||||
|
||||
if ($create_networkmap) {
|
||||
ui_print_page_header(__('Create networkmap'), "images/bricks.png",
|
||||
false, "network_list", false, $buttons);
|
||||
}
|
||||
else {
|
||||
$buttons['edit'] = array('active' => true,
|
||||
'text' => '<a href="index.php?sec=maps&sec2=operation/maps/networkmap_editor&edit_networkmap=1&id_networkmap=' . $id . '">' .
|
||||
html_print_image("images/cog.png", true,
|
||||
array ('title' => __('Edit networkmap'))) .
|
||||
'</a>');
|
||||
if (enterprise_installed()) {
|
||||
$buttons['deleted'] = array('active' => false,
|
||||
'text' => '<a href="index.php?sec=maps&sec2=enterprise/operation/maps/networkmap_list_deleted&&id_networkmap=' . $id . '">' .
|
||||
html_print_image("images/list.png", true,
|
||||
array ('title' => __('Deleted list'))) .
|
||||
'</a>');
|
||||
}
|
||||
$buttons['networkmap'] = array('active' => false,
|
||||
'text' => '<a href="index.php?sec=network&sec2=operation/maps/networkmap&id=' . $id . '">' .
|
||||
html_print_image("images/op_network.png", true,
|
||||
array ('title' => __('View networkmap'))) .
|
||||
'</a>');
|
||||
|
||||
ui_print_page_header(__('Update networkmap'), "images/bricks.png",
|
||||
false, "network_list", false, $buttons);
|
||||
}
|
||||
}
|
||||
|
||||
if ($not_found) {
|
||||
|
|
|
@ -467,7 +467,12 @@ html_print_input_hidden ('ids_multiple_delete', "");
|
|||
html_print_button(__('Delete'), 'del', false, 'submit_multiple_delete();', 'class="sub delete"');
|
||||
echo '</form>';
|
||||
|
||||
echo '<form method="post" style="float:right; margin-right: 10px;" action="index.php?sec=maps&sec2=operation/maps/networkmap_editor">';
|
||||
$action_url = 'index.php?sec=maps&sec2=operation/maps/networkmap_editor';
|
||||
if (enterprise_installed() && defined('METACONSOLE')) {
|
||||
$action_url = 'index.php?sec=screen&sec2=screens/screens';
|
||||
}
|
||||
|
||||
echo '<form method="post" style="float:right; margin-right: 10px;" action="' . $action_url . '">';
|
||||
html_print_input_hidden ('create_networkmap', 1);
|
||||
html_print_submit_button (__('Create'), "crt", false, 'class="sub next"');
|
||||
echo '</form>';
|
||||
|
|
Loading…
Reference in New Issue