% 'Creamos recordset set rs=server.createobject("ADODB.Recordset") misql="select * from aulas" Set rs.ActiveConnection = Conn rs.CursorType = 2 rs.LockType = 3 rs.Open misql,Conn edificios=extrae_edificios(session("edificio")) where="(" for i=1 to edificios(0) where=where&"id="&edificios(i)&" or " next where=where&" id=0)" %> <% validado=validar() set anio=request("year") set dia=request("day") set mes=request("month") set key=request("key") set cal=request("cal") set origen=request("origen") set accion=request("accion") if request("dataArea0")<>"" and request("dataArea1")<>"" then Session("finicio")=request("dataArea0") Session("ffin")=request("dataArea1") else Session("finicio")=day(date)&"/"&month(date)&"/"&year(date) Session("ffin")=day(date)&"/"&month(date)&"/"&year(date) end if hora=request("h1") hora2=request("h2") if hora="" then hora="8:00:00" if mes="" then mes = Month(Date) end if if anio="" then anio = Year(Date) end if if dia="" then dia = Day(Date) end if function comprueba_fecha(dia,mes,anio) hoy=Date fecha=dia&"/"&mes&"/"&anio if datediff("d",hoy,fecha)<0 then comprueba_fecha=false else comprueba_fecha=true end if end function %>
No pueden realizarse reservas para fechas anteriores al día de hoy
<%end if%>