Source for file class.PDFUSER.php

Documentation is available at class.PDFUSER.php

  1. <?php
  2.  
  3.  
  4. /**
  5.  * Ermöglicht die Erstellung von PDF-Dokumenten
  6.  *
  7.  * @author Kay Koch
  8.  * @package src
  9.  * @since 01.03.05
  10.  * @subpackage pdf
  11.  * @version 1.0
  12.  */
  13.  
  14. if (version_compare(PHP_VERSION'5')) {
  15.     die('This file was generated for PHP 5');
  16. }
  17.  
  18. /**
  19.  * Interface zur Erstellung von pdf-Dokumenten
  20.  *
  21.  * @author Kay Koch, <kay.koch@gmx.de>
  22.  */
  23. require_once('src/interfaces/interface.PDFINTERFACE.php');
  24.  
  25. /**
  26.  * Erstellt PDF-Dokumente
  27.  *
  28.  * @author Olivier PLATHEY
  29.  * @version 1.52
  30.  */
  31. require_once('src/pdf/class.FPDF.php');
  32.  
  33. /* user defined includes */
  34. // section -64--88-122--2-1a4ded3:102c56edcaa:-7ff5-includes begin
  35. // section -64--88-122--2-1a4ded3:102c56edcaa:-7ff5-includes end
  36.  
  37. /* user defined constants */
  38. // section -64--88-122--2-1a4ded3:102c56edcaa:-7ff5-constants begin
  39. // section -64--88-122--2-1a4ded3:102c56edcaa:-7ff5-constants end
  40.  
  41. /**
  42.  * Ermöglicht die Erstellung von PDF-Dokumenten
  43.  *
  44.  * @access public
  45.  * @author Kay Koch
  46.  * @package src
  47.  * @since 01.03.05
  48.  * @subpackage pdf
  49.  * @version 1.0
  50.  */
  51.     extends src_pdf_FPDF
  52.         implements src_interfaces_PDFINTERFACE
  53. {
  54.     // --- ATTRIBUTES ---
  55.  
  56.     
  57.     /**
  58.      * überschrift des Dokumentes
  59.      *
  60.      * @access protected
  61.      * @var string 
  62.      */
  63.     protected $title = 'LANDESVERBAND SPORTTAUCHEN RHEINLAND-PFALZ E.V.   (LVST)  LVST-Tauchgenehmigung';
  64.  
  65.     // --- OPERATIONS ---
  66.  
  67.     
  68.     /**
  69.      * Kopfzeile des Dokumentes
  70.      *
  71.      * @access public
  72.      * @author Kay Koch, <kay.koch@gmx.de>
  73.      * @return void 
  74.      */
  75.     public function header()
  76.     {
  77.         // section -64--88-122--2-339007d5:1043cd4e8c9:-7fd5 begin
  78.         // Logos
  79.         $this->Image('images/lvst-Startseite.jpg'1216);
  80.         $this->Image('images/Rheinland-Pfalz-Wappen.jpg'18016);
  81.         // Abstand des Textes von der Seite
  82.         $this->Ln(5);
  83.         // Arial bold 12
  84.         $this->SetFont('Arial''b'12);
  85.         // Title
  86.         $this->MultiCell(012$this->title1'C');
  87.         $this->Ln(20);
  88.         // section -64--88-122--2-339007d5:1043cd4e8c9:-7fd5 end
  89.     }
  90.  
  91.     /**
  92.      * Fußzeile des Dokumentes
  93.      *
  94.      * @access public
  95.      * @author Kay Koch, <kay.koch@gmx.de>
  96.      * @return void 
  97.      */
  98.     public function footer()
  99.     {
  100.         // section -64--88-122--2-339007d5:1043cd4e8c9:-7fd3 begin
  101.         // heutiges Datum
  102.         $thisDay strftime("%A, %d. %B %Y - %H:%Mh");
  103.         $info="(1) LVST-Mitglieder müssen sich nicht mehr in der Anmeldestelle Altreim-Klause oder Tankstelle anmelden. Sie müssen die Bestätigung im PKW sichtbar auslegen.";
  104.         // Position at 1.5 cm from bottom
  105.         $this->SetY(-20);
  106.         // Arial 8
  107.         $this->SetFont('Arial'''8);
  108.         // Infotext
  109.         $this->MultiCell(04$info'T',  'L');
  110.         // Anmeldedatum
  111.         $this->Cell(06'Angemeldet am: ' $thisDay00'L');
  112.         // section -64--88-122--2-339007d5:1043cd4e8c9:-7fd3 end
  113.     }
  114.  
  115.     /**
  116.      * nimmt Daten für einen Tag auf und bearbeitet sie weiter
  117.      *
  118.      * @access public
  119.      * @author Kay Koch, <kay.koch@gmx.de>
  120.      * @param array 
  121.      * @param date 
  122.      * @return void 
  123.      */
  124.     public function createDate($arrHour$datum)
  125.     {
  126.         // section -64--88-122--2-339007d5:1043cd4e8c9:-7fd1 begin
  127.         $this->beginNewPage("");
  128.         $this->SetFont('Arial''B'22);
  129.         $this->Cell(010$arrHour['realdatum'" - " $arrHour['seename']02);
  130.         $this->Ln(20);
  131.         $this->SetFont('Arial''B'18);
  132.         $this->Cell(010'    Verantwortlicher: ' $arrHour['vorname'" " $arrHour['name']02);
  133.         $this->Cell(010'    Verband: ' $arrHour['verband']02);
  134.         $this->Cell(010'    Verein: ' $arrHour['verein']02);
  135.         $this->Cell(010'    VereinNr.: ' $arrHour['verein_nr']02);
  136.         $this->Cell(010'    Email: ' $arrHour['email']02);
  137.         $this->Cell(010'    Telefon: ' $arrHour['telefon']02);
  138.         $this->Ln(10);
  139.         $this->Cell(010'    Qualifikation: ' $arrHour['brevet']02);
  140.         $this->Cell(010'    Anzahl der Taucher (gesamt): ' $arrHour['anzahl']02);
  141.         $this->Cell(010'     - davon kostenpflichtig: ' $arrHour['anzahlZahler']02);
  142.         $this->Cell(010'    Tauchzeitraum: ' $arrHour['realstunde']02);
  143.         $this->ln(35);
  144.         $this->SetFont('Arial''B'12);
  145.         $this->Cell(10310'Datum / Unterschrift des Verantwortlichen vor Ort''T',0);
  146.         $this->SetFont('Arial'''8);
  147.         $this->SetXY($this->GetX()-2,$this->GetY()-1);
  148.         $this->Cell(010'(1)',0,2);
  149.  
  150.         // section -64--88-122--2-339007d5:1043cd4e8c9:-7fd1 end
  151.     }
  152.  
  153.     /**
  154.      * Beginnt eine neues Dokument
  155.      *
  156.      * @access public
  157.      * @author Kay Koch, <kay.koch@gmx.de>
  158.      * @param EINSEE 
  159.      * @return void 
  160.      */
  161.     public function beginNewDocument($oSee)
  162.     {
  163.         // section -64--88-122--2-339007d5:1043cd4e8c9:-7fcc begin
  164.         $this->AliasNbPages();
  165.         $this->open()// Dokument beginnen
  166.         // section -64--88-122--2-339007d5:1043cd4e8c9:-7fcc end
  167.     }
  168.  
  169.     /**
  170.      * Beginnt eine neue Seite
  171.      *
  172.      * @access public
  173.      * @author Kay Koch, <kay.koch@gmx.de>
  174.      * @param time 
  175.      * @return void 
  176.      */
  177.     public function beginNewPage($title)
  178.     {
  179.         // section -64--88-122--2-339007d5:1043cd4e8c9:-7fc5 begin
  180.         $this->AddPage();
  181.         // section -64--88-122--2-339007d5:1043cd4e8c9:-7fc5 end
  182.     }
  183.  
  184. /* end of class src_pdf_PDFUSER */
  185.  
  186. ?>

Documentation generated on Sat, 24 Mar 2007 09:59:51 +0100 by phpDocumentor 1.3.1