mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-31 01:35:36 +02:00
#9040 changed table styles
This commit is contained in:
parent
1a8e7b87c3
commit
3fb0392d80
@ -245,7 +245,7 @@ class AgentsAlerts extends HTML
|
|||||||
);
|
);
|
||||||
|
|
||||||
$table->width = '100%';
|
$table->width = '100%';
|
||||||
$table->class = 'databox data';
|
$table->class = 'info_table';
|
||||||
$table->id = 'table_agent_module';
|
$table->id = 'table_agent_module';
|
||||||
$table->data = [];
|
$table->data = [];
|
||||||
|
|
||||||
@ -537,7 +537,7 @@ class AgentsAlerts extends HTML
|
|||||||
'alerts_agents'
|
'alerts_agents'
|
||||||
);
|
);
|
||||||
|
|
||||||
echo '<table cellpadding="4" cellspacing="4" border="0" class="agents_modules_table table">';
|
echo '<table cellpadding="4" cellspacing="4" border="0" class="info_table">';
|
||||||
echo '<tr>';
|
echo '<tr>';
|
||||||
echo '<th class="header_table_principal_cell">'.__('Agents').' / '.__('Alerts').'</th>';
|
echo '<th class="header_table_principal_cell">'.__('Agents').' / '.__('Alerts').'</th>';
|
||||||
|
|
||||||
@ -576,10 +576,11 @@ class AgentsAlerts extends HTML
|
|||||||
'images/arrow_left_green.png',
|
'images/arrow_left_green.png',
|
||||||
true,
|
true,
|
||||||
[
|
[
|
||||||
'style' => 'float: right;',
|
'style' => 'display:flex;justify-content: center',
|
||||||
'title' => __('Previous alerts'),
|
'title' => __('Previous alerts'),
|
||||||
]
|
]
|
||||||
),
|
),
|
||||||
|
'style' => 'display:flex;justify-content: center',
|
||||||
]
|
]
|
||||||
);
|
);
|
||||||
echo '</th>';
|
echo '</th>';
|
||||||
@ -612,9 +613,9 @@ class AgentsAlerts extends HTML
|
|||||||
$outputLine = html_print_div(
|
$outputLine = html_print_div(
|
||||||
[
|
[
|
||||||
'id' => 'line_header_'.$id,
|
'id' => 'line_header_'.$id,
|
||||||
'class' => 'rotate_text_module position_text_module',
|
'class' => 'position_text_module',
|
||||||
'style' => '',
|
'style' => '',
|
||||||
'content' => '<div title="'.io_safe_output($name).'">'.ui_print_truncate_text(io_safe_output($name), 20).'</div>',
|
'content' => '<div style="font-size: 7.5pt !important" title="'.io_safe_output($name).'">'.ui_print_truncate_text(io_safe_output($name), 20).'</div>',
|
||||||
],
|
],
|
||||||
true
|
true
|
||||||
);
|
);
|
||||||
@ -657,7 +658,7 @@ class AgentsAlerts extends HTML
|
|||||||
$alias = db_get_row('tagente', 'id_agente', $agent['id_agente']);
|
$alias = db_get_row('tagente', 'id_agente', $agent['id_agente']);
|
||||||
echo '<tr>';
|
echo '<tr>';
|
||||||
// Name of the agent.
|
// Name of the agent.
|
||||||
echo '<td class="bolder" style="text-align: right" >'.$alias['alias'].'</td>';
|
echo '<td style="text-align: left;font-weight: bold;color: #3f3f3f;">'.$alias['alias'].'</td>';
|
||||||
// Alerts of the agent.
|
// Alerts of the agent.
|
||||||
foreach ($templates as $tid => $tname) {
|
foreach ($templates as $tid => $tname) {
|
||||||
$anyfired = 0;
|
$anyfired = 0;
|
||||||
@ -669,18 +670,6 @@ class AgentsAlerts extends HTML
|
|||||||
echo '<td class="center">';
|
echo '<td class="center">';
|
||||||
|
|
||||||
if (isset($agent_alerts[$alias['alias']][$tid])) {
|
if (isset($agent_alerts[$alias['alias']][$tid])) {
|
||||||
foreach ($agent_alerts[$alias['alias']][$tid] as $alert) {
|
|
||||||
if ((int) $alert['times_fired'] > 0) {
|
|
||||||
$anyfired = true;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
if ($anyfired) {
|
|
||||||
$cellstyle = 'background:'.COL_ALERTFIRED.';';
|
|
||||||
} else {
|
|
||||||
$cellstyle = 'background:'.COL_NORMAL.';';
|
|
||||||
}
|
|
||||||
|
|
||||||
$uniqid = uniqid();
|
$uniqid = uniqid();
|
||||||
|
|
||||||
html_print_anchor(
|
html_print_anchor(
|
||||||
@ -689,8 +678,7 @@ class AgentsAlerts extends HTML
|
|||||||
'content' => html_print_div(
|
'content' => html_print_div(
|
||||||
[
|
[
|
||||||
'id' => 'line_header_'.$temp['id'],
|
'id' => 'line_header_'.$temp['id'],
|
||||||
'class' => 'status_rounded_rectangles text_inside',
|
'style' => 'font-size: 13pt;',
|
||||||
'style' => $cellstyle,
|
|
||||||
'content' => count($agent_alerts[$alias['alias']][$tid]),
|
'content' => count($agent_alerts[$alias['alias']][$tid]),
|
||||||
],
|
],
|
||||||
true
|
true
|
||||||
|
@ -5,18 +5,18 @@
|
|||||||
table-layout: fixed;
|
table-layout: fixed;
|
||||||
}
|
}
|
||||||
|
|
||||||
.agents_modules_table .next_previous_step {
|
.next_previous_step {
|
||||||
width: 0.1%;
|
width: 0.1%;
|
||||||
}
|
}
|
||||||
|
|
||||||
.agents_modules_table .header_table_principal_cell {
|
.header_table_principal_cell {
|
||||||
text-align: right !important;
|
text-align: left !important;
|
||||||
padding-right: 13px;
|
padding-right: 13px;
|
||||||
width: 20%;
|
width: 5%;
|
||||||
}
|
}
|
||||||
|
|
||||||
.agents_modules_table .header_table_caption_cell {
|
.header_table_caption_cell {
|
||||||
height: 200px;
|
text-align: center !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
.agents_modules_table .position_text_module {
|
.agents_modules_table .position_text_module {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user