Beispiel #1
0
<?php 
if (CFG_CURRENT_EVENT > 0) {
    $checkStartHeights = checkStartheightsComplete(CFG_CURRENT_EVENT);
    $athletes = getAthletes(CFG_CURRENT_EVENT, 0);
    if ($checkStartHeights) {
        createHeightTable(CFG_CURRENT_EVENT);
        $currentAthlete = getCurrentAthlete($athletes);
        $currentAthleteID = $currentAthlete['ath_id'];
        $currentHeight = $currentAthlete['curr_height'];
        $currentResultData = getCurrentResult($currentAthleteID, $currentHeight);
        $currentResult = $currentResultData['ath_res'];
        $currentResultID = $currentResultData['res_id'];
        if ($currentAthleteID > 0) {
            $currentAttempt = $currentAthlete['curr_miss'] + 1;
            $currentAthleteData = getAthleteDetails($currentAthleteID, false, 'ath_pos', '0', true);
            $nextAthlete = getNextAthlete($athletes, $currentAthlete);
            $nextAthleteID = $nextAthlete['ath_id'];
            $nextHeight = $nextAthlete['curr_height'];
            if ($nextAthleteID == 0) {
                $last = true;
                $nextAthleteID == getFirstAthlete($athletes);
            } else {
                $last = false;
            }
            $nextAthleteData = getAthleteDetails($nextAthleteID, false, 'ath_pos', '0', true);
            $nextAttempt = $nextAthlete['curr_miss'] + 1;
        }
    }
    $settings = getHighSettings(CFG_CURRENT_EVENT);
    ?>
    <input type="hidden" name="round" id="round" value="<?php 
Beispiel #2
0
        validate();
    });
</script>

<?php 
if (CFG_CURRENT_EVENT > 0) {
    $maxRang = checkFinal(CFG_CURRENT_EVENT);
    if (checkDrop(CFG_CURRENT_EVENT, $maxRang)) {
        dropPosition(CFG_CURRENT_EVENT, $maxRang);
    }
    $athletes = getNofResults(CFG_CURRENT_EVENT, 0, $maxRang);
    $currentAthleteID = getCurrentAthlete($athletes);
    if ($currentAthleteID > 0) {
        $currentAttempt = getNofResults(CFG_CURRENT_EVENT, $currentAthleteID, 0, false) + 1;
        $currentAthleteData = getAthleteDetails($currentAthleteID, false, 'ath_pos', '0', true);
        $NextAthleteID = getNextAthlete($athletes, $athletes[$currentAthleteID]['Position']);
        if ($NextAthleteID == 0) {
            $last = true;
            $NextAthleteID == getFirstAthlete($athletes);
        } else {
            $last = false;
        }
        $NextAthleteData = getAthleteDetails($NextAthleteID, false, 'ath_pos', '0', true);
    }
    $settings = getTechSettings(CFG_CURRENT_EVENT);
    ?>
    <input type="hidden" name="round" id="round" value="<?php 
    echo $events['xRunde'];
    ?>
">
    <input type="hidden" name="event" id="event" value="<?php