} //PRIMA Area dell'accredito: Logo SX e Nome/Country + sfondo colore - Altezza 6/20 (ne restano 14/20)) $pdf->SetXY($PosX, $PosY); $pdf->SetFont('', 'B', 12); $pdf->Cell($AccW, $AccH * 0.05, $pdf->Name, 0, 0, 'C', 0); $pdf->Rect($PosX, $PosY + $AccH * 0.05, $AccW, $AccH * 0.2, 'F', array(), $AccColor); $tmpX = $PosX + 2; if (!is_null($ImgSxSize)) { //Immagine Sinistra if ($ImgSxSize[0] / $ImgSxSize[1] <= ($AccW * 0.4 - 4) / ($AccH * 0.2 - 4)) { //Immagine troppo larga $pdf->Image($pdf->ToPaths['ToLeft'], $tmpX, $PosY + $AccH * 0.05 + 2, 0, $AccH * 0.2 - 4); } else { $pdf->Image($pdf->ToPaths['ToLeft'], $tmpX, $PosY + $AccH * 0.05 + ($AccW * 0.4 - 4) / $ImgSxSize[0] * $ImgSxSize[1] / 2 / $pdf->getScaleFactor(), $AccW * 0.4 - 4, 0); } $tmpX = $pdf->getImageRBX() + 2; } if ($MyRow->AcTitleReverse) { $pdf->SetTextColor(255); } $pdf->SetFont('', 'B', 16); //Cognome e Nome $pdf->SetXY($tmpX, $PosY + $AccH * 0.08); $pdf->Cell($AccW + 2 - $tmpX - $PosX, $AccH * 0.07000000000000001, $MyRow->FirstName, 0, 0, 'C', 0); $pdf->SetXY($tmpX, $PosY + $AccH * 0.15); $pdf->Cell($AccW + 2 - $tmpX - $PosX, $AccH * 0.07000000000000001, $MyRow->Name, 0, 0, 'C', 0); $pdf->SetDefaultColor(); $pdf->SetXY($PosX, $PosY + $AccH * 0.25); //Luogo $pdf->SetFont('', '', 7); $pdf->Cell($AccW, $AccH * 0.02, $pdf->Where . ", " . TournamentDate2String($pdf->WhenF, $pdf->WhenT), 0, 0, 'C', 0);