<%if categoria = 34 or categoria=33 then %>
|
<% end if %>
| .:Notícias |
<%
CALL CreateConnection()
CALL CreateRecordSet(noticia, "SELECT_NOTICIA_RELACIONADA_PILOTO'"&REQUEST("ID")&"', "&categoria&"")
IF not noticia.eof then
cont = 1
do until noticia.eof
data = noticia("data")
dia = day(data)
if dia < 10 then dia = "0"&dia
mes = month(data)
if mes < 10 then mes = "0"&mes
ano = year(data)
data = dia &"/"&mes&"/"&ano
%>
<%= data %> - " class="noticia_home"><%= noticia("titulo") %>
<%
if cont >= 8 then exit do
noticia.movenext
cont = cont + 1
loop
end if
CALL closeRecordSet(noticia)
%>
|
|
|
|
<%
CALL CreateConnection()
CALL CreateRecordSet(piloto, "SELECT_piloto "&id&", "&categoria&", NULL")
if not piloto.eof then
%>
| <%= piloto("nome_piloto") %> |
<% if len(piloto("data_nasc")) > 0 then %>Data de Nascimento: <%= formatdatetime(piloto("data_nasc"), 0) %><% end if %>
<% if len(piloto("local_nasc")) > 0 then %>Local de Nascimento: <%= piloto("local_nasc") %><% end if %>
<% if len(piloto("num_carro")) > 0 then %>Nº do Carro: <%= piloto("num_carro") %><% end if %>
<% if len(piloto("nome_equipe")) > 0 then %>Equipe: " class='equipes_pilotos'><%= piloto("nome_equipe") %><% end if %>
<% if len(piloto("patrocinio")) > 0 then %>Patrocínio: <%= piloto("patrocinio") %><% end if %>
<% if piloto("class_ano_ant") > 0 then %>Colocação no Ano Anterior: <%= piloto("class_ano_ant") %>º Lugar<% end if %>
<% if piloto("num_poles") > 0 then %>Nº de Poles: <%= piloto("num_poles") %><% end if %>
<% if piloto("num_vitorias") > 0 then %>Nº de Vitórias: <%= piloto("num_vitorias") %><% end if %>
<% if piloto("num_poles_ano") > 0 then %>Nº de Poles em <%= year(now) %>: <%= piloto("num_poles_ano") %><% end if %>
<%
CALL CreateRecordSet(link, "SELECT_link "&piloto("rel_site")&"")
if not link.eof then
%>
Site: " class='equipes_pilotos' target="_blank"><%= link("url") %>
<%
end if
CALL CloseRecordSet(link)
%>
|
<% if len(piloto("foto")) > 0 then %> " width="119" height="180" border="0" alt=""><% end if %> |
<% if len(piloto("texto")) > 0 then %>
| História: |
|
<%= piloto("texto") %>
|
<% end if %>
<%
CALL CreateRecordSet(galeria, "SELECT_FOTO_GALERIA "&categoria&", 3, "&id&", "& SESSION("SEASON")&"")
if not galeria.eof then
%>
<%
end if
CALL CloseRecordSet(galeria)
%>
|
<%
END if
CALL closeRecordSet(piloto)
CALL CloseConnection()
%>
|
|