Tree view metaconsole view like nodo
This commit is contained in:
parent
862e1c0ad3
commit
63ecb7eb0b
|
@ -588,7 +588,7 @@ function treeview_printTable($id_agente, $server_data=[], $no_head=false)
|
|||
|
||||
$hashdata = md5($hashdata);
|
||||
if ((bool) $grants_on_node === true && (bool) $user_access_node !== false) {
|
||||
$urlAgent = 'sendHash(\''.$server_data['server_url'].'/index.php?sec=estado&sec2=operation/agentes/ver_agente&id_agente='.$agent['id_agente'].'\')';
|
||||
$urlAgent = $server_data['server_url'].'/index.php?sec=estado&sec2=operation/agentes/ver_agente&id_agente='.$agent['id_agente'];
|
||||
} else {
|
||||
$urlAgent = '';
|
||||
}
|
||||
|
|
|
@ -855,7 +855,7 @@ function flot_slicesbar_graph(
|
|||
$full_legend_date = false;
|
||||
}
|
||||
|
||||
if (!$date_to) {
|
||||
if (!$date_to || $date_to === '1') {
|
||||
$date_to = get_system_time();
|
||||
}
|
||||
|
||||
|
|
|
@ -27,11 +27,7 @@
|
|||
*/
|
||||
|
||||
// Begin.
|
||||
if (is_metaconsole() === true) {
|
||||
ui_require_css_file('tree_meta');
|
||||
} else {
|
||||
ui_require_css_file('tree');
|
||||
}
|
||||
ui_require_css_file('tree');
|
||||
|
||||
ui_require_css_file('fixed-bottom-box');
|
||||
|
||||
|
@ -168,10 +164,6 @@ switch ($tab) {
|
|||
break;
|
||||
}
|
||||
|
||||
if (is_metaconsole() === true) {
|
||||
$tabs = [];
|
||||
}
|
||||
|
||||
if (!$strict_acl) {
|
||||
$header_title = $header_title.' » '.$header_sub_title;
|
||||
}
|
||||
|
@ -373,11 +365,7 @@ html_print_input_hidden('tag-id', $tag_id);
|
|||
ui_include_time_picker();
|
||||
ui_require_jquery_file('ui.datepicker-'.get_user_language(), 'include/javascript/i18n/');
|
||||
|
||||
if (is_metaconsole() === true) {
|
||||
ui_require_javascript_file('TreeControllerMeta', 'include/javascript/tree/');
|
||||
} else {
|
||||
ui_require_javascript_file('TreeController', 'include/javascript/tree/');
|
||||
}
|
||||
ui_require_javascript_file('TreeController', 'include/javascript/tree/');
|
||||
|
||||
ui_print_spinner(__('Loading'));
|
||||
|
||||
|
@ -388,10 +376,6 @@ html_print_div(
|
|||
]
|
||||
);
|
||||
|
||||
if (is_metaconsole() === true) {
|
||||
echo '</div>';
|
||||
}
|
||||
|
||||
$infoHeadTitle = 'Sombra oscura';
|
||||
?>
|
||||
|
||||
|
@ -505,7 +489,7 @@ $infoHeadTitle = 'Sombra oscura';
|
|||
emptyMessage: "<?php echo __('No data found'); ?>",
|
||||
foundMessage: foundMessage,
|
||||
tree: data.tree,
|
||||
baseURL: "<?php echo ui_get_full_url(false, false, false, is_metaconsole()); ?>",
|
||||
baseURL: "<?php echo ui_get_full_url(false, false, false, false); ?>",
|
||||
ajaxURL: "<?php echo ui_get_full_url('ajax.php', false, false, false); ?>",
|
||||
filter: parameters['filter'],
|
||||
counterTitles: {
|
||||
|
|
|
@ -4206,3 +4206,17 @@ CREATE TABLE `tevent_sound` (
|
|||
`sound` TEXT NULL,
|
||||
`active` TINYINT NOT NULL DEFAULT '1',
|
||||
PRIMARY KEY (`id`)) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
||||
|
||||
-- ---------------------------------------------------------------------
|
||||
-- Table `tsesion_filter`
|
||||
-- ---------------------------------------------------------------------
|
||||
CREATE TABLE IF NOT EXISTS `tsesion_filter` (
|
||||
`id_filter` INT NOT NULL AUTO_INCREMENT,
|
||||
`id_name` TEXT NULL,
|
||||
`text` TEXT NULL,
|
||||
`period` TEXT NULL,
|
||||
`ip` TEXT NULL,
|
||||
`type` TEXT NULL,
|
||||
`user` TEXT NULL,
|
||||
PRIMARY KEY (`id_filter`)
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
Loading…
Reference in New Issue