<%if action=0 then%>
Nessun Campionato Trovato
<%else%>
<%=campionato&" - "&anno%>
<%
n=0
do while not rstmp.EOF
'PARTITE
SQL="SELECT partite.id, GolCasa, GolTrasferta, sc.nome as nomeCasa, "&_
"st.nome as nomeTrasferta, idCSCasa, idCSTrasferta, giocata "&_
"FROM partite "&_
"INNER JOIN cs as csc ON (partite.idCSCasa=csc.id) INNER JOIN squadra as sc ON (sc.id=csc.idsquadra) "&_
"INNER JOIN cs as cst ON (partite.idCSTrasferta=cst.id) INNER JOIN squadra as st ON (st.id=cst.idsquadra) "&_
"WHERE partite.idGiornata="&rstmp("id")&" AND partite.eliminato='N' ORDER BY partite.id asc"
set rsG = Conn.Execute(SQL)
if n mod 2 <> 0 then
classeDIV = "margin-left:15px"
else
classeDIV = ""
end if%>
-
-
giornata n° <%=rstmp("giornata")%>
- <%=rstmp("data")%>
-
<%if not rsG.EOF then
do while not rsG.EOF %>
">
-
- <%=rsG("nomeCasa")%>
-
<%if rsG("giocata")="S" then %>
<%
golT = cint(rsG("golCasa")+rsG("golTrasferta"))
SQL="SELECT COUNT(marcatori.id) as golS FROM marcatori "&_
"WHERE eliminato='N' AND idPartita='"&rsG("id")&"'"
set rsS = Conn.Execute(SQL)
if rsS.EOF then
golS = 0
else
golS = cint(rsS("golS"))
end if
set rsS = Nothing
'golT<=golS
if (golS>0 and rsG("giocata")="S") then
OnClick="window.open('Marcatori.asp?id="&rsG("id")&"&idac="&id&"&idg="&rstmp("id")&"'"&_
",'mywindow','status=0,toolbar=0,location=0,menubar=0"&_
",directories=0,resizable=0,scrollbars=0,height=300,width=700')" %>
<%end if
if rsG("giocata")="S" then %>
<%=rsG("GolCasa")%> - <%=rsG("GolTrasferta")%>
<%else%>
-
<%end if
'golT<=golS
if (golS>0 and rsG("giocata")="S") then%>
<%end if
else%>
-
<%end if%>
- <%=rsG("nomeTrasferta")%>
-
<%rsG.movenext
Loop
set rsG = Nothing
end if%>
<%
n=n+1
rstmp.movenext
Loop%>
<%end if%>