#8533 style changes

This commit is contained in:
Daniel Maya 2022-03-29 10:46:44 +02:00
parent 26d598529c
commit 59db8f3daf
2 changed files with 30 additions and 8 deletions

View File

@ -1807,9 +1807,9 @@ function reporting_html_agent_module($table, $item)
if (!empty($item['failed'])) {
$table->data['agent_module']['cell'] = $item['failed'];
} else {
$table_data = '<table cellpadding="1" cellspacing="4" cellspacing="0" border="0" class="bg_eee">';
$table_data .= '<th>'.__('Agents').' / '.__('Modules').'</th>';
$table_data = '<table class="border_table" cellpadding="0" cellspacing="0" cellspacing="0">';
$table_data .= '<tr class="border_th">';
$table_data .= '<th class="bg_th">'.__('Agents').' / '.__('Modules').'</th>';
$first = reset($item['data']);
$list_modules = $first['modules'];
@ -1823,11 +1823,14 @@ function reporting_html_agent_module($table, $item)
false,
'...'
);
$table_data .= '<th class="pdd_10px">'.$file_name.'</th>';
$table_data .= '<th class="pdd_10px bg_th">'.$file_name.'</th>';
}
$table_data .= '</tr>';
foreach ($item['data'] as $row) {
$table_data .= "<tr class='height_35px;'>";
$table_data .= "<tr class='height_35px border_tr'>";
switch ($row['agent_status']) {
case AGENT_STATUS_ALERT_FIRED:
$rowcolor = COL_ALERTFIRED;
@ -1865,13 +1868,13 @@ function reporting_html_agent_module($table, $item)
false,
'...'
);
$table_data .= "<td style='background-color: ".$rowcolor.";'>".$file_name.'</td>';
$table_data .= '<td class="pdd_6px left">'.$file_name.'</td>';
foreach ($row['modules'] as $module_name => $module) {
if ($module === null) {
$table_data .= "<td class='bg_dd;'></td>";
$table_data .= '<td></td>';
} else {
$table_data .= "<td class='center bg_ddd'>";
$table_data .= "<td class='center'>";
if (isset($row['show_type']) === true && $row['show_type'] === '1') {
$table_data .= $module;
} else {

View File

@ -1262,6 +1262,25 @@ input.datos {
.bg_caca {
background-color: #cacaca;
}
.bg_th {
background-color: #efeff0 !important;
color: #000;
font-weight: bold;
}
.border_table {
border-collapse: collapse !important;
}
.border_th {
border-bottom: 2px solid #bfbfbf !important;
}
.border_tr {
border: 1px solid #dbdbdb !important;
}
/* margins */
.mgn-lf-50 {
margin-left: 50px;