mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-31 01:35:36 +02:00
Merge branch 'ent-9662-second-round' of brutus.artica.es:artica/pandorafms into ent-9662-second-round
This commit is contained in:
commit
47c67ff131
@ -471,10 +471,6 @@ echo sprintf('<div id="header_table" class="header_table_%s">', $menuTypeClass);
|
|||||||
</div> <!-- Closes #table_header_inner -->
|
</div> <!-- Closes #table_header_inner -->
|
||||||
</div> <!-- Closes #table_header -->
|
</div> <!-- Closes #table_header -->
|
||||||
|
|
||||||
|
|
||||||
<!-- Notifications content wrapper-->
|
|
||||||
<div id='notification-content' class='invisible'/></div>
|
|
||||||
|
|
||||||
<!-- Old style div wrapper -->
|
<!-- Old style div wrapper -->
|
||||||
<div id="alert_messages" class="invisible"></div>
|
<div id="alert_messages" class="invisible"></div>
|
||||||
|
|
||||||
|
@ -34,7 +34,6 @@ $url = sprintf(
|
|||||||
$url_id_agente
|
$url_id_agente
|
||||||
);
|
);
|
||||||
|
|
||||||
enterprise_include('godmode/agentes/module_manager.php');
|
|
||||||
$isFunctionPolicies = enterprise_include_once('include/functions_policies.php');
|
$isFunctionPolicies = enterprise_include_once('include/functions_policies.php');
|
||||||
require_once $config['homedir'].'/include/functions_modules.php';
|
require_once $config['homedir'].'/include/functions_modules.php';
|
||||||
require_once $config['homedir'].'/include/functions_agents.php';
|
require_once $config['homedir'].'/include/functions_agents.php';
|
||||||
@ -51,196 +50,10 @@ if (isset($policy_page) === false) {
|
|||||||
$checked = (bool) get_parameter('checked');
|
$checked = (bool) get_parameter('checked');
|
||||||
$sec2 = (string) get_parameter('sec2');
|
$sec2 = (string) get_parameter('sec2');
|
||||||
|
|
||||||
// Table for filter bar.
|
|
||||||
$filterTable = new stdClass();
|
|
||||||
$filterTable->class = 'fixed_filter_bar';
|
|
||||||
$filterTable->data = [];
|
|
||||||
$filterTable->cellstyle[0][0] = 'width:0';
|
|
||||||
$filterTable->data[0][0] = __('Search');
|
|
||||||
$filterTable->data[1][0] .= html_print_input_text(
|
|
||||||
'search_string',
|
|
||||||
$search_string,
|
|
||||||
'',
|
|
||||||
30,
|
|
||||||
255,
|
|
||||||
true,
|
|
||||||
false,
|
|
||||||
false,
|
|
||||||
'',
|
|
||||||
''
|
|
||||||
);
|
|
||||||
$filterTable->data[0][0] .= html_print_input_hidden('search', 1, true);
|
|
||||||
|
|
||||||
if ((bool) $policy_page === false) {
|
|
||||||
$filterTable->data[0][1] = __('Show in hierachy mode');
|
|
||||||
$filterTable->data[1][1] = html_print_checkbox_switch(
|
|
||||||
'status_hierachy_mode',
|
|
||||||
'',
|
|
||||||
((string) $checked === 'true'),
|
|
||||||
true,
|
|
||||||
false,
|
|
||||||
'onChange=change_mod_filter();'
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
$filterTable->data[1][2] = html_print_submit_button(
|
|
||||||
__('Filter'),
|
|
||||||
'filter',
|
|
||||||
false,
|
|
||||||
[
|
|
||||||
'icon' => 'search',
|
|
||||||
'class' => 'float-right',
|
|
||||||
'mode' => 'secondary mini',
|
|
||||||
],
|
|
||||||
true
|
|
||||||
);
|
|
||||||
|
|
||||||
// Print filter table.
|
|
||||||
echo '<form id="create_module_type" method="post" action="'.$url.'">';
|
|
||||||
html_print_table($filterTable);
|
|
||||||
echo '</form>';
|
|
||||||
// Check if there is at least one server of each type available to assign that
|
|
||||||
// kind of modules. If not, do not show server type in combo.
|
|
||||||
$network_available = db_get_sql(
|
|
||||||
'SELECT count(*)
|
|
||||||
FROM tserver
|
|
||||||
WHERE server_type = '.SERVER_TYPE_NETWORK
|
|
||||||
);
|
|
||||||
// POSTGRESQL AND ORACLE COMPATIBLE.
|
|
||||||
$wmi_available = db_get_sql(
|
|
||||||
'SELECT count(*)
|
|
||||||
FROM tserver
|
|
||||||
WHERE server_type = '.SERVER_TYPE_WMI
|
|
||||||
);
|
|
||||||
// POSTGRESQL AND ORACLE COMPATIBLE.
|
|
||||||
$plugin_available = db_get_sql(
|
|
||||||
'SELECT count(*)
|
|
||||||
FROM tserver
|
|
||||||
WHERE server_type = '.SERVER_TYPE_PLUGIN
|
|
||||||
);
|
|
||||||
// POSTGRESQL AND ORACLE COMPATIBLE.
|
|
||||||
$prediction_available = db_get_sql(
|
|
||||||
'SELECT count(*)
|
|
||||||
FROM tserver
|
|
||||||
WHERE server_type = '.SERVER_TYPE_PREDICTION
|
|
||||||
);
|
|
||||||
// POSTGRESQL AND ORACLE COMPATIBLE.
|
|
||||||
$web_available = db_get_sql(
|
|
||||||
'SELECT count(*)
|
|
||||||
FROM tserver
|
|
||||||
WHERE server_type = '.SERVER_TYPE_WEB
|
|
||||||
);
|
|
||||||
// POSTGRESQL AND ORACLE COMPATIBLE.
|
|
||||||
// Development mode to use all servers.
|
|
||||||
if ($develop_bypass || is_metaconsole()) {
|
|
||||||
$network_available = 1;
|
|
||||||
$wmi_available = 1;
|
|
||||||
$plugin_available = 1;
|
|
||||||
// FIXME when prediction predictions server modules can be configured.
|
|
||||||
// on metaconsole.
|
|
||||||
$prediction_available = (is_metaconsole() === true) ? 0 : 1;
|
|
||||||
}
|
|
||||||
|
|
||||||
$modules = [];
|
|
||||||
$modules['dataserver'] = __('Create a new data server module');
|
|
||||||
if ($network_available) {
|
|
||||||
$modules['networkserver'] = __('Create a new network server module');
|
|
||||||
}
|
|
||||||
|
|
||||||
if ($plugin_available) {
|
|
||||||
$modules['pluginserver'] = __('Create a new plugin server module');
|
|
||||||
}
|
|
||||||
|
|
||||||
if ($wmi_available) {
|
|
||||||
$modules['wmiserver'] = __('Create a new WMI server module');
|
|
||||||
}
|
|
||||||
|
|
||||||
if ($prediction_available) {
|
|
||||||
$modules['predictionserver'] = __('Create a new prediction server module');
|
|
||||||
}
|
|
||||||
|
|
||||||
if (is_metaconsole() === true || $web_available >= '1') {
|
|
||||||
$modules['webserver'] = __('Create a new web Server module');
|
|
||||||
}
|
|
||||||
|
|
||||||
if (enterprise_installed() === true) {
|
|
||||||
set_enterprise_module_types($modules);
|
|
||||||
}
|
|
||||||
|
|
||||||
if (strstr($sec2, 'enterprise/godmode/policies/policies') !== false) {
|
|
||||||
// It is unset because the policies haven't a table tmodule_synth and the
|
|
||||||
// some part of code to apply this kind of modules in policy agents.
|
|
||||||
// But in the future maybe will be good to make this feature, but remember
|
|
||||||
// the modules to show in syntetic module policy form must be the policy
|
|
||||||
// modules from the same policy.
|
|
||||||
unset($modules['predictionserver']);
|
|
||||||
if (enterprise_installed() === true) {
|
|
||||||
unset($modules['webux']);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
if (($policy_page === true) || (isset($agent) === true)) {
|
|
||||||
if ($policy_page === true) {
|
|
||||||
$show_creation = is_management_allowed();
|
|
||||||
} else {
|
|
||||||
if (isset($all_groups) === false) {
|
|
||||||
$all_groups = agents_get_all_groups_agent(
|
|
||||||
$agent['id_agente'],
|
|
||||||
$agent['id_grupo']
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
$show_creation = check_acl_one_of_groups($config['id_user'], $all_groups, 'AW') === true;
|
|
||||||
}
|
|
||||||
} else {
|
|
||||||
$show_creation = false;
|
|
||||||
}
|
|
||||||
|
|
||||||
if ($show_creation === true) {
|
|
||||||
// Create module/type combo.
|
|
||||||
$tableCreateModule = new stdClass();
|
|
||||||
$tableCreateModule->id = 'create';
|
|
||||||
$tableCreateModule->class = 'create_module_dialog';
|
|
||||||
$tableCreateModule->width = '100%';
|
|
||||||
$tableCreateModule->data = [];
|
|
||||||
$tableCreateModule->style = [];
|
|
||||||
|
|
||||||
$tableCreateModule->data['caption_type'] = html_print_input_hidden('edit_module', 1);
|
|
||||||
$tableCreateModule->data['caption_type'] .= __('Type');
|
|
||||||
$tableCreateModule->data['type'] = html_print_select(
|
|
||||||
$modules,
|
|
||||||
'moduletype',
|
|
||||||
'',
|
|
||||||
'',
|
|
||||||
'',
|
|
||||||
'',
|
|
||||||
true,
|
|
||||||
false,
|
|
||||||
false,
|
|
||||||
'',
|
|
||||||
false,
|
|
||||||
'width:380px;'
|
|
||||||
);
|
|
||||||
|
|
||||||
// Link for get more modules.
|
|
||||||
if ((bool) $config['disable_help'] === false) {
|
|
||||||
$tableCreateModule->data['get_more_modules'] = html_print_anchor(
|
|
||||||
[
|
|
||||||
'href' => 'https://pandorafms.com/Library/Library/',
|
|
||||||
'target' => '_blank',
|
|
||||||
'class' => 'color-black-grey',
|
|
||||||
'content' => __('Get more modules on Monitoring Library'),
|
|
||||||
],
|
|
||||||
true
|
|
||||||
);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
if (isset($id_agente) === false) {
|
if (isset($id_agente) === false) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
$module_action = (string) get_parameter('module_action');
|
$module_action = (string) get_parameter('module_action');
|
||||||
|
|
||||||
if ($module_action === 'delete') {
|
if ($module_action === 'delete') {
|
||||||
@ -1256,35 +1069,6 @@ if ((bool) check_acl_one_of_groups($config['id_user'], $all_groups, 'AW') === tr
|
|||||||
[ 'type' => 'data_table' ]
|
[ 'type' => 'data_table' ]
|
||||||
);
|
);
|
||||||
echo '</form>';
|
echo '</form>';
|
||||||
|
|
||||||
|
|
||||||
$modalCreateModule = '<form name="create_module_form" method="post">';
|
|
||||||
$modalCreateModule .= html_print_table($tableCreateModule, true);
|
|
||||||
$modalCreateModule .= html_print_div(
|
|
||||||
[
|
|
||||||
'class' => 'action-buttons',
|
|
||||||
'content' => html_print_submit_button(
|
|
||||||
__('Create'),
|
|
||||||
'create_module',
|
|
||||||
false,
|
|
||||||
[
|
|
||||||
'icon' => 'next',
|
|
||||||
'mode' => 'mini secondary',
|
|
||||||
],
|
|
||||||
true
|
|
||||||
),
|
|
||||||
],
|
|
||||||
true
|
|
||||||
);
|
|
||||||
$modalCreateModule .= '</form>';
|
|
||||||
|
|
||||||
html_print_div(
|
|
||||||
[
|
|
||||||
'id' => 'modal',
|
|
||||||
'style' => 'display: none',
|
|
||||||
'content' => $modalCreateModule,
|
|
||||||
]
|
|
||||||
);
|
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
|
|
||||||
|
@ -444,7 +444,7 @@ $tableBasicThresholds->data = [];
|
|||||||
$tableBasicThresholds->rowclass['caption_warning_threshold'] = 'field_half_width pdd_t_10px';
|
$tableBasicThresholds->rowclass['caption_warning_threshold'] = 'field_half_width pdd_t_10px';
|
||||||
$tableBasicThresholds->rowclass['warning_threshold'] = 'field_half_width';
|
$tableBasicThresholds->rowclass['warning_threshold'] = 'field_half_width';
|
||||||
$tableBasicThresholds->data['caption_warning_threshold'][0] .= __('Warning threshold').' ';
|
$tableBasicThresholds->data['caption_warning_threshold'][0] .= __('Warning threshold').' ';
|
||||||
if ($edit_module === false || (isset($stringTypeModule) === true && $stringTypeModule === false)) {
|
if ($edit_module === false && (isset($stringTypeModule) === false || $stringTypeModule === false)) {
|
||||||
$tableBasicThresholds->data['caption_warning_threshold'][0] .= '<span class="font_11" id="caption_minmax_warning">('.__('Min / Max').')</span>';
|
$tableBasicThresholds->data['caption_warning_threshold'][0] .= '<span class="font_11" id="caption_minmax_warning">('.__('Min / Max').')</span>';
|
||||||
$tableBasicThresholds->data['warning_threshold'][0] .= html_print_input_text(
|
$tableBasicThresholds->data['warning_threshold'][0] .= html_print_input_text(
|
||||||
'min_warning',
|
'min_warning',
|
||||||
@ -482,7 +482,7 @@ if ($edit_module === false || (isset($stringTypeModule) === true && $stringTypeM
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($edit_module === false || (isset($stringTypeModule) === true && $stringTypeModule === true)) {
|
if ($edit_module === false && isset($stringTypeModule) === true && $stringTypeModule === true) {
|
||||||
$basicThresholdsIntervalWarning = [];
|
$basicThresholdsIntervalWarning = [];
|
||||||
$basicThresholdsIntervalWarning[] = '<span>'.__('Inverse interval').'</span>';
|
$basicThresholdsIntervalWarning[] = '<span>'.__('Inverse interval').'</span>';
|
||||||
$basicThresholdsIntervalWarning[] = html_print_checkbox_switch(
|
$basicThresholdsIntervalWarning[] = html_print_checkbox_switch(
|
||||||
@ -531,7 +531,7 @@ $tableBasicThresholds->data['switch_warning_threshold'][0] .= html_print_div(
|
|||||||
$tableBasicThresholds->rowclass['caption_critical_threshold'] = 'field_half_width pdd_t_10px';
|
$tableBasicThresholds->rowclass['caption_critical_threshold'] = 'field_half_width pdd_t_10px';
|
||||||
$tableBasicThresholds->rowclass['critical_threshold'] = 'field_half_width';
|
$tableBasicThresholds->rowclass['critical_threshold'] = 'field_half_width';
|
||||||
$tableBasicThresholds->data['caption_critical_threshold'][0] .= __('Critical threshold').' ';
|
$tableBasicThresholds->data['caption_critical_threshold'][0] .= __('Critical threshold').' ';
|
||||||
if ($edit_module === false || (isset($stringTypeModule) === true && $stringTypeModule === false)) {
|
if ($edit_module === false && (isset($stringTypeModule) === false || $stringTypeModule === false)) {
|
||||||
$tableBasicThresholds->data['caption_critical_threshold'][0] .= '<span class="font_11" id="caption_minmax_critical">('.__('Min / Max').')</span>';
|
$tableBasicThresholds->data['caption_critical_threshold'][0] .= '<span class="font_11" id="caption_minmax_critical">('.__('Min / Max').')</span>';
|
||||||
$tableBasicThresholds->data['critical_threshold'][0] .= html_print_input_text(
|
$tableBasicThresholds->data['critical_threshold'][0] .= html_print_input_text(
|
||||||
'min_critical',
|
'min_critical',
|
||||||
@ -569,7 +569,7 @@ if ($edit_module === false || (isset($stringTypeModule) === true && $stringTypeM
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($edit_module === false || (isset($stringTypeModule) === true && $stringTypeModule === true)) {
|
if ($edit_module === false && isset($stringTypeModule) === true && $stringTypeModule === true) {
|
||||||
$basicThresholdsIntervalCritical = [];
|
$basicThresholdsIntervalCritical = [];
|
||||||
$basicThresholdsIntervalCritical[] = '<span>'.__('Inverse interval').'</span>';
|
$basicThresholdsIntervalCritical[] = '<span>'.__('Inverse interval').'</span>';
|
||||||
$basicThresholdsIntervalCritical[] = html_print_checkbox_switch(
|
$basicThresholdsIntervalCritical[] = html_print_checkbox_switch(
|
||||||
|
@ -25,7 +25,20 @@ if (! check_acl($config['id_user'], 0, 'PM') && ! is_user_admin($config['id_user
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Header
|
// Header
|
||||||
ui_print_page_header(__('Link management'), 'images/extensions.png', false, '', true, '');
|
ui_print_standard_header(
|
||||||
|
__('Admin tools'),
|
||||||
|
'images/extensions.png',
|
||||||
|
false,
|
||||||
|
'',
|
||||||
|
true,
|
||||||
|
[],
|
||||||
|
[
|
||||||
|
[
|
||||||
|
'link' => '',
|
||||||
|
'label' => __('Link management'),
|
||||||
|
],
|
||||||
|
]
|
||||||
|
);
|
||||||
|
|
||||||
|
|
||||||
if (isset($_POST['create'])) {
|
if (isset($_POST['create'])) {
|
||||||
@ -98,7 +111,7 @@ if ((isset($_GET['form_add'])) or (isset($_GET['form_edit']))) {
|
|||||||
$link = '';
|
$link = '';
|
||||||
}
|
}
|
||||||
|
|
||||||
echo '<table class="databox filters" cellpadding="4" cellspacing="4" width="100%">';
|
echo '<table class="databox filters filter-table-adv max_floating_element_size" cellpadding="4" cellspacing="4" width="100%">';
|
||||||
echo '<form name="ilink" method="post" action="index.php?sec=gsetup&sec2=godmode/setup/links">';
|
echo '<form name="ilink" method="post" action="index.php?sec=gsetup&sec2=godmode/setup/links">';
|
||||||
if ($creation_mode == 1) {
|
if ($creation_mode == 1) {
|
||||||
echo "<input type='hidden' name='create' value='1'>";
|
echo "<input type='hidden' name='create' value='1'>";
|
||||||
@ -112,17 +125,42 @@ if ((isset($_GET['form_add'])) or (isset($_GET['form_edit']))) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
echo "'>";
|
echo "'>";
|
||||||
echo '<tr>
|
echo '<tr>';
|
||||||
<td class="datos">'.__('Link name').'</td>
|
echo '<td class="w50p">';
|
||||||
<td class="datos"><input type="text" class="text_input" name="name" size="50" value="'.$nombre.'"></td>';
|
echo html_print_label_input_block(
|
||||||
echo '</tr><tr>
|
__('Link name'),
|
||||||
<td class="datos2">'.__('Link').'</td>
|
html_print_input_text(
|
||||||
<td class="datos2">
|
'name',
|
||||||
<input type="text" class="text_input" name="link" size="50" value="'.$link.'"></td>';
|
$nombre,
|
||||||
echo '</tr>';
|
'',
|
||||||
|
50,
|
||||||
|
255,
|
||||||
|
true,
|
||||||
|
false,
|
||||||
|
true,
|
||||||
|
'',
|
||||||
|
'text_input'
|
||||||
|
)
|
||||||
|
);
|
||||||
|
echo '</td>';
|
||||||
|
echo '<td class="w50p">';
|
||||||
|
echo html_print_label_input_block(
|
||||||
|
__('Link'),
|
||||||
|
html_print_input_text(
|
||||||
|
'link',
|
||||||
|
$link,
|
||||||
|
'',
|
||||||
|
50,
|
||||||
|
255,
|
||||||
|
true,
|
||||||
|
false,
|
||||||
|
true,
|
||||||
|
'',
|
||||||
|
'text_input'
|
||||||
|
)
|
||||||
|
);
|
||||||
|
echo '</td></tr>';
|
||||||
echo '</table>';
|
echo '</table>';
|
||||||
echo "<table width='100%'>";
|
|
||||||
echo "<tr><td align='right'>";
|
|
||||||
if (isset($_GET['form_add']) === true) {
|
if (isset($_GET['form_add']) === true) {
|
||||||
$actionForPerform = __('Create');
|
$actionForPerform = __('Create');
|
||||||
$iconForPerform = 'wand';
|
$iconForPerform = 'wand';
|
||||||
@ -131,16 +169,14 @@ if ((isset($_GET['form_add'])) or (isset($_GET['form_edit']))) {
|
|||||||
$iconForPerform = 'update';
|
$iconForPerform = 'update';
|
||||||
}
|
}
|
||||||
|
|
||||||
html_print_div(
|
html_print_action_buttons(
|
||||||
[
|
html_print_submit_button(
|
||||||
'class' => 'action-buttons',
|
$actionForPerform,
|
||||||
'content' => html_print_submit_button(
|
'crtbutton',
|
||||||
$actionForPerform,
|
false,
|
||||||
'crtbutton',
|
[ 'icon' => $iconForPerform ],
|
||||||
false,
|
true
|
||||||
[ 'icon' => $iconForPerform ]
|
)
|
||||||
),
|
|
||||||
],
|
|
||||||
);
|
);
|
||||||
|
|
||||||
echo '</form></td></tr></table>';
|
echo '</form></td></tr></table>';
|
||||||
@ -185,16 +221,14 @@ if ((isset($_GET['form_add'])) or (isset($_GET['form_edit']))) {
|
|||||||
echo "<tr><td align='right'>";
|
echo "<tr><td align='right'>";
|
||||||
echo "<form method='post' action='index.php?sec=gsetup&sec2=godmode/setup/links&form_add=1'>";
|
echo "<form method='post' action='index.php?sec=gsetup&sec2=godmode/setup/links&form_add=1'>";
|
||||||
|
|
||||||
html_print_div(
|
html_print_action_buttons(
|
||||||
[
|
html_print_submit_button(
|
||||||
'class' => 'action-buttons',
|
__('Add'),
|
||||||
'content' => html_print_submit_button(
|
'form_add',
|
||||||
__('Add'),
|
false,
|
||||||
'form_add',
|
[ 'icon' => 'wand' ],
|
||||||
false,
|
true
|
||||||
[ 'icon' => 'wand' ]
|
)
|
||||||
),
|
|
||||||
],
|
|
||||||
);
|
);
|
||||||
|
|
||||||
echo '</form></table>';
|
echo '</form></table>';
|
||||||
|
@ -155,13 +155,19 @@ class Diagnostics extends Wizard
|
|||||||
];
|
];
|
||||||
|
|
||||||
// Header.
|
// Header.
|
||||||
ui_print_page_header(
|
ui_print_standard_header(
|
||||||
__('%s Diagnostic tool', $this->product_name),
|
__('Admin tools'),
|
||||||
'images/gm_massive_operations.png',
|
'images/gm_massive_operations.png',
|
||||||
false,
|
false,
|
||||||
'',
|
'',
|
||||||
true,
|
true,
|
||||||
$header_buttons
|
$header_buttons,
|
||||||
|
[
|
||||||
|
[
|
||||||
|
'link' => '',
|
||||||
|
'label' => __('%s Diagnostic tool', $this->product_name),
|
||||||
|
],
|
||||||
|
]
|
||||||
);
|
);
|
||||||
|
|
||||||
// Print all Methods Diagnostic Info.
|
// Print all Methods Diagnostic Info.
|
||||||
@ -1569,7 +1575,7 @@ class Diagnostics extends Wizard
|
|||||||
[
|
[
|
||||||
'id' => $tableId,
|
'id' => $tableId,
|
||||||
'class' => 'info_table caption_table',
|
'class' => 'info_table caption_table',
|
||||||
'style' => 'width: 100%',
|
'style' => 'width: 99%',
|
||||||
'columns' => $columns,
|
'columns' => $columns,
|
||||||
'column_names' => $columnNames,
|
'column_names' => $columnNames,
|
||||||
'ajax_data' => [
|
'ajax_data' => [
|
||||||
|
@ -544,7 +544,7 @@ class HTML
|
|||||||
'container_class' => $input['toggle_container_class'],
|
'container_class' => $input['toggle_container_class'],
|
||||||
'img_a' => $input['toggle_img_a'],
|
'img_a' => $input['toggle_img_a'],
|
||||||
'img_b' => $input['toggle_img_b'],
|
'img_b' => $input['toggle_img_b'],
|
||||||
'clean' => (isset($input['toggle_clean']) ? $input['toggle_clean'] : true),
|
'clean' => (isset($input['toggle_clean']) ? $input['toggle_clean'] : false),
|
||||||
]
|
]
|
||||||
);
|
);
|
||||||
} else {
|
} else {
|
||||||
|
@ -4519,8 +4519,8 @@ function ui_print_toggle($data)
|
|||||||
(isset($data['toggle_class']) === true) ? $data['toggle_class'] : '',
|
(isset($data['toggle_class']) === true) ? $data['toggle_class'] : '',
|
||||||
(isset($data['container_class']) === true) ? $data['container_class'] : 'white-box-content',
|
(isset($data['container_class']) === true) ? $data['container_class'] : 'white-box-content',
|
||||||
(isset($data['main_class']) === true) ? $data['main_class'] : 'box-flat white_table_graph',
|
(isset($data['main_class']) === true) ? $data['main_class'] : 'box-flat white_table_graph',
|
||||||
(isset($data['img_a']) === true) ? $data['img_a'] : 'images/arrow_down_green.png',
|
(isset($data['img_a']) === true) ? $data['img_a'] : 'images/arrow@svg.svg',
|
||||||
(isset($data['img_b']) === true) ? $data['img_b'] : 'images/arrow_right_green.png',
|
(isset($data['img_b']) === true) ? $data['img_b'] : 'images/arrow@svg.svg',
|
||||||
(isset($data['clean']) === true) ? $data['clean'] : false,
|
(isset($data['clean']) === true) ? $data['clean'] : false,
|
||||||
(isset($data['reverseImg']) === true) ? $data['reverseImg'] : false,
|
(isset($data['reverseImg']) === true) ? $data['reverseImg'] : false,
|
||||||
(isset($data['switch']) === true) ? $data['switch'] : false,
|
(isset($data['switch']) === true) ? $data['switch'] : false,
|
||||||
|
@ -8,8 +8,8 @@
|
|||||||
text-align: center;
|
text-align: center;
|
||||||
font-size: 1.5em;
|
font-size: 1.5em;
|
||||||
font-weight: bolder;
|
font-weight: bolder;
|
||||||
color: #fff;
|
color: #000;
|
||||||
background: #282828;
|
background: var(--secondary-color);
|
||||||
padding: 8px;
|
padding: 8px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -598,7 +598,7 @@ ul li {
|
|||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
justify-content: space-evenly;
|
justify-content: space-evenly;
|
||||||
min-height: 53px;
|
min-height: 50px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.tabs_li {
|
.tabs_li {
|
||||||
@ -637,7 +637,7 @@ ul li {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.tabs_collapsed {
|
.tabs_collapsed {
|
||||||
height: 53px;
|
height: 50px;
|
||||||
display: flex;
|
display: flex;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
|
@ -489,14 +489,6 @@ li > .select2-selection {
|
|||||||
padding: 0px !important;
|
padding: 0px !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
.box-flat {
|
|
||||||
margin: 20px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.mrgn_20px {
|
|
||||||
margin: 20px !important;
|
|
||||||
}
|
|
||||||
|
|
||||||
.omnishell_results_wrapper {
|
.omnishell_results_wrapper {
|
||||||
max-width: 100% !important;
|
max-width: 100% !important;
|
||||||
}
|
}
|
||||||
@ -547,10 +539,6 @@ ul.datatable_filter > li > div.action-buttons > button {
|
|||||||
height: auto !important;
|
height: auto !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
.action_buttons_right_content {
|
|
||||||
padding-left: 20px;
|
|
||||||
}
|
|
||||||
|
|
||||||
#image-1,
|
#image-1,
|
||||||
#image-2 {
|
#image-2 {
|
||||||
padding-left: 0px !important;
|
padding-left: 0px !important;
|
||||||
@ -560,10 +548,6 @@ ul.datatable_filter > li > div.action-buttons > button {
|
|||||||
margin-bottom: 10px !important;
|
margin-bottom: 10px !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
.dataTables_length {
|
|
||||||
margin-bottom: 50px !important;
|
|
||||||
}
|
|
||||||
|
|
||||||
.item_status_tree_view {
|
.item_status_tree_view {
|
||||||
position: initial;
|
position: initial;
|
||||||
}
|
}
|
||||||
|
@ -297,6 +297,7 @@ td input[type="checkbox"] {
|
|||||||
padding: 10px;
|
padding: 10px;
|
||||||
margin-top: 2px;
|
margin-top: 2px;
|
||||||
display: table-cell;
|
display: table-cell;
|
||||||
|
height: 15px;
|
||||||
}
|
}
|
||||||
|
|
||||||
input[type="image"] {
|
input[type="image"] {
|
||||||
@ -4816,7 +4817,7 @@ div#dialog_messages table th:last-child {
|
|||||||
z-index: 900000;
|
z-index: 900000;
|
||||||
position: absolute;
|
position: absolute;
|
||||||
width: 550px;
|
width: 550px;
|
||||||
margin-top: -5px;
|
margin-top: 55px;
|
||||||
border-radius: 5px;
|
border-radius: 5px;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -7535,6 +7536,9 @@ div.graph div.legend table {
|
|||||||
.pdd_t_0px {
|
.pdd_t_0px {
|
||||||
padding-top: 0px;
|
padding-top: 0px;
|
||||||
}
|
}
|
||||||
|
.pdd_t_0px_important {
|
||||||
|
padding-top: 0px !important;
|
||||||
|
}
|
||||||
|
|
||||||
.pdd_t_3px {
|
.pdd_t_3px {
|
||||||
padding-top: 3px;
|
padding-top: 3px;
|
||||||
|
@ -67,11 +67,22 @@ table.agent_info_table tr {
|
|||||||
color: #fff !important;
|
color: #fff !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
div#head,
|
div#head {
|
||||||
#menu_tabs {
|
|
||||||
border-bottom: 1px solid #1a1a1a;
|
border-bottom: 1px solid #1a1a1a;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.menu_full_classic #menu_tabs {
|
||||||
|
height: 49px;
|
||||||
|
border-bottom: 1px solid #82b92e;
|
||||||
|
padding-bottom: 2px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.menu_full_collapsed #menu_tabs {
|
||||||
|
height: 49px;
|
||||||
|
border-bottom: 1px solid #82b92e;
|
||||||
|
padding-bottom: 1px;
|
||||||
|
}
|
||||||
|
|
||||||
#menu_full {
|
#menu_full {
|
||||||
border-right: 1px solid #111;
|
border-right: 1px solid #111;
|
||||||
}
|
}
|
||||||
@ -248,13 +259,10 @@ ol.steps li a {
|
|||||||
/* Tabs icons change color */
|
/* Tabs icons change color */
|
||||||
|
|
||||||
/* menu.css */
|
/* menu.css */
|
||||||
.operation {
|
.operation,
|
||||||
background-color: #252525;
|
|
||||||
}
|
|
||||||
|
|
||||||
.godmode,
|
.godmode,
|
||||||
#menu_full {
|
#menu_full {
|
||||||
background-color: #1a1a1a;
|
background-color: #222;
|
||||||
}
|
}
|
||||||
|
|
||||||
.button_collapse {
|
.button_collapse {
|
||||||
@ -264,11 +272,72 @@ ol.steps li a {
|
|||||||
.operation .selected,
|
.operation .selected,
|
||||||
.godmode .selected,
|
.godmode .selected,
|
||||||
.menu_icon:hover {
|
.menu_icon:hover {
|
||||||
background-color: #080808;
|
background-color: #191919;
|
||||||
|
}
|
||||||
|
|
||||||
|
.submenu_text,
|
||||||
|
.span_has_menu_text,
|
||||||
|
.title_menu_classic span {
|
||||||
|
font-size: 14px;
|
||||||
|
font-weight: normal;
|
||||||
|
letter-spacing: -0.3px;
|
||||||
|
height: 18px;
|
||||||
|
color: #fff;
|
||||||
|
}
|
||||||
|
|
||||||
|
.head_tab_selected span {
|
||||||
|
color: #fff;
|
||||||
|
}
|
||||||
|
|
||||||
|
.tabs_selected {
|
||||||
|
background-color: #1d7874;
|
||||||
|
}
|
||||||
|
|
||||||
|
.operation .menu_icon ul.submenu > li,
|
||||||
|
.godmode .menu_icon ul.submenu > li {
|
||||||
|
background-color: #222;
|
||||||
|
padding-left: 24px !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.submenu_not_selected:hover {
|
||||||
|
background-color: #171717 !important;
|
||||||
|
color: #fff !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.submenu_selected {
|
||||||
|
margin-bottom: 0px;
|
||||||
|
background-color: #171717 !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.submenu_selected_no_submenu {
|
||||||
|
background-color: #111 !important;
|
||||||
|
color: #ffffff !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
.sub_subMenu {
|
.sub_subMenu {
|
||||||
background-color: #343434;
|
font-weight: normal;
|
||||||
|
background-color: #171717;
|
||||||
|
padding-left: 1.5em;
|
||||||
|
color: #fff !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.sub_subMenu.selected {
|
||||||
|
font-weight: 600;
|
||||||
|
background-color: #111 !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.sub_subMenu:hover {
|
||||||
|
background-color: #141414;
|
||||||
|
}
|
||||||
|
|
||||||
|
.sub_subMenu.selected a {
|
||||||
|
color: #fff !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.span_has_menu_text {
|
||||||
|
font-weight: normal;
|
||||||
|
font-size: 9.4pt;
|
||||||
|
color: #fff;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* footer */
|
/* footer */
|
||||||
|
@ -1169,6 +1169,10 @@ if ($config['pure'] == 0) {
|
|||||||
$menuTypeClass = ($menuCollapsed === true) ? 'collapsed' : 'classic';
|
$menuTypeClass = ($menuCollapsed === true) ? 'collapsed' : 'classic';
|
||||||
// Container.
|
// Container.
|
||||||
echo '<div id="container">';
|
echo '<div id="container">';
|
||||||
|
|
||||||
|
// Notifications content wrapper
|
||||||
|
echo '<div id="notification-content" class="invisible"/></div>';
|
||||||
|
|
||||||
// Header.
|
// Header.
|
||||||
echo '<div id="head">';
|
echo '<div id="head">';
|
||||||
include 'general/header.php';
|
include 'general/header.php';
|
||||||
|
@ -48,6 +48,7 @@ $inputs = [
|
|||||||
'class' => 'search_input',
|
'class' => 'search_input',
|
||||||
'autofocus' => true,
|
'autofocus' => true,
|
||||||
],
|
],
|
||||||
|
'class' => 'pdd_t_0px_important',
|
||||||
],
|
],
|
||||||
];
|
];
|
||||||
|
|
||||||
@ -58,9 +59,8 @@ HTML::printForm(
|
|||||||
]
|
]
|
||||||
);
|
);
|
||||||
|
|
||||||
ui_pagination($total, '#', $offset, 9);
|
|
||||||
|
|
||||||
$output = '<div class="container-list-widgets" >';
|
$output = '<div class="container-list-widgets mrgn_top_50px">';
|
||||||
|
|
||||||
foreach ($widgets as $widget) {
|
foreach ($widgets as $widget) {
|
||||||
$urlWidgets = $config['homedir'];
|
$urlWidgets = $config['homedir'];
|
||||||
@ -97,3 +97,5 @@ foreach ($widgets as $widget) {
|
|||||||
|
|
||||||
$output .= '</div>';
|
$output .= '</div>';
|
||||||
echo $output;
|
echo $output;
|
||||||
|
|
||||||
|
ui_pagination($total, '#', $offset, 9, false, 'offset', false, 'center mrgn_top_10px');
|
||||||
|
Loading…
x
Reference in New Issue
Block a user