示例#1
0
function CreateStandardDivisions($TourId, $Type = 1, $SubRule = 0)
{
    $i = 1;
    if ($Type == 11 or $Type == 13) {
        CreateDivision($TourId, $i++, 'AI', 'Arco Istintivo');
    } else {
        CreateDivision($TourId, $i++, 'OL', 'Arco olimpico');
    }
    CreateDivision($TourId, $i++, 'CO', 'Arco Compound');
    if (!in_array($Type, array(1, 2, 3, 4, 18))) {
        CreateDivision($TourId, $i++, 'AN', 'Arco Nudo');
    }
    if (in_array($Type, array(1, 2, 4))) {
        CreateDivision($TourId, $i++, 'C1', 'Compound W1');
    }
    if ($Type >= 9 and $Type <= 13) {
        CreateDivision($TourId, $i++, 'LB', 'Long Bow');
    }
    if ($Type < 9 or $Type > 13) {
        CreateDivision($TourId, $i++, 'VI', 'Visually Impaired');
    }
    if (in_array($Type, array(9, 10, 12))) {
        CreateDivision($TourId, $i++, 'AI', 'Arco Istintivo');
    }
}
示例#2
0
function CreateStandardDivisions($TourId, $Type = 1, $SubRule = 0)
{
    $Champs = ($SubRule == 3 and $Type == 6 or $SubRule == 5 and $Type == 3 or $SubRule == 9 and $Type == 9 or $SubRule == 7 and $Type == 11 or $SubRule == 9 and $Type == 17);
    $i = 1;
    if (!$Champs) {
        CreateDivision($TourId, $i++, 'F', 'Felles');
    }
    CreateDivision($TourId, $i++, 'R', 'Recurve');
    CreateDivision($TourId, $i++, 'C', 'Compound');
    // T is only for non "field" comp...
    if ($Type != 9 and $Type != 11 and $Type != 17) {
        CreateDivision($TourId, $i++, 'T', 'Tradisjonell');
    }
    // BU is only 3D and Hunter
    if ($Type == 11 or $Type == 17) {
        CreateDivision($TourId, $i++, 'BU', 'Buejeger');
    }
    // B is in all types
    CreateDivision($TourId, $i++, 'B', 'Barebow');
    if ($Type == 9 or $Type == 11 or $Type == 17) {
        // in all "fields" competitions
        CreateDivision($TourId, $i++, 'LB', 'Langbue');
        CreateDivision($TourId, $i++, 'IN', 'Instinktiv');
    }
    // Only in Champs, "non athlete" divisions
    if ($Champs) {
        CreateDivision($TourId, $i++, 'D', 'Dommer', 0);
        CreateDivision($TourId, $i++, 'A', 'Arrangør', 0);
        CreateDivision($TourId, $i++, 'V', 'Vip', 0);
    }
}
示例#3
0
function CreateStandardDivisions($TourId, $Type = 'FITA')
{
    $i = 1;
    CreateDivision($TourId, $i++, 'C', 'Compound Open');
    CreateDivision($TourId, $i++, 'W1', 'Compound/Recurve W1');
    CreateDivision($TourId, $i++, 'R', 'Recurve');
    CreateDivision($TourId, $i++, 'VI', 'Visually Impaired');
}
示例#4
0
function CreateStandardDivisions($TourId, $Type = 1, $SubRule = 0)
{
    $i = 1;
    CreateDivision($TourId, $i++, 'R', 'Recurve');
    CreateDivision($TourId, $i++, 'B', 'Barebow');
    CreateDivision($TourId, $i++, 'C', 'Compound');
    CreateDivision($TourId, $i++, 'L', 'Longbow');
    if ($Type == 11 || $Type == 20) {
        CreateDivision($TourId, $i++, 'I', 'Instinctive');
    }
}
示例#5
0
function CreateStandardDivisions($TourId, $Type = 'FITA')
{
    $i = 1;
    if ($Type != '3D') {
        CreateDivision($TourId, $i++, 'R', 'Recurve Bow');
    }
    CreateDivision($TourId, $i++, 'C', 'Compound Bow');
    if ($Type == 'FIELD') {
        CreateDivision($TourId, $i++, 'B', 'Bare Bow');
    } elseif ($Type == '3D') {
        CreateDivision($TourId, $i++, 'B', 'Bare Bow');
        CreateDivision($TourId, $i++, 'L', 'Long Bow');
        CreateDivision($TourId, $i++, 'I', 'Instinctive Bow');
    }
}
示例#6
0
function CreateStandardDivisions($TourId, $Type, $SubRule)
{
    $i = 1;
    switch ($SubRule) {
        case 1:
            if ($Type == 21) {
                // F2F
                CreateDivision($TourId, $i++, 'R', 'Recurve');
                CreateDivision($TourId, $i++, 'C', 'Compound');
            } else {
                CreateDivision($TourId, $i++, 'R', 'Recurve/Barebow');
                CreateDivision($TourId, $i++, 'C', 'Compound');
            }
            break;
        case 2:
            CreateDivision($TourId, $i++, 'R', 'Recurve');
            CreateDivision($TourId, $i++, 'C', 'Compound');
            CreateDivision($TourId, $i++, 'L', 'Longbow');
            CreateDivision($TourId, $i++, 'B', 'Barebow');
            break;
    }
}
示例#7
0
<?php

