Example #1
0
     sort($events);
     $MyQuery .= "AND EvCode in (" . implode(',', $events) . ") ";
 }
 $MyQuery .= ' ORDER BY EvCode, s64, s32, s16, s8, s4, s2';
 //print $MyQuery;exit;
 $Rs = safe_r_sql($MyQuery);
 if ($Rs) {
     $Etichetta = 0;
     while ($MyRow = safe_fetch($Rs)) {
         if ($Etichetta == 0) {
             $pdf->AddPage();
         }
         //Cerchia Etichetta
         // 			$pdf->Rect($pageMarginL+(($Etichetta % $Label4Column) * ($lblW+$lblSpaceH)),$pageMarginT+(intval($Etichetta / $Label4Column) * ($lblH+$lblSpaceV)),$lblW,$lblH,"D");
         $pdf->SetXY(0, 0);
         $pdf->SetLeftMargin($pageMarginL + $lblMarginH + $Etichetta % $Label4Column * ($lblW + $lblSpaceH));
         $pdf->SetTopMargin($pageMarginT + $lblMarginV + intval($Etichetta / $Label4Column) * ($lblH + $lblSpaceV));
         //Piazzola, Turno & Classe.Divisione
         $pdf->SetFont($pdf->FontStd, 'B', 20);
         $pdf->Cell(0.25 * ($lblW - 2 * $lblMarginH), 8, $MyRow->IndRank, 0, 0, 'L', 0);
         $pdf->SetFont($pdf->FontStd, 'B', 12);
         $pdf->SetXY($pdf->GetX() - 3, $pdf->GetY() + 2);
         $pdf->Cell(0.35 * ($lblW - 2 * $lblMarginH), 7, get_text('Score', 'Tournament') . ': ' . $MyRow->QuScore, 0, 0, 'C', 0);
         $pdf->Cell(0.4 * ($lblW - 2 * $lblMarginH), 6, $MyRow->EvCode, 0, 1, 'R', 0);
         //Arciere & Società
         $pdf->SetFont($pdf->FontStd, 'B', 12);
         $pdf->Cell($lblW - 2 * $lblMarginH, 6, $MyRow->FirstName . ' ' . $MyRow->Name, 0, 1, 'L', 0);
         $pdf->SetFont($pdf->FontStd, '', 10);
         $pdf->Cell(0.3 * $lblW - 2 * $lblMarginH, 5, $MyRow->NationCode, 0, 0, 'L', 0);
         // stampa l'elenco delle piazzole a cui dovrà andare...
         $tgts = array();