%
'PageName = "event_group_form"
DoHeader(PageName)
strText = ""
'Control who can use this update page
If LogonID = NTUser Or CheckAdmin("iCognate") Then
FormOption = Request.QueryString("FormOption")
' FormAction = Request.QueryString("FormAction")
If FormOption="Search" Then
FormAction="/promanweb/icognate/use_match_search.asp?iCognateFlag=" & iCognateFlag & "&ForResources=" & ForResources
MatchContactUse="checked"
MatchGroupUse=""
ForEvents="checked"
ForResources=""
UseFrequency="checked"
UseDuration=""
UseScheduleStartTime=Now-365
UseScheduleEndTime=Now
UseFixedCost=10000
UseVariableCost=1000
UseTimeTolerance=2
UseCostTolerance=25
ElseIf FormOption ="Detail" Then
FormAction="/promanweb/icognate/use_match_list.asp?iCognateFlag=" & iCognateFlag
'Validate that there is a key to search on, if so, update, if not, add.
If EventGroupID <> "" Then
strSQL="SELECT * " &_
"FROM EventGroup " &_
"WHERE (([EventGroup].[EventGroupID])= '" & EventGroupID & "') " &_
"ORDER BY EventGroupID;"
Set objConn = GetConn
Set objRStmp = objConn.Execute (strSQL)
' Set objRStmp = objConn.Execute ("qparmEventGroup '" & EventGroupID & "'")
If NOT objRStmp.eof Then
objRStmp.MoveFirst
EventGroupID = objRStmp("EventGroupID")
EventGroup = objRStmp("EventGroup")
EventGroupDescription = objRStmp("EventGroupDescription")
EventGroupLeaderID = objRStmp("EventGroupLeaderID")
End If
objRStmp.close
objConn.close
Set objRStmp=nothing
Set objConn=nothing
End If
Else
Response.Write "
"
Response.Write "
"
Response.Write "
Error in FormOption specification of List Generator Form.
" & vbcrlf
Response.Write ""
' Exit Sub
End If
%>
<%
If FormOption ="Search" Then
%>
<%
End If
%>
<%
Else
DoHeader("Not Authorized")
'Response.Write "
You are not authorized to edit the details of this Event
"
Response.Write "
"
Response.Write "
"
Response.Write "
You are not authorized to edit the details of this Event Group
" & vbcrlf
Response.Write ""
End If
FormOption = Request.QueryString("FormOption")
'FormAction = Request.QueryString("FormAction")
If strText = "" Then
strText = LogonID & ", you are now at the " & PageName & " page. " &_
"Your global page options are: " &_
"FormOption = " & FormOption & ". " &_
"FormAction = " & FormAction & ". " &_
"Can I help you with anything on the page?"
Else
strText = LogonID & ", you are now at the " & PageName & " page. " &_
strText
End If
If (iCognateFlag = 1) Then
%>
<%
End If
%>