<%@LANGUAGE="VBSCRIPT" CODEPAGE="CP_ACP"%> Satisfied : Where fantasies are reality
Calendar

<% Dim ThisMonthYear Dim ThisMonth Dim ThisYear Dim NextMonthYear Dim NextMonth Dim NextYear Dim LastMonth Dim LastYear Dim FirstDay Dim ThisDay ThisDay = 0 ' Set the Month and Year parameters to e ' qual the current values if they do not e ' xist. if (Request.QueryString("Month") = "") Then ThisMonthYear = Now() ThisMonth = Month(Now()) ThisYear = Year(Now()) Else ThisMonth = Request.QueryString("Month") ThisYear = Request.QueryString("Year") End if ' Determine the Last/Next Month and Year ' if (ThisMonth = 12) Then LastMonth = 11 LastYear = ThisYear NextMonth = 1 NextYear = ThisYear + 1 Else if (ThisMonth = 1) Then LastMonth = 12 LastYear = ThisYear - 1 NextMonth = ThisMonth + 1 NextYear = ThisYear Else LastMonth = ThisMonth - 1 LastYear = ThisYear NextMonth = ThisMonth + 1 NextYear = ThisYear End if End if ' Get the day of the week of the first d ' ay in This Month FirstDay = WeekDay(cdate(ThisMonth & "/01/" & ThisYear), vbSunday) DaysInMonth = Day(cdate(NextMonth & "/01/" & NextYear) - 1) %>
 
Please select the day in which you would like to utilize our service.
"><< <%=MonthName(ThisMonth)%> <%=ThisYear%> ">>>
<% ' Loop through until the number of days In the Month is reached. Do While (ThisDay <= DaysInMonth) %> <% For LoopDay = 1 To 7 ' if ThisDay is still 0, check To see if the current day of the week In the Loop ' matches the day of the week For the first day of the Month. ' if the values match, Set ThisDay To 1. ' Otherwise, the value will remain 0 until the correct day of the week is found. if (ThisDay = 0 And FirstDay = LoopDay) Then ThisDay = 1 End if ' if the ThisDay value is still 0, or it is greater than the number of days ' In the Month, display nothing in the column. ' Otherwise, display the day of the Month and increment the value. if (ThisDay > 0 And ThisDay <= DaysInMonth) Then if (LoopDay <> 1 And LoopDay <> 7) Then %> <% Else %> <% End if ThisDay = ThisDay + 1 Else %> <% End if Next %> <% Loop %>
Su Mo Tu We Th Fr Sa
&dDate=<%=ThisYear%>-<%=ThisMonth%>-<%=ThisDay%>"> <%=ThisDay%> &dDate=<%=ThisYear%>-<%=ThisMonth%>-<%=ThisDay%>"> <%=ThisDay%>