<% int count=0, males=0, females=0; %> <% String eventName="", logoURL="", website="", bodyColor="", textColor=""; %> <% String name="", distance="", selected=""; %> <% String ageGroup = request.getParameter("age_group"); %> <% if (ageGroup == null) { ageGroup = ""; } %> <% String eventID = request.getParameter("eventID"); %> <% if (eventID == null || eventID.equals("")) { eventID = "0"; } %> <% events.lookup(eventID); %> <% if (events.nextRow()) { %> <% eventName = events.get("events.name"); %> <% logoURL = events.get("events.logoURL"); %> <% website = events.get("events.website"); %> <% bodyColor = events.get("events.body_color"); %> <% textColor = events.get("events.text_color"); %> <% } %> <% String raceTag = request.getParameter("raceTag"); %> <% if (raceTag == null || raceTag.equals("")) { raceTag = "0"; } %> <% String raceID = r.CUtilities.getRaceIDFromTag(raceTag); %> <% races.lookup(raceID); %> <% if (races.nextRow()) { %> <% name = races.get("races.name"); %> <% distance = races.get("races.distance"); %> <% } %> Confirmed Entries

Confirmed Athletes
<%= name %>
<%= distance %>
 
 <%= eventName %>

<% entries.lookupByAgeGroup(raceID, ageGroup); %> <% while (entries.nextRow()) { %> <% count++; %> <% if (entries.get("entries.gender").equals("male")) { males++; } else { females++; } %> <% } %>
Show:
ENTERED
NAME
AGE
SEX
CITY
 <%= r.CUtilities.nicifyDate(entries.get("entries.date")) %>
<% if (!entries.get("entries.firstname").equals("")) { %> <%= entries.get("entries.lastname") %>, <%= entries.get("entries.firstname") %> <% } else { %> <%= entries.get("entries.lastname") %> <% } %>
<%= entries.get("entries.age") %>
 <%= entries.get("entries.gender") %>
<%= entries.get("entries.city") %><% if (!entries.get("entries.state").startsWith("not")) { %>, <%= entries.get("entries.state") %> <% if (!entries.get("entries.country").startsWith("US")) { %>  <%= entries.get("countries.name") %> <% } %> <% } else { %>  <%= entries.get("countries.name") %> <% } %>
<%= count %> registered athletes  (<%= females %> female, <%= males %> male)