fixed styles
This commit is contained in:
parent
56e4770b93
commit
bac1a7bf65
|
@ -137,8 +137,6 @@ echo $formHidden;
|
||||||
$table = new stdClass();
|
$table = new stdClass();
|
||||||
$table->width = '100%';
|
$table->width = '100%';
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
$table->class = 'databox filter-table-adv';
|
$table->class = 'databox filter-table-adv';
|
||||||
$table->size = [];
|
$table->size = [];
|
||||||
$table->size[0] = '50%';
|
$table->size[0] = '50%';
|
||||||
|
|
|
@ -63,7 +63,7 @@ if (empty($idVisualConsole) === true) {
|
||||||
$idVisualConsole = get_parameter('id', 0);
|
$idVisualConsole = get_parameter('id', 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!defined('METACONSOLE')) {
|
if (is_metaconsole() === false) {
|
||||||
$action_name_parameter = 'action';
|
$action_name_parameter = 'action';
|
||||||
} else {
|
} else {
|
||||||
$action_name_parameter = 'action2';
|
$action_name_parameter = 'action2';
|
||||||
|
@ -93,7 +93,6 @@ $activeTab = get_parameterBetweenListValues(
|
||||||
'data'
|
'data'
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
||||||
// Visual console creation tab and actions.
|
// Visual console creation tab and actions.
|
||||||
if (empty($idVisualConsole)) {
|
if (empty($idVisualConsole)) {
|
||||||
$visualConsole = null;
|
$visualConsole = null;
|
||||||
|
@ -137,7 +136,6 @@ $refr = (int) get_parameter('refr', $config['vc_refr']);
|
||||||
|
|
||||||
$id_layout = 0;
|
$id_layout = 0;
|
||||||
|
|
||||||
|
|
||||||
// Save/Update data in DB
|
// Save/Update data in DB
|
||||||
global $statusProcessInDB;
|
global $statusProcessInDB;
|
||||||
if (empty($statusProcessInDB)) {
|
if (empty($statusProcessInDB)) {
|
||||||
|
@ -798,14 +796,18 @@ if (!defined('METACONSOLE')) {
|
||||||
$hash = User::generatePublicHash();
|
$hash = User::generatePublicHash();
|
||||||
|
|
||||||
$buttons = [];
|
$buttons = [];
|
||||||
|
|
||||||
$buttons['consoles_list'] = [
|
$buttons['consoles_list'] = [
|
||||||
'active' => false,
|
'active' => false,
|
||||||
'text' => '<a href="index.php?sec=network&sec2=godmode/reporting/map_builder&refr='.$refr.'">'.html_print_image('images/logs@svg.svg', true, ['title' => __('Visual consoles list'), 'class' => 'main_menu_icon invert_filter']).'</a>',
|
'text' => '<a href="index.php?sec=network&sec2=godmode/reporting/map_builder&refr='.$refr.'">'.html_print_image('images/logs@svg.svg', true, ['title' => __('Visual consoles list'), 'class' => 'main_menu_icon invert_filter']).'</a>',
|
||||||
];
|
];
|
||||||
$buttons['public_link'] = [
|
$buttons['public_link'] = [
|
||||||
'active' => false,
|
'active' => false,
|
||||||
'text' => '<a href="'.ui_get_full_url('operation/visual_console/public_console.php?hash='.$hash.'&refr='.$refr.'&id_layout='.$idVisualConsole.'&id_user='.$config['id_user']).'">'.html_print_image('images/item-icon.svg', true, ['title' => __('Show link to public Visual Console'), 'class' => 'main_menu_icon invert_filter']).'</a>',
|
'text' => '<a href="'.ui_get_full_url(
|
||||||
|
'operation/visual_console/public_console.php?hash='.$hash.'&refr='.$refr.'&id_layout='.$idVisualConsole.'&id_user='.$config['id_user'],
|
||||||
|
false,
|
||||||
|
false,
|
||||||
|
false
|
||||||
|
).'">'.html_print_image('images/item-icon.svg', true, ['title' => __('Show link to public Visual Console'), 'class' => 'main_menu_icon invert_filter']).'</a>',
|
||||||
];
|
];
|
||||||
$buttons['data'] = [
|
$buttons['data'] = [
|
||||||
'active' => false,
|
'active' => false,
|
||||||
|
|
|
@ -141,12 +141,15 @@ if ($aclWrite === true || $aclManage === true) {
|
||||||
'edit'
|
'edit'
|
||||||
);
|
);
|
||||||
|
|
||||||
$baseUrl = 'index.php?sec=network&sec2=godmode/reporting/visual_console_builder&action='.$action;
|
$baseUrl = 'index.php?sec=network&sec2=godmode/reporting/visual_console_builder&'.((is_metaconsole() === true) ? 'action2' : 'action').'='.$action;
|
||||||
|
|
||||||
$hash = md5($config['dbpass'].$visualConsoleId.$config['id_user']);
|
$hash = md5($config['dbpass'].$visualConsoleId.$config['id_user']);
|
||||||
|
|
||||||
$options['public_link']['text'] = '<a href="'.ui_get_full_url(
|
$options['public_link']['text'] = '<a href="'.ui_get_full_url(
|
||||||
'operation/visual_console/public_console.php?hash='.$hash.'&id_layout='.$visualConsoleId.'&refr='.$refr.'&id_user='.$config['id_user']
|
'operation/visual_console/public_console.php?hash='.$hash.'&id_layout='.$visualConsoleId.'&refr='.$refr.'&id_user='.$config['id_user'],
|
||||||
|
false,
|
||||||
|
false,
|
||||||
|
false
|
||||||
).'" target="_blank">'.html_print_image(
|
).'" target="_blank">'.html_print_image(
|
||||||
'images/item-icon.svg',
|
'images/item-icon.svg',
|
||||||
true,
|
true,
|
||||||
|
|
Loading…
Reference in New Issue