fixed styles

This commit is contained in:
daniel 2023-03-02 11:10:09 +01:00
parent a5e6e569e8
commit ad33accfda
21 changed files with 18 additions and 103 deletions

View File

@ -36,10 +36,6 @@ enterprise_include_once('meta/include/functions_alerts_meta.php');
check_login();
enterprise_hook('open_meta_frame');
if (! check_acl($config['id_user'], 0, 'LM')) {
db_pandora_audit(
AUDIT_LOG_ACL_VIOLATION,
@ -473,5 +469,3 @@ if (is_management_allowed() === true) {
echo '</form>';
echo '</div>';
}
enterprise_hook('close_meta_frame');

View File

@ -566,8 +566,6 @@ tyle='display:none;'>";
echo '</div>';
}
enterprise_hook('open_meta_frame');
if ($update_command) {
include_once 'configure_alert_command.php';
return;
@ -836,8 +834,6 @@ if (users_is_admin() === true) {
echo '</div>';
}
enterprise_hook('close_meta_frame');
?>
<script type="text/javascript">

View File

@ -21,8 +21,6 @@ enterprise_include_once('meta/include/functions_alerts_meta.php');
check_login();
enterprise_hook('open_meta_frame');
if (is_ajax()) {
$get_template_tooltip = (bool) get_parameter('get_template_tooltip');
@ -124,7 +122,7 @@ $sec = (is_metaconsole() === true) ? 'advanced' : 'galertas';
// case delete_templete action is performed.
if (!$delete_template) {
// Header.
if (defined('METACONSOLE')) {
if (is_metaconsole() === true) {
alerts_meta_print_header();
} else {
ui_print_page_header(
@ -485,5 +483,3 @@ if (is_management_allowed() === true) {
echo '</form>';
echo '</div>';
}
enterprise_hook('close_meta_frame');

View File

@ -48,8 +48,6 @@ if (is_ajax()) {
}
}
enterprise_hook('open_meta_frame');
if (defined('METACONSOLE')) {
$sec = 'advanced';
} else {
@ -412,8 +410,6 @@ if ($is_management_allowed === true) {
echo '</form>';
enterprise_hook('close_meta_frame');
ui_require_javascript_file('pandora_alerts');
ui_require_javascript_file('tiny_mce', 'include/javascript/tiny_mce/');
?>

View File

@ -36,8 +36,6 @@ enterprise_include_once('meta/include/functions_alerts_meta.php');
check_login();
enterprise_hook('open_meta_frame');
if (! check_acl($config['id_user'], 0, 'PM')) {
db_pandora_audit(
AUDIT_LOG_ACL_VIOLATION,
@ -392,7 +390,6 @@ if ($is_management_allowed === true) {
echo '</form>';
enterprise_hook('close_meta_frame');
?>
<script type="text/javascript">

View File

@ -32,8 +32,6 @@ global $config;
// Check login and ACLs.
check_login();
enterprise_hook('open_meta_frame');
if (!check_acl($config['id_user'], 0, 'PM') && !is_user_admin($config['id_user'])) {
db_pandora_audit(
AUDIT_LOG_ACL_VIOLATION,
@ -70,30 +68,24 @@ $buttons = [
$buttons[$tab]['active'] = true;
// Header.
if (is_metaconsole() === true) {
ui_meta_print_header(__('Categories configuration'), __('List'), $buttons);
} else {
ui_print_standard_header(
__('Categories configuration'),
'images/gm_modules.png',
false,
'',
true,
$buttons,
ui_print_standard_header(
__('Categories configuration'),
'images/gm_modules.png',
false,
'',
true,
$buttons,
[
[
[
'link' => '',
'label' => __('Resources'),
],
[
'link' => '',
'label' => __('Module categories'),
],
]
);
}
'link' => '',
'label' => __('Resources'),
],
[
'link' => '',
'label' => __('Module categories'),
],
]
);
$is_management_allowed = true;
if (is_management_allowed() === false) {
@ -277,6 +269,4 @@ if ($is_management_allowed === true) {
);
echo '</form>';
enterprise_hook('close_meta_frame');
}

View File

@ -274,8 +274,6 @@ if (is_ajax() === true) {
return;
}
enterprise_hook('open_meta_frame');
$tab = (string) get_parameter('tab', 'groups');
if ($tab !== 'credbox'
@ -990,7 +988,6 @@ if ($is_management_allowed === true
ui_require_javascript_file('TreeController', 'include/javascript/tree/');
enterprise_hook('close_meta_frame');
$tab = 'group_edition';
?>

View File

@ -33,7 +33,6 @@ $management_allowed = is_management_allowed();
if (is_metaconsole() === true) {
$sec = 'advanced';
enterprise_include_once('meta/include/functions_components_meta.php');
enterprise_hook('open_meta_frame');
components_meta_print_header();
if ($management_allowed === false) {
@ -375,7 +374,6 @@ if ($result === false) {
}
if (is_metaconsole() === true) {
enterprise_hook('close_meta_frame');
echo '<div id="deploy_messages" class="invisible">';
echo '<span>'.__(
'The configurations of inventory modules from the nodes have been unified.

View File

@ -31,8 +31,6 @@ global $config;
check_login();
enterprise_hook('open_meta_frame');
if (! check_acl($config['id_user'], 0, 'PM') && ! check_acl($config['id_user'], 0, 'AW')) {
db_pandora_audit(
AUDIT_LOG_ACL_VIOLATION,
@ -380,8 +378,6 @@ html_print_action_buttons(
['type' => 'form_action']
);
enterprise_hook('close_meta_frame');
?>
<script type="text/javascript">
$( document ).ready(function() {

View File

@ -30,8 +30,6 @@ global $config;
check_login();
enterprise_hook('open_meta_frame');
if (! check_acl($config['id_user'], 0, 'PM') && ! check_acl($config['id_user'], 0, 'AW')) {
db_pandora_audit(
AUDIT_LOG_ACL_VIOLATION,
@ -934,8 +932,6 @@ html_print_action_buttons(
]
);
enterprise_hook('close_meta_frame');
?>
<script type="text/javascript">
$( document ).ready(function() {

View File

@ -332,8 +332,6 @@ if ($filemanager) {
$sec = 'gservers';
if (empty($create) === false || empty($view) === false) {
enterprise_hook('open_meta_frame');
$management_allowed = is_management_allowed();
if (is_metaconsole() === true) {
@ -708,11 +706,7 @@ if (empty($create) === false || empty($view) === false) {
if (defined('METACONSOLE')) {
echo '</td></tr>';
}
enterprise_hook('close_meta_frame');
} else {
enterprise_hook('open_meta_frame');
if (defined('METACONSOLE')) {
components_meta_print_header();
$sec = 'advanced';
@ -1087,8 +1081,6 @@ if (empty($create) === false || empty($view) === false) {
// The '%s' will be replaced in the javascript code of the function 'show_locked_dialog'.
echo "<div id='dialog_locked' title='".__('List of modules and components created by "%s" ')."' class='invisible left'>";
echo '</div>';
enterprise_hook('close_meta_frame');
}
ui_require_javascript_file('pandora_modules');

View File

@ -50,7 +50,6 @@ ui_require_css_file('first_task');
if (is_metaconsole() === true) {
enterprise_include_once('meta/include/functions_components_meta.php');
enterprise_hook('open_meta_frame');
components_meta_print_header();
$sec = 'advanced';
$management_allowed = is_management_allowed();
@ -565,7 +564,3 @@ if ($error !== null && $error !== '') {
)
);
}
if (is_metaconsole() === true) {
enterprise_hook('close_meta_frame');
}

View File

@ -27,8 +27,6 @@ global $config;
check_login();
enterprise_hook('open_meta_frame');
if (! check_acl($config['id_user'], 0, 'UM')) {
db_pandora_audit(
AUDIT_LOG_ACL_VIOLATION,
@ -437,8 +435,6 @@ if ($id_profile || $new_profile) {
echo '</form>';
}
enterprise_hook('close_meta_frame');
?>
<script type="text/javascript" language="javascript">

View File

@ -222,8 +222,6 @@ if (is_ajax() === true) {
}
}
enterprise_hook('open_meta_frame');
$tab = get_parameter('tab', 'user');
// Save autorefresh list.
@ -1886,8 +1884,6 @@ html_print_action_buttons(implode('', $actionButtons), ['type' => 'form_action']
echo '</div>';
enterprise_hook('close_meta_frame');
// This is an image generated for JS.
$delete_image = html_print_input_image(
'del',

View File

@ -31,8 +31,6 @@ global $config;
check_login();
enterprise_hook('open_meta_frame');
require_once $config['homedir'].'/include/functions_profile.php';
require_once $config['homedir'].'/include/functions_users.php';
require_once $config['homedir'].'/include/functions_groups.php';
@ -495,5 +493,3 @@ if ($is_management_allowed === true) {
}
unset($table);
enterprise_hook('close_meta_frame');

View File

@ -132,8 +132,6 @@ if (is_ajax()) {
}
}
enterprise_hook('open_meta_frame');
$sortField = get_parameter('sort_field');
$sort = get_parameter('sort', 'none');
$tab = get_parameter('tab', 'user');
@ -1051,8 +1049,6 @@ if ($is_management_allowed === true) {
);
}
enterprise_hook('close_meta_frame');
?>
<script type="text/javascript">
function showGroups(id_user) {

View File

@ -1052,8 +1052,6 @@ if (!empty($table->data)) {
// Close edit_user_profiles.
echo '</div>';
enterprise_hook('close_meta_frame');
if (is_metaconsole() === false) {
?>

View File

@ -29,7 +29,6 @@
// Extras required.
\ui_require_css_file('wizard');
\enterprise_include_once('meta/include/functions_alerts_meta.php');
\enterprise_hook('open_meta_frame');
if (\is_metaconsole() === true) {
\alerts_meta_print_header($tabs);
@ -142,5 +141,3 @@ HTML::printForm(
false,
true
);
\enterprise_hook('close_meta_frame');

View File

@ -28,7 +28,6 @@
\ui_require_css_file('wizard');
\enterprise_include_once('meta/include/functions_alerts_meta.php');
\enterprise_hook('open_meta_frame');
if (\is_metaconsole() === true) {
\alerts_meta_print_header($tabs);
@ -150,5 +149,3 @@ if ((bool) check_acl($config['id_user'], 0, 'LM') === true) {
]
);
}
\enterprise_hook('close_meta_frame');

View File

@ -30,7 +30,6 @@ global $config;
\ui_require_css_file('wizard');
\enterprise_include_once('meta/include/functions_alerts_meta.php');
\enterprise_hook('open_meta_frame');
if (\is_metaconsole() === true) {
\alerts_meta_print_header($tabs);
@ -491,7 +490,6 @@ if ((bool) check_acl($config['id_user'], 0, 'LM') === true) {
echo '<div id="modal-alert-templates" class="invisible"></div>';
ui_require_javascript_file('pandora_alerts');
\enterprise_hook('close_meta_frame');
?>
<script type="text/javascript">
$(document).ready (function () {

View File

@ -29,7 +29,6 @@
// Extras required.
\ui_require_css_file('wizard');
\enterprise_include_once('meta/include/functions_alerts_meta.php');
\enterprise_hook('open_meta_frame');
if (\is_metaconsole() === true) {
\alerts_meta_print_header($tabs);
@ -186,7 +185,6 @@ echo '<div id="modal-alert-templates" class="invisible"></div>';
ui_require_javascript_file('calendar');
ui_require_javascript_file('pandora_alerts');
\enterprise_hook('close_meta_frame');
?>
<script type="text/javascript">
$(document).ready (function () {