sysdate and DE_SHOW=1"; $strc=ocilogon("star","chef","STARC"); $result=ociparse($strc,$query); ociexecute ($result); while (ocifetchinto ($result,$row)) { $eid=$row[0]; $subid=$row[1]; $event_name[$eid]=$row[2]; $description[$eid][$subid]=$row[3]; $price[$eid][$subid]=$row[4]; $e_time[$eid][$subid]=$row[5]; $e_address[$eid]=$row[6]; $e_ad1[$eid]=$row[7]; $e_city[$eid]=$row[8]; $e_state[$eid]=$row[9]; //$event=Array($event_id=>$event_name)=Array( } $ctevent=count($event_name); if ($ctevent>0) { $i=1; foreach ($event_name as $evk=>$ev) { $events[$i]=$ev; $tickets[$i]=$price[$evk]; $tickets_desc[$i]=$description[$evk]; $etime[$i]=$e_time[$evk]; $eaddress[$i]=$e_address[$evk]; $ecity[$i]=$e_city[$evk]; $estate[$i]=$e_state[$evk]; $ead1[$i]=$e_ad1[$evk]; $i++; } } //print_r ($tickets); //print_r ($tickets_desc); //print_r ($ead1); $page = "tickets/index.php"; if(!isset($_SERVER['HTTPS'])&& $print !=1) { header("Location: http://www.kueimut.com/$page"); exit; } require_once '/data/sites/includes/starchefs.com/payments/yourpay.php'; require_once '/data/sites/includes/starchefs.com/payments/cc_form.php'; require_once '../recipes/quick_meals/libs/jf-oracle.php'; $step = isset($_POST['step']) ? $_POST['step'] : 0; if(!$step and isset($_POST['currstep'])) $step = $_POST['currstep']; // Load the appropriate description/price for the event global $event, $eventid, $ticket; $eventid = 0; if(isset($_GET['event'])) $eventid = $_GET['event']; else if(isset($_POST['event'])) $eventid = $_POST['event']; if($eventid) { if(isset($events[$eventid])) { $event = $events[$eventid]; $ticket = $tickets[$eventid]; if(!$step) $step = 1; } } // Validate form and decrease step if necessary $err = null; if($step == 2) { err('No event has been selected. Please start over.', 'x_Description'); err('Please select a ticket type.', 'x_Tickettype'); err('Please enter the number of tickets you want.', 'nticket', '/^\d+$/'); err('Please enter your first name.', 'x_First_Name', '/^[a-z \.\-\']+$/i'); err('Please enter your last name.', 'x_Last_Name', '/^[a-z \.\-\']+$/i'); err('Please enter a valid email address in the format name@domain.com', 'email', '/^[A-Z0-9][\w.-]*@[A-Z0-9][\w\-\.]+\.[A-Z0-9]{2,6}$/i'); err('Please enter a properly-formatted phone number.', 'x_Phone', '/^[\d\- \(\)]+$/'); err('Please enter Gender', 'gender'); err('Please enter Married', 'married'); err('Please enter Food Service Professional', 'foodservice'); err('Please enter Income', 'income'); err('Please enter How Heard', 'heard'); // Don't require the survey! /* err('gender'); err('married'); err('age'); err('foodservice'); err('cooking'); err('income'); err('newsletter'); err('heard'); */ } else if($step == 3) { global $errorsfound, $errortext; cc_checkform(); if($errorsfound) $err = $errorsfound; } /*if(!$err) $step++; $function = "step$step"; $function(); */ if(!$err) { $step++; //echo ("$x_Tickettype, $x_discountcode,$step"); if ($x_Tickettype=='1343' and $x_discountcode=='NOLACOMP' and $step==3) { freeticket(); } else { $function = "step$step"; $function(); } } else { $function = "step$step"; $function(); } function pagetop() { global $ctevent; echo ' Purchase tickets for the StarChefs Rising Stars Revue Galas
'; virtual("/includes/browser.shtml"); include("tickettoptickets.html"); if ($ctevent==0) echo "
Coming Soon..
"; /*echo "

The online ticket store is closed. You can still purchase ticket at the door. Thank you for your interest and understanding.
StarChefs.com 212-9663775

