Availability Calendar |
4/6/2009 5:53:59 PM |
ASPRunnerPro General questions | |
![]() I have been trying to use the Vacation Template to create an Availabilty Calendar but have been getting unexpected results. I created two additional tables in the database "Members" and "Availability". I populated them with some demo information and then tried to duplicate the "vacreservationscalendar" that exists in the template. I can get the Availability Calendar to display without an ASP Error but it will not show the Booked or Unavailable dates as it should. If there are booked dates, it diplays as in this image.
|
|
J
|
Jane 4/8/2009 |
Jeremy, if year(rsb("FromDate"))=tYear and month(rsb("FromDate"))=tMonth and j=day(rsb("FromDate")) then flag=1 if year(rsb("ToDate"))=tYear and month(rsb("ToDate"))=tMonth and j=day(rsb("ToDate")) then flag=0 if flag=1 then xt.assign "row00" & j+wd & "Day" & i & "Year_Reserve_value","bgcolor=red" else xt.assign "row00" & j+wd & "Day" & i & "Year_Reserve_value","bgcolor=white" end if rsb.MoveNext |
![]() |
jtksmith author 4/8/2009 |
Jane, |