app=$app; parent::__construct('P','mm','A4'); } function render() { $this->AddPage(); if($this->mandatsreferenzart=="wdh") $text=" (Wiederkehrende Zahlungen / Recurring Payments)"; if($this->firmensepa) { $this->makeUeberschrift('SEPA-Firmenlastschrift-Mandat'.$text); } else { $this->makeUeberschrift('SEPA-Lastschriftmandat'.$text); } $this->makeLeerZeile(); $this->makeListEintrag("Firma / Name",$this->firma); $this->makeListEintrag("Ansprechpartner",$this->name); $this->makeListEintrag("Strasse und Hausnummer", $this->strasse); $this->makeListEintrag("PLZ / Ort", $this->plzOrt); $this->makeListEintrag("E-Mail", $this->email); $this->makeLeerZeile(); $this->makeListEintrag("Ihre Kundennummer:", $this->kundenNr); //$this->makeListEintrag("Ihr Benutzername", $this->benutzername); $this->makeLeerZeile(); $this->makeText($this->ermaechText); $this->makeLeerZeile(); $this->makeText($this->hinweis); $this->makeLeerZeile(); $this->makeListEintrag("Gläubiger-Identifikationsnummer", $this->glID); $this->makeListEintrag("Mandatsreferenz:", $this->mandatsRef); $this->makeLeerZeile(); $this->makeListEintrag("Kreditinstitut", $this->bank); $this->makeListEintrag("Swift BIC", $this->swift); $this->makeListEintrag("Bankkontonummer - IBAN", $this->iban); $this->makeLeerZeile(); $datum=date("d.m.Y"); $this->makeListEintrag("Unterschrift / Stempel:", $this->musterlinie); $this->makeListEintrag("Ort, Datum:", $this->musterlinie); } // Funktionen function makeUeberschrift($in) { $this->SetFontClassic('Arial','B',12); $this->Cell(180,10,$this->app->erp->ReadyForPDF($in) ,1,1,'C'); } function makeListEintrag($in1, $in2) { $this->SetFontClassic('Arial','',12); $this->Cell(80,10,$this->app->erp->ReadyForPDF($in1),0,0); $this->SetFontClassic('Arial','',12); $this->Cell(80,10,$this->app->erp->ReadyForPDF($in2),0,1); } function makeText($in) { $this->SetFontClassic('Arial','',10); $this->MultiCell(160,5,$this->app->erp->ReadyForPDF($in),0); } function makeLeerZeile() { $this->SetFontClassic('Arial','',10); $this->Cell(80,10,' ',0,2); } // getter function getName() { $out=$this->name; return $out; } // setter function setName($in) { $this->name=$in; } }