%@ Language=VBScript %> <% Response.Buffer=true Dim str_ID Dim blnReservation blnReservation=verification(Session("salleid"),Session("hhdebut"),Session("mmdebut"),Session("hhfin"),Session("mmfin") ) if blnReservation=false then Set objRS = Server.CreateObject("ADODB.Recordset") strSQL = "SELECT * FROM [Détails-commande]" objRS.Open strSQL,objConn,1,3 objRS.AddNew objRS("NoClient") = Session("org") objRS("RéfProduit") = session("salleid") objRS("Date_Reservation") = cdate(Session("annee") & "-" & Session("mois") & "-" & Session("jour")) objRS("Date_Commande") = Now objRS("Heure_Début") = cdate(session("hhdebut") & ":" & session("mmdebut")) objRS("Heure_Fin") = cdate(session("hhfin") & ":" & session("mmfin")) objRS("Nombre-Personne") = session("nbrpers") objRS("Table") = session("table") objRS("Chaises") = session("chaise") objRS("tvvideo") = session("tvvideo") objRS("ecran") = session("ecran") objRS("cafe") =session("cafe") objRS("internet") = session("internet") if session("autres")<>"" then objRS("autres") = session("autres") objRS.Update str_ID=10000+objRS("RéfDétailCommande") objRS.Close Set objRS = Nothing else objConn.Close Set objConn = Nothing Response.Redirect "consulter.asp?jour=" & Session("jour") & "&mois=" & Session("mois") & "&annee=" & Session("annee") & "option=rejete" end if objConn.Close Set objConn = Nothing %>