Exemplo n.º 1
0
	</td>
	<td class='forms'>
		<?php 
AA_printEventSelection("speaker_results.php", $presets['category'], $presets['event'], "post");
?>
	</td>

<?php 
if ($presets['event'] > 0) {
    printf("<td class='forms'>\n");
    AA_printRoundSelection("speaker_results.php", $presets['category'], $presets['event'], $round);
    printf("</td>\n");
}
if ($round > 0) {
    printf("<td class='forms'>\n");
    AA_printHeatSelection($round, true);
    printf("</td>\n");
}
?>
</tr>
</table>
<?php 
//
//	form layout (depending on discipline type)
//
if ($round > 0) {
    $layout = AA_getDisciplineType($round);
    // type determines layout
    // track disciplines, with or without wind
    if ($layout == $cfgDisciplineType[$strDiscTypeNone] || $layout == $cfgDisciplineType[$strDiscTypeTrack] || $layout == $cfgDisciplineType[$strDiscTypeTrackNoWind] || $layout == $cfgDisciplineType[$strDiscTypeDistance] || $layout == $cfgDisciplineType[$strDiscTypeRelay]) {
        AA_speaker_Track($presets['event'], $round, $layout);
Exemplo n.º 2
0
	<td class='forms'>
		<?php 
AA_printEventSelection("event_heats.php", $presets['category'], $presets['event'], "post");
?>
	</td>
<?php 
if ($presets['event'] > 0) {
    // event selected
    printf("<td class='forms'>\n");
    AA_printRoundSelection("event_heats.php", $presets['category'], $presets['event'], $round);
    printf("</td>\n");
}
if ($round > 0) {
    // round selected
    printf("<td class='forms'>\n");
    AA_printHeatSelection($round);
    printf("</td>\n");
}
?>
</tr></table>

<?php 
$mergedMain = AA_checkMainRound($round);
if ($mergedMain != 1) {
    // main round or not merged round
    // read round data
    if ($round > 0) {
        $mergedRounds = AA_getMergedRounds($round);
        // get merged rounds
        if ($mergedRounds != '') {
            $SqlRound = " IN " . $mergedRounds;
Exemplo n.º 3
0
    function AA_results_printHeader($category, $event, $round)
    {
        require './lib/cl_gui_menulist.lib.php';
        require './lib/cl_gui_page.lib.php';
        require './lib/common.lib.php';
        $page = new GUI_Page('event_results');
        $page->startPage();
        $page->printPageTitle($GLOBALS['strResults'] . ": " . $_COOKIE['meeting']);
        $helpfile = "doc/" . $_COOKIE['language'] . "/help/event/results.html";
        $menu = new GUI_Menulist();
        $menu->addButton($cfgURLDocumentation . $helpfile, $GLOBALS['strHelp'], '_blank');
        $menu->printMenu();
        ?>

<script type="text/javascript">
<!--
	function submitResult(perfForm, focus)
	{
		perfForm.submit();

		if(focus) {
			focus.perf.focus();
			focus.perf.select();
		}
	}

	function submitForm(form, focus)
	{
		form.submit();

		if(document.getElementById(focus)) {
			document.getElementById(focus).focus();
			document.getElementById(focus).select();
		}
	}

	function checkSubmit(perfForm, focus)
	{   
		if(perfForm.perf.value <= 0 || perfForm.perf.value == '-' || perfForm.perf.value == 'x' || perfForm.perf.value == 'X')
		{   
			if(perfForm.wind) {
				perfForm.wind.value = '';
			}
			else if(perfForm.attempts) {
				perfForm.attempts.value = '';
			}
			submitResult(perfForm, focus);
		}else{ 
             if(perfForm.wind && (perfForm.wind.value != '-' && perfForm.wind.value != '')){ 
                  submitResult(perfForm, focus);   
            }  
		}
	}

	// remove these functions after high jump is switched to architecture!
	function selectResult(result)
	{
		document.selection.result.value=result;
	}

	function selectAthlete(athlete)
	{
		document.selection.athlete.value=athlete;
		document.selection.submit();
	}
	
//-->
</script>

<form action='event_results.php' method='post'
	name='selection'>
	<input type='hidden' name='round' value='<?php 
        echo $round;
        ?>
' />
	<input type='hidden' name='athlete' value='' />
	<input type='hidden' name='result' value='' />
</form>

<table><tr>
	<td class='forms'>
		<?php 
        AA_printCategorySelection("event_results.php", $category);
        ?>
	</td>
	<td class='forms'>
		<?php 
        AA_printEventSelection("event_results.php", $category, $event, "post");
        ?>
	</td>

<?php 
        if ($event > 0) {
            printf("<td class='forms'>\n");
            AA_printRoundSelection("event_results.php", $category, $event, $round);
            printf("</td>\n");
        }
        if ($round > 0) {
            printf("<td class='forms'>\n");
            AA_printHeatSelection($round);
            printf("</td>\n");
        }
        ?>
</tr>
</table>
<?php 
    }