/*
15 	Type_GiochiGioventu
$TourId is the ID of the tournament!
$SubRule is the eventual subrule (see sets.php for the order)
$TourType is the Tour Type (2)
*/
require_once dirname(__FILE__) . '/lib.php';
require_once dirname(dirname(__FILE__)) . '/lib.php';
// default Divisions
CreateDivision($TourId, 1, 'OL', '~OL');
// default Classes
CreateStandardGdGClasses($TourId, $SubRule);
// default Distances
switch ($TourType) {
    case 15:
        CreateDistance($TourId, $TourType, '__M_', '20m-1', '20m-2');
        CreateDistance($TourId, $TourType, '__F_', '20m-1', '20m-2');
        CreateDistance($TourId, $TourType, '__G_', '15m-1', '15m-2');
        break;
    case 16:
        CreateDistance($TourId, $TourType, '__M_', '18m-1', '18m-2');
        CreateDistance($TourId, $TourType, '__F_', '18m-1', '18m-2');
        CreateDistance($TourId, $TourType, '__G_', '15m-1', '15m-2');
        break;
}
// Default Target
CreateTargetFace($TourId, 1, '~Default', '%', '1', 5, 80, 5, 80);
//Load a different set of names
$tourDetIocCode = 'ITA_p';
示例#8
0
function CreateStandardDivisions($TourId, $Type, $SubRule = 1)
{
    global $ArlefDivisions, $ArlefClasses;
    $i = 1;
    switch ($Type) {
        case '1':
        case '3':
            CreateDivision($TourId, $i++, 'R', 'Recurve');
            CreateDivision($TourId, $i++, 'C', 'Compound');
            CreateDivision($TourId, $i++, 'CO', 'Compound Open');
            CreateDivision($TourId, $i++, 'C1', 'Compound W1');
            CreateDivision($TourId, $i++, 'RS', 'Recurve Standing');
            CreateDivision($TourId, $i++, 'R2', 'Recurve W2');
            CreateDivision($TourId, $i++, 'VI', 'Visually Impaired');
            $ArlefDivisions = array('R' => 'Recurve', 'C' => 'Compound');
            break;
        case '6':
        case '7':
            CreateDivision($TourId, $i++, 'R', 'Recurve');
            CreateDivision($TourId, $i++, 'C', 'Compound');
            if ($SubRule == 1) {
                CreateDivision($TourId, $i++, 'NL', 'Nu Longbow');
                CreateDivision($TourId, $i++, 'NR', 'Nu Recurve/Barebow');
                CreateDivision($TourId, $i++, 'BR', 'Brevet Recurve');
                CreateDivision($TourId, $i++, 'BC', 'Brevet Compound');
                CreateDivision($TourId, $i++, 'BN', 'Brevet Nu Longbow');
                CreateDivision($TourId, $i++, 'BB', 'Brevet Recurve/Barebow');
                CreateDivision($TourId, $i++, 'B', 'Brevet 10m');
                CreateDivision($TourId, $i++, 'CO', 'Compound Open');
                CreateDivision($TourId, $i++, 'C1', 'Compound W1');
                CreateDivision($TourId, $i++, 'RS', 'Recurve Standing');
                CreateDivision($TourId, $i++, 'R2', 'Recurve W2');
                CreateDivision($TourId, $i++, 'VI', 'Visually Impaired');
            }
            break;
        case '23':
        case '24':
        case '25':
            CreateDivision($TourId, $i++, 'R', 'Recurve');
            CreateDivision($TourId, $i++, 'C', 'Compound');
            CreateDivision($TourId, $i++, 'NL', 'Nu Longbow');
            CreateDivision($TourId, $i++, 'NR', 'Nu Recurve/Barebow');
            CreateDivision($TourId, $i++, 'CO', 'Compound Open');
            CreateDivision($TourId, $i++, 'C1', 'Compound W1');
            CreateDivision($TourId, $i++, 'RS', 'Recurve Standing');
            CreateDivision($TourId, $i++, 'R2', 'Recurve W2');
            CreateDivision($TourId, $i++, 'VI', 'Visually Impaired');
            break;
        case '26':
            // Brevet 10m outdoor
            CreateDivision($TourId, $i++, 'BR', 'Brevet 10m Recurve');
            CreateDivision($TourId, $i++, 'BC', 'Brevet 10m Compound');
            CreateDivision($TourId, $i++, 'BN', 'Brevet 10m Nu');
            break;
        case '27':
            // Brevet 15m outdoor
            CreateDivision($TourId, $i++, 'RB', 'Brevet 15m Recurve');
            CreateDivision($TourId, $i++, 'CB', 'Brevet 15m Compound');
            CreateDivision($TourId, $i++, 'NB', 'Brevet 15m Nu');
            break;
        case '28':
            // Brevet 25m outdoor
        // Brevet 25m outdoor
        case '29':
            // Brevet 30/20 outdoor
            CreateDivision($TourId, $i++, 'RB', 'Brevet Recurve');
            CreateDivision($TourId, $i++, 'CB', 'Brevet Compound');
            CreateDivision($TourId, $i++, 'NB', 'Brevet Nu Barebow');
            CreateDivision($TourId, $i++, 'LB', 'Brevet Longbow');
            break;
        case '30':
            // Brevet FITA outdoor
            CreateDivision($TourId, $i++, 'RB', 'Brevet Recurve');
            CreateDivision($TourId, $i++, 'CB', 'Brevet Compound');
            break;
    }
}
<?php

