% ' this will display list of events for dates range public function ListEvents(DtDateFrom, DtDateTo) dim sH : sH = "" dim DayColumns dim EventList dim Q_DATE dim help1 dim help2 dim strHELP sH = sH & "
| "
help1 = help1 & weekdayName(weekday(DayColumns)) & VbCrLf
help1 = help1 & " " ' If Day view is enabled if blView6 then help1 = help1 & " " & funcs.DateView(DayColumns) & "" else help1 = help1 & " " & funcs.DateView(DayColumns) & "" end if help1 = help1 & " | " & VbCrLf
' END: Column with dayname and date
' BEGIN: Column with one day
help1 = help1 & "" & VbCrLf set EventList = Server.CreateObject("ADODB.Recordset") EventList.CursorLocation = 3 EventList.Open strSql, my_conn EventList.CacheSize = 100 help2 = "" if EventList.BOF or EventList.EOF then ' there is no event for this day EventCOUNT=0 ' if request("View")="Month" or request("View")="" then ' Help1="" ' end if else ' BEGIN: LOOP OF EVENTS do until EventList.EOF strHELP = CAL_ViewOneEvent(EventList, DayColumns, "LONG") if EventCount=0 then strHELP = " " help2 = help2 & strHELP & VbCrLf EventList.MoveNext Loop ' END: LOOP OF EVENTS end if if Help1 <> "" then ' if Help2 = "" then help2 = help2 & "" & application(session("LANG") & "_wcal14") & "" & VbCrLf if Help2 = "" then help2 = help2 & " " & VbCrLf sH = sH & Help1 & Help2 & " | " ' END: Column with one day sH = sH & "