<?php /* COMMON SETUP 3D */ 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);
<?php /* 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);
<?php /* Common Setup FIELD */ 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, 1, 'FIELD'); // $SubRule force to 1 (ALL CLASSES) // default Distances switch ($TourType) { case 9: CreateDistance($TourId, $TourType, '%', 'H&F'); break; case 10: case 12: CreateDistance($TourId, $TourType, '%', 'Hunter', 'Field'); break; } // default Events CreateStandardFieldEvents($TourId, $SubRule); // $SubRule is OK as it is 1 or 2 elimination rounds // insert class in events InsertStandardFieldEvents($TourId, $SubRule); // $SubRule is OK as it is 1 or 2 elimination rounds // Elimination rounds