/*
15 	Type_GiochiGioventu
$TourId is the ID of the tournament!
$SubRule is the eventual subrule (see sets.php for the order)
$TourType is the Tour Type (2)
*/
require_once dirname(__FILE__) . '/lib.php';
require_once dirname(dirname(__FILE__)) . '/lib.php';
// default Divisions
CreateDivision($TourId, 1, 'OL', 'Arco Olimpico');
// default Classes
CreateStandardStudClasses($TourId, $SubRule);
// default Distances
CreateDistance($TourId, $TourType, '__C_', '10m');
CreateDistance($TourId, $TourType, '__A_', '20m');
// Default Target
CreateTargetFace($TourId, 1, '~Default', '%', '1', 5, 80);
// create a first distance prototype
CreateDistanceInformation($TourId, $DistanceInfoArray, 32, 4);
// // Update Tour details
$tourDetails = array('ToCollation' => $tourCollation, 'ToTypeName' => $tourDetTypeName, 'ToNumDist' => $tourDetNumDist, 'ToNumEnds' => $tourDetNumEnds, 'ToMaxDistScore' => $tourDetMaxDistScore, 'ToMaxFinIndScore' => $tourDetMaxFinIndScore, 'ToMaxFinTeamScore' => $tourDetMaxFinTeamScore, 'ToCategory' => $tourDetCategory, 'ToElabTeam' => $tourDetElabTeam, 'ToElimination' => $tourDetElimination, 'ToGolds' => $tourDetGolds, 'ToXNine' => $tourDetXNine, 'ToGoldsChars' => $tourDetGoldsChars, 'ToXNineChars' => $tourDetXNineChars, 'ToDouble' => $tourDetDouble, 'ToIocCode' => $tourDetIocCode);
UpdateTourDetails($TourId, $tourDetails);
示例#10
0
<?php

/*
15 	Type_GiochiGioventu
$TourId is the ID of the tournament!
$SubRule is the eventual subrule (see sets.php for the order)
$TourType is the Tour Type (2)
*/
require_once dirname(__FILE__) . '/lib.php';
require_once dirname(dirname(__FILE__)) . '/lib.php';
// default Divisions
CreateDivision($TourId, 1, 'OL', 'Arco Olimpico');
CreateDivision($TourId, 2, 'CO', 'Arco Compound');
CreateDivision($TourId, 3, 'AN', 'Arco Nudo');
// default Classes
CreateStandardSperimClasses($TourId);
// default Distances
CreateDistance($TourId, $TourType, 'AN_1', '30m', '30m');
CreateDistance($TourId, $TourType, 'OL_1', '30m', '30m');
CreateDistance($TourId, $TourType, 'CO_1', '50m', '50m');
CreateDistance($TourId, $TourType, '___2', '50m', '50m');
// Default Target
CreateTargetFace($TourId, 1, '~Default', '%', '1', 5, 120, 5, 120);
CreateTargetFace($TourId, 2, '~DefaultCO', 'REG-^CO[MF]2', '1', 5, 80, 5, 80);
//Load a different set of names
$tourDetIocCode = 'ITA_e';
// create a first distance prototype
CreateDistanceInformation($TourId, $DistanceInfoArray, 24, 4);
// // Update Tour details
$tourDetails = array('ToCollation' => $tourCollation, 'ToTypeName' => $tourDetTypeName, 'ToNumDist' => $tourDetNumDist, 'ToNumEnds' => $tourDetNumEnds, 'ToMaxDistScore' => $tourDetMaxDistScore, 'ToMaxFinIndScore' => $tourDetMaxFinIndScore, 'ToMaxFinTeamScore' => $tourDetMaxFinTeamScore, 'ToCategory' => $tourDetCategory, 'ToElabTeam' => $tourDetElabTeam, 'ToElimination' => $tourDetElimination, 'ToGolds' => $tourDetGolds, 'ToXNine' => $tourDetXNine, 'ToGoldsChars' => $tourDetGoldsChars, 'ToXNineChars' => $tourDetXNineChars, 'ToDouble' => $tourDetDouble, 'ToIocCode' => $tourDetIocCode);
UpdateTourDetails($TourId, $tourDetails);