Esempio n. 1
0
            $TotalPrice = 0;
            $ShowStatusLegend = false;
        }
        $pdf->SetFont($pdf->FontStd, '', 7);
        $pdf->Cell(10, 4, '', 0, 0, 'C', 0);
        $pdf->Cell(10, 4, $MyRow->Session, 1, 0, 'R', 0);
        $pdf->Cell(15, 4, $MyRow->TargetNo, 1, 0, 'R', 0);
        $pdf->Cell(10, 4, $MyRow->Bib, 1, 0, 'R', 0);
        $pdf->Cell(45, 4, $MyRow->FirstName . ' ' . $MyRow->Name, 1, 0, 'L', 0);
        $pdf->Cell(15, 4, $MyRow->AgeClass, 1, 0, 'C', 0);
        $pdf->Cell(10, 4, $MyRow->SubClass, 1, 0, 'C', 0);
        $pdf->Cell(15, 4, $MyRow->DivCode, 1, 0, 'C', 0);
        $pdf->Cell(15, 4, $MyRow->ClassCode, 1, 0, 'C', 0);
        //Disegna i Pallini per la partecipazione
        $pdf->DrawParticipantDetails($MyRow->IC, $MyRow->IF, $MyRow->TC, $MyRow->TF, $MyRow->TM);
        $pdf->SetDefaultColor();
        $pdf->SetFont($pdf->FontStd, '', 7);
        $ShowStatusLegend = $ShowStatusLegend || $MyRow->Status != 0;
        $pdf->Cell(10, 4, $MyRow->Status == 0 ? '' : $MyRow->Status, 1, 0, 'C', 0);
        $pdf->Cell(20, 4, ($MyRow->EnPays == 1 ? NumFormat($MyRow->APPrice, 2) : NumFormat(0, 2)) . " " . $pdf->writeCurrency(), 1, 1, 'R', 0);
        $TotalPrice += $MyRow->EnPays == 1 ? $MyRow->APPrice : 0;
    }
    $pdf->SetFont($pdf->FontStd, '', 8);
    $pdf->Cell(165, 15, get_text('Cash', 'Tournament') . ":", 0, 0, 'R', 0);
    $pdf->SetFont($pdf->FontStd, 'B', 12);
    $pdf->Cell(25, 15, NumFormat($TotalPrice, 2) . " " . $pdf->writeCurrency(), 0, 1, 'R', 0);
    safe_free_result($Rs);
}
if (!isset($isCompleteResultBook)) {
    $pdf->Output();
}