0) { while (list($key, $value) = each($HTTP_GET_VARS)) { if (($magic_quotes_gpc_off) && (! $slashesadded)){ $value = addslashes($value); } ${$key} = $value; } } if (sizeof($HTTP_POST_VARS) > 0) { while (list($key, $value) = each($HTTP_POST_VARS)) { if (($magic_quotes_gpc_off) && (! $slashesadded)){ $value = addslashes($value); } ${$key} = $value; } } $slashesadded = true; // authenticate user.... $db_CMS->db_process_query("select", $athTbl, "*", "none", "athUserName = '$athUserName' and athPassword = '$athPassword'", "none"); if ($db_CMS->dbNumRow == 0) { // error something wrong..... reset the whole page... echo "something wrong"; } else { if ($mode == "save") { if ($athUserName != '') { // save registration information ... $fldName = "rgsParticipantNote = '$rgsParticipantNote', rgsTagName = '$rgsTagName', rgsTagAddress = '$rgsTagAddress'"; $db_CMS->db_process_query("update", $rgsTbl, $fldName, "none","athUserName = '$athUserName'", "none"); // save anybody information .... $fldName = "anbAddress = '$anbAddress', anbSEmail = '$anbSEmail', anbPCode = '$anbPCode', anbCountry = '$anbCountry'"; $db_CMS->db_process_query("update", $anbTbl, $fldName, "none","athUserName = '$athUserName'", "none"); // save miscellaneous information .... $fldName = "mscDescription = '$mondayPlan'"; $db_CMS->db_process_query("update", $mscTbl, $fldName, "none","mscID = '$mscMPID'", "none"); } } // get the registration details.... $db_CMS->db_process_query("select",$rgsTbl,"*","none","athUserName = '$athUserName'","none"); $sRsltSet_rgs = $db_CMS->dbRsltSet; if ($db_CMS->dbNumRow > 0) { //ok we found the registration.. $sCurRow_rgs = $db_CMS->db_fetch_array($sRsltSet_rgs); $rgsID = $sCurRow_rgs["rgsID"]; $pymID = $sCurRow_rgs["pymID"]; $rgsStatus = $sCurRow_rgs["rgsStatus"]; $rgsCategory = $sCurRow_rgs["rgsCategory"]; $rgsParticipantNote = $sCurRow_rgs["rgsParticipantNote"]; $rgsTagName = $sCurRow_rgs["rgsTagName"]; $rgsTagAddress = $sCurRow_rgs["rgsTagAddress"]; } // get the participant details.... $db_CMS->db_process_query("select",$anbTbl,"*","none","athUserName = '$athUserName'","none"); $sRsltSet_anb = $db_CMS->dbRsltSet; if ($db_CMS->dbNumRow > 0) { //ok we found the user.. $sCurRow_anb = $db_CMS->db_fetch_array($sRsltSet_anb); $anbTitle = $sCurRow_anb["anbTitle"]; $anbFName = $sCurRow_anb["anbFName"]; $anbLName = $sCurRow_anb["anbLName"]; $anbAddress = $sCurRow_anb["anbAddress"]; $anbPCode = $sCurRow_anb["anbPCode"]; $anbCountry = $sCurRow_anb["anbCountry"]; $anbEmail = $sCurRow_anb["anbEmail"]; $anbSEmail = $sCurRow_anb["anbSEmail"]; } // get the payment details.... $db_CMS->db_process_query("select",$pymTbl,"*","none","pymID = '$pymID'","none"); $sRsltSet_pym = $db_CMS->dbRsltSet; if ($db_CMS->dbNumRow > 0) { //ok we found the registration.. $sCurRow_pym = $db_CMS->db_fetch_array($sRsltSet_pym); $pymMethod = $sCurRow_pym["pymMethod"]; $pymParticipantNote = $sCurRow_pym["pymParticipantNote"]; } // get the miscellaneous details.... $db_CMS->db_process_query("select",$mscTbl,"*","none","rgsID = '$rgsID'","mscID"); $sRsltSet_msc = $db_CMS->dbRsltSet; if ($db_CMS->dbNumRow > 0) { //ok we found the registration.. while ($sCurRow_msc = $db_CMS->db_fetch_array($sRsltSet_msc)) { switch ($sCurRow_msc["mscName"]) { case "Monday plan" : $mscMPID=$sCurRow_msc["mscID"]; // monday plan... $mondayPlan=$sCurRow_msc["mscDescription"]; break; } } } // represent some the short forms in understandable format... switch ($rgsCategory) { case "Full" : $rgsCategoryE = "Full Registration: NZ$500"; break; case "Stdn" : $rgsCategoryE = "Student Registration: NZ$400"; break; } switch ($pymMethod) { case "crd" : $pymMethodE = "credit card"; break; case "cbd" : $pymMethodE = "cheque/bank draft by mail"; break; case "inv" : $pymMethodE = "invoice"; break; } switch ($mondayPlan) { case "none" : $mondayPlanE = "I have other plans"; break; case "seakayak" : $mondayPlanE = "I would like to make a booking for the sea-kayak trip to rangitoto"; break; case "skycity" : $mondayPlanE = "I would like to make a dinner reservation at the revolving restaurant in the Sky City Tower"; break; } if ($pymParticipantNote == "") { $pymParticipantNote = "none"; } if ($rgsParticipantNote == "") { $rgsNote = "none"; } // php codes ends .............................................................................. ?>
db_process_query("select", $odlTbl, "*", "none", "rgsID = '$rgsID'", "odlID"); $sRsltSet_odl = $db_CMS->dbRsltSet; while ($sCurRow_odl = $db_CMS->db_fetch_array($sRsltSet_odl)) { $odlName = $sCurRow_odl['odlName']; $odlPrice = $sCurRow_odl['odlPrice']; // Price is actually ticket_price * num_of_tick - Vincent if ($odlName == 'Extra Tickets') $odlPrice = $odlPrice * $sCurRow_odl['odlOrderedAmount']; echo ""; echo ""; echo ""; echo ""; } ?>
Individual Information - . Registration Status -
Participant Details
Title:*
First Name:*
Last Name:*
Address:*
Country:*
PostCode:
E-mail:*
Alternative E-mail:
Name on name tag:
Address on name tag:
Conference Details
Registration Category:*
Total Costs :
$odlName :NZ$ $odlPrice
Payment Details
Form of payment:*
Special Payment Notes:
Notes
Other Information / Requests: