Merge branch 'ent-13375-descuadre-informe-sql-query' into 'develop'

Changes to center report

See merge request artica/pandorafms!7157
This commit is contained in:
Jose Martin 2024-04-09 12:47:44 +00:00
commit 30674ea13e
2 changed files with 5 additions and 0 deletions

View File

@ -4133,6 +4133,10 @@ function html_print_table(&$table, $return=false)
$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;';
}
}