<%@ Language=VBScript %> <% Response.Buffer=true Dim j,k,p, blnReservation, blnerreur blnerreur=false if Request.form("cmdReserver")="Réserver" then blnReservation=verification(Request.Form("salleid"),Request.Form("hhdebut"),Request.Form("mmdebut"),Request.Form("hhfin"),Request.Form("mmfin") ) if blnReservation=false then Set objRS = Server.CreateObject("ADODB.Recordset") strSQL = "SELECT * FROM Produits WHERE RéfProduit=" & Request.Form("salleid") objRS.Open strSQL,objConn Session("nom")=objRS("Nom") Session("capacite")=objRS("Capacité") objRS.Close strSQL = "SELECT ClientNom FROM Tbl_Client WHERE NoClient=" & Request.form("org") objRS.Open strSQL,objConn Session("nomorg")=objRS("ClientNom") Session("org")=Request.Form("org") Session("salleid")= Request.Form("salleid") Session("hhdebut")= Request.Form("hhdebut") Session("mmdebut")= Request.Form("mmdebut") Session("hhfin")= Request.Form("hhfin") Session("mmfin")= Request.Form("mmfin") Response.Redirect "reservation_details.asp" else blnerreur=true end if end if %>
 
Faire une réservation

Titre
Locale
Description
Date début <% 'if time_start <> "" then ' if right(time_start,2) = "PM" then b_pm = true ' time_start = formatdatetime(time_start,3) ' time_start = left(time_start,len(time_start)-3) 'end if %>
Heure début jusqu'à
Répétition <% 'if not isnull(recurring) then '' if (recurring < 1) AND (not recurring) then recurring = 0 'else 'recurring = 0 'end if %> jusqu'à <% 'if recurring_end <> "" then 'sjourend = day(recurring_end) 'smoisend = month(recurring_end) 'sanneeend = year(recurring_end) 'end if %> (mm/jj/aaaa)
checked<% 'end if %> name="recurring_update" value="0" checked>cette date (<%' =dt_occur %>) seulement checked<% 'end if %> name="recurring_update" value="1">toutes les dates 
 
<% if blnerreur=true then %> <%end if%>