Files
crm.e5.pl/modules/templates/EcmSales/e5/footer.php
2024-04-27 09:23:34 +02:00

93 lines
2.9 KiB
PHP
Executable File

<?
error_reporting(0);
$r=mysql_fetch_array(mysql_query("select document_no, ecmlanguage from ".strtolower($_REQUEST['module'])." where id='".$_REQUEST['record']."'"));
$this->SetFont('arialpl', '', 8);
$this->SetY($this->fh-15);
$this->SetDrawColor(0,0,0);
$this->SetFillColor(255,255,255);
$this->Rect(0, $this->getBreakLine(), $this->fw, $this->bMargin+1, "F");
$this->SetDrawColor(0,0,0);
$this->Cell(0, 10, $this->PageNo().'/{nb}');
$this->Ln(5);
$this->AliasNbPages();
$this->SetLineWidth(0);
$this->SetDrawColor(0,0,0);
$this->Line($this->lMargin,-17-16+1,$this->fw-$this->rMargin,-17-16+1);
if($this->edt->show_footer_on_all_pages == 0 && $this->page > 1) {
return;
}
$this->SetXY($this->lMargin,-20-16);
$this->SetFont('arialpl','','7');
$this->Cell(110,4,$this->edt->footer_account);
$this->SetFont('arialpl','B','7');
$this->Cell(20,4,'Bank: ');
$this->SetFont('arialpl','','7');
$this->Cell(45,4,$this->edt->footer_bankname,0,0,'L');
$this->Ln();
$this->SetFont('arialpl','','7');
if ($r['ecmlanguage']=='pl_pl')
$this->Cell(110,4,$this->edt->footer_address);
else
$this->Cell(110,4,$this->edt->footer_address.', Poland');
$this->SetFont('arialpl','B','7');
if ($r['ecmlanguage']=='pl_pl')
$this->Cell(20,4,'Numer konta: ');
else
$this->Cell(20,4,'Bank IBAN: ');
$this->SetFont('arialpl','','7');
$this->Cell(45,4,$this->edt->account_number,0,0,'L');
$this->Ln();
$this->SetFont('arialpl','','7');
$this->Cell(110,4,$this->edt->footer_phone);
if ($r['ecmlanguage']=='pl_pl') {
$this->SetFont('arialpl','B','7');
$this->Cell(20,4,'Numer GIOS: ');
$this->SetFont('arialpl','','7');
$this->Cell(45,4,"E0006254W",0,0,'L');
} else {
$this->SetFont('arialpl','B','7');
$this->Cell(20,4,'Bank SWIFT: ');
$this->SetFont('arialpl','','7');
$this->Cell(45,4,"BIGBPLPW",0,0,'L');
}
$this->Ln();
$this->SetFont('arialpl','','7');
$this->Cell(110,4,$this->edt->footer_fax);
$this->SetFont('arialpl','B','7');
$this->Cell(20,4,'KRS: ');
$this->SetFont('arialpl','','7');
$this->Cell(45,4,$this->edt->footer_krs,0,0,'L');
$this->Ln();
$this->SetFont('arialpl','','7');
$this->Cell(110,4,'www.e5.pl');
$this->SetFont('arialpl','B','7');
$this->Cell(20,4,'NIP: ');
$this->SetFont('arialpl','','7');
$this->Cell(45,4,$this->edt->footer_nip,0,0,'L');
$this->Ln();
$this->SetFont('arialpl','','7');
$this->Cell(110,4,'');
$this->SetFont('arialpl','B','7');
$this->Cell(20,4,'REGON: ');
$this->SetFont('arialpl','','7');
$this->Cell(45,4,$this->edt->footer_regon,0,0,'L');
$this->Ln();
$this->SetFont("arialpl","B",8);
$this->SetXY(40,$this->GetY()+1);
$this->Cell(45,4,$r['document_no'],0,0,'L');
?>