%@ Language=VBScript %> <% Response.Buffer = True %> <% Server.ScriptTimeout = 1000 %> <% '********************************************************************************* '******** Required Variables ***************************************************** '********************************************************************************* If Session("ConfigLoaded") = "" or Session("ConfigLoaded") = "NO" then SQL = "SELECT * FROM Cal_Config WHERE Cal_ConfigID = 1" Set RS=dbc.execute(SQL) Session("ScriptTitle") = RS("Cal_ConfigScriptTitle") Session("DefaultColorScheme") = RS("Cal_ConfigDefaultColorScheme") Session("ImageFolder") = RS("Cal_ConfigImageFolder") Session("DateFormat") = RS("Cal_ConfigDateFormat") Session("HTMLTemplate") = RS("Cal_ConfigHTMLTemplate") Session("MainFontFace") = RS("Cal_ConfigMainFontFace") Session("TimeFormatToUse") = RS("Cal_ConfigTimeFormatToUse") Session("MonthBlockHeight") = RS("Cal_ConfigMonthBlockHeight") Session("MiniCalendarWidth") = RS("Cal_ConfigMiniCalendarWidth") Session("DefaultView") = RS("Cal_ConfigDefaultView") Session("LCID") = RS("Cal_ConfigLCID") Session("ConfigLoaded") = "YES" SQLc = "SELECT * FROM Cal_ColorSchemes WHERE ColorSchemeID = " & RS("Cal_ConfigDefaultColorScheme") Set RSc=dbc.execute(SQLc) Session("LightColor") = RSc("LightColor") Session("MidLightColor") = RSc("MidLightColor") Session("LightMainColor") = RSc("LightMainColor") Session("DarkMainColor") = RSc("DarkMainColor") Session("LightLineColor") = RSc("LightLineColor") Session("PrimaryHighlightColor") = RSc("PrimaryHighlightColor") Session("SecondaryHighlightColor") = RSc("SecondaryHighlightColor") RSc.Close Set RSc=Nothing RS.Close Set RS=Nothing End If ScriptTitle = Session("ScriptTitle") DefaultColorScheme = Session("DefaultColorScheme") ImageFolder = Session("ImageFolder") DateFormat = Session("DateFormat") HTMLTemplate = Session("HTMLTemplate") MainFontFace = Session("MainFontFace") TimeFormatToUse = Session("TimeFormatToUse") MonthBlockHeight = Session("MonthBlockHeight") MiniCalendarWidth = Session("MiniCalendarWidth") DefaultView = Session("DefaultView") LCID = Session("LCID") LightColor = Session("LightColor") MidLightColor = Session("MidLightColor") LightMainColor = Session("LightMainColor") DarkMainColor = Session("DarkMainColor") LightLineColor = Session("LightLineColor") PrimaryHighlightColor = Session("PrimaryHighlightColor") SecondaryHighlightColor = Session("SecondaryHighlightColor") MiniCalendarHeight = 1 Session.LCID = LCID MonthSundayName = WeekDayName(1) MonthMondayName = WeekDayName(2) MonthTuesdayName = WeekDayName(3) MonthWednesdayName = WeekDayName(4) MonthThursdayName = WeekDayName(5) MonthFridayName = WeekDayName(6) MonthSaturdayName = WeekDayName(7) MiniSundayName = "S" MiniMondayName = "M" MiniTuesdayName = "T" MiniWednesdayName = "W" MiniThursdayName = "T" MiniFridayName = "F" MiniSaturdayName = "S" '************************************************************************************ '***** Universal Date Format Function *********************************************** '************************************************************************************ Function UniversalDate(dteDate) If IsDate(dteDate) = True Then dteDay = Day(dteDate) dteMonth = Month(dteDate) dteYear = Year(dteDate) UniversalDate = dteYear & "-" & Right(Cstr(dteMonth + 100),2) & "-" & Right(Cstr(dteDay + 100),2) Else UniversalDate = Null End If End Function '********************************************************************************* '******* Check Day For Event ***************************************************** '********************************************************************************* Function CheckForEvent(DateToUse) If Session("CalendarFilter") > 0 then 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=dbc.execute(SQL) Return = "NO" Do While NOT RS.EOF Return = "YES" Exit Do RS.MoveNext Loop RS.Close Set RS=Nothing CheckForEvent = Return End Function Sub DrawOtherMiniDay(DayNumber) '--------------------------------------- Draw Other Day response.write "
"
'------- Draw the month heading ----------------------------------
response.write "
|
|
|||||||||||||||||||||||||||
Our Organizations
»Missions
Report |
|
||||||||||||||||||||||||||
|
|
|||||||||||||||||||||||||||
| Mill Creek Baptist Church ©2007 All Rights Reserved | Privacy Policy | |||||||||||||||||||||||||||
Site by Web Building Solutions