<%@LANGUAGE="VBSCRIPT" CODEPAGE="1252"%> Volley-Ball Club Tihange - Huy - Joueurs

<% 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 %>

<% idCat = Request.QueryString("idCat") If Session("UserRights") = 3 then Response.Write("

Nouveau joueur

") NbCols = 9 else NbCols = 7 End if %> <% Set rsCat = Server.CreateObject("ADODB.Recordset") sqlCat = "SELECT * FROM categorie WHERE id=" & idCat openrs rsCat, sqlCat While not rsCat.eof NomCat = rsCat("NomCat") rsCat.movenext Wend rsCat.close set rsCat = nothing Set rsJoueurs = Server.CreateObject("ADODB.Recordset") sqlJoueurs = "SELECT * FROM joueurs_club WHERE (idCat=" & idCat & " OR idCat2=" & idCat & ") AND desactive=0 order by Nom, Prenom Asc" openrs rsJoueurs, sqlJoueurs %> <% If Session("UserRights") = 3 then Response.Write("") Response.Write("") end if %> <% While not rsJoueurs.eof 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 If Isnull(rsJoueurs("DateAniv")) OR rsJoueurs("DateAniv") = "" then DateAnniv = " " 'Anniv = 0 else MoisAnniv = Month(rsJoueurs("DateAniv")) JourAnniv = Day(rsJoueurs("DateAniv")) DateAnniv = JourAnniv & "/" & MoisAnniv 'Anniv = 1 NextMonth = DateAdd("m",1,date()) NbJours = datediff("d",date(),NextMonth) If datediff("d",date(),DateAnniv) < NbJours and datediff("d",date(),DateAnniv) > -1 then DateAnniv = "" & DateAnniv & "" end if End if If Isnull(rsJoueurs("Mail1")) OR rsJoueurs("Mail1") = "" then Mail1 = " " else Mail1 = " @ " end if If Isnull(rsJoueurs("Mail2")) OR rsJoueurs("Mail2") = "" then Mail2 = " " else Mail2 = " @ " end if If Isnull(rsJoueurs("LastMov")) OR rsJoueurs("LastMov") = "" then LastMov = " " else LastMov = rsJoueurs("LastMov") dayLastMov = day(LastMov) monthLastMov = month(LastMov) yearLastMov = year(LastMov) LastMov = dayLastMov & "/" & monthLastMov & "/" & yearLastMov end if %> <% If Session("UserRights") = 3 then Response.Write("") Response.Write("") End if %> <% rsJoueurs.movenext Wend rsJoueurs.close set rsJoueurs = nothing %>

<%=NomCat%>

Nom Tel GSM Anniv. Mail 1 Mail 2 Licence Last Mov
<%=NomPrenom%> <%=rsJoueurs("Tel")%>  <%=rsJoueurs("GSM")%>  <%=DateAnniv%> <%=Mail1%> <%=Mail2%> <%=rsJoueurs("Licence")%> Supprimer" & LastMov & "
<% If Session("UserRights") = 3 then Response.Write("

Nouveau joueur

") End if %>