<%@LANGUAGE="VBSCRIPT"%> <% IF Len(Session("password")) < 1 THEN Response.Redirect("pword.asp") END IF %> <% set rsEvents = Server.CreateObject("ADODB.Recordset") rsEvents.ActiveConnection = "DSN=morris;UID=morris;PWD=pickering516" rsEvents.Source = "SELECT Event_ID, Start_Date, End_Date, Event_Title FROM tEvents " rsEvents.CursorType = 0 rsEvents.CursorLocation = 2 rsEvents.LockType = 3 rsEvents.Open rsEvents_numRows = 0 %> <% Dim Repeat1__numRows Repeat1__numRows = -1 Dim Repeat1__index Repeat1__index = 0 rsEvents_numRows = rsEvents_numRows + Repeat1__numRows %> <% if Request("Event_ID") then strMessage = "Event " & Request("Event_ID") & " has been added or updated." end if if Request("MM_mode") = "delete" then strMessage = "Event " & Request("Event_ID") & " has been deleted." end if ' *** Go To Record and Move To Record: create strings for maintaining URL and Form parameters ' create the list of parameters which should not be maintained MM_removeList = "&index=" If (MM_paramName <> "") Then MM_removeList = MM_removeList & "&" & MM_paramName & "=" MM_keepURL="":MM_keepForm="":MM_keepBoth="":MM_keepNone="" ' add the URL parameters to the MM_keepURL string For Each Item In Request.QueryString NextItem = "&" & Item & "=" If (InStr(1,MM_removeList,NextItem,1) = 0) Then MM_keepURL = MM_keepURL & NextItem & Server.URLencode(Request.QueryString(Item)) End If Next ' add the Form variables to the MM_keepForm string For Each Item In Request.Form NextItem = "&" & Item & "=" If (InStr(1,MM_removeList,NextItem,1) = 0) Then MM_keepForm = MM_keepForm & NextItem & Server.URLencode(Request.Form(Item)) End If Next ' create the Form + URL string and remove the intial '&' from each of the strings MM_keepBoth = MM_keepURL & MM_keepForm if (MM_keepBoth <> "") Then MM_keepBoth = Right(MM_keepBoth, Len(MM_keepBoth) - 1) if (MM_keepURL <> "") Then MM_keepURL = Right(MM_keepURL, Len(MM_keepURL) - 1) if (MM_keepForm <> "") Then MM_keepForm = Right(MM_keepForm, Len(MM_keepForm) - 1) ' a utility function used for adding additional parameters to these strings Function MM_joinChar(firstItem) If (firstItem <> "") Then MM_joinChar = "&" Else MM_joinChar = "" End If End Function %> Calendar Administration | Morris Pickering & Sanner
Calendar Admin
Admin Menu |Add New Event | Select Title below to Update | X to Delete | & to Duplicate

<%= strMessage %>
<% While ((Repeat1__numRows <> 0) AND (NOT rsEvents.EOF)) if Repeat1__index mod 2 = 0 then Row_Color = "#FFFFFF" else Row_Color = "#CCCCCC" %> <% Repeat1__index=Repeat1__index+1 Repeat1__numRows=Repeat1__numRows-1 rsEvents.MoveNext() Wend %>
Morris Pickering & Sanner: Active Events
[&MM_mode=delete">X] [&MM_mode=dup">&]   (<%=(rsEvents.Fields.Item("Event_ID").Value)%>) "> <%=(rsEvents.Fields.Item("Event_Title").Value)%>  <%=(rsEvents.Fields.Item("Start_Date").Value)%>  to <%=(rsEvents.Fields.Item("End_Date").Value)%>
<% rsEvents.Close set rsEvents = nothing %>