big change Inhaltstabelle und PDF

This commit is contained in:
salam committed 2025-11-03 18:14:46 +01:00
1 parent 2f6ae7e4a1
commit d5d1f743bb
58 files changed
+1244 -922

No files matched your search

+34 -32
View File
@@ -100,39 +100,41 @@ class Pdf
$textblock = Format::fix_str($textblock);
}
$html = Ueberschrift::create($inhalt);
$html = '';
// $html = Ueberschrift::load($inhalt);
if ($inhalt->name == 'DECKBLATT') {
$html .= Deckblatt::create($textblock);
} elseif ($inhalt->name == 'INHALTSVERZEICHNIS') {
$html .= Inhalt::create($projekte_id);
} else {
if ($inhalt->textblock) {
$html .= $textblock;
}
switch ($inhalt->tabellen_id) {
case '3':
$html .= Paragraph6::load($projekte_id);
break;
case '4':
$html .= Allgemeinflaechen::load($projekte_id);
break;
case '5':
$html .= ZuUndAbschlaege::load($projekte_id);
break;
case '7':
$html .= Zusammenstellung::load($projekte_id);
break;
case '8':
$str = RichContentRenderer::make(self::$auftraggeber->referenz_formatting)->toHtml();
$html .= Format::fix_str($str);
break;
case '11':
$html .= DigitaleSignatur::load($projekte_id);
break;
}
switch ($inhalt->inhaltselement_id) {
case '9':
$html .= Deckblatt::load($inhalt, $textblock);
break;
// case '1':
// $html .= Inhalt::load($projekte_id);
// break;
// case '3':
// $html .= Paragraph6::load($projekte_id);
// break;
// case '4':
// $html .= Allgemeinflaechen::load($projekte_id);
// break;
// case '5':
// $html .= ZuUndAbschlaege::load($projekte_id);
// break;
// case '7':
// $html .= Zusammenstellung::load($projekte_id);
// break;
// case '8':
// $str = RichContentRenderer::make(self::$auftraggeber->referenz_formatting)->toHtml();
// $html .= Format::fix_str($str);
// break;
// case '11':
// $html .= DigitaleSignatur::load($projekte_id);
// break;
// default:
// $html = Ueberschrift::load($inhalt);
// if ($inhalt->textblock) {
// $html .= $textblock;
// }
// break;
}
if ($inhalt->seitenzahl_anzeige == 1) {