Esempio n. 1
0
require_once dirname(dirname(dirname(__FILE__))) . '/config.php';
include_once 'Common/pdf/ResultPDF.inc.php';
include_once 'Common/Fun_FormatText.inc.php';
include_once 'Common/Lib/ArrTargets.inc.php';
require_once 'Common/Fun_Phases.inc.php';
require_once 'Common/Lib/Fun_PrintOuts.php';
require_once 'Common/OrisFunctions.php';
require_once 'Common/pdf/PdfChunkLoader.php';
if (empty($_SESSION['TourId']) && !empty($_REQUEST['TourId'])) {
    CreateTourSession($_REQUEST['TourId']);
}
$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'])) {
Esempio n. 2
0
     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);
     }
 }
 // Brackets, Team
 if (!empty($_POST['BracketsTeam'])) {
     $RET->TB = new StdClass();
     foreach ($_POST['BracketsTeam'] as $Event) {
         $RET->TB->{$Event} = getBracketsTeams(substr($Event, 2), $ORIS);
     }
 }
 // Final Rank, Individual
 if (!empty($_POST['FinalInd'])) {
     $RET->IF = new StdClass();
     foreach ($_POST['FinalInd'] as $Event) {
         $RET->IF->{$Event} = getRankingIndividual(substr($Event, 2), $ORIS);
     }
 }
 // Brackets, Team
 if (!empty($_POST['FinalTeam'])) {
     $RET->TF = new StdClass();
     foreach ($_POST['FinalTeam'] as $Event) {
         $RET->TF->{$Event} = getRankingTeams(substr($Event, 2), $ORIS);
     }