$OldTeam = $MyRow->NationCode; $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();
} $pdf->SetFont($pdf->FontStd, '', 7); $pdf->Cell(7, 4, $MyRow->Session, 1, 0, 'R', 0); $pdf->Cell(11, 4, $MyRow->TargetNo, 1, 0, 'R', 0); $pdf->Cell(10, 4, $MyRow->Bib, 1, 0, 'R', 0); $pdf->Cell(41, 4, $MyRow->FirstName . ' ' . $MyRow->Name . ($MyRow->EnSubTeam == 0 ? "" : " (" . $MyRow->EnSubTeam . ")"), 1, 0, 'L', 0); if (!HideCols) { $pdf->Cell(11, 4, $MyRow->AgeClass, 1, 0, 'C', 0); $pdf->Cell(8, 4, $MyRow->SubClass, 1, 0, 'C', 0); } $pdf->Cell(12 + (HideCols == true ? 22 : 0), 4, HideCols == true ? get_text($MyRow->DivDescription, '', '', true) : $MyRow->DivCode, 1, 0, 'C', 0); $pdf->Cell(12 + (HideCols == true ? 21 : 0), 4, HideCols == true ? get_text($MyRow->ClDescription, '', '', true) : $MyRow->ClassCode, 1, 0, 'C', 0); //Disegna i Pallini per la partecipazione if (!HideCols) { if ($MyRow->secTeam == 0) { $pdf->DrawParticipantDetails($MyRow->IC, $MyRow->IF, $MyRow->TC, $MyRow->TF, $MyRow->TM); } elseif ($MyRow->secTeam == 1) { $pdf->DrawParticipantDetails($MyRow->IC, $MyRow->IF, null, null, null); } else { $pdf->DrawParticipantDetails(null, null, $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(1, 4, '', 0, 1, 'C', 0); } //Legenda per la partecipazione alle varie fasi if (!HideCols) { $pdf->DrawPartecipantLegend();