27 lines
692 B
PHP
27 lines
692 B
PHP
<?php
|
|
|
|
namespace App\Actions\Generate\Utilities;
|
|
|
|
class Html
|
|
{
|
|
public static function table_header_90($_row)
|
|
{
|
|
$html = '<thead><tr>';
|
|
$mm = 190 / \count($_row);
|
|
foreach ($_row as $value) {
|
|
$html .= '<td class="rotated right bl bt br bb" style="background-color:#eff6ff; width: '.$mm.'mm;">'.$value.'</td>';
|
|
}
|
|
$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>';
|
|
}
|
|
}
|