pdf wip
This commit is contained in:
1 parent
a20893d527
commit
4b79874100
31 files changed
+549
-1535
No files matched your search
@@ -4,9 +4,10 @@ namespace App\Actions\Generate\Utilities;
|
||||
|
||||
class Html
|
||||
{
|
||||
public static function table_header($header_row)
|
||||
public static function table_header($header_row, $style = '')
|
||||
{
|
||||
$html = '<table class="table-striped">';
|
||||
$style = " style=\" $style\"" ?? '';
|
||||
$html = '<table autosize="1" class="table-striped" '.$style.'>';
|
||||
$html .= '<thead><tr>';
|
||||
foreach ($header_row as $value) {
|
||||
$html .= '<th class="bl bt br bb center bg-sky">'.$value.'</th>';
|
||||
@@ -16,10 +17,10 @@ class Html
|
||||
return $html;
|
||||
}
|
||||
|
||||
public static function table_footer($nutzwert_summe)
|
||||
public static function table_footer($nutzwert_summe, $colspan = 10)
|
||||
{
|
||||
$html = '<tfooter><tr>';
|
||||
$html .= '<th colspan="10" class="bl bt bb right bg-sky">Nutzwert gerundet</th>';
|
||||
$html .= '<th colspan="'.$colspan.'" class="bl bt bb right bg-sky">Nutzwert gerundet</th>';
|
||||
$html .= '<th class="bl bt br bb center bg-sky">'.$nutzwert_summe.'</th>';
|
||||
$html .= '</tr></tfooter>';
|
||||
|
||||
|
||||
Reference in new issue
Block a user