$pdf->SetFillColor(255, 255, 255); } $pdf->SetDrawColor(0x0, 0x0, 0x0); // riquadro colore $pdf->Rect($myPosX, $myPosY, 93, 93, 'F'); // $pdf->Rect($myPosX, $myPosY, 93, 20, 'F'); // $pdf->Rect($myPosX, $myPosY+20, 93, 10, 'F'); // $pdf->Rect($myPosX, $myPosY+65, 93, 10, 'F'); // $pdf->Rect($myPosX, $myPosY+85, 93, 10, 'F'); // bordo $pdf->Rect($myPosX, $myPosY, 93, 136, 'D'); //Header $pdf->SetXY($myPosX, $myPosY + 7.5); $pdf->Cell(93, 6, $rowInfo->ToName, 0, 1, 'C', 0); $pdf->SetFont($pdf->FontStd, 'I', 8); $pdf->SetX($myPosX); $pdf->Cell(93, 6, $rowInfo->ToWhere . ', ' . TournamentDate2String($rowInfo->DtFrom, $rowInfo->DtTo), 0, 1, 'C', 2); $pdf->SetDrawColor(0x99, 0x0, 0x0); if (!is_null($MyRow->PhPhoto)) { $im = imagecreatefromstring(base64_decode($MyRow->PhPhoto)); $height = imagesy($im) * 20 / imagesx($im); imagedestroy($im); $pdf->Image('@' . base64_decode($MyRow->PhPhoto), $myPosX + 36.5, $pdf->GetY() + 5, 20, 0); $pdf->Rect($myPosX + 36.5, $pdf->GetY() + 5, 20, $height, 'D'); } //Matricola if (is_null($MyRow->PhPhoto) && $MyRow->AcIsAthlete == 1) { $pdf->SetXY($myPosX + 5, $myPosY + 30); } else { $pdf->SetXY($myPosX + 5, $myPosY + 43); }
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