Example #1
0
 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();
         $pos = array();
         $n = 2;
         /*
          * il ?: mi serve perchè 48*2>64 e 24*2>32 e non riuscirei a fare la prima fase se parto dai 1/48 o dai 1/24.
          */
         while ($n <= ($MyRow->EvFinalFirstPhase == 48 ? 64 : ($MyRow->EvFinalFirstPhase == 24 ? 32 : $MyRow->EvFinalFirstPhase))) {
Example #2
0
     // Classe
     $pdf->SetXY($myPosX + 5, $pdf->GetY() + 2);
     $pdf->SetFont($pdf->FontStd, 'I', 12);
     $pdf->Cell(83, 4, get_text('Class'), 0, 1, 'L', 0);
     // valore classe
     $pdf->SetX($myPosX + 5);
     $pdf->SetFont($pdf->FontStd, 'B', 12);
     $pdf->Cell(83, 4, get_text($MyRow->ClDescription, '', '', true), 0, 1, 'L', 0);
 } else {
     //Divisione
     $pdf->SetXY($myPosX + 5, $pdf->GetY() + 2);
     $pdf->SetFont($pdf->FontStd, 'I', 12);
     $pdf->Cell($MyRow->AcIsAthlete == 1 ? 40 : 83, 4, $MyRow->AcIsAthlete == 1 ? get_text('Division') : get_text('Type', 'Tournament'), 0, $MyRow->AcIsAthlete == 1 ? 0 : 1, 'L', 0);
     // Classe
     if ($MyRow->AcIsAthlete == 1) {
         $pdf->SetXY($pdf->GetX() + 3, $pdf->GetY());
         $pdf->SetFont($pdf->FontStd, 'I', 12);
         $pdf->Cell(40, 4, get_text('Class'), 0, 1, 'L', 0);
     }
     // valore divisione
     $pdf->SetX($myPosX + 5);
     $pdf->SetFont($pdf->FontStd, 'B', 12);
     $pdf->Cell($MyRow->AcIsAthlete == 1 ? 40 : 83, 4, $MyRow->AcIsAthlete == 1 ? get_text($MyRow->DivDescription, '', '', true) : get_text($MyRow->ClDescription, '', '', true), 0, $MyRow->AcIsAthlete == 1 ? 0 : 1, 'L', 0);
     // valore classe
     if ($MyRow->AcIsAthlete == 1) {
         $pdf->SetX($pdf->GetX() + 3);
         $pdf->SetFont($pdf->FontStd, 'B', 12);
         $pdf->Cell(40, 4, get_text($MyRow->ClDescription, '', '', true), 0, 1, 'L', 0);
     }
 }
 //Ind/team
 while ($MyRow = safe_fetch($Rs)) {
     if ($Etichetta == 0) {
         $pdf->AddPage();
     }
     //Cerchia Etichetta
     //$pdf->Rect((($Etichetta % 3) * $lblW),(intval($Etichetta / 3) * $lblH),$lblW,$lblH,"D");
     //Status
     if ($MyRow->Status > 1) {
         $pdf->Rect($Etichetta % 3 * $lblW + 4, intval($Etichetta / 3) * $lblH + 4, $lblW - 8, $lblH - 10 * $lblSp, "FD");
     }
     //Piazzola, Turno & Classe.Divisione
     $pdf->SetXY($Etichetta % 3 * $lblW + 5, intval($Etichetta / 3) * $lblH + 2 * $lblSp);
     $pdf->SetFont($pdf->FontStd, 'B', 20);
     $pdf->Cell(15, 8, $MyRow->TargetNo, 0, 0, 'L', 0);
     $pdf->SetFont($pdf->FontStd, 'B', 12);
     $pdf->SetXY($pdf->GetX(), intval($Etichetta / 3) * $lblH + 3 * $lblSp);
     $pdf->Cell(25, 6, get_text('Session') . ": " . $MyRow->Session, 0, 0, 'C', 0);
     $pdf->Cell($lblW - 50, 6, $MyRow->DivCode . ' ' . $MyRow->ClassCode, 0, 0, 'R', 0);
     //Arciere & Società
     $pdf->SetXY($Etichetta % 3 * $lblW + 5, intval($Etichetta / 3) * $lblH + 6 * $lblSp);
     $pdf->SetFont($pdf->FontStd, 'B', 12);
     $pdf->Cell($lblW - 10, 6, $MyRow->FirstName . ' ' . $MyRow->Name, 0, 0, 'L', 0);
     $pdf->SetXY($Etichetta % 3 * $lblW + 5, intval($Etichetta / 3) * $lblH + 9 * $lblSp);
     $pdf->SetFont($pdf->FontStd, '', 10);
     $pdf->Cell($lblW - 10, 5, $MyRow->NationCode . " - " . $MyRow->Nation, 0, 0, 'L', 0);
     //Barcode
     $pdf->SetXY($Etichetta % 3 * $lblW + 5, intval($Etichetta / 3) * $lblH + 12 * $lblSp);
     $pdf->SetFont('barcode', '', 28);
     $pdf->Cell($lblW - 10, 10, mb_convert_encoding('*$' . $MyRow->EnId, "UTF-8", "cp1252") . "*", 0, 0, 'C', 0);
     //$pdf->Rect((($Etichetta % 3) * 70)+0,(intval($Etichetta / 3) * 37)+0,70,37);
     $Etichetta = ++$Etichetta % 24;
Example #4
0
 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->TargetNo, 0, 0, 'L', 0);
         $pdf->SetFont($pdf->FontStd, 'B', 12);
         $pdf->SetXY($pdf->GetX(), $pdf->GetY() + 2);
         $pdf->Cell(0.35 * ($lblW - 2 * $lblMarginH), 6, get_text('Session') . ": " . $MyRow->Session, 0, 0, 'C', 0);
         $pdf->Cell(0.4 * ($lblW - 2 * $lblMarginH), 6, $MyRow->DivCode . ' ' . $MyRow->ClassCode, 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($lblW - 2 * $lblMarginH, 5, $MyRow->NationCode . " - " . $MyRow->Nation, 0, 1, 'L', 0);
         //Barcode
         if ($printBarcode) {
             $pdf->SetFont('barcode', '', 28);
             $pdf->Cell($lblW - 2 * $lblMarginH, 10, mb_convert_encoding('*$' . $MyRow->EnId, "UTF-8", "cp1252") . "*", 0, 0, 'C', 0);
         }
         /*
         			//Status
         			if($MyRow->Status>1)
Example #5
0
 if (!$Entry->Athlete) {
     continue;
 }
 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(17, 8, ltrim($Entry->TargetNo, '0'), 0, 0, 'C', 0);
 $pdf->SetFont($pdf->FontStd, 'B', 12);
 $pdf->SetX($pdf->GetX() + 1);
 $pdf->Cell(22, 8, $Entry->SesName, 0, 0, 'C', 0, '', '1', false, 'T', 'B');
 $pdf->SetX($pdf->GetX() + 1);
 $pdf->SetFont($pdf->FontStd, '', 10);
 $X = $pdf->GetX();
 $Y = $pdf->GetY();
 $pdf->Cell($lblW - 2 * $lblMarginH - 41, 4, $Entry->DivDescription, 0, 1, 'R', 0, '', '1', false, 'T', 'T');
 $pdf->SetXY($X, $Y + 4);
 $pdf->Cell($lblW - 2 * $lblMarginH - 41, 4, $Entry->ClDescription . ' ' . intval($Entry->SubClass), 0, 1, 'R', 0, '', '1', false, 'T', 'B');
 //Arciere & Società
 $pdf->SetFont($pdf->FontStd, 'B', 12);
 $pdf->Cell($lblW - 2 * $lblMarginH - 10, 6, $Entry->Athlete, 0, 0, 'L', 0);
 $pdf->SetFont($pdf->FontStd, '', 10);
 $pdf->SetX($pdf->GetX() + 1);
 $pdf->Cell(9, 6, $Entry->NationCode, 0, 0, 'R', 0, '', '1', false, 'T', 'B');
 // 			//Barcode