Merge branch 'ent-9662-second-round' of brutus.artica.es:artica/pandorafms into ent-9662-second-round
This commit is contained in:
commit
98acf2b864
|
@ -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>';
|
||||
|
@ -668,6 +677,7 @@ function mainAgentsModules()
|
|||
[
|
||||
'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
|
||||
|
|
|
@ -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') {
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
@ -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 to months","0.00000165343915":"Seconds to weeks","0.00001157407407":"Seconds to days","0.01666666666667":"Seconds to minutes","0.00000000093132":"Bytes to Gigabytes","0.00000095367432":"Bytes to Megabytes","0.00097656250000":"Bytes to Kilobytes","0.00000001653439":"Timeticks to weeks","0.00000011574074":"Timeticks to days"}'),
|
||||
('custom_docs_logo', 'default_docs.png'),
|
||||
('custom_support_logo', 'default_support.png'),
|
||||
|
|
|
@ -28,7 +28,7 @@
|
|||
|
||||
global $config;
|
||||
|
||||
$output = '<div id="dashboard-controls">';
|
||||
$output = '<div id="dashboard-controls-slides">';
|
||||
|
||||
// Normal view button.
|
||||
$output .= '<div>';
|
||||
|
|
Loading…
Reference in New Issue