tables graphs info_table class

This commit is contained in:
Jonathan 2023-03-09 17:21:36 +01:00
parent d4fa2831bf
commit a9de0496f6
1 changed files with 28 additions and 6 deletions

View File

@ -532,6 +532,7 @@ function reporting_html_SLA($table, $item, $mini, $pdf=0)
if (isset($item['data']) === true) { if (isset($item['data']) === true) {
$table1 = new stdClass(); $table1 = new stdClass();
$table1->width = '99%'; $table1->width = '99%';
$table1->class = 'info_table';
$table1->align = []; $table1->align = [];
$table1->align[0] = 'left'; $table1->align[0] = 'left';
@ -567,6 +568,7 @@ function reporting_html_SLA($table, $item, $mini, $pdf=0)
// Second_table for time globals. // Second_table for time globals.
$table2 = new stdClass(); $table2 = new stdClass();
$table2->width = '99%'; $table2->width = '99%';
$table2->class = 'info_table';
$table2->align = []; $table2->align = [];
$table2->align[0] = 'left'; $table2->align[0] = 'left';
@ -600,6 +602,7 @@ function reporting_html_SLA($table, $item, $mini, $pdf=0)
// Third_table for time globals. // Third_table for time globals.
$table3 = new stdClass(); $table3 = new stdClass();
$table3->width = '99%'; $table3->width = '99%';
$table3->class = 'info_table';
$table3->align = []; $table3->align = [];
$table3->align[0] = 'left'; $table3->align[0] = 'left';
@ -926,6 +929,7 @@ function reporting_html_top_n($table, $item, $pdf=0)
} else { } else {
$table1 = new stdClass(); $table1 = new stdClass();
$table1->width = '99%'; $table1->width = '99%';
$table1->class = 'info_table';
$table1->align = []; $table1->align = [];
$table1->align[0] = 'left'; $table1->align[0] = 'left';
@ -1034,6 +1038,7 @@ function reporting_html_event_report_group($table, $item, $pdf=0)
if ($item['total_events']) { if ($item['total_events']) {
$table1 = new stdClass(); $table1 = new stdClass();
$table1->width = '99%'; $table1->width = '99%';
$table1->class = 'info_table';
$table1->align = []; $table1->align = [];
$table1->align[0] = 'center'; $table1->align[0] = 'center';
@ -1305,6 +1310,7 @@ function reporting_html_event_report_module($table, $item, $pdf=0)
foreach ($item['data'] as $item) { foreach ($item['data'] as $item) {
$table1 = new stdClass(); $table1 = new stdClass();
$table1->width = '99%'; $table1->width = '99%';
$table1->class = 'info_table';
$table1->data = []; $table1->data = [];
$table1->head = []; $table1->head = [];
$table1->align = []; $table1->align = [];
@ -1531,7 +1537,7 @@ function reporting_html_agents_inventory($table, $item, $pdf=0)
$table1->width = '100%'; $table1->width = '100%';
$table1->style[0] = 'text-align: left;vertical-align: top;min-width: 100px;'; $table1->style[0] = 'text-align: left;vertical-align: top;min-width: 100px;';
$table1->class = 'databox data'; $table1->class = 'info_table';
$table1->cellpadding = 1; $table1->cellpadding = 1;
$table1->cellspacing = 1; $table1->cellspacing = 1;
$table1->styleTable = 'overflow: wrap; table-layout: fixed;'; $table1->styleTable = 'overflow: wrap; table-layout: fixed;';
@ -1698,7 +1704,7 @@ function reporting_html_modules_inventory($table, $item, $pdf=0)
$table1->width = '100%'; $table1->width = '100%';
$table1->style[0] = 'text-align: left;vertical-align: top;min-width: 100px;'; $table1->style[0] = 'text-align: left;vertical-align: top;min-width: 100px;';
$table1->class = 'databox data'; $table1->class = 'info_table';
$table1->cellpadding = 1; $table1->cellpadding = 1;
$table1->cellspacing = 1; $table1->cellspacing = 1;
$table1->styleTable = 'overflow: wrap; table-layout: fixed;'; $table1->styleTable = 'overflow: wrap; table-layout: fixed;';
@ -1816,6 +1822,7 @@ function reporting_html_inventory_changes($table, $item, $pdf=0)
foreach ($item['data'] as $module_item) { foreach ($item['data'] as $module_item) {
$table1 = new stdClass(); $table1 = new stdClass();
$table1->width = '99%'; $table1->width = '99%';
$table1->class = 'info_table';
$table1->cellstyle = []; $table1->cellstyle = [];
$table1->cellstyle[0][0] = 'background: #373737; color: #FFF;'; $table1->cellstyle[0][0] = 'background: #373737; color: #FFF;';
@ -1910,6 +1917,7 @@ function reporting_html_inventory($table, $item, $pdf=0)
foreach ($type_modules as $key_type_module => $type_module) { foreach ($type_modules as $key_type_module => $type_module) {
$table1 = new stdClass(); $table1 = new stdClass();
$table1->width = '99%'; $table1->width = '99%';
$table1->class = 'info_table';
$table1->data = []; $table1->data = [];
$table1->head = []; $table1->head = [];
$table1->cellstyle = []; $table1->cellstyle = [];
@ -2000,7 +2008,7 @@ function reporting_html_agent_module($table, $item)
if (!empty($item['failed'])) { if (!empty($item['failed'])) {
$table->data['agent_module']['cell'] = $item['failed']; $table->data['agent_module']['cell'] = $item['failed'];
} else { } else {
$table_data = '<table class="border_table" cellpadding="0" cellspacing="0" cellspacing="0">'; $table_data = '<table class="info_table" cellpadding="0" cellspacing="0" cellspacing="0">';
$table_data .= '<tr class="border_th">'; $table_data .= '<tr class="border_th">';
$table_data .= '<th class="bg_th">'.__('Agents').' / '.__('Modules').'</th>'; $table_data .= '<th class="bg_th">'.__('Agents').' / '.__('Modules').'</th>';
@ -2349,6 +2357,7 @@ function reporting_html_exception($table, $item, $pdf=0)
} else { } else {
$table1 = new stdClass(); $table1 = new stdClass();
$table1->width = '99%'; $table1->width = '99%';
$table1->class = 'info_table';
$table1->align = []; $table1->align = [];
$table1->align['agent'] = 'left'; $table1->align['agent'] = 'left';
@ -2466,7 +2475,7 @@ function reporting_html_group_report($table, $item, $pdf=0)
$table->colspan['group_report']['cell'] = 3; $table->colspan['group_report']['cell'] = 3;
$table->cellstyle['group_report']['cell'] = 'text-align: center;'; $table->cellstyle['group_report']['cell'] = 'text-align: center;';
$data = "<table class='databox' width='100%'> $data = "<table class='info_table' width='100%'>
<tbody><tr> <tbody><tr>
<td></td> <td></td>
<td colspan='3' class='cellBold cellCenter'>".__('Total')."</td> <td colspan='3' class='cellBold cellCenter'>".__('Total')."</td>
@ -2528,6 +2537,7 @@ function reporting_html_event_report_agent($table, $item, $pdf=0)
if ($item['total_events'] != 0) { if ($item['total_events'] != 0) {
$table1 = new stdClass(); $table1 = new stdClass();
$table1->width = '99%'; $table1->width = '99%';
$table1->class = 'info_table';
$table1->align = []; $table1->align = [];
$table1->align[0] = 'center'; $table1->align[0] = 'center';
$table1->align[1] = 'center'; $table1->align[1] = 'center';
@ -2750,6 +2760,7 @@ function reporting_html_historical_data($table, $item, $pdf=0)
$table1 = new stdClass(); $table1 = new stdClass();
$table1->width = '100%'; $table1->width = '100%';
$table1->class = 'info_table';
$table1->head = [ $table1->head = [
__('Date'), __('Date'),
__('Data'), __('Data'),
@ -2834,6 +2845,7 @@ function reporting_html_database_serialized($table, $item, $pdf=0)
$table1 = new stdClass(); $table1 = new stdClass();
$table1->width = '100%'; $table1->width = '100%';
$table1->class = 'info_table';
$table1->head = [ $table1->head = [
__('Date'), __('Date'),
__('Data'), __('Data'),
@ -2902,6 +2914,7 @@ function reporting_html_last_value($table, $item, $pdf=0)
if (empty($item['data']) === false) { if (empty($item['data']) === false) {
$table_data = new stdClass(); $table_data = new stdClass();
$table_data->width = '100%'; $table_data->width = '100%';
$table_data->class = 'info_table';
$table_data->headstyle = []; $table_data->headstyle = [];
$table_data->headstyle[0] = 'text-align: left;'; $table_data->headstyle[0] = 'text-align: left;';
$table_data->style = []; $table_data->style = [];
@ -3064,6 +3077,7 @@ function reporting_html_group_configuration($table, $item, $pdf=0)
if ($pdf === 0) { if ($pdf === 0) {
$table2 = new stdClass(); $table2 = new stdClass();
$table2->width = '100%'; $table2->width = '100%';
$table2->class = 'info_table';
$table2->data = []; $table2->data = [];
reporting_html_agent_configuration( reporting_html_agent_configuration(
$table2, $table2,
@ -3214,6 +3228,7 @@ function reporting_html_network_interfaces_report($table, $item, $pdf=0)
foreach ($item['data'] as $agent) { foreach ($item['data'] as $agent) {
$table_agent = new StdCLass(); $table_agent = new StdCLass();
$table_agent->width = '100%'; $table_agent->width = '100%';
$table_agent->class = 'info_table';
$table_agent->data = []; $table_agent->data = [];
$table_agent->head = []; $table_agent->head = [];
$table_agent->head[0] = __('Agent').' '.$agent['agent']; $table_agent->head[0] = __('Agent').' '.$agent['agent'];
@ -3337,6 +3352,7 @@ function reporting_html_alert_report($table, $item, $pdf=0)
$table1 = new stdClass(); $table1 = new stdClass();
$table1->width = '99%'; $table1->width = '99%';
$table1->class = 'info_table';
$table1->head = []; $table1->head = [];
$table1->data = []; $table1->data = [];
$table1->rowspan = []; $table1->rowspan = [];
@ -3461,6 +3477,7 @@ function reporting_html_monitor_report($table, $item, $mini, $pdf=0)
$table1 = new stdClass(); $table1 = new stdClass();
$table1->width = '99%'; $table1->width = '99%';
$table1->class = 'info_table';
$table1->head = []; $table1->head = [];
$table1->data = []; $table1->data = [];
if ($item['data']['unknown'] == 1) { if ($item['data']['unknown'] == 1) {
@ -3560,6 +3577,7 @@ function reporting_html_agent_configuration(
$table1 = new stdClass(); $table1 = new stdClass();
$table1->width = '99%'; $table1->width = '99%';
$table1->head = []; $table1->head = [];
$table1->class = 'info_table';
$table1->head['name'] = __('Agent name'); $table1->head['name'] = __('Agent name');
$table1->head['group'] = __('Group'); $table1->head['group'] = __('Group');
$table1->head['os'] = __('OS'); $table1->head['os'] = __('OS');
@ -3734,6 +3752,7 @@ function reporting_html_value(
) { ) {
$table2 = new stdClass(); $table2 = new stdClass();
$table2->width = '100%'; $table2->width = '100%';
$table2->class = 'info_table';
switch ($item['type']) { switch ($item['type']) {
case 'max_value': case 'max_value':
$table2->head = [ $table2->head = [
@ -4040,6 +4059,7 @@ function reporting_html_availability($table, $item, $pdf=0)
if (empty($item['data']) === false) { if (empty($item['data']) === false) {
$table1 = new stdClass(); $table1 = new stdClass();
$table1->width = '99%'; $table1->width = '99%';
$table1->class = 'info_table';
$table1->data = []; $table1->data = [];
$table1->head = []; $table1->head = [];
@ -4623,6 +4643,7 @@ function reporting_html_availability_graph($table, $item, $pdf=0)
) { ) {
$table1 = new stdClass(); $table1 = new stdClass();
$table1->width = '100%'; $table1->width = '100%';
$table1->class = 'info_table';
$table1->autosize = 1; $table1->autosize = 1;
$table1->styleTable = 'overflow: wrap; table-layout: fixed;'; $table1->styleTable = 'overflow: wrap; table-layout: fixed;';
$table1->data = []; $table1->data = [];
@ -4864,6 +4885,7 @@ function reporting_html_general($table, $item, $pdf=0)
if (!$data_in_same_row) { if (!$data_in_same_row) {
$table1 = new stdClass(); $table1 = new stdClass();
$table1->width = '99%'; $table1->width = '99%';
$table1->class = 'info_table';
$table1->data = []; $table1->data = [];
$table1->head = []; $table1->head = [];
$table1->head[0] = __('Agent'); $table1->head[0] = __('Agent');
@ -5065,7 +5087,7 @@ function reporting_html_sql($table, $item, $pdf=0)
$first = true; $first = true;
$table2 = new stdClass(); $table2 = new stdClass();
$table2->class = 'databox'; $table2->class = 'info_table';
$table2->width = '100%'; $table2->width = '100%';
foreach ($item['data'] as $row) { foreach ($item['data'] as $row) {
@ -6372,7 +6394,7 @@ function reporting_html_permissions($table, $item, $pdf=0)
$table1->width = '100%'; $table1->width = '100%';
$table1->style[0] = 'text-align: left;vertical-align: top;min-width: 100px;'; $table1->style[0] = 'text-align: left;vertical-align: top;min-width: 100px;';
$table1->class = 'databox data'; $table1->class = 'info_table';
$table1->cellpadding = 1; $table1->cellpadding = 1;
$table1->cellspacing = 1; $table1->cellspacing = 1;
$table1->styleTable = 'overflow: wrap; table-layout: fixed;'; $table1->styleTable = 'overflow: wrap; table-layout: fixed;';