"; */ global $err; if($err) { echo "
Please fill out the form completely before proceeding."; global $errortext; if($errortext) echo ""; echo "
"; } } function pagebottom() { virtual ("/includes/adbanner.txt"); virtual ("/includes/footer.txt"); echo ' 99热九九热-九九热线精品视频-九九热线精品视频 '; } /*****************************************************************/ function step1() { global $events; pagetop(); echo ""; pagebottom(); } /*****************************************************************/ function step2() { global $event, $eventid, $ticket, $tickets_desc; pagetop(); echo ''; /*************************************************************************************/ echo " "; if ($_GET[client] !='') echo ""; echo '
Event '.$event.'
Ticket Type
Number of Tickets
Promo Code
Referred by (please spell name correctly):
First name
Last name
Email address
Phone number
STARCHEFS QUESTIONNAIRE
Your answers to the following questions will greatly help StarChefs improve
and expand our service. We thank you for participating and look forward
to better serving your culinary interests!
Gender M
F
Married Yes
No
Age
Food Service Professional Yes
No
"; if (get('foodservice') == 'YES') echo "
"; else echo "
"; echo "
If you are a food industry
professional please tell us:
Company Name
Position
Category
Operation Type
Do you
What is your annual
household income?
" ?>
How did you hear
about the event?
Please specify the organization,
school, individual, website or
publication that referred you
'; pagebottom(); } // End of Step 2 /***********************************************************/ function step3() { pagetop(); echo getCCForm('tickets'); pagebottom(); } function step4() { global $x_First_Name, $x_Last_Name, $email, $address, $city, $state, $zip, $x_Description, $x_Tickettype, $x_Phone, $nticket, $x_Amount, $gender, $age, $foodservice, $cooking, $newsletter, $income, $married, $heard, $heard1, $x_discountcode, $x_discountamount, $eventid,$empletter,$jsletter,$emaillisturl,$company,$title,$c_optype,$c_chaintype; global $strc, $eventid,$etime, $eaddress,$ecity,$estate,$ead1,$client,$x_discount_chef ; //$x_country $pay = get_payment(); //$pay->set_test(); if($pay->submit()) { $logid = $pay->get_logid(); $order_number = $pay->get_logid(); // Insert into ticketsale //$strc=ocilogon("star","chef","STARC"); /* $strm=ociparse($strc, "select count(*) as L from ticketsale where customer_id=$logid"); ociexecute($strm); while (ocifetch($strm)) $l=ociresult($strm,"L"); */ $comments = ''; $display_amount = sprintf('$%0.2f', $x_Amount); global $tickets_desc; $ticketdesc = $tickets_desc[$eventid][$x_Tickettype]; $insertstatement="insert into ticketsale(id,fname,lname,email,address,city,state, country,zip,customer_id,amount,quantity,description,phone,gender,age,foodservice,cooking, comments,newsletter,income,married,heard,heard_de,ticket_type,discountcode, log_id_fk,client,company,title,optype,chaintype,REFERRED) values (sq_ticketsale.nextval,'$x_First_Name','$x_Last_Name','$email','$address','$city','$state','$x_country','$zip','$order_number','$x_Amount','$_POST[itemquantity]','$x_Description','$x_Phone','$gender','$age','$foodservice','$cooking','$comments','$newsletter','$income','$married','$heard','$heard1','$ticketdesc','$x_discountcode', $logid,'$client','$company','$title','$c_optype','$c_chaintype','$x_discount_chef')"; $stm=ociparse($strc,$insertstatement); ociexecute($stm); //echo $insertstatement; //print_r($_POST); $query="insert into newsletterlist (userid, EMAIL, DISHRAG, EMPLOYER , JOBSEEKER, URL)values (newsletterlist_id.nextval,'$email','$newsletter','$empletter','$jsletter','$emaillisturl')"; $strsm1=ociparse($strc,$query); ociexecute($strsm1); ocicommit($strc); $sale = new sale($pay, 0); if(!empty($x_discountcode)) $sale->set_discount($x_discountcode); //if(empty($x_discountamount)) $x_discountamount = null; //if(!empty($x_discountcode)) $sale->set_discount($x_discountcode, $x_discountamount); $sale->save(); $message="A purchase for $x_Description\n\n$ticketdesc\n\nName: $x_First_Name $x_Last_Name\n\nTickets: $nticket\n\nAmount: $display_amount\n\nDiscount code: $x_discountcode\n\n\nEmail: $email\n\nAddress: $address\n\nCity: $city\n\nState: $state\n\nZip: $zip\n\nPhone: $x_Phone\n\nGender: $gender\n\nAge: $age\n\nFood service: $foodservice\n\nCooking at Home: $cooking\n\nNewsletter: $newsletter\n\nIncome: $income\n\nMarried: $married\n\nWhere did you heard about us: $heard\n\nDetails / Comments: $heard1"; //mail("tickets@starchefs.com,jcao@starchefsinc.com,chris@starchefsinc.com", "Ticket Buyer Submitted", $message, "From: $email"); pagetop(); $word = $nticket == 1 ? 'ticket' : 'tickets'; if ($ticketdesc=='VIP' && strtolower($x_discountcode)=='cgiwi' && $eventid == 3) { $privatesem=' and our pre-event private seminar, exclusively for members of ChicaGourmets and the International Wine Institute.'; $privatesemcon="What's Hot? What's Not? Seminar
"; $privatede="SEMINAR DETAILS:
TIME:
5:00 pm What's Hot? What's Not? - Trends in the Culinary Arts Seminar by Antoinette Bruno, Editor-in-Chief of StarChefs.com"; } if ($ticketdesc=='VIP'){ $extrade=' VIP Gala Reception'; // $exttime=''; } else { $extrade=''; $exttime=', 7:00 - 9:00 pm'; } $date=$etime[$eventid][$x_Tickettype]; $location=$eaddress[$eventid].'
'.$ead1[$eventid].'
'.$ecity[$eventid].','.$estate[$eventid]; echo "




