Event Calendar

<% function GetDataConnection() dim oConn, strConn Set oConn = Server.CreateObject("ADODB.Connection") strConn = "Provider=SQLOLEDB; Data Source=adspm; Initial Catalog=TeamWeb; " strConn = strConn & "User Id=TeamWeb; Password=x" oConn.Open strConn set GetDataConnection = oConn end function %>
<% '******************************************************************** ' Name: Events.asp ' ' Purpose: Used to add and remove events from the event database. ' '******************************************************************** dim dbConn, rs, nDex, nMonth, nYear, dtDate, dtTemp ' Get the current date dtDate = Now() ' Set the Month and Year nMonth = Request("nMonth") nYear = Request("nYear") if nMonth = "" then nMonth = Month(dtDate) if nYear = "" then nYear = Year(dtDate) Set dbConn = GetDataConnection Set rs = dbConn.Execute ("GetSchedule " & nMonth & ", " & nYear) DoHeader("Add/Remove Events") %>

Currently Scheduled Events for <% Response.Write MonthName(nMonth) & "  " & nYear %>:

<% if rs.EOF then Response.Write "" end if while not rs.EOF Response.Write "" rs.MoveNext wend %>
Day Event
No events listed
" & rs("nDay") & "" Response.Write rs("vcEvent") & "


Add New Event:
Event: Day:

Back to Calendar