SetTextColor(255,255,255); $this->SetFillColor(100,100,100); $this->SetY(-15); $this->SetFont('Helvetica','I',6); $this->Cell(190,3,'JB-Transport.de - Bautzner Str. 67 - 04347 Leipzig ***** Interne Liste - NON Public ***** F. Teichert 2011-2014','1','0','C','1'); } function Header() { $this->SetFont('Helvetica','B',20); // $pdf->SetTextColor(0,160,230); // $this->Image('template/images/logo-lvz-post-2014.jpg', 10, 7); $this->SetFont('Helvetica','BI',20); $this->Image('template/images/jb_logo2.png', 125, 7); } } $pdf = new PDF('P','mm','A4'); $pdf->AddPage(); // blau (0,160,230) // Orange (240,150, 0) // grau (200,200,200) $pdf->SetTextColor(0,0,140); $pdf->SetFont('Helvetica','B',16); $infodatum="Fahrzeugliste - Stand: ".$vdatum; $pdf->SetTextColor(0,0,0); $pdf->SetFont('Helvetica','BI',16); $pdf->Cell(110,5,utf8_decode($infodatum),'0','1','L','0'); $pdf->Write(1,"\n"); //---------------------------------------------------------------------------------------------------------------- // PKW //---------------------------------------------------------------------------------------------------------------- $zahl=0; $key=0; $pdf->Write(1,"\n"); $pdf->SetFillColor(100,100,100); $pdf->SetTextColor(100,100,100); $pdf->SetFont('Helvetica','B',14); $pdf->Cell(193,6,'PKW','B','1','L','0'); $pdf->SetTextColor(255,255,255); //------------------------------------- Tabellenbeschreibung $pdf->SetTextColor(100,100,100); $pdf->SetFont('Helvetica','BI',6); $pdf->Cell(15,3,"Kennzeichen",'0','0','L','0'); $pdf->Cell(42,3,"Bezeichnung",'0','0','L','0'); $pdf->Cell(32,3,"Fahrgestellnummer",'0','0','L','0'); $pdf->Cell(26,3,"KBA 2/3",'0','0','L','0'); $pdf->Cell(16,3,"1.Zulassung",'0','0','L','0'); $pdf->Cell(16,3,"Besitz:",'0','0','L','0'); $pdf->Cell(18,3,"Hubraum",'0','0','L','0'); $pdf->Cell(18,3,"Leistung KW/PS",'0','0','L','0'); $pdf->Cell(22,3,"SFK",'0','1','L','0'); $cars = $GLOBALS['mysql']->query("SELECT * FROM fahrzeuge WHERE typ=1 and aktiv>0 and besitz<3 ORDER BY kz"); $pdf->SetTextColor(0,0,0); $pdf->SetFont('Helvetica','B',8); while($row = $cars->fetch_assoc()) { //------------------------------------- $pdf->Cell(15,5,($row['kz']),'B','0','L','0'); $pdf->SetFont('Helvetica','',8); $pdf->Cell(42,5,($row['hersteller']." ".$row['name']),'B','0','L','0'); $pdf->Cell(32,5,($row['fin']),'B','0','L','0'); $pdf->Cell(26,5,($row['kba2']."/".$row['kba3']),'B','0','L','0'); $pdf->Cell(16,5,($row['ezltag'].".".$row['ezlmonat'].".".$row['ezljahr']),'B','0','R','0'); $pdf->Cell(16,5,($row['jbtag'].".".$row['jbmonat'].".".$row['jbjahr']),'B','0','R','0'); $pdf->Cell(18,5,($row['ccm']." ccm"),'B','0','L','0'); $pdf->Cell(18,5,($row['kw']."KW / ".$row['ps']."PS"),'B','0','R','0'); $pdf->Cell(22,5,($row['sfk']),'B','1','L','0'); $key++; } //---------------------------------------------------------------------------------------------------------------- // Caddy //---------------------------------------------------------------------------------------------------------------- $zahl=0; $key=0; $pdf->Write(1,"\n"); $pdf->SetFillColor(100,100,100); $pdf->SetTextColor(100,100,100); $pdf->SetFont('Helvetica','B',14); $pdf->Cell(193,6,'Caddy','B','1','L','0'); $pdf->SetTextColor(255,255,255); //------------------------------------- Tabellenbeschreibung $pdf->SetTextColor(100,100,100); $pdf->SetFont('Helvetica','BI',6); $pdf->Cell(15,3,"Kennzeichen",'0','0','L','0'); $pdf->Cell(42,3,"Bezeichnung",'0','0','L','0'); $pdf->Cell(32,3,"Fahrgestellnummer",'0','0','L','0'); $pdf->Cell(26,3,"KBA 2/3",'0','0','L','0'); $pdf->Cell(16,3,"1.Zulassung",'0','0','L','0'); $pdf->Cell(16,3,"Besitz:",'0','0','L','0'); $pdf->Cell(18,3,"Hubraum",'0','0','L','0'); $pdf->Cell(18,3,"Leistung KW/PS",'0','0','L','0'); $pdf->Cell(22,3,"SFK",'0','1','L','0'); $cars = $GLOBALS['mysql']->query("SELECT * FROM fahrzeuge WHERE typ=2 and aktiv>0 and besitz<3 ORDER BY kz"); $pdf->SetTextColor(0,0,0); $pdf->SetFont('Helvetica','B',8); while($row = $cars->fetch_assoc()) { //------------------------------------- $pdf->Cell(15,5,($row['kz']),'B','0','L','0'); $pdf->SetFont('Helvetica','',8); $pdf->Cell(42,5,($row['hersteller']." ".$row['name']),'B','0','L','0'); $pdf->Cell(32,5,($row['fin']),'B','0','L','0'); $pdf->Cell(26,5,($row['kba2']."/".$row['kba3']),'B','0','L','0'); $pdf->Cell(16,5,($row['ezltag'].".".$row['ezlmonat'].".".$row['ezljahr']),'B','0','R','0'); $pdf->Cell(16,5,($row['jbtag'].".".$row['jbmonat'].".".$row['jbjahr']),'B','0','R','0'); $pdf->Cell(18,5,($row['ccm']." ccm"),'B','0','L','0'); $pdf->Cell(18,5,($row['kw']."KW / ".$row['ps']."PS"),'B','0','R','0'); $pdf->Cell(22,5,($row['sfk']),'B','1','L','0'); $key++; } //---------------------------------------------------------------------------------------------------------------- // Transporter //---------------------------------------------------------------------------------------------------------------- $zahl=0; $key=0; $pdf->Write(1,"\n"); $pdf->SetFillColor(100,100,100); $pdf->SetTextColor(100,100,100); $pdf->SetFont('Helvetica','B',14); $pdf->Cell(193,6,'Transporter','B','1','L','0'); $pdf->SetTextColor(255,255,255); //------------------------------------- Tabellenbeschreibung $pdf->SetTextColor(100,100,100); $pdf->SetFont('Helvetica','BI',6); $pdf->Cell(15,3,"Kennzeichen",'0','0','L','0'); $pdf->Cell(42,3,"Bezeichnung",'0','0','L','0'); $pdf->Cell(32,3,"Fahrgestellnummer",'0','0','L','0'); $pdf->Cell(26,3,"KBA 2/3",'0','0','L','0'); $pdf->Cell(16,3,"1.Zulassung",'0','0','L','0'); $pdf->Cell(16,3,"Besitz:",'0','0','L','0'); $pdf->Cell(18,3,"Hubraum",'0','0','L','0'); $pdf->Cell(18,3,"Leistung KW/PS",'0','0','L','0'); $pdf->Cell(22,3,"SFK",'0','1','L','0'); $cars = $GLOBALS['mysql']->query("SELECT * FROM fahrzeuge WHERE typ>2 and aktiv>0 and besitz<3 ORDER BY kz"); $pdf->SetTextColor(0,0,0); $pdf->SetFont('Helvetica','B',8); while($row = $cars->fetch_assoc()) { //------------------------------------- $pdf->Cell(15,5,($row['kz']),'B','0','L','0'); $pdf->SetFont('Helvetica','',8); $pdf->Cell(42,5,($row['hersteller']." ".$row['name']),'B','0','L','0'); $pdf->Cell(32,5,($row['fin']),'B','0','L','0'); $pdf->Cell(26,5,($row['kba2']."/".$row['kba3']),'B','0','L','0'); $pdf->Cell(16,5,($row['ezltag'].".".$row['ezlmonat'].".".$row['ezljahr']),'B','0','R','0'); $pdf->Cell(16,5,($row['jbtag'].".".$row['jbmonat'].".".$row['jbjahr']),'B','0','R','0'); $pdf->Cell(18,5,($row['ccm']." ccm"),'B','0','L','0'); $pdf->Cell(18,5,($row['kw']."KW / ".$row['ps']."PS"),'B','0','R','0'); $pdf->Cell(22,5,($row['sfk']),'B','1','L','0'); $key++; } // echo utf8_decode($row_touren['tour']) //--------------------------------------- if ($_GET['icon'] ==1) { $pdf->Output('Fahrzeugliste_'.($vdatum).'.pdf','D'); } else { $pdf->Output('Fahrzeugliste_'.($vdatum).'.pdf','I'); } ?>