Changes to center report

This commit is contained in:
Félix Suárez 2024-04-08 23:47:19 -06:00
parent 03e71ea4a5
commit 3952cfefde
2 changed files with 5 additions and 0 deletions

View File

@ -4132,6 +4132,10 @@ function html_print_table(&$table, $return=false)
} else {
$headStyle = '';
}
if (isset($table->headStyle[$heading])) {
$headStyle = ' style = "'.$table->headStyle[$heading].'" ';
}
$output .= '<th class="'.$table->headclass[$key].'" '.$headColspan.$headStyle.' scope="col">'.$heading.'</th>';
}

View File

@ -6380,6 +6380,7 @@ function reporting_html_sql($table, $item, $pdf=0)
// Print the header.
foreach ($row as $key => $value) {
$table2->head[] = $key;
$table2->headStyle[$key] = 'text-align: center;';
}
}