<?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 for "Target" Archery */ require_once dirname(__FILE__) . '/lib.php'; require_once dirname(dirname(__FILE__)) . '/lib.php'; // default Divisions CreateStandardDivisions($TourId); // default SubClasses CreateSubClass($TourId, 1, '00', '00'); // default Classes CreateStandardClasses($TourId, $SubRule); // default Distances switch ($TourType) { case 1: case 4: switch ($SubRule) { case '1': CreateDistance($TourId, $TourType, '_M', '90 m', '70 m', '50 m', '30 m'); CreateDistance($TourId, $TourType, '_W', '70 m', '60 m', '50 m', '30 m'); CreateDistance($TourId, $TourType, '_JM', '90 m', '70 m', '50 m', '30 m'); CreateDistance($TourId, $TourType, '_JW', '70 m', '60 m', '50 m', '30 m'); CreateDistance($TourId, $TourType, '_CM', '70 m', '60 m', '50 m', '30 m'); CreateDistance($TourId, $TourType, '_CW', '60 m', '50 m', '40 m', '30 m'); CreateDistance($TourId, $TourType, '_MM', '70 m', '60 m', '50 m', '30 m'); CreateDistance($TourId, $TourType, '_MW', '60 m', '50 m', '40 m', '30 m'); break; case '2': case '5': CreateDistance($TourId, $TourType, '_M', '90 m', '70 m', '50 m', '30 m');
<?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 Field */ 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);