// Mensagens de Natal e Ano Novo
if ($hmes==12 && $hdia>14 && $hdia<=25)
{
?>
echo $titulo[$N_NATAL]; ?>
|
|
|
}
else
if (($hmes==12 && $hdia>25) || ($hmes==1 && $hdia<7))
{
?>
echo $titulo[$N_ANOVO]; ?>
|
|
|
}
$ano=$ano3Fin;
$SQLQuery="SELECT cp3.ngp From cp3 Where cp3.rcp = ".$ano;
$result = mysql_query($SQLQuery);
$RSList = mysql_fetch_array($result);
$ngp=$RSList["ngp"];
$rgp=$ano*100+$ngp;
$nogp= GPnome($rgp,$lin);
?>
echo $ano; ?>
|
// Foto galeria
$SQLQuery="SELECT count(fotos3.foto) as num FROM fotos3 inner join contactos on fotos3.sig=contactos.sig WHERE fotos3.ref>".($ano*100000)." and fotos3.ref<".(($ano+1)*100000)." and fotos3.cref=".$REF_PA;
if (($result = mysql_query($SQLQuery)) and ($RSList = mysql_fetch_array($result)))
{
$nl= rand(0,$RSList["num"]-1);
$SQLQuery="SELECT fotos3.*, contactos.copynote FROM fotos3 inner join contactos on fotos3.sig=contactos.sig WHERE (fotos3.ref>".($ano*100)." and fotos3.ref<".(($ano+1)*100)." and fotos3.cref=".$REF_GP.") or (fotos3.ref>".($ano*100000)." and fotos3.ref<".(($ano+1)*100000)." and fotos3.cref=".$REF_PA.")";
if (($result = mysql_query($SQLQuery)) and ($RSList = mysql_fetch_array($result)))
{
$n=0;
while($RSList && $n!=$nl)
{
$n=$n+1;
$RSList= mysql_fetch_array($result);
}
?> echo $titulo[$N_PGAL]; ?>
|
if ($RSList["zoom"]==0)
{
?> " ALT="Photo">
}
else
{
?>"> " ALT="Zoom" BORDER="0">
}
?> echo $RSList["copynote"]; ?> | |
tab_bar1(4);
?>
}
}
// Próximo GP
$rgpa=$ano*100+80;
$rgpb=$rgpa+20;
$SQLQuery="SELECT gp3.*, dayofmonth(gp3.date) as dd, month(gp3.date) as mm, gp3.name as ng_nome, tmeses.nome as mes FROM gp3 inner join tmeses on month(gp3.date)=tmeses.cod where gp3.rgp>".$rgpa." and gp3.rgp<".$rgpb." and tmeses.lin = ".$lin." order by gp3.rgp";
if (($result = mysql_query($SQLQuery)) and ($RSList = mysql_fetch_array($result)))
{
if ($hmes<$RSList["mm"] || ($hmes==$RSList["mm"] && $hdia<=$RSList["dd"]))
{
// rng = RSList("rng")
?>
echo pri_datab($RSList["dd"],$RSList["mes"],0); ?>: echo $RSList["ng_nome"]; ?>
}
}
if (0==0 && strlen($nogp)>0)
{
?> echo $nogp; ?>
$SQLQuery="SELECT pa3.rpa, pa3.driver as pi_nome FROM pa3 where pa3.rpa>".($rgp*1000)." and pa3.rpa<".($rgp*1000+999)." and pa3.r_cla>=1 and pa3.r_cla<=3 order by pa3.r_cla";
if (($result = mysql_query($SQLQuery)) and mysql_num_rows($result) > 0)
{
$n=0;
while ($RSList= mysql_fetch_array($result))
{
?> echo $n+1; ?> echo $RSList["pi_nome"]; ?>
$n=$n+1;
}
}
}
// Campeonato de Pilotos
if ($ngp>0)
{
?> echo $titulo[$N_CHAM]; ?>
$SQLQuery="SELECT cp3_cla.pon, cp3_cla.driver as pi_nome FROM cp3_cla where cp3_cla.rcp=".$ano." order by cp3_cla.id limit 3";
if (($result = mysql_query($SQLQuery)) and mysql_num_rows($result) > 0)
{
$n=0;
while ($RSList= mysql_fetch_array($result))
{
?> echo $RSList["pi_nome"]; ?> ( echo $RSList["pon"]/100; ?>)
$n=$n+1;
}
}
}
?> echo $titulo[$N_RACES]; ?>
|
|
++
|
FORIX
if ($super_modo==$Modo_total)
{
?>
Available
CP tables
Photos idx
} ?>
if ($zip<10 && $zip!=0)
{
?>
} ?>
if ($zip<10 && $zip!=1)
{
?>
} ?>
if ($zip<10 && $zip!=2)
{
?>
} ?>
|
|
|
|