%@ LANGUAGE="VBScript" %>
<% Option Explicit %>
<%
If Not blnDebug Then
On Error Resume Next
End If
Function BuildEventList()
Dim sqlGetEvents, rstGetEvents, strOptionTag, blnError
sqlGetEvents = "SELECT EventID, EventTitle, PaymentAmount FROM Events WHERE EventStartTime >= Date() And PaymentAmount NOT IN (0,1,2)"
Set rstGetEvents = sqlExecute(sqlGetEvents, blnError, "SecurePayment2.asp")
If rstGetEvents.EOF Then
Set rstGetEvents = Nothing
strOptionTag = ""
Else
strOptionTag = ""
While Not rstGetEvents.EOF
strOptionTag = strOptionTag & ""
rstGetEvents.MoveNext
Wend
End If
BuildEventList = strOptionTag
End Function
Dim strMsg, strStoredEmailAddress, storedGraduationYear, intEventID, strEventTitle, intCurrentPage
If Request.QueryString("eid") = "0" Then
strMsg = "Either you have not made payments through CHSNYC before, or your password is incorrect. Please try again."
Elseif Request.QueryString("eid") = "1" Then
strMsg = "An account has already been created with this e-mail address.
Either enter the correct password, or set up a new account."
Elseif Request.QueryString("eid") = "2" Then
strMsg = "You have already paid dues through " & Year(Now) +1 & ".
You can currently pay dues up to 1 year ahead of the current year."
End If
strStoredEmailAddress = Request.Cookies("storedemail")
storedGraduationYear = Request.Cookies("graduationyear")
intEventID = Request("e")
If intEventID <> "" Then
strEventTitle = GetEventTitle(intEventID)
End If
intCurrentPage = 2
%>
