27 lines
727 B
PHP
27 lines
727 B
PHP
<?php
|
|
|
|
namespace App\Actions\Generate\Utilities;
|
|
|
|
class Html
|
|
{
|
|
public static function table_header_90($header_row)
|
|
{
|
|
$html = '<thead><tr text-rotate="90">';
|
|
$mm = 190 / \count($header_row);
|
|
foreach ($header_row as $value) {
|
|
$html .= '<th class="bl bt br bb center hellblau" style="vertical-align: bottom; width: '.$mm.'mm;">'.$value.'</th>';
|
|
}
|
|
$html .= '</tr></thead>';
|
|
|
|
return $html;
|
|
}
|
|
|
|
public static function td($value = '', $classname = '', $colspan = 0)
|
|
{
|
|
$cls = $classname != '' ? ' class="'.$classname.'"' : '';
|
|
$spn = $colspan != '' ? ' colspan="'.$colspan.'"' : '';
|
|
|
|
return "<td $cls $spn>".$value.'</td>';
|
|
}
|
|
}
|