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

<% IDS = Request.QueryString("IDS") NomSouper = DLookUp("Soupers_club", "Description", "id=" & IDS) Response.Write("

" & NomSouper & "

") Response.Write("Télécharger le document d'invitation

") Set rsCkhJMS = Server.CreateObject("ADODB.Recordset") sqlChkJMS = "SELECT * FROM RelSouperMenuJoueur WHERE idS=" & IDS openrs rsCkhJMS, sqlChkJMS If rsCkhJMS.eof then Response.Write("Pas de réservation") else Set rsSouperMenu = Server.CreateObject("ADODB.Recordset") sqlSouperMenu = "SELECT * FROM RelSouperMenu WHERE idS=" & IDS openrs rsSouperMenu, sqlSouperMenu While not rsSouperMenu.eof Response.Write("") idSouperMenu = rsSouperMenu("id") NbreMenus = 0 set rsSMJ = Server.CreateObject("ADODB.Recordset") sqlSMJ = "SELECT * FROM RelSouperMenuJoueur WHERE idS=" & IDS & " AND idSM=" & idSouperMenu openrs rsSMJ, sqlSMJ If not rsSMJ.eof then DescMenu = "" If not isnull(rsSouperMenu("DescEntree")) then DescMenu = DescMenu & "- " & rsSouperMenu("DescEntree") & "
" end if If not isnull(rsSouperMenu("DescPlat")) then DescMenu = DescMenu & "- " & rsSouperMenu("DescPlat") & "
" end if If not isnull(rsSouperMenu("DescAccompagn")) then DescMenu = DescMenu & "- " & rsSouperMenu("DescAccompagn") & "
" end if If not isnull(rsSouperMenu("DescDessert")) then DescMenu = DescMenu & "- " & rsSouperMenu("DescDessert") end if Response.Write("") Response.Write("") While not rsSMJ.eof idJ = rsSMJ("idJ") NomJ = DLookUp("Joueurs_club", "Nom", "id=" & idJ) PrenomJ = DLookUp("Joueurs_club", "Prenom", "id=" & idJ) NbreMenus = NbreMenus + rsSMJ("NbPers") If Isnull(rsSMJ("Commentaire")) OR rsSMJ("Commentaire") = "" then Commentaire = " " else Commentaire = rsSMJ("Commentaire") End if Response.Write("") Response.Write("") rsSMJ.movenext Wend Response.Write("") Response.Write("
" & DescMenu & "
NomNbreCommentaire 
" & NomJ & " " & PrenomJ & "" & rsSMJ("NbPers") & "" & Commentaire & "Détails
Total : " & NbreMenus & "


") end if rsSMJ.close set rsSMJ = nothing rsSouperMenu.movenext Wend end if rsCkhJMS.close set rsCkhJMS = nothing Response.Write("

Joueurs sans réservation

") Response.Write("") Set rsJoueurs = Server.CreateObject("ADODB.Recordset") sqlJoueurs = "SELECT * FROM joueurs_club WHERE desactive=0 ORDER BY Nom, Prenom" openrs rsJoueurs, sqlJoueurs While not rsJoueurs.eof IDJ = rsJoueurs("id") Set rsRelJV = Server.CreateObject("ADODB.Recordset") sqlRelJV = "SELECT * FROM RelSouperMenuJoueur WHERE idJ=" & IDJ & " AND idS=" & IDS openrs rsRelJV, sqlRelJV If rsRelJV.eof then Response.Write("") NomCat = DLookUp("categorie", "NomCat", "id=" & rsJoueurs("idCat")) Response.Write("") Response.Write("") rsJoueurs.movenext else rsJoueurs.movenext end if Wend rsJoueurs.close set rsJoueurs = nothing Response.Write("
NomEquipe 
" & rsJoueurs("Nom") & " " & rsJoueurs("Prenom") & "" & NomCat & "Ajouter


") %>