コード例 #1
0
ファイル: Setup_D3.php プロジェクト: brian-nelson/ianseo
require_once dirname(__FILE__) . '/lib.php';
require_once dirname(dirname(__FILE__)) . '/lib.php';
// default Divisions
CreateStandardDivisions($TourId, $TourType);
// default SubClasses
CreateStandardSubClasses($TourId);
// default Classes
CreateStandardClasses($TourId, $SubRule, '3D');
//
// default Distances
switch ($TourType) {
    case 11:
        CreateDistance($TourId, $TourType, '%', 'Perc.');
        break;
    case 13:
        CreateDistance($TourId, $TourType, '%', 'Perc. 1', 'Perc. 2');
        break;
}
// default Events
CreateStandard3DEvents($TourId, $SubRule);
// insert class in events
InsertStandard3DEvents($TourId, $SubRule);
// Elimination rounds
InsertStandard3DEliminations($TourId, $SubRule);
// Finals & TeamFinals
CreateFinals($TourId);
// Default Target
switch ($TourType) {
    case 11:
        CreateTargetFace($TourId, 1, '~Default', '%', '1', 8, 0);
        break;
コード例 #2
0
ファイル: Setup_Field.php プロジェクト: brian-nelson/ianseo
/*
COMMON SETUP FOR TARGET
*/
require_once dirname(__FILE__) . '/lib.php';
require_once dirname(dirname(__FILE__)) . '/lib.php';
// default Divisions
CreateStandardDivisions($TourId, $TourType, $SubRule);
// default Classes
CreateStandardClasses($TourId, $SubRule, $TourType);
// default Subclasses
CreateStandardSubClasses($TourId);
if ($SubRule == 9) {
    // Champs
    CreateStandardFieldEvents($TourId, $SubRule);
    InsertStandardFieldEvents($TourId, $SubRule);
}
// default Distances
// default targets
if ($tourDetNumDist == 2) {
    CreateDistance($TourId, $TourType, '%', 'Bane 1', 'Bane 2');
    CreateTargetFace($TourId, 1, '~Default', '%', '1', 6, 0, 6, 0);
} else {
    CreateDistance($TourId, $TourType, '%', 'Bane');
    CreateTargetFace($TourId, 1, '~Default', '%', '1', 6, 0);
}
// create a first distance prototype
CreateDistanceInformation($TourId, $DistanceInfoArray, $tourDetNumEnds, 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);
コード例 #3
0
ファイル: Setup_Target.php プロジェクト: brian-nelson/ianseo
        CreateDistance($TourId, $TourType, 'VI%', '20m-1', '20m-2');
        break;
    case 26:
        CreateDistance($TourId, $TourType, '%', '10m-1', '10m-2');
        break;
    case 27:
        CreateDistance($TourId, $TourType, '%', '15m-1', '15m-2');
        break;
    case 28:
        CreateDistance($TourId, $TourType, '%', '25m-1', '25m-2');
        break;
    case 29:
        CreateDistance($TourId, $TourType, '%', '30m', '20m');
        break;
    case 30:
        CreateDistance($TourId, $TourType, '%', '50m', '40m', '30m', '20m');
        break;
}
if (in_array($TourType, array(1, 3, 6, 7, 23, 24, 25)) and $SubRule == 1) {
    // default Events
    CreateStandardEvents($TourId, $TourType);
    // Classes in Events
    InsertStandardEvents($TourId, $TourType);
    // Finals & TeamFinals
    CreateFinals($TourId);
}
// Default Target
$i = 1;
switch ($TourType) {
    case 1:
    case 4:
コード例 #4
0
ファイル: Setup_Target.php プロジェクト: brian-nelson/ianseo
        CreateDistance($TourId, $TourType, 'OLM_', '60 m', '50 m', '40 m');
        CreateDistance($TourId, $TourType, 'COM_', '60 m', '50 m', '40 m');
        CreateDistance($TourId, $TourType, 'ANM_', '60 m', '50 m', '40 m');
        CreateDistance($TourId, $TourType, 'OLS_', '60 m', '50 m', '40 m');
        CreateDistance($TourId, $TourType, 'COS_', '60 m', '50 m', '40 m');
        CreateDistance($TourId, $TourType, 'ANS_', '60 m', '50 m', '40 m');
        CreateDistance($TourId, $TourType, 'VI%', '30m-1', '30m-2', '30m-3');
        break;
    case 6:
        CreateDistance($TourId, $TourType, '%', '18m-1', '18m-2');
        break;
    case 7:
        CreateDistance($TourId, $TourType, '%', '25m-1', '25m-2');
        break;
    case 8:
        CreateDistance($TourId, $TourType, '%', '25m-1', '25m-2', '18m-1', '18m-2');
        break;
}
if ($TourType < 5 or $TourType == 6 or $TourType == 18) {
    // default Events
    CreateStandardEvents($TourId, $TourType, $SubRule, $TourType != 6);
    // Classes in Events
    InsertStandardEvents($TourId, $TourType, $SubRule, $TourType != 6);
    // Finals & TeamFinals
    CreateFinals($TourId);
}
// Default Target
$i = 1;
switch ($TourType) {
    case 1:
    case 4:
コード例 #5
0
ファイル: Setup_D3.php プロジェクト: brian-nelson/ianseo
<?php

require_once dirname(__FILE__) . '/lib.php';
require_once dirname(dirname(__FILE__)) . '/lib.php';
// default Divisions
CreateStandardDivisions($TourId, $TourType);
// default SubClasses
CreateStandardSubClasses($TourId);
// default Classes
CreateStandardClasses($TourId, $SubRule, '3D');
//
// default Distances
switch ($TourType) {
    case 11:
        CreateDistance($TourId, $TourType, '%', 'Rutt');
        break;
}
// Default Target
$i = 1;
switch ($TourType) {
    case 11:
        CreateTargetFace($TourId, $i++, 'Red Peg', 'REG-^[C]{1,1}[J]{0,1}[HD]{1,1}', '1', 8, 0);
        CreateTargetFace($TourId, $i++, 'Blue Peg', 'REG-^[RBLI]{1,1}[J]{0,1}[HD]{1,1}', '1', 8, 0);
        CreateTargetFace($TourId, $i++, 'Blue Peg', 'REG-^[C]{1,1}[SMV]{1,1}[HD]{1,1}', '1', 8, 0);
        CreateTargetFace($TourId, $i++, 'Black Peg', 'REG-^[RBLI]{1,1}[SMV]{1,1}[HD]{1,1}', '1', 8, 0);
        CreateTargetFace($TourId, $i++, 'Black Peg', 'REG-^[RCBLI]{1,1}[C]{1,1}[HD]{1,1}', '1', 8, 0);
        CreateTargetFace($TourId, $i++, 'White Peg', 'REG-^[RCBLI]{1,1}[K]{1,1}[HD]{1,1}', '1', 8, 0);
        break;
}
// create a first distance prototype
CreateDistanceInformation($TourId, $DistanceInfoArray, 20, 4);
コード例 #6
0
ファイル: Setup_GdG.php プロジェクト: brian-nelson/ianseo
$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';
// 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);
コード例 #7
0
ファイル: Setup_Field.php プロジェクト: brian-nelson/ianseo
<?php

require_once dirname(__FILE__) . '/lib.php';
require_once dirname(dirname(__FILE__)) . '/lib.php';
// default Divisions
CreateStandardDivisions($TourId, $TourType);
// default SubClasses
CreateStandardSubClasses($TourId);
// default Classes
CreateStandardClasses($TourId, $SubRule, 'FIELD');
// $SubRule force to 1 (ALL CLASSES)
// default Distances
switch ($TourType) {
    case 10:
    case 12:
        CreateDistance($TourId, $TourType, '%', 'Hunter', 'Field');
        break;
}
// Default Target
$i = 1;
switch ($TourType) {
    case 10:
    case 12:
        CreateTargetFace($TourId, $i++, 'Red Peg', 'REG-^[CR]{1,1}[J]{0,1}[HD]{1,1}', '1', 6, 0, 6, 0);
        CreateTargetFace($TourId, $i++, 'White Peg', 'REG-^[RCBL]{1,1}[K]{1,1}[HD]{1,1}', '1', 6, 0, 6, 0);
        CreateTargetFace($TourId, $i++, 'Blue Peg', 'REG-^[B]{1,1}[J]{0,1}[HD]{1,1}', '1', 6, 0, 6, 0);
        CreateTargetFace($TourId, $i++, 'Blue Peg', 'REG-^[CR]{1,1}[SMV]{1,1}[HD]{1,1}', '1', 6, 0, 6, 0);
        CreateTargetFace($TourId, $i++, 'Black Peg', 'REG-^[L]{1,1}[CJSMV]{0,1}[HD]{1,1}', '1', 6, 0, 6, 0);
        CreateTargetFace($TourId, $i++, 'Black Peg', 'REG-^[RCB]{1,1}[C]{1,1}[HD]{1,1}', '1', 6, 0, 6, 0);
        CreateTargetFace($TourId, $i++, 'Black Peg', 'REG-^[B]{1,1}[SMV]{1,1}[HD]{1,1}', '1', 6, 0, 6, 0);
        /*
コード例 #8
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');
// 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);
コード例 #9
0
ファイル: Setup_Target.php プロジェクト: brian-nelson/ianseo
        break;
    case 7:
        CreateDistance($TourId, $TourType, '%K_', '12m-1', '12m-2');
        CreateDistance($TourId, $TourType, '%C_', '12m-1', '12m-2');
        CreateDistance($TourId, $TourType, '%J_', '25m-1', '25m-2');
        CreateDistance($TourId, $TourType, '%S_', '25m-1', '25m-2');
        CreateDistance($TourId, $TourType, '%M_', '25m-1', '25m-2');
        CreateDistance($TourId, $TourType, '%V_', '25m-1', '25m-2');
        break;
    case 22:
        CreateDistance($TourId, $TourType, '%K_', '12m-1');
        CreateDistance($TourId, $TourType, '%C_', '12m-1');
        CreateDistance($TourId, $TourType, '%J_', '18m-1');
        CreateDistance($TourId, $TourType, '%S_', '18m-1');
        CreateDistance($TourId, $TourType, '%M_', '18m-1');
        CreateDistance($TourId, $TourType, '%V_', '18m-1');
        break;
}
if ($TourType == 6 || $TourType == 3 || $TourType == 1) {
    // default Events
    CreateStandardEvents($TourId, $TourType, $SubRule, $TourType != 6);
    // Classes in Events
    InsertStandardEvents($TourId, $TourType, $SubRule, $TourType != 6);
    // Finals & TeamFinals
    CreateFinals($TourId);
}
// Default Target
$i = 1;
switch ($TourType) {
    case 1:
        CreateTargetFace($TourId, $i++, '~Default', '%K_', '1', 5, 122, 5, 122, 5, 122, 5, 122);
コード例 #10
0
ファイル: Setup_Field.php プロジェクト: brian-nelson/ianseo
require_once dirname(__FILE__) . '/lib.php';
require_once dirname(dirname(__FILE__)) . '/lib.php';
// default Divisions
CreateStandardDivisions($TourId, 'FIELD');
// default SubClasses
CreateSubClass($TourId, 1, '00', '00');
// default Classes
CreateStandardFieldClasses($TourId, $SubRule);
// default Distances
switch ($TourType) {
    case 9:
        CreateDistance($TourId, $TourType, '%', 'Course');
        break;
    case 10:
    case 12:
        CreateDistance($TourId, $TourType, '%', 'Unmarked', 'Marked');
        break;
}
// default Events
CreateStandardFieldEvents($TourId, $SubRule);
// insert class in events
InsertStandardFieldEvents($TourId, $SubRule);
// Elimination rounds
InsertStandardFieldEliminations($TourId, $SubRule);
// Finals & TeamFinals
CreateFinals($TourId);
// Default Target
switch ($TourType) {
    case 9:
        CreateTargetFace($TourId, 1, 'Picch. Giallo', 'REG-^BC', '1', 6, 0);
        CreateTargetFace($TourId, 2, 'Picch. Blu', 'REG-^(B[^C]|[CR]C)', '1', 6, 0);
コード例 #11
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);