2014 CUODA Dance Show

$vip_list = $list->selectVIP();
$standard_left = $list->max_standard_tickets – count($standard_list);
$vip_left = $list->max_vip_tickets – count($vip_list);
$standard_reserved_list = $list->selectStandardReserved();
$standard_reserved_left = $list->max_standard_tickets_reserved – count($standard_reserved_list);
$vip_reserved_list = $list->selectVIPReserved();
$vip_reserved_left = $list->max_vip_tickets_reserved – count($vip_reserved_list);
$dancer_list = $list->selectDancer();
$dancer_left = $list->max_dancer_tickets_reserved – count($dancer_list);
$participants = array_merge($dancer_list, $vip_reserved_list, $vip_list, $standard_reserved_list, $standard_list);
// check if we received any form data, if yes then we should insert/remove accordingly
$paypal_success = $_GET[‘paypal_success’] == 1;
$added = !empty($_POST[‘add-submit’]);
$removed = !empty($_POST[‘remove-submit’]);
$sendmail = !empty($_POST[‘send-email’]);
if ($paypal_success || $added || $removed || $sendmail) {
if ($paypal_success) {
$title = ‘Success’;
$message = ‘Thank you for making the payment. Your details have been noted and a confirmation email should reach you shortly. Please read the instructions in that email carefully.’;
} else if ($sendmail) {
// $participants = array(array(
// “email” => “”,
// “type” => “standard”
// ));
$mailed = array();
foreach ($participants as $entry) {
$email = $entry[’email’];
if (!empty($email) && !in_array($email, $mailed)) {
wp_mail($email, ‘The Show is Tomorrow!’, <<insert($fname, $lname, $email, $type, $registrar)) {
case 0:
$title = ‘Success’;
$message = ‘A ticket has been booked for ‘.$fname.’, ‘.$lname.’. A confirmation email has been sent to ‘.$email.’.’;
case 1:
$title = ‘Success’;
$message = ‘A ticket has been booked for ‘.$fname.’, ‘.$lname.’. Please tell ‘.$fname.’, ‘.$lname.’ to bring his/her ID to the show for authentication.’;
case -1:
$title = ‘Failure’;
$message = ‘The name has already been registered in the database. Please try again.’;
$title = ‘Failure’;
$message = ‘Some error has occurred during the booking process. Please contact for more information.’;
} else {
if ($list->remove($fname, $lname, $registrar)) {
$title = ‘Success’;
$message = ‘Ticket has been removed for ‘.$fname.’, ‘.$lname.’.’;
} else {
$title = ‘Error’;
$message = ‘Some error has occurred. Please try again.’;
// print message
echo ‘


echo $message;
echo ‘
echo ‘Return‘;
} else {
if (is_user_logged_in()) {
global $current_user;
// we need to have more stringent measures for controlling access
// allowing only editor / admin to access
$allowed_access = false;
foreach ($current_user->roles as $role) {
if ($role == ‘administrator’ || $role == ‘editor’) {
$allowed_access = true;
if ($allowed_access || $allow_subscriber) {
if ($open || in_array($current_user->user_login, $admins)) {

Sales Info

This part is only accessible to registered and approved users of this website. You can view all the confirmed attendees to the show in the table below. You can also manually add attendees using the form here.
But by doing so you’ll be responsible for paying back the money for the tickets given to those people whom you are registering.
You can also remove an attendee, in case you’ve mistyped the details or the person can’t attend anymore.
But you’ll only be able to remove attendees added by you in the first place.
‘ . $standard_left . “\n”;
echo ‘Total number of VIP tickets left: ‘ . $vip_left . “\n”;
echo ‘Total number of reserved Standard tickets left: ‘ . $standard_reserved_left . “\n”;
echo ‘Total number of reserved VIP tickets left: ‘ . $vip_reserved_left . “\n”;
echo ‘Total number of reserved dancer tickets left: ‘ . $dancer_left . “\n”;
echo ‘

‘ . “\n”;
if ($standard_left > 0 || $vip_left > 0) { ?>

Add an attendee

Last name:



Remove an attendee

Last name:

Reserve an attendee

Last name:




Remove a reserved attendee

Last name:

user_login == ‘lynnard’) { ?>

Send an email to all participants

Current list

/*echo ‘
‘;*/ /*echo ”;*/ /*echo ”;*/
/*echo ‘

/*echo ‘
/*echo “Registrarn”;*/
/*echo ”;*/
foreach ($participants as $entry) {
echo ‘‘.$entry[‘type’].’: ‘.stripslashes($entry[‘fname’]).’, ‘.stripslashes($entry[‘lname’]).’, ‘.$entry[’email’].’, by ‘.$entry[‘registrar’].”\n”;
/* echo ‘


echo “

} else { ?>

System closed

The online booking system has been closed. The admin should have compiled the booking list in Excel and sent it to relevant committee members. If you have added attendees here then expect somebody to contact you soon for payment.

In the Spring of 2014, Cambridge University Oriental Dance Association (CUODA) is proud to present our first annual Dance Show. Revolving around the wondrous theme ‘Silhouette’, new pieces span across a multitude of dance forms, from traditional to modern and fusion. This high-energy, provocative concert features a range of styles, including fan dance, sleeve dance, Dai dance, classical dance, contemporary, hip-hop, k-pop and tai chi. It will become a stage of creative expression, sensory enjoyment, and a vehicle for cultural celebration.
For CUODA, it is a perfect opportunity to engage with new audiences as well as to perform to our dance fans. Moreover, as an entirely student-directed show, it is designed to showcase student choreographers and dancers and has taken us months to prepare! Doubtless, it is going to be a spectacular night, so get your tickets quickly before the production sells out!


Venue: Howard Theatre, Downing College
Time: 27th Feb 7:00 pm


0 && ($open || in_array($current_user->user_login, $admins))) { ?>

We don’t use physical tickets for the show. All tickets are virtual and each of them is bound to a name when sold. The buyer is then required to bring an ID to the show for name verification.
If you have a debit/credit card or a Paypal account, you can purchase the ticket directly using the ‘Buy Now’ button below.
Remember: fill in the real name of the person whom you are buying for in the text box.
If any problem is met, or you’d like to pay by cash or bank transfer, email, Wechat @camb-cuoda, or approach one of our committee members/dancers.

Ticket type

First name

Last name

View Larger Map