Thank you, $x_First_Name $x_Last_Name, for purchasing $_POST[itemquantity] $word to the StarChefs Rising Stars Revue™ Gala $privatesem

Please print out this page as your receipt and bring it with you to the door.

You are confirmed for:

$privatesemcon StarChefs Rising Stars Revue™ Gala $extrade

DATE:
$date

LOCATION:
$location

$privatede "; // There used to be address here echo '
'; if ($x_Tickettype==3002) { if($eventid == 3) { // echo '
VIP RECEPTION DETAILS:
TIME:
6:00 pm Nicolas Feuillatte Palmes d'Or Champagne and Paramount Caviar Reception
6:30 pm Advance Admission to the Rising Stars Revue Gala Tasting'; } } echo "

Confirmation number is $order_number.
 
 
Don't forget to save the date for the 2010 StarChefs.com International Chefs Congress: September 19 - 22, 2010 in New York City.
 
Click here to take a piece of the 2009 ICC home with you: our 248-page full color Congress book includes presenter bios, interviews, fast facts, recipes, and color photos of the dishes!

Sign up today for StarChefs.com recipes from the country's top chefs.

Purchase your copy of Chefs to Know for $24.95: http://www.kueimut.com/chefstoknow/index.shtml

Get 1 year of QuickMeals for a special rate of $19.99--a savings of $35!

With 5 recipes and a shopping list from a top chef each week, QuickMeals solves the "What's for dinner?" dilemma every weeknight.

 
Sign up for our newsletters
DishRag: Chef recipes, food, wine and travel...
Employer: Tips for recruiting and retaining...
JobSeeker: Top 10 Jobs, Job Tips, and more...
email:


back to StarChefs
"; pagebottom(); // Added by Chris: post to SubscriberMail require_once '/data/htdocs/includes/libs/subscribermail.php'; subscribermail($email, sm_getlist(), array('zipcode' => $zip, 'age' => $age, 'gender' => $gender)); } else { pagetop(); echo '

Your payment could not be processed. Please check your credit card information or try a different card

