| Server IP : 37.9.174.138 / Your IP : 216.73.216.117 Web Server : Apache System : Linux vps6.backend.sk 6.12.100+deb13-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.12.100-1 (2026-07-30) x86_64 User : ftpuser ( 1001) PHP Version : 8.4.24 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /var/www/html/backend-accounting.sk/app/modules/dpfob/code/ |
Upload File : |
<?php
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
namespace modules\dpfob\code;
/**
* Description of Gallery
*
* @author maros
*/
class PdfGeneratorTemplate extends \TCPDF {
public function Header() {
$this->Image(DOCUMENT_ROOT . "img/logo-doc.png", 15, 15, '', 15, '', '', '', 0, false);
$this->SetFillColor(0, 0, 0);
$x = 135;
$y = 15;
$w = 60;
$h = 16;
$this->Rect($x, $y, $w, $h, 'F');
$this->SetTextColor(255, 255, 255);
$this->SetXY($x, $y);
$this->SetFont('dejavusans', 'B', 10);
$this->Cell($w, $h, 'SPLNOMOCNENIE', 0, 0, 'C', 0, '', 0, false, 'T', 'C');
$this->SetTextColor(0, 0, 0);
}
public function Footer() {
$this->SetFont('dejavusans', '', 8);
$y = 270;
$this->Line(15, $y, 195, $y, array('width' => 0, 'cap' => 'butt', 'join' => 'miter', 'dash' => 0, 'color' => array(0, 0, 0)));
$y = $y + 3;
$this->SetTextColor(85, 85, 85);
$this->writeHTMLCell(60, '', 15, $y, '+421 902 110 378<br>uctovnictvo@backend.sk<br>www.backend-accounting.sk', 0, 0, false, true, 'R', true);
$this->writeHTMLCell(60, '', 75, $y - 1, '<h3>Backend Accounting s.r.o.</h3>', 0, 0, false, true, 'C', true);
$this->writeHTMLCell(60, '', 75, $y + 4, 'Žižkova 2633/13 040 01 Košice<br>Office: Žižkova 13, 040 01 Košice', 0, 0, false, true, 'C', true);
$this->writeHTMLCell(60, '', 135, $y, 'IČO: 52 886 611<br>DIČ: 212 116 4320<br>IČ DPH: SK 212 116 4320', 0, 0, false, true, 'L', true);
}
public function Footer2() {
$cnf = new TrainingsConfig();
$this->writeHTMLCell('', '', 15, $y, toHtml($cnf->getConfig(TrainingsConfig::CA_FOOTER)), 0, 0, false, true, 'L', true);
$this->writeHTMLCell('', '', 155, $y, implode("<br>", array(
"IČO: " . $cnf->getConfig(TrainingsConfig::CA_IDN),
"DIČ: " . $cnf->getConfig(TrainingsConfig::CA_TIN),
"IČ DPH: " . $cnf->getConfig(TrainingsConfig::CA_VAT),
)), 0, 0, false, true, 'R', true);
$y = $y + 12;
$this->SetFont('dejavusans', 'I', 8);
$this->writeHTMLCell(205, '', 15, $y, 'Strana ' . $this->getAliasNumPage() . '/' . $this->getAliasNbPages(), 0, 0, false, true, 'R', true);
}
}