dowload wip
This commit is contained in:
1 parent
b004542988
commit
8971b8b948
41 files changed
+2103
-243
No files matched your search
@@ -0,0 +1,39 @@
|
||||
<?php
|
||||
|
||||
namespace App\Actions\Generate\StandardTexte;
|
||||
|
||||
use App\Utilities\Html;
|
||||
|
||||
class Tabelle
|
||||
{
|
||||
public static function load($standardtext)
|
||||
{
|
||||
$standardtext = strip_tags($standardtext, '<br>');
|
||||
|
||||
$standardtext = str_replace('<br>', '§§', $standardtext);
|
||||
$standardtext = str_replace('<br/>', '§§', $standardtext);
|
||||
$standardtext = str_replace('<br />', '§§', $standardtext);
|
||||
|
||||
$arr = explode('§§', $standardtext);
|
||||
|
||||
$html = '<table class="table-striped bl bt m10">';
|
||||
|
||||
foreach ($arr as $value) {
|
||||
|
||||
$tmp = explode('|', $value);
|
||||
|
||||
$tmp[0] = $tmp[0] ?? '';
|
||||
$tmp[1] = $tmp[1] ?? '';
|
||||
|
||||
$html .= '<tr>';
|
||||
$html .= Html::td($tmp[0], 'br bb');
|
||||
$html .= Html::td($tmp[1], 'br bb');
|
||||
$html .= '</tr>';
|
||||
|
||||
}
|
||||
|
||||
$html .= '</table>';
|
||||
|
||||
return $html;
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user