| .:Notícias |
<%
CALL CreateConnection()
CALL CreateRecordSet(noticia, "SELECT_NOTICIA_RELACIONADA_equipe'"&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(equipe, "SELECT_equipe "&id&", "&categoria&", null")
if not equipe.eof then
%>
| <%= equipe("nome_equipe") %> |
<% if len(equipe("chassis")) > 0 then %>Chassi: <%= equipe("chassis") %> <% end if%>
<% if len(equipe("motor")) > 0 then %>Motor: <%= equipe("motor") %> <% end if %>
<% if len(equipe("pneus")) > 0 then %>Pneu: <%= equipe("pneus") %>
<% end if %>
<%
CALL CreateRecordSet(link, "SELECT_link "&equipe("rel_site")&"")
if not link.eof then
%>
Site: " class='equipes_pilotos'target="_blank"><%= link("url") %>
<%
end if
CALL CloseRecordSet(link)
%>
<%
CALL CreateRecordSet(piloto, "SELECT_piloto_equipe "&equipe("id_equipe")&"")
if not piloto.eof then
%>
Pilotos:
<% do until piloto.eof
response.write ""&piloto("nome_piloto")&""
piloto.movenext
if not piloto.eof then response.write ", "
loop
response.write"
"
end if
CALL CloseRecordSet(piloto)
%>
|
<% if len(equipe("foto")) > 0 then %> " border="0" alt=""><% end if %> |
<% if len(equipe("texto")) > 0 then %>
| História: |
|
<%= equipe("texto") %>
|
<% end if %>
<%
CALL CreateRecordSet(galeria, "SELECT_FOTO_GALERIA "&categoria&", 2, "&equipe("id_equipe")&", "& SESSION("SEASON") &"")
if not galeria.eof then
%>
">
<%
end if
CALL CloseRecordSet(galeria)
%>
|
<%
END if
CALL closeRecordSet(equipe)
CALL CloseConnection()
%>
|
|