Merge branch 'ent-9662-second-round' of brutus.artica.es:artica/pandorafms into ent-9662-second-round

This commit is contained in:
Pablo Aragon 2023-03-30 16:50:40 +02:00
commit 98acf2b864
6 changed files with 35 additions and 15 deletions

View File

@ -259,6 +259,15 @@ function agents_modules_load_js()
return results[1];
}
}
function select_selected () {
$('#id_agents2 option').each(function(){
if($(this).attr('selected') === 'selected'){
$(this).prop('selected', true);
}
});
}
</script>
<?php
}
@ -645,7 +654,7 @@ function mainAgentsModules()
}
if ($config['pure'] != 1) {
$show_filters = '<form method="post" action="'.ui_get_url_refresh(['offset' => $offset, 'hor_offset' => $offset, 'group_id' => $group_id, 'modulegroup' => $modulegroup]).'" class="w100p">';
$show_filters = '<form method="post" action="index.php?sec=view&sec2=extensions/agents_modules" class="w100p">';
$show_filters .= '<table class="filter-table-adv w100p no-border" cellpadding="4" cellspacing="4">';
$show_filters .= '<tr>';
$show_filters .= '<td width="33%">'.$filter_type.'</td>';
@ -666,8 +675,9 @@ function mainAgentsModules()
'srcbutton',
false,
[
'icon' => 'search',
'mode' => 'mini',
'icon' => 'search',
'mode' => 'mini',
'onclick' => 'select_selected()',
],
true
),
@ -729,7 +739,7 @@ function mainAgentsModules()
if (isset($modules_selected[0]) === true && $modules_selected[0]) {
$all_modules = [];
foreach ($modules_selected as $key => $value) {
if (is_int($value)) {
if ((int) $value > 0) {
$name = modules_get_agentmodule_name($value);
$sql = "SELECT id_agente_modulo
FROM tagente_modulo

View File

@ -57,7 +57,7 @@ function menu_print_menu(&$menu)
$sec = (string) get_parameter('sec');
$sec2 = (string) get_parameter('sec2');
if ($sec2 === 'operation/agentes/ver_agente') {
$sec2 = 'godmode/agentes/configurar_agente';
$sec2 = 'operation/agentes/estado_agente';
} else if ($sec2 === 'godmode/alerts/configure_alert_template') {
$sec2 = 'godmode/alerts/alert_templates';
} else if ($sec2 === 'godmode/events/events') {

View File

@ -287,7 +287,7 @@ class Manager implements PublicLogin
$this->dashboardId = (int) \get_parameter('dashboardId', 0);
if ($this->slides === 1) {
$this->slidesIds = (array) \get_parameter('slidesIds');
$this->slidesIds = (array) \get_parameter('slidesIds', [get_user_dashboards($config['id_user'])[0]['id']]);
$this->cellModeSlides = (int) \get_parameter(
'cellModeSlides',
0

View File

@ -430,7 +430,12 @@ li#search_input_widget {
width: auto;
}
div#dashboard-controls {
div#dashboard-controls-slides {
width: 720px !important;
}
div#dashboard-controls,
div#dashboard-controls-slides {
position: fixed;
z-index: 1;
top: 10px;
@ -447,27 +452,32 @@ div#dashboard-controls {
padding: 0px 10px;
}
div#dashboard-controls div {
div#dashboard-controls div,
div#dashboard-controls-slides div {
margin-left: 10px;
text-align: center;
}
div#dashboard-controls div#dashboard-slides-form-countdown {
div#dashboard-controls div#dashboard-slides-form-countdown,
div#dashboard-controls-slides div#dashboard-slides-form-countdown {
flex: 7;
}
div#dashboard-controls div#dashboard-slides-name {
div#dashboard-controls div#dashboard-slides-name,
div#dashboard-controls-slides div#dashboard-slides-name {
flex: 3;
}
div#dashboard-controls div.dashboard-mode {
div#dashboard-controls div.dashboard-mode,
div#dashboard-controls-slides div.dashboard-mode {
flex: 1;
display: flex;
flex-direction: row;
justify-content: center;
}
div#dashboard-controls div.dashboard-mode a {
div#dashboard-controls div.dashboard-mode a,
div#dashboard-controls-slides div.dashboard-mode a {
margin: 0px;
}

View File

@ -118,10 +118,10 @@ INSERT INTO `tconfig` (`token`, `value`) VALUES
('custom_report_front_logo', 'images/pandora_logo_white.jpg'),
('custom_report_front_header', ''),
('custom_report_front_footer', ''),
('MR', 61),
('MR', 62),
('identification_reminder', 1),
('identification_reminder_timestamp', 0),
('current_package', 769),
('current_package', 770),
('post_process_custom_values', '{"0.00000038580247":"Seconds&#x20;to&#x20;months","0.00000165343915":"Seconds&#x20;to&#x20;weeks","0.00001157407407":"Seconds&#x20;to&#x20;days","0.01666666666667":"Seconds&#x20;to&#x20;minutes","0.00000000093132":"Bytes&#x20;to&#x20;Gigabytes","0.00000095367432":"Bytes&#x20;to&#x20;Megabytes","0.00097656250000":"Bytes&#x20;to&#x20;Kilobytes","0.00000001653439":"Timeticks&#x20;to&#x20;weeks","0.00000011574074":"Timeticks&#x20;to&#x20;days"}'),
('custom_docs_logo', 'default_docs.png'),
('custom_support_logo', 'default_support.png'),

View File

@ -28,7 +28,7 @@
global $config;
$output = '<div id="dashboard-controls">';
$output = '<div id="dashboard-controls-slides">';
// Normal view button.
$output .= '<div>';