|
<%
Set rsListCatClub = Server.CreateObject("ADODB.Recordset")
sqlListCatClub = "SELECT * FROM categorie WHERE desactive=0 AND joueurs=1 ORDER BY NomCat"
openrs rsListCatClub, sqlListCatClub
While not rsListCatClub.eof
Response.Write("" & rsListCatClub("NomCat") & "")
rsListCatClub.movenext
If not rsListCatClub.eof then
Response.Write(" - ")
end if
Wend
rsListCatClub.close
set rsListCatClub = nothing
%>
<%
If ChkMatch = 0 then
%>
Dates pas encore reçues
<%
else
If AlertChk = 1 then
Response.Write("" & AlertMessage & "")
end if
If deplacement = 2 then
Response.Write("Match du " & jourMatch & " " & dateMatch & " contre " & adversaire & "")
Response.Write("A " & LieuMatch & "")
else
Response.Write("Match du " & jourMatch & " " & dateMatch & " contre " & adversaire & "")
Response.Write("A " & LieuMatch)
If StreetMatch <> "" then
%>
- <%=StreetMatch%>
<%
End if
If CityMatch <> "" then
%>
- <%=CityMatch%>
<%
End if
If GoogleMap <> "" then
%>
- Voir le plan
<%
end if
Response.Write("")
end if
If LieuRDV <> "" OR LieuRDV <> empty then
Response.Write("Lieu Rendez-Vous : " & LieuRDV & "")
End if
If FeuilleMatch <> "" then
Response.Write("Feuille match : " & FeuilleMatch & "")
end if
If Coupe = 1 then
Response.Write("Match de coupe, pas de match réserve !!!")
end if
If Session("UserRights") = 3 then
Response.Write("")
end if
%>
| Joueur |
<%
If deplacement = 1 then
%>
RDV <%=RDV%> |
<%
end if
If Coupe = 0 then
%>
Réserve <%=matchReserve%> |
<%
end if
%>
1ère <%=matchPremiere%> |
<%
If Resto = 1 then
%>
<%=restoName%> |
Pers. |
<%
end if
If ChkComment = 1 then
%>
Commentaire |
<%
end if
%>
<%
TotalReserve = 0
TotalPremiere = 0
TotalRdv = 0
TotalResto = 0
TotalRestoNb = 0
Set rsJoueurs = Server.CreateObject("ADODB.Recordset")
sqlJoueurs = "SELECT * FROM Joueurs_club WHERE (idCat=" & CatMatch & " OR idCat2=" & CatMatch & ") AND desactive=0 ORDER BY Nom, Prenom Asc"
openrs rsJoueurs, sqlJoueurs
While not rsJoueurs.eof
RelCommentaire = ""
IDJoueur = rsJoueurs("id")
If CLng(Session("UserID")) = CLng(IDJoueur) then
NomPrenom = "" & rsJoueurs("Nom") & " " & rsJoueurs("Prenom") & ""
else
NomPrenom = rsJoueurs("Nom") & " " & rsJoueurs("Prenom")
end if
If Session("UserRights") = 3 then
NomPrenom = "" & rsJoueurs("Nom") & " " & rsJoueurs("Prenom") & ""
End if
Set rsRelJM = Server.CreateObject("ADODB.Recordset")
sqlRelJM = "SELECT * FROM relmatchjoueur_club WHERE idCat=" & CatMatch & " AND IdM = " & idMatch & " AND IdJ = " & IDJoueur & ""
openrs rsRelJM, sqlRelJM
while not rsRelJM.eof
RelReserve = rsRelJM("Reserves")
RelMatch = rsRelJM("Matchs")
RelRdv = rsRelJM("Rdv")
RelResto = rsRelJM("Resto")
RelRestoNb = rsRelJM("RestoNb")
RelCommentaire = rsRelJM("Commentaire")
rsRelJM.movenext
wend
rsRelJM.close
If RelRestoNb = "" then
RelRestoNb = "???"
end if
If RelReserve = 1 OR RelReserve = 2 OR RelReserve = 3 then
If RelReserve = 1 then
RelJReserve = "oui | "
TotalReserve = TotalReserve + 1
end if
If RelReserve = 2 then
RelJReserve = "non | "
end if
If RelReserve = 3 then
RelJReserve = "bô ? | "
end if
else
RelJReserve = "??? | "
end if
If RelMatch = 1 OR RelMatch = 2 OR RelMatch = 3 then
If RelMatch = 1 then
RelJMatch = "oui | "
TotalPremiere = TotalPremiere + 1
end if
If RelMatch = 2 then
RelJMatch = "non | "
end if
If RelMatch = 3 then
RelJMatch = "bô ? | "
end if
else
RelJMatch = "??? | "
end if
If deplacement = 1 then
If RelRdv = 1 OR RelRdv = 2 OR RelRdv = 3 then
If RelRdv = 1 then
RelJRdv = "oui | "
TotalRdv = TotalRdv + 1
end if
If RelRdv = 2 then
RelJRdv = "non | "
end if
If RelRdv = 3 then
RelJRdv = "bô ? | "
end if
else
RelJRdv = "??? | "
end if
end if
If Resto = 1 then
If RelResto = 1 OR RelResto = 2 OR RelResto = 3 then
If RelResto = 1 then
RelJResto = "oui | "
TotalResto = TotalResto + 1
RelJRestoNb = RelRestoNb
TotalRestoNb = TotalRestoNb + RelRestoNb
end if
If RelResto = 2 then
RelJResto = "non | "
RelJRestoNb = 0
end if
If RelResto = 3 then
RelJResto = "bô ? | "
RelJRestoNb = 0
end if
else
RelJResto = "??? | "
RelJRestoNb = "???"
end if
end if
If Isnull(RelCommentaire) OR RelCommentaire = "" then
RelCommentaire = " "
end if
%>
| <%=NomPrenom%> |
<%
If deplacement = 1 then
%>
<%=RelJRdv%>
<%
end if
If Coupe = 0 then
%>
<%=RelJReserve%>
<%
end if
%>
<%=RelJMatch%>
<%
If Resto = 1 then
%>
<%=RelJResto%>
<%=RelJRestoNb%> |
<%
end if
If ChkComment = 1 then
%>
<%=RelCommentaire%> |
<%
End if
%>
<%
rsJoueurs.movenext
RelReserve = 0
RelMatch = 0
RelRdv = 0
RelResto = 0
RelRestoNb = 0
wend
rsJoueurs.close
set rsJoueurs = nothing
If TotalReserve <> 0 OR TotalPremiere <> 0 OR TotalRdv <> 0 OR TotalResto <> 0 OR TotalRestoNb <> 0 then
%>
| Total : |
<%
If deplacement = 1 then
%>
<%=TotalRdv%> |
<%
end if
If Coupe = 0 then
%>
<%=TotalReserve%> |
<%
end if
%>
<%=TotalPremiere%> |
<%
If Resto = 1 then
%>
<%=TotalResto%> |
<%=TotalRestoNb%> |
<%
end if
If ChkComment = 1 then
%>
|
<%
End if
%>
<%
End if
%>
<%
end if
%>
|
|