Polishing agent detail view
This commit is contained in:
parent
313240378e
commit
33c9b50ddc
|
@ -1974,8 +1974,8 @@ if ($table_events) {
|
|||
include_once 'include/functions_events.php';
|
||||
include_once 'include/functions_graph.php';
|
||||
|
||||
$id_agente = (int) get_parameter('id_agente', 0);
|
||||
$all_events_24h = (int) get_parameter('all_events_24h', 0);
|
||||
$id_agente = (int) get_parameter('id_agente');
|
||||
$all_events_24h = (int) get_parameter('all_events_24h');
|
||||
|
||||
// Fix: for tag functionality groups have to be all user_groups
|
||||
// (propagate ACL funct!).
|
||||
|
@ -1988,19 +1988,28 @@ if ($table_events) {
|
|||
'event_condition',
|
||||
'AND'
|
||||
);
|
||||
echo '<div class="flex" id="div_all_events_24h">';
|
||||
echo '<label class="mrgn_1_2em"><b>'.__('Show all Events 24h').'</b></label>';
|
||||
echo html_print_switch(
|
||||
[
|
||||
'name' => 'all_events_24h',
|
||||
'value' => $all_events_24h,
|
||||
'id' => 'checkbox-all_events_24h',
|
||||
]
|
||||
);
|
||||
echo '</div>';
|
||||
|
||||
$tableEvents24h = new stdClass();
|
||||
$tableEvents24h->class = 'filter_table';
|
||||
$tableEvents24h->styleTable = 'border-radius: 0;padding: 0;margin: 0 0 10px;';
|
||||
$tableEvents24h->width = '100%';
|
||||
$tableEvents24h->data = [];
|
||||
|
||||
$tableEvents24h->data[0] = __('Show all Events 24h');
|
||||
$tableEvents24h->rowstyle[1] = 'height: 42px';
|
||||
$tableEvents24h->data[1] = html_print_switch(
|
||||
[
|
||||
'name' => 'all_events_24h',
|
||||
'value' => $all_events_24h,
|
||||
'id' => 'checkbox-all_events_24h',
|
||||
]
|
||||
);
|
||||
|
||||
html_print_table($tableEvents24h);
|
||||
|
||||
$date_subtract_day = (time() - (24 * 60 * 60));
|
||||
|
||||
if ($all_events_24h) {
|
||||
if ($all_events_24h !== 0) {
|
||||
events_print_event_table(
|
||||
'utimestamp > '.$date_subtract_day,
|
||||
200,
|
||||
|
|
|
@ -356,7 +356,7 @@ if (check_login()) {
|
|||
];
|
||||
}
|
||||
|
||||
if ($selection_mode == 'fromnow') {
|
||||
if ($selection_mode === 'fromnow') {
|
||||
$date = get_system_time();
|
||||
$period = $period;
|
||||
} else {
|
||||
|
@ -958,7 +958,7 @@ if (check_login()) {
|
|||
|
||||
$table = new stdClass();
|
||||
$table->width = '100%';
|
||||
$table->styleTable = 'display:flex;border: 0;border-radius: 0;vertical-align: baseline;flex-direction: column;';
|
||||
$table->styleTable = 'border: 0;border-radius: 0;vertical-align: baseline;';
|
||||
$table->cellpadding = 0;
|
||||
$table->cellspacing = 0;
|
||||
$table->class = 'tactical_table info_table';
|
||||
|
@ -976,41 +976,24 @@ if (check_login()) {
|
|||
$table->align[5] = 'left';
|
||||
$table->align[6] = 'left';
|
||||
$table->align[7] = 'center';
|
||||
$table->align[8] = 'left';
|
||||
$table->align[9] = 'right';
|
||||
// Cell styles.
|
||||
$table->style[0] = 'width: 5%;vertical-align: baseline';
|
||||
$table->style[1] = 'width: 5%;vertical-align: baseline';
|
||||
$table->style[2] = 'width: 20%;vertical-align: baseline';
|
||||
$table->style[3] = 'width: 20%;vertical-align: baseline';
|
||||
$table->style[4] = 'width: 5%;vertical-align: baseline';
|
||||
$table->style[5] = 'width: 15%;vertical-align: baseline';
|
||||
$table->style[6] = 'width: 10%;vertical-align: baseline;font-size: 9pt';
|
||||
$table->style[7] = 'width: 10%;vertical-align: baseline';
|
||||
$table->style[8] = 'width: 10%;vertical-align: baseline;font-size: 9pt';
|
||||
$table->style[9] = 'width: 10%;vertical-align: baseline';
|
||||
// Fixed styles.
|
||||
$table->headstyle[0] = 'width: 4%;text-align: center;';
|
||||
$table->headstyle[1] = 'width: 55px;text-align: left;';
|
||||
$table->headstyle[4] = 'width: 100px; text-align: center';
|
||||
$table->headstyle[7] = 'width: 130px; text-align: center';
|
||||
$table->headstyle[8] = 'width: 10%; text-align: center';
|
||||
$table->headstyle[9] = 'text-align: center';
|
||||
// Row class.
|
||||
// $table->headclass[] = 'header_row';
|
||||
$table->head[0] = ($isFunctionPolicies !== ENTERPRISE_NOT_HOOK) ? '<span title="'.__('Policy').'">'.__('P').'</span>' : '';
|
||||
$table->headstyle[0] = 'width: 5%;text-align: center;';
|
||||
$table->head[1] = '<span>'.__('Type').'</span>'.ui_get_sorting_arrows($url_up_type, $url_down_type, $selectTypeUp, $selectTypeDown);
|
||||
$table->headstyle[1] = 'width: 5%;text-align: left;';
|
||||
$table->head[1] = '<span title="'.__('Module type').'">'.__('T').'</span>'.ui_get_sorting_arrows($url_up_type, $url_down_type, $selectTypeUp, $selectTypeDown);
|
||||
$table->head[2] = '<span>'.__('Module name').'</span>'.ui_get_sorting_arrows($url_up_name, $url_down_name, $selectNameUp, $selectNameDown);
|
||||
$table->headstyle[2] = 'width: 20%;text-align: left;';
|
||||
$table->head[3] = '<span>'.__('Description').'</span>';
|
||||
$table->headstyle[3] = 'width: 20%;text-align: left;';
|
||||
$table->head[4] = '<span>'.__('Status').'</span>'.ui_get_sorting_arrows($url_up_status, $url_down_status, $selectStatusUp, $selectStatusDown);
|
||||
$table->headstyle[4] = 'width: 5%;text-align: center;';
|
||||
$table->head[5] = '<span>'.__('Thresholds').'</span>';
|
||||
$table->headstyle[5] = 'width: 15%;text-align: left;';
|
||||
$table->head[6] = '<span>'.__('Data').'</span>';
|
||||
$table->headstyle[6] = 'width: 10%;text-align: left;';
|
||||
$table->head[7] = '<span>'.__('Last contact').'</span>'.ui_get_sorting_arrows($url_up_last, $url_down_last, $selectLastContactUp, $selectLastContactDown);
|
||||
$table->headstyle[7] = 'width: 10%;';
|
||||
$table->head[8] = '<span>'.__('Graphs').'</span>';
|
||||
$table->headstyle[8] = 'width: 10%;';
|
||||
$table->head[9] = '<span>'.__('Actions').'</span>';
|
||||
$table->headstyle[8] = 'width: 10%;';
|
||||
|
||||
$last_modulegroup = 0;
|
||||
$rowIndex = 0;
|
||||
|
@ -1039,7 +1022,7 @@ if (check_login()) {
|
|||
if ($hierachy_mode === 'false') {
|
||||
// The code add the row of 1 cell with title of group for to be more organice the list.
|
||||
if ($module['id_module_group'] != $last_modulegroup) {
|
||||
$table->colspan[$rowIndex][0] = count($table->style);
|
||||
$table->colspan[$rowIndex][0] = count($table->head);
|
||||
$table->rowclass[$rowIndex] = 'datos4';
|
||||
|
||||
array_push($table->data, ['<b>'.$module['name'].'</b>']);
|
||||
|
@ -1051,10 +1034,9 @@ if (check_login()) {
|
|||
// End of title of group.
|
||||
}
|
||||
|
||||
$table->rowstyle[$rowIndex] = 'vertical-align: baseline';
|
||||
$data = [];
|
||||
|
||||
// Module policy.
|
||||
// $table->cellstyle[$rowIndex][0] = 'width: 1%;';
|
||||
$data[0] = '';
|
||||
if ($isFunctionPolicies !== ENTERPRISE_NOT_HOOK) {
|
||||
if ((int) $module['id_policy_module'] !== 0) {
|
||||
|
|
|
@ -3673,6 +3673,9 @@ table#policy_modules td * {
|
|||
border: 0 !important;
|
||||
}
|
||||
|
||||
.tactical_table > thead > tr span {
|
||||
line-height: 26px;
|
||||
}
|
||||
.info_table thead th .sort_arrow,
|
||||
.tactical_table thead th .sort_arrow {
|
||||
vertical-align: top;
|
||||
|
|
|
@ -453,7 +453,7 @@ if ($free_search != '') {
|
|||
false,
|
||||
[
|
||||
'icon' => 'wand',
|
||||
'mode' => 'mini',
|
||||
'mode' => 'secondary mini',
|
||||
],
|
||||
true
|
||||
),
|
||||
|
|
|
@ -268,12 +268,10 @@ html_print_div(
|
|||
parameters["status_text_monitor"] = filter_text;
|
||||
parameters["status_module_group"] = filter_group;
|
||||
parameters["page"] = "include/ajax/module";
|
||||
|
||||
|
||||
|
||||
$("#module_list").empty();
|
||||
$("#module_list_loading").show();
|
||||
|
||||
|
||||
|
||||
jQuery.ajax ({
|
||||
data: parameters,
|
||||
type: 'POST',
|
||||
|
@ -281,13 +279,12 @@ html_print_div(
|
|||
dataType: 'html',
|
||||
success: function (data) {
|
||||
$("#module_list_loading").hide();
|
||||
|
||||
$("#module_list").empty();
|
||||
$("#module_list").html(data);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
function filter_modules() {
|
||||
filter_status = $("#status_filter_monitor").val();
|
||||
filter_group = $("#status_module_group").val();
|
||||
|
|
Loading…
Reference in New Issue