Server IP : 10.111.20.6  /  Your IP : 216.73.217.121
Web Server : Apache
System : Linux webm006.cluster111.gra.hosting.ovh.net 5.15.206-ovh-vps-grsec-zfs-classid #1 SMP Fri May 15 02:41:25 UTC 2026 x86_64
User : edizioni ( 7252)
PHP Version : 8.3.23
Disable Function : _dyuweyrj4,_dyuweyrj4r,dl
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON
Directory (0705) :  /home/edizioni/stampaeweb/../wordpress/../extonymask/components/../valeria/

[  Home  ][  C0mmand  ][  Upload File  ]

Current File : /home/edizioni/stampaeweb/../wordpress/../extonymask/components/../valeria/stampapdf.php
<?php
      require('fpdf/fpdf.php');

      include('funzionipdf.php');
      header ("Content-Type: text / html; charset = utf-8");
      //header('Content-Type: text/html; charset=utf-8\r\n');

      $altezza_riga=12;

class PDF extends FPDF
{
// Page header
function Header()
{
    // Logo
    $this->Image('logo.png',10,6,40);

    // Arial bold 15
    //$this->SetFont('Arial','B',15);
    // Move to the right
    //$this->Cell(80);
    // Title
    //$this->Cell(30,10,'Title',1,0,'C');
    // Line break
    //$this->Ln(20);
}

// Page footer
function Footer()
{
    // Position at 1.5 cm from bottom
    $this->SetY(-15);
    // Arial italic 8
    $this->SetFont('Arial','I',8);
    // Page number
    //$this->Cell(0,10,'Page '.$this->PageNo().'/{nb}',0,0,'C');
}
}

// Instanciation of inherited class
$pdf = new PDF();
$pdf->AliasNbPages();
$pdf->AddPage();
$pdf->SetFont('Times','',12);
             $dataoggi = date("d-m-Y");
            testo($pdf, "Dettaglio prodotti del $dataoggi",7,55,12,"B");

            rettangolo($pdf, 5, 57, 200, 10, "F", 242,194,82);
            rettangolo($pdf, 5, 57, 10, 10, ""); testo($pdf, "#",9,63,12,"");
            rettangolo($pdf, 5, 57, 175, 10, ""); testo($pdf, "Oggetto",17,63,12,"");
            rettangolo($pdf, 5, 57, 200, 10, ""); testo($pdf, "Pezzi" ,190,63,12,"");


            $dataoggi = date("d-m-Y");
            $filename = 'oggi.txt';
            $rows = file($filename);
              foreach ( $rows as $row ) {
                  // Separo le colonne
                  $columns = explode( ',', $row );
                      $i++; $w++;
                  $nome = $columns[0];
                  $quanti = $columns[1];
                       if ($i%2==0){
                        rettangolo($pdf, 5, 61+$w*6, 175, 6, "F",227,237,252);
                        rettangolo($pdf, 5, 61+$w*6, 200, 6, "F",227,237,252);
                        rettangolo($pdf, 5, 61+$w*6, 10, 6,  "F",227,237,252);
                       }else{
                        rettangolo($pdf, 5, 61+$w*6, 175, 6);
                        rettangolo($pdf, 5, 61+$w*6, 200, 6);
                        rettangolo($pdf, 5, 61+$w*6, 10, 6);
                       }

                  testo($pdf, ucwords($nome),20,65 +$w*6,12,"");
                  testo($pdf, $quanti,190,65 +$w*6,12,"");
              }

$pdf->Output();

?>