Пример #1
0
 }
 // List by Entries
 if (!empty($_POST['ENA'])) {
     $RET->ENA = getStartListAlphabetical($ORIS);
 }
 // Stats by Countries
 if (!empty($_POST['STC'])) {
     $RET->STC = getStatEntriesByCountries($ORIS);
 }
 // Stats by Entries
 if (!empty($_POST['STE'])) {
     $RET->STE = getStatEntriesByEvent($ORIS);
 }
 // Ranking by Category, Individual (local rules apply)
 if (!empty($_POST['IC'])) {
     $RET->IC = getDivClasIndividual('', '', $_SESSION['TourType'] == 14 ? array('SubClassRank' => '1') : array());
 }
 // Ranking by Category, Teams (local rules apply)
 if (!empty($_POST['TC'])) {
     $RET->TC = getDivClasTeam();
 }
 // Qualification, Individual
 if (!empty($_POST['QualificationInd'])) {
     $RET->IQ = new StdClass();
     foreach ($_POST['QualificationInd'] as $Event) {
         $RET->IQ->{$Event} = getQualificationIndividual(substr($Event, 2), $ORIS);
     }
 }
 // Elimination, Startlist
 if (!empty($_POST['EliminationStartlist'])) {
     $RET->EL = new StdClass();
Пример #2
0
<?php

require_once dirname(dirname(__FILE__)) . '/config.php';
require_once 'Common/pdf/ResultPDF.inc.php';
require_once 'Common/Lib/Obj_RankFactory.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 = getDivClasIndividual();
if (!isset($_SESSION['TourId']) && isset($_REQUEST['TourId'])) {
    CreateTourSession($_REQUEST['TourId']);
}
if (!isset($isCompleteResultBook)) {
    $pdf = new ResultPDF($PdfData->Description);
}
require_once PdfChunkLoader('DivClasIndividual.inc.php');
if (isset($_REQUEST['TourId'])) {
    EraseTourSession();
}
if (isset($__ExportPDF)) {
    $__ExportPDF = $pdf->Output('', 'S');
} else {
    if (!isset($isCompleteResultBook)) {
        if (isset($_REQUEST['ToFitarco'])) {
            $Dest = 'D';
            if (isset($_REQUEST['Dest'])) {
                $Dest = $_REQUEST['Dest'];
            }
            if ($Dest == 'S') {