'; pagebottom(); } } function err($desc, $name, $regex = null) { global $err, $errortext; $val = trim(get($name)); if(!$val) $err[$name] = 'Required'; if($regex and !preg_match($regex, $val)) $err[$name] = 'Invalid'; if(isset($err[$name])) $errortext .= "
  • $desc
  • "; } function get($name) { return isset($_POST[$name]) ? $_POST[$name] : ''; } function printHidden($name,$value) { echo ""; } function freeticket() { global $x_First_Name, $x_Last_Name, $email, $address, $city, $state, $zip, $x_Description, $x_Tickettype, $x_Phone, $nticket, $x_Amount, $gender, $age, $foodservice, $cooking, $newsletter, $income, $married, $heard, $heard1, $x_discountcode, $x_discountamount, $eventid,$empletter,$jsletter,$emaillisturl,$company,$title,$c_optype,$c_chaintype; global $strc, $eventid,$etime, $eaddress,$ecity,$estate,$ead1,$client,$x_discount_chef ; //$x_country //echo ("TEST"); $comments = ''; $display_amount = sprintf('$%0.2f', $x_Amount); global $tickets_desc; $ticketdesc = $tickets_desc[$eventid][$x_Tickettype]; $insertstatement="insert into ticketsale(id,fname,lname,email,address,city,state, country,zip,customer_id,amount,quantity,description,phone,gender,age,foodservice,cooking, comments,newsletter,income,married,heard,heard_de,ticket_type,discountcode, log_id_fk,client,company,title,optype,chaintype,REFERRED) values (sq_ticketsale.nextval,'$x_First_Name','$x_Last_Name','$email','$address','$city','$state','$x_country','$zip','$order_number','0','$nticket','$x_Description','$x_Phone','$gender','$age','$foodservice','$cooking','$comments','$newsletter','$income','$married','$heard','$heard1','$ticketdesc','$x_discountcode', '$logid','$client','$company','$title','$c_optype','$c_chaintype','$x_discount_chef')"; $stm=ociparse($strc,$insertstatement); ociexecute($stm); //echo $insertstatement; //print_r($_POST); $query="insert into newsletterlist (userid, EMAIL, DISHRAG, EMPLOYER , JOBSEEKER, URL)values (newsletterlist_id.nextval,'$email','$newsletter','$empletter','$jsletter','$emaillisturl')"; $strsm1=ociparse($strc,$query); ociexecute($strsm1); ocicommit($strc); $message="A purchase for $x_Description\n\n$ticketdesc\n\nName: $x_First_Name $x_Last_Name\n\nTickets: $nticket\n\nAmount: $display_amount\n\nDiscount code: $x_discountcode\n\n\nEmail: $email\n\nAddress: $address\n\nCity: $city\n\nState: $state\n\nZip: $zip\n\nPhone: $x_Phone\n\nGender: $gender\n\nAge: $age\n\nFood service: $foodservice\n\nCooking at Home: $cooking\n\nNewsletter: $newsletter\n\nIncome: $income\n\nMarried: $married\n\nWhere did you heard about us: $heard\n\nDetails / Comments: $heard1"; mail("tickets@starchefs.com,jcao@starchefsinc.com", "Free Ticket Buyer Submitted", $message, "From: $email"); pagetop(); $word = $nticket == 1 ? 'ticket' : 'tickets'; if ($ticketdesc=='VIP' && strtolower($x_discountcode)=='cgiwi' && $eventid == 3) { $privatesem=' and our pre-event private seminar, exclusively for members of ChicaGourmets and the International Wine Institute.'; $privatesemcon="What's Hot? What's Not? Seminar
    "; $privatede="SEMINAR DETAILS:
    TIME:
    5:00 pm What's Hot? What's Not? - Trends in the Culinary Arts Seminar by Antoinette Bruno, Editor-in-Chief of StarChefs.com"; } if ($ticketdesc=='VIP'){ $extrade=' VIP Gala Reception'; // $exttime=''; } else { $extrade=''; $exttime=', 7:00 - 9:00 pm'; } $date=$etime[$eventid][$x_Tickettype]; $location=$eaddress[$eventid].'
    '.$ead1[$eventid].'
    '.$ecity[$eventid].','.$estate[$eventid]; echo "




    Thank you, $x_First_Name $x_Last_Name, for purchasing $_POST[itemquantity] $word to the StarChefs Rising Stars Revue™ Gala $privatesem

    Please print out this page as your receipt and bring it with you to the door.

    You are confirmed for:

    $privatesemcon StarChefs Rising Stars Revue™ Gala $extrade

    DATE:
    $date

    LOCATION:
    $location

    $privatede "; // There used to be address here echo '
    '; if ($x_Tickettype==3002) { if($eventid == 3) { // echo '
    VIP RECEPTION DETAILS:
    TIME:
    6:00 pm Nicolas Feuillatte Palmes d'Or Champagne and Paramount Caviar Reception
    6:30 pm Advance Admission to the Rising Stars Revue Gala Tasting'; } } echo "

    Confirmation number is $order_number.
     
     
    Don't forget to save the date for the 2010 StarChefs.com International Chefs Congress: September 19 - 22, 2010 in New York City.
     
    Click here to take a piece of the 2009 ICC home with you: our 248-page full color Congress book includes presenter bios, interviews, fast facts, recipes, and color photos of the dishes!

    Sign up today for StarChefs.com recipes from the country's top chefs.

    Purchase your copy of Chefs to Know for $24.95: http://www.kueimut.com/chefstoknow/index.shtml

    Get 1 year of QuickMeals for a special rate of $19.99--a savings of $35!

    With 5 recipes and a shopping list from a top chef each week, QuickMeals solves the "What's for dinner?" dilemma every weeknight.

     
    Sign up for our newsletters
    DishRag: Chef recipes, food, wine and travel...
    Employer: Tips for recruiting and retaining...
    JobSeeker: Top 10 Jobs, Job Tips, and more...
    email:


    back to StarChefs
    "; pagebottom(); // Added by Chris: post to SubscriberMail require_once '/data/htdocs/includes/libs/subscribermail.php'; subscribermail($email, sm_getlist(), array('zipcode' => $zip, 'age' => $age, 'gender' => $gender)); } ?>