Esempio n. 1
0
     $RowX = 15;
     $pdf->SetXY($RowX, $pdf->GetY() + 10);
     $pdf->SetFont($pdf->FontStd, 'B', 10);
     $pdf->Cell(185, 7, $MyRow->DivDescription, 0, 1, 'L', 0);
     $RowY = $pdf->GetY() + 1;
     $MaxHeight = 0;
     $OldDiv = $MyRow->DivCode;
 }
 //Carico l'immagine
 $pdf->SetDrawColor(0x99, 0x0, 0x0);
 $height = 0;
 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), $RowX + 6, $RowY, 20, 0);
     $pdf->Rect($RowX + 6, $RowY, 20, $height, 'D');
 }
 $MaxHeight = $MaxHeight > $height ? $MaxHeight : $height;
 // Inizio dei dati degli atleti
 $pdf->SetDefaultColor();
 $pdf->SetFont($pdf->FontStd, '', 8);
 $pdf->SetXY($RowX, $RowY + ($height > 0 ? $height : $MaxHeight) + 2);
 $pdf->Cell(32, 4, $MyRow->FirstName . ' ' . $MyRow->Name, 0, 0, 'C', 0);
 $RowX += 37;
 if ($RowX >= 185) {
     $RowX = 15;
     $RowY += $MaxHeight + 6 + 5;
     if (!$pdf->SamePage($MaxHeight + 6 + 5)) {
         $OldTeam = '#@#@#';
     }