| Server IP : 172.67.201.108 / Your IP : 216.73.216.11 Web Server : Apache/2.4.68 (Amazon Linux) OpenSSL/3.5.5 System : Linux ip-172-31-69-123.ec2.internal 6.1.176-223.369.amzn2023.x86_64 #1 SMP PREEMPT_DYNAMIC Fri Jul 24 13:34:27 UTC 2026 x86_64 User : ec2-user ( 1000) PHP Version : 8.4.23 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /home/home2/cgny/public_html/2019/40thold/ |
Upload File : |
<cfsavecontent variable="headercontent">
<title><cfoutput>Celebration Tickets</cfoutput></title>
<meta property="og:image" content="https://www.cityguideny.com/40th/40thbannerlogo.png" />
</cfsavecontent>
<Cfinclude template="/header.cfm">
<cfinclude template="/rossavings.cfm">
<main>
<div class="white_bg" >
<div class="container margin_60" style="max-width: 800px;">
<!--- <div class="main_title">
<h2>Order</span></h2>
</div>
--->
<cfinclude template="css.cfm">
<Cfif parameterexists(url.process)>
<CFSET CurrentDateTime = #CreateODBCDateTime(Now())#>
<Cfparam name="form.adultsquantity" default="0">
<Cfparam name="form.kidsquantity" default="0">
<Cfparam name="form.seniorquantity" default="0">
<Cfparam name="form.otherquantity" default="0">
<Cfparam name="form.ccnum" default="1234">
<Cfparam name="form.password" default="">
<Cfparam name="form.saver" default="">
<Cfparam name="form.subber" default="">
<cfset totalq = #form.adultsquantity#>
<Cfif #form.adultsquantity# eq 1><Cfset total = 75></cfif>
<Cfif #form.adultsquantity# eq 2><Cfset total = 150></cfif>
<Cfif #form.adultsquantity# eq 3><Cfset total = 225></cfif>
<Cfif #form.adultsquantity# eq 4><Cfset total = 300></cfif>
<Cfif #form.adultsquantity# eq 5><Cfset total = 375></cfif>
<Cfif #form.adultsquantity# eq 6><Cfset total = 450></cfif>
<Cfif #form.adultsquantity# eq 7><Cfset total = 525></cfif>
<Cfif #form.adultsquantity# eq 8><Cfset total = 600></cfif>
<!--- <cfif parameterexists(form.coupon)>
<cfquery name="upds" dataSource="#ds#">
update cgdirectorycoupons set usedtickets = usedtickets + #totalq#
where couponcode = '#form.coupon#'
</cfquery>
</cfif> --->
<cfif parameterexists(form.coupon)><Cfset codeused = '#form.coupon#'><cfelse><cfset codeused = ''></cfif>
<cfif #total# eq 0>
<Cfset approved = 'on'>
</cfif>
<cfif parameterexists(form.ccnum) and #form.ccnum# eq '1234'>
<Cfset approved = 'on'>
</cfif>
<Cfquery name="checkdupe" dataSource="cityguide">
select email from celebrate40order where email = '#form.email#'
</Cfquery>
<Cfif #checkdupe.recordcount# gt 10000><br><Br>
Error, you've already registered. Please contact [email protected] for help. </div><br><Br></div><Cfabort>
</cfif>
<!----<Cfset approved = 'on'> ColdFusion's cfhttp object is specifically designed to create a post,
and retrieve the results. Those results are accessed in cfhttp.filecontent --->
<!--- By default, this sample code is designed to post to our test server
for developer accounts: https://test.authorize.net/gateway/transact.dll
for real accounts (even in test mode), please make sure that you are\posting to: https://secure.authorize.net/gateway/transact.dll --->
<cfhttp method="Post" url="https://secure.authorize.net/gateway/transact.dll ">
<!--- the API Login ID and Transaction Key must be replaced with valid values --->
<cfhttpparam type="Formfield" name="x_login" value="5U8ra7ayMS4u">
<cfhttpparam type="Formfield" name="x_tran_key" value="7aw5VqK99Ye327F2">
<cfhttpparam type="Formfield" name="x_delim_data" value="TRUE">
<cfhttpparam type="Formfield" name="x_delim_char" value="|">
<cfhttpparam type="Formfield" name="x_relay_response" value="FALSE">
<cfhttpparam type="Formfield" name="x_test_request" value="FALSE">
<cfhttpparam type="Formfield" name="x_type" value="AUTH_CAPTURE">
<cfhttpparam type="Formfield" name="x_method" value="CC">
<cfhttpparam type="Formfield" name="x_card_num" value="#form.ccnum#">
<cfhttpparam type="Formfield" name="x_exp_date" value="#form.ccexpire#">
<cfhttpparam type="Formfield" name="x_amount" value="#total#">
<cfhttpparam type="Formfield" name="x_description" value="CG 40th Order - #form.adultsquantity#">
<cfhttpparam type="Formfield" name="x_first_name" value="#form.firstname#">
<cfhttpparam type="Formfield" name="x_last_name" value="#form.lastname#">
<cfhttpparam type="Formfield" name="x_address" value="#form.address#">
<cfhttpparam type="Formfield" name="x_state" value="#form.state#">
<cfhttpparam type="Formfield" name="x_zip" value="#form.zip#">
<!--- Additional fields can be added here as outlined in the AIM integration
guide at: http://developer.authorize.net --->
<!--- The following fields show an example of how to include line item details, they are commented out by default.
<cfhttpparam type="Formfield" name="x_line_item" value="item1<|>golf balls<|><|>2<|>18.95<|>Y">
<cfhttpparam type="Formfield" name="x_line_item" value="item2<|>golf bag<|>Wilson golf carry bag, red<|>1<|>39.99<|>Y">
<cfhttpparam type="Formfield" name="x_line_item" value="item3<|>book<|>Golf for Dummies<|>1<|>21.99<|>Y">
--->
</cfhttp>
<!--- Because coldfusion's ListToArray object ignores empty fields, we must
put a space in all empty fields to make sure that they are not skipped --->
<cfset post_response=Replace(cfhttp.filecontent,"||","| |", "all")>
<!--- the same command is run twice, because the first time it only adjusts
every other empty field --->
<cfset post_response=Replace(post_response,"||","| |", "all")>
<!--- now the ListToArray method can be used without skipping fields --->
<cfset response_array=ListToArray(post_response, "|")>
<!--- the results are output to the screen in the form of an html numbered list. --->
<!--- individual elements of the array could be accessed to read certain
response fields. For example, response_array[1] would return the Response
Code, response_array[3] would return the Response Reason Code.
For a list of response fields, please review the AIM Implementation Guide --->
<Cfif #response_array[4]# contains 'Approved' or parameterexists(approved)>
<!---
<Cfif #response_array[4]# contains 'Approved' >
---->
<cfset robpic = #createUUID()#>
<cfset robpic = '#right(robpic,8)#'>
<cfparam name="form.sendtype" default="">
<Cfset totalvendor = #total#>
<cfparam name="form.subscribenewsletter" default="">
<cfparam name="form.company" default="">
<cfparam name="form.jobtitle" default="">
<cfif #form.ccnum# eq '11234'>
<cfset total = 0>
<cfset price = 0>
<Cfset paid = 0>
</cfif>
<cfquery name=addphoto datasource="cityguide">
INSERT INTO celebrate40order (datetime,
firstname,
email,
subscribenewsletter,
lastname,
address,
city,
state,
zip,
country,
paid,
couponid,
used,
last4,
Adults,
Kids,
Senior,
Other,
Total,password,saver,subber,mobilephone,sendtype,uid,totalfees,company,jobtitle,codeused
)
VALUES (#currentdatetime#,'#form.firstname#','#form.email#','#form.subscribenewsletter#','#form.lastname#','#form.address#','#form.city#','#form.state#','#form.zip#','',1,0,0,#right(form.ccnum,4)#,#form.adultsquantity#,#form.kidsquantity#,#form.seniorquantity#,#form.otherquantity#,#total#,'#form.password#','#form.saver#','#form.subber#','#form.mobilephone#','#form.sendtype#','#robpic#',#total#,'#form.company#','#form.jobtitle#','0')
</cfquery>
<cfquery name="Getorder" dataSource="#ds#">
select id from celebrate40order
order by id desc limit 0,1
</cfquery>
<Cfquery name="getconf" dataSource="#ds#">
select copy from columntable where id = 157188
</Cfquery>
<CFMAIL
TO="#form.email#"
SUBJECT="Fall Kickoff Event"
FROM="Fall Kickoff <[email protected]>"
SERVER="127.0.0.1"
type="html"
>
<p>
#getconf.copy#
<p>
Please do not reply to this email. If you have any questions, please contact Heather Gambaro, [email protected].
</cfmail>
<Cfoutput>
</Cfoutput>
<p>
<script src="/addtocalendar/ouical.js"></script>
<link rel="stylesheet" href="/addtocalendar/main.css">
<div class="new-cal2"></div>
<script>
myCalendar2 = createCalendar({
options: {
class: 'my-class' // Notice how this one does not have a preset ID
},
data: {
title: 'Women in Tourism Celebration',
start: new Date('May 10, 2022, 12:00'),
end: new Date('May 10, 2022, 14:30'), // You can also choose to set an end time.
address: '235 W 46th St, New York, NY 10036',
description: 'Sony Hall'
}
});
document.querySelector('.new-cal2').appendChild(myCalendar2);
</script>
</p>
<Cfoutput>
<form action="cgconfirm.cfm?id=#1#&order=#getorder.id#&totalq=#totalq#" method="post">
<Cfif #totalq# gt 1>
You're almost done, please fill out your guest's information below. Don't worry, if you don't know your guest's names, you can tell us later.
<Table>
<cfloop from="1" to="#totalq#" index="i">
<Tr><Td>
<input name="guestname#i#" placeholder="Guest Name #i#" style="width:100%;padding:3px;" >
</Td></Tr>
<Tr><Td>
<input name="guestemail#i#" placeholder="Guest Email #i#" style="width:100%;padding:3px;" >
</Td></Tr>
<Tr><Td>
<input name="guestphone#i#" placeholder="Guest Phone #i#" >
</Td></Tr>
</cfloop>
</Table>
<div class="col-lg-12">
<div class="form-group text-center">
<input class="button btn_1" type="submit" value="Confirm">
</div>
</div>
</div>
</form></Cfif>
</form>
</Cfoutput>
<Cfelse>
<Font size="+1" color="red">
Your transaction was declined, please <a href = "javascript:history.back()">click here</a> to go back and check your payment information.
<br><br><br>
</Cfif>
<div class="span3 sidebar-left">
<!--- <h4>Payment for <Cfoutput>#getcoupon.eventname# at #getcoupon.venue#</Cfoutput></h4>
<!-- COUPON THUMBNAIL -->
--->
</div>
</div>
<div class="span5">
<Cfelse>
<cfquery name="getcopy" dataSource="#ds#">
select copy from columntable where id = 157189
</cfquery>
<cfoutput query="getcopy">
<p style="color:black;">#getcopy.copy#</p>
</ul>
</a>
<p>
</cfoutput><br>
</p>
<cfif parameterexists(url.code)>
<Cfset #url.coupon# = '#url.code#'>
</cfif>
<Cfif parameterexists(form.sponsorcode)>
<Cfset #url.coupon# = '#form.sponsorcode#'>
</cfif>
<cfif not parameterexists(url.coupon)>
<div class=link3new>
<Cfelse>
<Cfquery name="checkc" dataSource="#ds#">
select * from cgdirectorycoupons where couponcode = '#url.coupon#'
</Cfquery>
<Cfif #checkc.recordcount# gt 0>
<Cfoutput>Welcome #checkc.companyname#!</Cfoutput>
<Cfif #checkc.usedtickets# gt #checkc.allowedtickets#>
Error, code has been used its maximum number of times. </div></div><Cfabort>
</cfif>
<cfelse>
Not found!
</Cfif>
</cfif>
<cfform name="autoSumForm" action="event-order.cfm?process=on" method="post" enctype="multipart/form-data">
<Cfif parameterexists(url.coupon)>
<Cfoutput> <input type="hidden" name="coupon" value="#url.coupon#"></Cfoutput>
</cfif>
<cfif parameterexists(session.id) and parameterexists(session.accesslevel) and parameterexists(session.member)>
<cfquery name="Getdata" dataSource="#ds#">
select * from liveeventorder
where email = '#session.email#'
</cfquery>
<cfelse>
<cfparam name="getdata.firstname" default="">
<cfparam name="getdata.lastname" default="">
<cfparam name="getdata.email" default="">
<cfparam name="getdata.mobilephone" default="">
<cfparam name="getdata.address" default="">
<cfparam name="getdata.address2" default="">
<cfparam name="getdata.city" default="">
<cfparam name="getdata.state" default="">
<cfparam name="getdata.zip" default="">
<cfparam name="getdata.country" default="">
</cfif>
<table>
<tr><Td>
<label>Company</label>
</td><td>
<cfinput NAME="company" class="span5" required="Yes" message="You must provide your company" >
</Td></tr>
<tr><Td>
<label>Job Title</label>
</td><td>
<cfinput NAME="jobtitle" class="span5" required="Yes" message="You must provide your job title" >
</Td></tr>
<tr><Td> <label>First Name</label></td><Td>
<cfinput NAME="firstname" class="span5" required="Yes" message="You must provide your first name" value="#getdata.firstname#">
</Td></tr> <tr><Td>
<label>Last Name</label>
</td><td>
<cfinput NAME="lastname" class="span5" required="Yes" message="You must provide your last name" value="#getdata.lastname#">
</Td></tr> <tr><Td>
<label>Your Email Address:</label></td><td>
<cfinput NAME="email" class="span5" required="Yes" message="You must provide your email address" value="#getdata.email#">
</Td></tr> <tr><Td>
<label>Mobile Phone:</label></td><TD>
<cfinput NAME="mobilephone" class="span5" required="Yes" message="You must enter your phone" value="#getdata.mobilephone#">
</Td></tr> <tr><Td>
<label>Address:</label></td><TD>
<cfinput NAME="address" class="span5" required="Yes" message="You must enter your address" value="#getdata.address#">
</Td></tr> <tr><Td>
<label>City:</label></td><TD>
<cfinput NAME="city" class="span5" required="Yes" message="You must enter your city" value="#getdata.city#">
</Td></tr> <tr><Td>
<label>State:</label>
</td><Td>
<SELECT SIZE="1" NAME="State" style="width:50px;">
<cfoutput><OPTION VALUE="#getdata.state#">#getdata.state#</option></cfoutput>
<OPTION VALUE="AB">AB</option>
<OPTION VALUE="AE">AE</option>
<OPTION VALUE="AK">AK</option>
<OPTION VALUE="AL">AL</option>
<OPTION VALUE="AR">AR</option>
<OPTION VALUE="AS">AS</option>
<OPTION VALUE="AZ">AZ</option>
<OPTION VALUE="BC">BC</option>
<OPTION VALUE="CA">CA</option>
<OPTION VALUE="CO">CO</option>
<OPTION VALUE="CT">CT</option>
<OPTION VALUE="DC">DC</option>
<OPTION VALUE="DE">DE</option>
<OPTION VALUE="FL">FL</option>
<OPTION VALUE="GA">GA</option>
<OPTION VALUE="GU">GU</option>
<OPTION VALUE="HI">HI</option>
<OPTION VALUE="IA">IA</option>
<OPTION VALUE="ID">ID</option>
<OPTION VALUE="IL">IL</option>
<OPTION VALUE="IN">IN</option>
<OPTION VALUE="KS">KS</option>
<OPTION VALUE="KY">KY</option>
<OPTION VALUE="LA">LA</option>
<OPTION VALUE="MA">MA</option>
<OPTION VALUE="MB">MB</option>
<OPTION VALUE="MD">MD</option>
<OPTION VALUE="ME">ME</option>
<OPTION VALUE="MI">MI</option>
<OPTION VALUE="MN">MN</option>
<OPTION VALUE="MO">MO</option>
<OPTION VALUE="MP">MP</option>
<OPTION VALUE="MS">MS</option>
<OPTION VALUE="MT">MT</option>
<OPTION VALUE="NB">NB</option>
<OPTION VALUE="NC">NC</option>
<OPTION VALUE="ND">ND</option>
<OPTION VALUE="NE">NE</option>
<OPTION VALUE="NF">NF</option>
<OPTION VALUE="NH">NH</option>
<OPTION VALUE="NJ">NJ</option>
<OPTION VALUE="NM">NM</option>
<OPTION VALUE="NS">NS</option>
<OPTION VALUE="NT">NT</option>
<OPTION VALUE="NV">NV</option>
<OPTION VALUE="NY">NY</option>
<OPTION VALUE="OH">OH</option>
<OPTION VALUE="OK">OK</option>
<OPTION VALUE="ON">ON</option>
<OPTION VALUE="OR">OR</option>
<OPTION VALUE="PA">PA</option>
<OPTION VALUE="PE">PE</option>
<OPTION VALUE="PQ">PQ</option>
<OPTION VALUE="PR">PR</option>
<OPTION VALUE="PW">PW</option>
<OPTION VALUE="RI">RI</option>
<OPTION VALUE="SC">SC</option>
<OPTION VALUE="SD">SD</option>
<OPTION VALUE="SK">SK</option>
<OPTION VALUE="TN">TN</option>
<OPTION VALUE="TX">TX</option>
<OPTION VALUE="UT">UT</option>
<OPTION VALUE="VA">VA</option>
<OPTION VALUE="VI">VI</option>
<OPTION VALUE="VT">VT</option>
<OPTION VALUE="WA">WA</option>
<OPTION VALUE="WV">WV</option>
<OPTION VALUE="WI">WI</option>
<OPTION VALUE="WY">WY</option>
<OPTION VALUE="YT">YT</option>
</SELECT>
</Td></tr> <tr><Td>
<label>Zip:</label></td><Td>
<cfinput NAME="zip" class="span5" required="Yes" message="You must enter your zip code" value="#getdata.zip#">
</Td></tr> </table>
<Br>
</table><cfoutput>
Number of Tickets:
<select name="adultsquantity" id="adultsquantity"
class="form-control"
onchange="if (!window.__cfRLUnblockHandlers) return false; fun(this.value)">
<option value="1">1 - $75</option>
<option value="2">2 - $150</option>
<option value="3">3 - $225</option>
<option value="4">4 - $300</option>
<option value="5">5 - $375</option>
<option value="6">6 - $450</option>
<option value="7">7 - $525</option>
<option value="8">8 - $600</option>
</select>
</cfoutput>
<!--- Total Fees: $<input type="text" name="ansval6" id="ansval6" style="width:70px;" value="0" readonly><br>
Total Cost: $<input type="text" name="ansval7" id="ansval7" style="width:70px;" value="0" readonly>--->
<cfif not parameterexists(pricerfree)>
<Br><br>
<legend>Payment Method</legend>
<table><tr><Td>
<label>Credit Card Type</label></td><td>
<select name="cctype">
<option value="American Express">American Express</option>
<option value="Mastercard">Mastercard</option>
<option value="Visa">Visa</option>
<option value="Discover">Discover</option>
</select>
</td></tr><tr><Td>
<label>Credit Card Number</label>
</td><Td>
<cfinput NAME="ccnum" required="yes" message="You Must Enter Your Credit Card Number">
</Td></tr><tr><Td>
<label>Expiration Date</label>
</td><Td>
<cfinput NAME="ccexpire" required="yes" message="You Must Enter Your Expiration Date" placeholder="MMYY">
</td></tr>
</table>
<cfelse>
<input type="hidden" name="ccnum" value="0">
<input type="hidden" name="ccexpire" value="0">
</cfif>
<br><br>
<div class="gap gap-mini"></div>
<input type="submit" class="btn btn-primary btn-block btn-large span6" style="color:white;background-color:black;" value="Submit "><br><center>
Reminder: ALL SALES ARE FINAL
</cfform>
</div>
</div>
<div class="gap"></div>
</cfif>
</div>
<!-- //////////////////////////////////
//////////////END PAGE CONTENT/////////
////////////////////////////////////-->
</div>
</div>
</div>
</div>
</div>
</main>
<cfinclude template="/footer.cfm">