<%@page import="java.text.SimpleDateFormat, java.util.Calendar, java.util.Date" %> Advance Tickets
<% //ENTER CONCERT-SPECIFIC DETAILS HERE String artist = "Uday Bhawalkar (Hindustani Vocal)"; String concertDateStr = "11/07/2010 5:00 pm"; //Must use format mm/dd/yyyy hh:mm a String venue = "Recital Hall (St. Catherine University)"; int generalRate = 17; int discountRate = 12; //END CONCERT-SPECIFIC DETAILS //Set up date formats and date calculations //Format for concerting entered value above to date SimpleDateFormat parseFormat = new java.text.SimpleDateFormat( "MM/dd/yyyy hh:mm a" ); //Format for display of concert date/time and advance sale expiration date/time SimpleDateFormat displayFormat = new java.text.SimpleDateFormat("EEEE, MMMM dd, yyyy, h:mm a"); //Format for event filename and item codes SimpleDateFormat codeFormat = new java.text.SimpleDateFormat("yyyyMMdd"); SimpleDateFormat eventIdFormat = new java.text.SimpleDateFormat("MMM dd, yyyy"); //Create date code for use in multiple places Date concertDate = null; try { concertDate = parseFormat.parse(concertDateStr); } catch( java.text.ParseException pe ) { } String concertDateCode = codeFormat.format(concertDate); String eventIdCode = eventIdFormat.format(concertDate); //Calculate advance sale expiration, 11PM on date prior to concert Calendar cal = Calendar.getInstance(); cal.setTime(concertDate); cal.add(Calendar.DATE, -1); //Subtract one day cal.set(Calendar.AM_PM, Calendar.PM); cal.set(Calendar.HOUR, 11); cal.set(Calendar.MINUTE, 0); Date advanceSaleExpirationDate = cal.getTime(); %>
menu

Next Upcoming Event 

"><%= artist %>

<%= displayFormat.format(concertDate) %>
<%= venue %> <% java.util.Date sysdate = new java.util.Date( System.currentTimeMillis() ); %>

<% boolean expired = false; if( System.currentTimeMillis() > advanceSaleExpirationDate.getTime() ) expired = true; if( !expired ) { %>

The online ticket sale will be closed for this concert effective <%= displayFormat.format(advanceSaleExpirationDate) %>


Ticket Type
Rate
Buy*
Eligibility
   
 
General
$<%= generalRate %>.00
"> "> ">
Everyone.
Current IMSOM Members
$<%= discountRate %>.00
"> " > ">
You MUST be an IMSOM member for 2010.
Students
$<%= discountRate %>.00
"> " > ">
You MUST be a full-time student.
Seniors
$<%= discountRate %>.00
"> " > ">
You MUST be a Senior (Over 65 yrs).

** IMSOM reserves the right to confirm eligibility for discount tickets. **
Student discounts are available for high school and full-time college students. IMSOM may request proof of student status at the door. (High school or college ID with recent date, or college ID and current fee statement). Member status will be confirmed prior to the concert.

* Please remember to print the receipt and bring it to the show.

<% } else { %>

* Online Ticket Sale for this event is closed.

<% } %>

IMSOM, established in 1980, is a registered non-profit (501(c)(3)) organization serving Minneapolis-St.Paul and the greater Twin Cities Metro Area.

© Copyright 2010 Indian Music Society of Minnesota