Exemplo n.º 1
0
<?php

require_once dirname(dirname(__FILE__)) . '/config.php';
require_once 'Common/Lib/Obj_RankFactory.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';
if (!isset($_SESSION['TourId']) && isset($_REQUEST['TourId'])) {
    CreateTourSession($_REQUEST['TourId']);
}
$PdfData = getEliminationIndividual();
if (!isset($isCompleteResultBook)) {
    $pdf = new ResultPDF($PdfData->Description);
}
require_once PdfChunkLoader('ElimIndividual.inc.php');
if (isset($_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);
Exemplo n.º 2
0
     foreach ($_POST['QualificationInd'] as $Event) {
         $RET->IQ->{$Event} = getQualificationIndividual(substr($Event, 2), $ORIS);
     }
 }
 // Elimination, Startlist
 if (!empty($_POST['EliminationStartlist'])) {
     $RET->EL = new StdClass();
     foreach ($_POST['EliminationStartlist'] as $Event) {
         $RET->EL->{$Event} = getStartList($ORIS, substr($Event, -1), true);
     }
 }
 // Elimination, Individual
 if (!empty($_POST['EliminationInd'])) {
     $RET->IE = new StdClass();
     foreach ($_POST['EliminationInd'] as $Event) {
         $RET->IE->{$Event} = getEliminationIndividual(substr($Event, 2), $ORIS);
     }
 }
 // Qualification, Team
 if (!empty($_POST['QualificationTeam'])) {
     $RET->TQ = new StdClass();
     foreach ($_POST['QualificationTeam'] as $Event) {
         $RET->TQ->{$Event} = getQualificationTeam(substr($Event, 2), $ORIS);
     }
 }
 // Brackets, Individual
 if (!empty($_POST['BracketsInd'])) {
     $RET->IB = new StdClass();
     foreach ($_POST['BracketsInd'] as $Event) {
         $RET->IB->{$Event} = getBracketsIndividual(substr($Event, 2), $ORIS);
     }
Exemplo n.º 3
0
<?php

require_once dirname(dirname(__FILE__)) . '/config.php';
require_once 'Common/pdf/OrisPDF.inc.php';
require_once 'Common/Fun_FormatText.inc.php';
include_once 'Common/Lib/ArrTargets.inc.php';
require_once 'Common/Lib/Obj_RankFactory.php';
require_once 'Common/OrisFunctions.php';
require_once 'Common/pdf/PdfChunkLoader.php';
$EventRequested = !empty($EventRequested) ? $EventRequested : '';
$PdfData = getEliminationIndividual($EventRequested, true);
if (!isset($isCompleteResultBook)) {
    $pdf = new OrisPDF($PdfData->Code, $PdfData->Description);
} else {
    $pdf->setOrisCode('', $PdfData->Description);
}
require_once PdfChunkLoader('OrisElimIndividual.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();
    }
}