/* 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);
case 3: CreateTargetFace($TourId, 1, '~Default', '%', '1', 5, 122, 5, 122); CreateTargetFace($TourId, 2, '~DefaultCO', 'C%', '1', 9, 80, 9, 80); break; case 5: CreateTargetFace($TourId, 1, '~Default', '%', '1', 5, 122, 5, 122, 5, 122); break; case 6: CreateTargetFace($TourId, 1, '~Default', '%', '1', 2, 40, 2, 40); CreateTargetFace($TourId, 2, '~DefaultCO', 'C%', '1', 4, 40, 4, 40); // optional target faces CreateTargetFace($TourId, 3, '~Option1', 'R%', '', 1, 40, 1, 40); break; case 7: CreateTargetFace($TourId, 1, '~Default', '%', '1', 2, 60, 2, 60); CreateTargetFace($TourId, 2, '~DefaultCO', 'C%', '1', 4, 60, 4, 60); // optional target faces CreateTargetFace($TourId, 3, '~Option1', 'R%', '', 1, 60, 1, 60); break; case 8: CreateTargetFace($TourId, 1, '~Default', '%', '1', 2, 60, 2, 60, 2, 40, 2, 40); CreateTargetFace($TourId, 2, '~DefaultCO', 'C%', '1', 4, 60, 4, 60, 4, 40, 4, 40); // optional target faces CreateTargetFace($TourId, 3, '~Option1', 'R%', '', 1, 60, 1, 60, 1, 40, 1, 40); break; } // 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); UpdateTourDetails($TourId, $tourDetails);
break; case 6: CreateTargetFace($TourId, $i++, '~Default', '%', '1', 1, 40, 1, 40); CreateTargetFace($TourId, $i++, '~DefaultCO', 'REG-^CO[^G]', '1', 4, 40, 4, 40); CreateTargetFace($TourId, $i++, '~Default G/VI', 'REG-^OLG|^ANG|^VI', '1', 1, 60, 1, 60); CreateTargetFace($TourId, $i++, '~Default COG', 'REG-^COG', '1', 4, 60, 4, 60); // optional target faces CreateTargetFace($TourId, $i++, '~6-10', 'REG-^OL[AJMRS]', '', 2, 40, 2, 40); break; case 7: CreateTargetFace($TourId, $i++, '~Default', '%', '1', 1, 60, 1, 60); CreateTargetFace($TourId, $i++, '~DefaultCO', 'REG-^CO[^G]', '1', 4, 60, 4, 60); CreateTargetFace($TourId, $i++, '~Default G/VI', 'REG-^OLG|^VI', '1', 1, 80, 1, 80); CreateTargetFace($TourId, $i++, '~Default COG', 'REG-^COG', '1', 4, 80, 4, 80); // optional target faces CreateTargetFace($TourId, $i++, '~6-10', 'REG-^OL[AJMRS]', '', 2, 60, 2, 60); break; case 8: CreateTargetFace($TourId, $i++, '~Default', '%', '1', 1, 60, 1, 60, 1, 40, 1, 40); CreateTargetFace($TourId, $i++, '~DefaultCO', 'REG-^CO[^G]', '1', 4, 60, 4, 60, 4, 40, 4, 40); CreateTargetFace($TourId, $i++, '~Default G/VI', 'REG-^OLG|^VI', '1', 1, 80, 1, 80, 1, 60, 1, 60); CreateTargetFace($TourId, $i++, '~Default COG', 'REG-^COG', '1', 4, 80, 4, 80, 4, 60, 4, 60); // optional target faces CreateTargetFace($TourId, $i++, '~6-10', 'REG-^OL[AJMRS]', '', 2, 60, 2, 60, 2, 40, 2, 40); break; } // create a first distance prototype CreateDistanceInformation($TourId, $DistanceInfoArray, 16, 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);
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); // 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);
// outdoor recurve 5-10 break; case 26: CreateTargetFace($TourId, $i++, '80cm', '%', '1', 5, 80, 5, 80); // outdoor complete break; case 27: CreateTargetFace($TourId, $i++, '80cm', '%', '1', 5, 80, 5, 80); // outdoor complete break; case 28: CreateTargetFace($TourId, $i++, '122cm', 'REG-[BP]$', '1', 5, 122, 5, 122); // outdoor complete CreateTargetFace($TourId, $i++, '80cm', 'REG-[^BP]$', '1', 5, 80, 5, 80); // outdoor complete break; case 29: CreateTargetFace($TourId, $i++, '122cm', 'REG-^([CR]B[BP])|(LB)', '1', 5, 122, 5, 122); // outdoor complete CreateTargetFace($TourId, $i++, '80cm', 'REG-^[RCN]B[^BP]', '1', 5, 80, 5, 80); // outdoor complete break; case 30: CreateTargetFace($TourId, $i++, '~Default', '%', '1', 5, 122, 5, 122, 5, 80, 5, 80); break; } // 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);
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); /* CreateTargetFace($TourId, $i++, 'Blue Peg', 'REG-^[B]{1,1}[HD]{1,1}', '1', 6, 0, 6, 0); CreateTargetFace($TourId, $i++, 'Black Peg', 'REG-^[L]{1,1}[HD]{1,1}', '1', 6, 0, 6, 0); CreateTargetFace($TourId, $i++, 'Red Peg', 'REG-^[CB]{1,1}[V]{1,1}[HD]{1,1}', '1', 6, 0, 6, 0); CreateTargetFace($TourId, $i++, 'Blue Peg', 'REG-^[RL]{1,1}[S]{1,1}[HD]{1,1}', '1', 6, 0, 6, 0); CreateTargetFace($TourId, $i++, 'Black Peg', 'REG-^[CB]{1,1}[S]{1,1}[HD]{1,1}', '1', 6, 0, 6, 0); CreateTargetFace($TourId, $i++, 'Blue Peg', 'REG-^[RC]{1,1}[M]{1,1}[HD]{1,1}', '1', 6, 0, 6, 0); CreateTargetFace($TourId, $i++, 'Black Peg', 'REG-^[BL]{1,1}[M]{1,1}[HD]{1,1}', '1', 6, 0, 6, 0); CreateTargetFace($TourId, $i++, 'Blue Peg', 'REG-^[L]{1,1}[V]{1,1}[HD]{1,1}', '1', 6, 0, 6, 0); CreateTargetFace($TourId, $i++, 'Black Peg', 'REG-^[R]{1,1}[V]{1,1}[HD]{1,1}', '1', 6, 0, 6, 0); CreateTargetFace($TourId, $i++, 'Black Peg', 'REG-^[RCBL]{1,1}[J]{1,1}[HD]{1,1}', '1', 6, 0, 6, 0); */ break; } // create a first distance prototype
/* Blu per la Divisione Arco Nudo, per la classe Cadetti (Allievi) della Divisione Arco Ricurvo (Olimpico) e Cadetti (Allievi) della Divisione Arco Compound Rosso per la Divisione Arco Ricurvo (Olimpico) e Arco Compound. Giallo per la classe Cadetti (Allievi) della Divisione Arco Nudo (*) Le classi non previste dalla FITA utilizzeranno i picchetti secondo le seguenti modalità: Picchetto Giallo: Giovanissimi (Arco Olimpico e Arco Nudo), Ragazzi Arco Nudo e Longbow (classe unica maschile e classe unica femminile) Picchetto Blu: Ragazzi Arco Olimpico e Arco Compound. [18:57:02 CEST] Ardingo: yellow peg [18:57:05 CEST] Ardingo: red peg [18:57:08 CEST] Ardingo: blue peg */ switch ($TourType) { case 9: CreateTargetFace($TourId, 1, 'Picch. Giallo', 'REG-^(OLG|AN[AGR]|LB)', '1', 6, 0); CreateTargetFace($TourId, 2, 'Picch. Blu', 'REG-^(AN[^AGR]|OL[AR]|CO[AR]|AI[MF]$)', '1', 6, 0); CreateTargetFace($TourId, 3, 'Picch. Rosso', 'REG-^(OL[^AGR]|CO[^AGR])', '1', 6, 0); break; case 10: case 12: CreateTargetFace($TourId, 1, 'Picch. Giallo', 'REG-^(OLG|AN[AGR]|LB)', '1', 6, 0, 6, 0); CreateTargetFace($TourId, 2, 'Picch. Blu', 'REG-^(AN[^AGR]|OL[AR]|CO[AR]|AI[MF])', '1', 6, 0, 6, 0); CreateTargetFace($TourId, 3, 'Picch. Rosso', 'REG-^(OL[^AGR]|CO[^AGR])', '1', 6, 0, 6, 0); break; } // 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);
CreateTargetFace($TourId, $i++, '3 spot', 'REG-C[JS]{1,1}[HD]{1,1}', '1', 4, 40, 4, 40); CreateTargetFace($TourId, $i++, '10 ring', 'REG-[FK]{1,1}[MV]{1,1}[HD]{1,1}', '1', 1, 40, 1, 40); CreateTargetFace($TourId, $i++, '3 spot', 'REG-C[MV]{1,1}[HD]{1,1}', '1', 4, 40, 4, 40); break; case 7: CreateTargetFace($TourId, $i++, '10 ring', 'REG-[FKL]{1,1}K[HD]{1,1}', '1', 1, 60, 1, 60); CreateTargetFace($TourId, $i++, '3 spot', 'REG-CK[HD]{1,1}', '1', 3, 60, 3, 60); CreateTargetFace($TourId, $i++, '10 ring', 'REG-[FKL]{1,1}Y[HD]{1,1}', '1', 1, 40, 1, 40); CreateTargetFace($TourId, $i++, '3 spot', 'REG-CY[HD]{1,1}', '1', 4, 40, 4, 40); CreateTargetFace($TourId, $i++, '10 ring', 'REG-[FKL]{1,1}[JS]{1,1}[HD]{1,1}', '1', 1, 60, 1, 60); CreateTargetFace($TourId, $i++, '3 spot', 'REG-C[JS]{1,1}[HD]{1,1}', '1', 4, 60, 4, 60); CreateTargetFace($TourId, $i++, '10 ring', 'REG-[FK]{1,1}[MV]{1,1}[HD]{1,1}', '1', 1, 60, 1, 60); CreateTargetFace($TourId, $i++, '3 spot', 'REG-C[MV]{1,1}[HD]{1,1}', '1', 4, 60, 4, 60); break; case 22: CreateTargetFace($TourId, $i++, '~Default', 'REG-[FKL]{1,1}K[HD]{1,1}', '1', 1, 60); CreateTargetFace($TourId, $i++, '~DefaultCO', 'REG-CK[HD]{1,1}', '1', 3, 60); CreateTargetFace($TourId, $i++, '~Default', 'REG-[FKL]{1,1}Y[HD]{1,1}', '1', 1, 40); CreateTargetFace($TourId, $i++, '~DefaultCO', 'REG-CY[HD]{1,1}', '1', 4, 40); CreateTargetFace($TourId, $i++, '~Default', 'REG-[FK]{1,1}[JS]{1,1}[HD]{1,1}', '1', 1, 40); CreateTargetFace($TourId, $i++, '~Default', 'REG-L[JS]{1,1}[HD]{1,1}', '1', 1, 60); CreateTargetFace($TourId, $i++, '~DefaultCO', 'REG-C[JS]{1,1}[HD]{1,1}', '1', 4, 40); CreateTargetFace($TourId, $i++, '~Default', 'REG-[FK]{1,1}[MV]{1,1}[HD]{1,1}', '1', 1, 40); CreateTargetFace($TourId, $i++, '~DefaultCO', 'REG-C[MV]{1,1}[HD]{1,1}', '1', 4, 40); break; } // create a first distance prototype CreateDistanceInformation($TourId, $DistanceInfoArray, 16, 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);
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); CreateTargetFace($TourId, 3, 'Picch. Rosso', 'REG-^[CR][^C]', '1', 6, 0); break; case 10: case 12: CreateTargetFace($TourId, 1, 'Picch. Giallo', 'REG-^BC', '1', 6, 0, 6, 0); CreateTargetFace($TourId, 2, 'Picch. Blu', 'REG-^(B[^C]|[CR]C)', '1', 6, 0, 6, 0); CreateTargetFace($TourId, 3, 'Picch. Rosso', 'REG-^[CR][^C]', '1', 6, 0, 6, 0); break; } // 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); UpdateTourDetails($TourId, $tourDetails);
<?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);