>=date("G:i",$tourney[start])?> - =date("G:i",$tourney[start]+($tourney[roundtime]+$tourney[pausetime])*$tourney[matchrounds])?> |
for ($i = 2; $i<= $rounds; $i++)
{
?>
>=date("G:i",$tourney[start]+($tourney[roundtime]+$tourney[pausetime])*$tourney[matchrounds]*($i-1))?> - =date("G:i",$tourney[start]+($tourney[roundtime]+$tourney[pausetime])*$tourney[matchrounds]*($i))?> |
}
?>
// status table Y loop
for ($y=1; $y<=$tourney["maxstarter"]*2-2; $y++)
{
?>
// status table X loop
// starter list in center
$x = 0;
if (round(($y+1)/4)-(($y+1)/4)>0)
{
$num = round(($y+1)/4*2);
if ($tourney['status']<3)
{
$score = 0;
$name = $_s_starter.' '.$num;
} else {
$name = get_starter($tourney,$num);
$pos = round($num/2);
if ($field[$x][$num]['sid'] <=0)
{
$dolink = FALSE;
$name = get_starter($tourney,$field[$x][$num]['sid']);
} else {
$dolink = TRUE;
$name = get_starter($tourney,$field[$x][$num]['sid']);
}
}
if ($y/2 != round($y/2))
{
?>
>=$dolink?plink("$PHP_SELF?module=$mod&amode=$amode&action=matchinfo&tid=$tid&x=$x&y=$pos",$name):$name?> |
>=$field[$x][$num]['sc1']?$field[$x][$num]['sc1']:'-'?> |
} else {
?>
>=$dolink?plink("$PHP_SELF?module=$mod&amode=$amode&action=matchinfo&tid=$tid&x=$x&y=$pos",$name):$name?> |
>=$field[$x][$num]['sc1']?$field[$x][$num]['sc1']:'-'?> |
}
}
elseif(round(($y+1)/4)==(($y+1)/4))
{
if (round(($y+1)/8)==(($y+1)/8))
{
$st = round(($y+1)/4*2);
?>
|
} else {
?>
 |
}
}
// winner baket
for ($x = 1; $x < $rounds; $x++)
{
$spacecount = ((($fields/2)/(pow(2,$rounds-$x-1)/2))-1)*2;
if($addsp[$x]>0)
{
if ($y/2 != round($y/2))
{
if ($space[$x] == 0 || $x == $rounds-1)
{
?>
|
} else {
?>
 |
}
}
} else {
if($type[$x] == 0)
{
$cnum[$x]++;
$num = $cnum[$x];
$pos = round($num/2);
if ($field[$x][$num]['sid'] ==0)
{
$dolink = FALSE;
$name = '-';
}
elseif($field[$x][$num]['sid'] == -1)
{
$dolink = FALSE;
$name = get_starter($tourney,$field[$x][$num]['sid']);
} else {
$dolink = TRUE;
$name = get_starter($tourney,$field[$x][$num]['sid']);
}
if ($y/2 != round($y/2))
{
?>
>=$dolink?plink("$PHP_SELF?module=$mod&amode=$amode&action=matchinfo&tid=$tid&x=$x&y=$pos",$name):$name?> |
>=$field[$x][$num]['sc1']?$field[$x][$num]['sc1']:'-'?> |
} else {
$type[$x] = 1;
?>
>=$dolink?plink("$PHP_SELF?module=$mod&amode=$amode&action=matchinfo&tid=$tid&x=$x&y=$pos",$name):$name?> |
>=$field[$x][$num]['sc1']?$field[$x][$num]['sc1']:'-'?> |
if ($space[$x] == 0)
{
$space[$x] = 1;
} else {
$space[$x] = 0;
}
}
} else {
if ($y/2 != round($y/2))
{
if ($space[$x] == 0)
{
?>
|
} else {
?>
 |
}
} else {
$type[$x] = 0;
}
}
}
$addsp[$x]--;
if ($addsp[$x]<-1)
{
$addsp[$x] = $spacecount;
}
}
?>
}
?>