$Events = ''; if (isset($_REQUEST["Event"]) && $_REQUEST["Event"][0] != ".") { $Events = $_REQUEST["Event"]; } $PdfData = getBracketsTeams($Events, false, isset($_REQUEST["ShowTargetNo"]), isset($_REQUEST["ShowSchedule"]), isset($_REQUEST["ShowSetArrows"])); //debug_svela($PdfData); if (!isset($isCompleteResultBook)) { $pdf = new ResultPDF($PdfData->Description); } //$pdf->SetAutoPageBreak(false); require_once PdfChunkLoader('BracketTeam.inc.php'); if (!empty($_REQUEST['TourId'])) { EraseTourSession(); } if (isset($__ExportPDF)) { $__ExportPDF = $pdf->Output('', 'S'); } elseif (!isset($isCompleteResultBook)) { if (isset($_REQUEST['ToFitarco'])) { $Dest = 'D'; if (isset($_REQUEST['Dest'])) { $Dest = $_REQUEST['Dest']; } if ($Dest == 'S') { print $pdf->Output($_REQUEST['ToFitarco'], $Dest); } else { $pdf->Output($_REQUEST['ToFitarco'], $Dest); } } else { $pdf->Output(); } }
$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(); }
<?php require_once dirname(dirname(__FILE__)) . '/config.php'; require_once 'Common/pdf/ResultPDF.inc.php'; require_once 'Common/Fun_FormatText.inc.php'; require_once 'Common/OrisFunctions.php'; require_once 'Common/pdf/PdfChunkLoader.php'; // ATTENTION! // MUST BE called $PdfData $PdfData = getStatEntriesByCountries(); //debug_svela($PdfData); if (!isset($isCompleteResultBook)) { $pdf = new ResultPDF($PdfData->Description, false); } require_once PdfChunkLoader('StatByCountry.inc.php'); if (!isset($isCompleteResultBook)) { if (isset($_REQUEST['ToFitarco'])) { $Dest = 'D'; if (isset($_REQUEST['Dest'])) { $Dest = $_REQUEST['Dest']; } $pdf->Output($_REQUEST['ToFitarco'], $Dest); } else { $pdf->Output(); } }