From e316571c5b6ea180531a01a60773cd5abb9444e4 Mon Sep 17 00:00:00 2001 From: aschwarz Date: Fri, 14 Apr 2023 08:04:19 +0200 Subject: [PATCH] Neues Logo in Seminarscheine --- admin/bescheinigung/seminarscheine_ik.php | 62 +++++++++++++---------- admin/bescheinigung/seminarscheine_sk.php | 12 +---- 2 files changed, 36 insertions(+), 38 deletions(-) diff --git a/admin/bescheinigung/seminarscheine_ik.php b/admin/bescheinigung/seminarscheine_ik.php index 7987b72..7b156eb 100755 --- a/admin/bescheinigung/seminarscheine_ik.php +++ b/admin/bescheinigung/seminarscheine_ik.php @@ -17,7 +17,7 @@ $pdf= new utfFPDF(); #if($row2['art'] == 'SK'){ # $pagecount = $pdf->setSourceFile("blanko_ludwigsburg_sk.pdf"); #}else{ - $pagecount = $pdf->setSourceFile("blanko_ludwigsburg_ik.pdf"); + $pagecount = $pdf->setSourceFile("blanko_ludwigsburg_2023.pdf"); #} #$pagecount = $pdf->setSourceFile("anschreiben/aenderung_praxisstelle.pdf"); @@ -67,43 +67,51 @@ while ($row = $result->fetch_array()){ $pdf->AddPage(); $pdf->useTemplate($tplidx,0,0,0); + $pdf->SetFont('ARIAL', 'B', 22); + $pdf->SetY(76); + #$pdf->SetTextColor(255,0,255); + $pdf->Cell(0, 0, 'Bescheinigung für Soziale Kompetenzen', 0, 0, 'C'); - - $pdf->SetFont('ARIAL', 'B', 20); - $pdf->SetY(83); - #$pdf->SetTextColor(255,0,0); - - - - - - $pdf->SetFont('ARIAL', 'B', 14); - - $pdf->SetY(96); + $pos = $pdf->GetY()+20; + $pdf->SetY($pos); + $pdf->SetFont('ARIAL', 'B', 12); $pdf->Cell(0, 0, $row['vorname'] . ' ' . $row['nachname'], 0, 0, 'C'); - $pdf->SetFont('ARIAL', '', 12); - - $pdf->SetY(106); - $pdf->SetX(62); - $pdf->MultiCell(160, 6, 'hat im Studienjahr 20' . $Jahr . '/20' . $Jahr2 . ' am Training:', 0, 'L'); - - - $pos = $pdf->GetY()+26; + $pos = $pdf->GetY()+20; $pdf->SetY($pos); $pdf->SetX(24); - $pdf->MultiCell(160, 0, $row['ansprechpart'], 0, 'C'); + $pdf->SetFont('ARIAL', '', 12); + $pdf->MultiCell(160, 6, 'hat im Studienjahr 20' . $Jahr . '/20' . $Jahr2 . ' im Modul Soziale Kompetenzen den Kurs:', 0, 'C'); + $pos = $pdf->GetY()+9; + + $pdf->SetY($pos); + $pdf->SetX(24); + $pdf->SetFont('ARIAL', 'B', 12); + $bezeichnung = str_replace("–", "-", $row['Bezeichnung']); + $pdf->MultiCell(160, 6, "$bezeichnung", 0, 'C'); - $pos = $pdf->GetY()+6; + $pos = $pdf->GetY()+9; $pdf->SetY($pos); $pdf->SetX(24); $pdf->SetFont('ARIAL', '', 12); - $pdf->MultiCell(160, 0, 'teilgenommen.', 0, 'C'); + $pdf->Cell(160, 0, 'unter der Leitung von: '.$row['ansprechpart'], 0, 0, 'C'); + + $pos = $pdf->GetY()+9; + $pdf->SetY($pos); + $pdf->SetX(24); + $pdf->SetFont('ARIAL', '', 12); + $pdf->MultiCell(160, 0, 'belegt.', 0, 'C'); - - $pdf->SetY(235); - $pdf->SetX(19); + $pos = $pdf->GetY()+20; + $pdf->SetY($pos); + $pdf->SetX(24); $pdf->Cell(0, 0, 'Ludwigsburg, ' . date("d.m.Y", time()), 0, 0, 'L'); + + $pos = $pdf->GetY()+9; + $pdf->SetY($pos); + $pdf->SetX(24); + $pdf->SetFont('ARIAL', '', 9); + $pdf->Cell(160, 0, 'Diese Bescheinigung wurde maschinell erstellt und ist ohne Unterschrift gültig!', 0, 0, 'R'); //$pdf->Image('fusszeile.jpg', 20, 267, 5.1, 12.7); diff --git a/admin/bescheinigung/seminarscheine_sk.php b/admin/bescheinigung/seminarscheine_sk.php index df89122..168e054 100755 --- a/admin/bescheinigung/seminarscheine_sk.php +++ b/admin/bescheinigung/seminarscheine_sk.php @@ -58,27 +58,23 @@ while ($row = $result->fetch_array()){ $pdf->AddPage(); $pdf->useTemplate($tplidx,0,0,0); - $pdf->SetFont('ARIAL', 'B', 22); $pdf->SetY(76); #$pdf->SetTextColor(255,0,255); $pdf->Cell(0, 0, 'Bescheinigung über die Teilnahme am Sprachkurs', 0, 0, 'C'); - $pos = $pdf->GetY()+20; $pdf->SetY($pos); $pdf->SetFont('ARIAL', 'B', 12); $pdf->Cell(0, 0, $row['vorname'] . ' ' . $row['nachname'], 0, 0, 'C'); - $pdf->SetFont('ARIAL', '', 12); - $pos = $pdf->GetY()+20; $pdf->SetY($pos); $pdf->SetX(24); + $pdf->SetFont('ARIAL', '', 12); $pdf->Cell(160, 0, 'hat im Studienjahr 20' . $Jahr . '/20' . $Jahr2 . ' am Sprachkurs:', 0, 0, 'C'); $pos = $pdf->GetY()+9; - $pdf->SetY($pos); $pdf->SetX(24); $pdf->SetFont('ARIAL', 'B', 12); @@ -87,29 +83,23 @@ while ($row = $result->fetch_array()){ $pdf->MultiCell(160, 6, '"'.$bezeichnung.'" '.$niveau.'*', 0, 'C'); $pos = $pdf->GetY()+9; - $pdf->SetY($pos); $pdf->SetX(24); $pdf->SetFont('ARIAL', '', 12); $pdf->Cell(160, 0, 'unter der Leitung von: '.$row['ansprechpart'], 0, 0, 'C'); $pos = $pdf->GetY()+9; - $pdf->SetY($pos); $pdf->SetX(24); $pdf->SetFont('ARIAL', '', 12); $pdf->Cell(160, 0, 'teilgenommen.', 0, 0, 'C'); - - $pos = $pdf->GetY()+20; - $pdf->SetY($pos); $pdf->SetX(19); $pdf->Cell(0, 0, 'Ludwigsburg, ' . date("d.m.Y", time()), 0, 0, 'L'); $pos = $pdf->GetY()+9; - $pdf->SetY($pos); $pdf->SetX(24); $pdf->SetFont('ARIAL', '', 9);