response.write "<TD CLASS='EditPaneRight'><INPUT TYPE=CHECKBOX NAME='colCal_EventAllDay' VALUE='YES' onclick='checkedAllDay();'> All Day Event</TD></TR>"
response.write "<TD CLASS='EditPaneRight'><INPUT TYPE=CHECKBOX NAME='colCal_EventAllDay' VALUE='YES' onclick='checkedAllDay();'> All Day Event</TD></TR>"
SQL = "SELECT * FROM Cal_Events WHERE Cal_EventCalendarID = "& Session("CalendarFilter") &" AND Cal_EventDate = #" & DateToUse & "# ORDER BY Cal_EventStartTime"
Else
SQL = "SELECT * FROM Cal_Events WHERE Cal_EventDate = #" & DateToUse & "# ORDER BY Cal_EventStartTime"
End If
Set RS=Server.CreateObject("adodb.Recordset")
RS.Open SQL, dbc, adopenstatic
Do While NOT RS.EOF
SQLc = "SELECT * FROM Cal_Calendars WHERE Cal_CalendarID = " & RS("Cal_EventCalendarID")
'----- Draw out the events -----------------------------------------------------
If Session("CalendarFilter") > 0 then
SQL = "SELECT * FROM Cal_Events WHERE Cal_EventCalendarID = "& Session("CalendarFilter") &" AND Cal_EventDate = #" & WorkingDate & "# ORDER BY Cal_EventStartTime"
Else
SQL = "SELECT * FROM Cal_Events WHERE Cal_EventDate = #" & WorkingDate & "# ORDER BY Cal_EventStartTime"
End If
Set RS=dbc.execute(SQL)
If RS.EOF then
'---- Indent the events ----------------------------------------------------------------------------
'----- Draw out the events -----------------------------------------------------
If Session("CalendarFilter") > 0 then
SQL = "SELECT * FROM Cal_Events WHERE Cal_EventCalendarID = "& Session("CalendarFilter") &" AND Cal_EventDate = #" & WorkingDate & "# ORDER BY Cal_EventStartTime"
Else
SQL = "SELECT * FROM Cal_Events WHERE Cal_EventDate = #" & WorkingDate & "# ORDER BY Cal_EventStartTime"
End If
Set RS=dbc.execute(SQL)
If RS.EOF then
'---- Indent the events ----------------------------------------------------------------------------
if (confirm('Are you sure you want to delete this calendar? ALL THE EVENTS IN THIS CALENDAR WILL BE DELETED! WARNING! THIS CANNOT BE UNDONE!') == true){
SQL = "SELECT * FROM Cal_Events WHERE Cal_EventCalendarID = "& Session("CalendarFilter") &" AND Cal_EventDate = #" & DateToUse & "# ORDER BY Cal_EventStartTime"
Else
SQL = "SELECT * FROM Cal_Events WHERE Cal_EventDate = #" & DateToUse & "# ORDER BY Cal_EventStartTime"