$pdf = new myPDF('P', 'mm', 'A4'); $pdf->SetMargins(20, 15); $pdf->AddPage(); $pdf->image("../logoaikido.png", 20, 10, 28.1); $pdf->SetFont('Helvetica', 'B', 28); $pdf->Text(89, 15, iconv('UTF-8', 'windows-1252', 'AÏKIDO')); $pdf->Text(65, 25, 'Saint Cyr Club 78'); $pdf->SetFontSize(18); $pdf->Text(90, 35, '(ASCC78)'); $pdf->Text(75, 50, 'FICHE D\'INSCRIPTION'); $pdf->Text(78, 57, 'SAISON ' . saison()); $pdf->SetFont('Arial', '', 11); $pdf->SetXY(20, 70); $pdf->ecrire("Nom: "); $pdf->getValue("nom"); $pdf->SetX(88); $pdf->ecrire("Prénom: "); $pdf->getValue("prenom"); $pdf->SetX(140); $pdf->ecrire("Sexe: "); $pdf->choix("sexe", array("M", "F")); $pdf->ecrire("\n"); $pdf->ecrire("Né le: "); $pdf->getValue("date_naissance"); $pdf->SetX(88); $pdf->ecrire("à "); $pdf->getValue("lieu_naissance"); $pdf->ecrire("\n"); $pdf->ecrire("Adresse No: "); $pdf->getValue("no_adresse"); $pdf->SetX(88);
$pdf = new myPDF('L', 'mm', 'Letter'); $date = date("m/d/Y h:i A"); $pdf->date = $date; $header1 = array('Usage Order #', 'Used By', 'For Tool', 'Date', 'Notes', 'Status'); $header = array('Component Used', 'Quantity Used', 'Cost', 'Status', 'Date Used', 'Subtotal'); $pdf->AliasNbPages(); $pdf->AddPage(); $pdf->SetY(35); $pdf->BuildTable1($header1, $data1); $pdf->SetY(55); $pdf->BuildTable($header, $data); $pdf->Ln(6); $substring = " Total Subtotal: \$" . $subtotal . " "; $substrwidth = $pdf->GetStringWidth($substring); $substrX = 260 - $substrwidth; $pdf->SetX($substrX); $pdf->Cell($substrwidth, 6, $substring, 1, 1, 'C'); $tax = $subtotal * 0.075; $tax = round($tax, 2); $tax = number_format((double) $tax, 2, '.', ''); $taxstring = " Tax (7.5%): \$" . $tax . " "; $taxstrwidth = $pdf->GetStringWidth($taxstring); $taxstrX = 260 - $taxstrwidth; $pdf->SetX($taxstrX); $pdf->Cell($taxstrwidth, 6, $taxstring, 1, 1, 'C'); $pdf->SetFont('', 'B', 12); $grandtotal = $tax + $subtotal; $grandtotal = round($grandtotal, 2); $grandtotal = number_format((double) $grandtotal, 2, '.', ''); $grandtotalstring = " Grand Total: \$" . $grandtotal . " "; $grandtotstrwidth = $pdf->GetStringWidth($grandtotalstring);
$pdf->SetLeftMargin(20); //linker Rand 20 mm $pdf->SetAuthor("Mission-Net"); $pdf->SetCreator("Mission-Net"); $st_pdf_keywords = 'Reg.-No.: ' . $var_registrationnr; $pdf->SetKeywords($st_pdf_keywords); $pdf->SetSubject("Mission-Net Registration"); $pdf->SetTitle("Registration for Mission-Net 2009"); //######################HEADER########### //--------------------------------------- // Information und Logo //--------------------------------------- //y-Position setzten $pdf->SetY(25); //Setzten des Teenstreets Logo $pdf->SetX(20); $pdf->Image("images/MN_Logo_kleiner.png", $pdf->GetX(), $pdf->GetY(), 60, 20, 'png', 'http://www.mission-net.org'); //Zweites Logo $pdf->SetY(25); $pdf->SetX(135); $pdf->Image("images/MN_Logo_kleiner.png", $pdf->GetX(), $pdf->GetY(), 60, 20, 'png', 'http://www.mission-net.org'); //Linie $pdf->setLineWidth(1); $pdf->Line(20, 45, 195, 45); //Cell, Anmeldung gueltig $pdf->SetY(50); $pdf->SetFont('Arial', 'B', 10); $pdf->Cell(0, 1, T_("Please print this page, sign it and send it to us, if you are under 18 years."), 0, 0, 'R'); //#################HEADER END############ //#################Mission-Net ADDRESS####### $pdf->SetX(20);