| Server IP : 172.67.201.108 / Your IP : 216.73.216.68 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/stealsadmin/ |
Upload File : |
<cfif parameterexists(url.redeemed)>
<cfquery name=ydoa dataSource="#ds#">
update steals.stealsvendorcoupons
set numberavailable = numberavailable -1
where couponid = #url.couponid#
</cfquery>
</cfif>
<Cfquery name="getcouponname" dataSource="#ds#">
select * from steals.stealsvendor
where vendorid = #url.vendorid#
</cfquery>
<Cfquery name="getlocation" dataSource="#ds#">
select * from steals.stealsvendorlocations
where vendorid = #getcouponname.vendorid#
<Cfif parameterexists(url.locationid)>
and locationid = #url.locationid#
<Cfelse>
and locationtype = 'Primary'
</Cfif>
</cfquery>
<Cfif #getlocation.recordcount# eq 0>
<Cfquery name="getlocation" dataSource="#ds#">
select * from steals.stealsvendorlocations
where vendorid = #getcouponname.vendorid#
limit 0,1
</cfquery>
</Cfif>
<Cfquery name="getotherlocations" dataSource="#ds#">
select * from steals.stealsvendorlocations
where vendorid = #getcouponname.vendorid#
and address <> ''
and locationid <> #getlocation.locationid#
</cfquery>
<Cfquery name="getcoupon" dataSource="#ds#">
select * from steals.stealsvendorcoupons
where vendorid = #getcouponname.vendorid#
order by enddate desc
</cfquery>
<Cfquery name="getinfo" dataSource="#ds#">
select * from steals.stealsvendorsinfo
where vendorid = #getcouponname.vendorid#
</cfquery>
<html>
<head>
<title>Preview</title>
<link type="text/css" rel=stylesheet href='https://fonts.googleapis.com/css?family=Montserrat:400,700'/>
</head>
<body style="background-color: white;margin:20px;font-family: 'Montserrat'">
<center>
<table style="width:80%;margin: 10px;border-color: black;border-style: dotted;border-width: 0px;background-color: white;" cellspacing="0">
<tr><Td style="padding:20px;border-color: black;border-style: dotted;border-width: 2px;border-right: 0px;">
<center> <center><img src="https://www.cityguideny.com/steals/samedaysavings.png" style="height:100px;vertical-align: top;"> </center>
<Cfoutput query="getcouponname">
<Cfif #getinfo.logo# is not ''>
<img src="http://www.cityguideny.com/stealsimages/#getinfo.logo#" style="max-width: 200px;float:right;">
</Cfif>
<center><h1 style="margin-bottom: 0px;padding-bottom: 0px;">#getcouponname.vendorname#</h1>
<h2 style="margin-top:0px;">
</h2>
<h3>#getlocation.address# #getlocation.address2# #getlocation.city#, #getlocation.state# #getlocation.zip#<br>
#getlocation.phone# </h3>
</cfoutput>
</center>
<Cfoutput query="getinfo">#description#
<p>
<cfif #tips# is not ''> <p>
<b>Tips:</b> #tips#</p></cfif>
</Cfoutput>
<b>Coupons:</b><p>
<cfset Columns=2>
<table border="0" width=100%>
<tr>
<cfoutput query="getcoupon">
<cfif (getcoupon.CurrentRow-1) MOD Columns EQ 0>
</tr><tr>
</cfif>
<td width=50% valign=top >
<table style="width:80%;margin: 10px;border-color: red;border-style: dashed;border-width: 2px;background-color: white;"><tr><td style="padding:10px;">
<a href="purchasecoupon.cfm?couponid=#couponid#" style="text-decoration: none;"><div align="center">
<font size=-1>
<b> #couponname#</b>
<p>
<Font color="black" >
Offer Ends: #endtime#</Font>
</center>
</div>
<table>
<Cfif normalpriceadults is not ''>
<tr>
<Td><font size=-1>Adults:</Td>
<td><font size=-1>$#specialpriceadults#
</td>
<Cfset price = normalpriceadults - specialpriceadults>
<td><font size=-1>SAVE: <font color="red">$#price#</font>
</tr>
</Cfif>
<Cfif normalpricekids is not ''>
<tr>
<Td><font size=-1>Kids:</Td>
<td><font size=-1>$#specialpricekids#
</td>
<Cfset price = normalpricekids - specialpricekids>
<td><font size=-1>SAVE: <font color="red">$#price#</font>
</tr>
</Cfif>
<Cfif normalpriceseniors is not ''>
<tr>
<Td><font size=-1>Seniors:</Td>
<td><font size=-1>$#specialpriceseniors#
</td>
<Cfset price = normalpriceseniors - specialpriceseniors>
<td><font size=-1>SAVE: <font color="red">$#price#</font>
</tr>
</Cfif>
<Cfif otherprice is not ''>
<tr>
<Td><font size=-1>#otherprice#:</Td>
<td>$#specialprice#
</td>
<Cfset price = normalprice - specialprice>
<td><font size=-1>SAVE: <font color="red">$#price#</font>
</tr>
</Cfif>
</table>
<center><Br>
<font color="black">Quantity Left:</font> <Font color="red">#numberavailable#</Font><br><br>
<font color="black">
#restrictions#</font></center>
<p><center>
Click to Buy Now! </center>
</td></tr></table>
</a>
</td>
</cfoutput>
<cfif getcoupon.RecordCount MOD columns neq 0>
</tr>
</cfif>
</table>
<b>Hours:</b>
<cfoutput query="Getlocation">
<table>
<tr>
<td style="padding:5px;">
<b>Sunday:</b>
</td><td style="padding:5px;">
#sundayopen#
</td><td style="padding:5px;">
to </td><td style="padding:5px;">
#sundayclose#
</Td>
</tr>
<tr>
<td style="padding:5px;">
<b>Monday:</b>
</td><td style="padding:5px;">
#mondayopen#
</td><td style="padding:5px;">
to </td><td style="padding:5px;">
#mondayclose#
</Td>
</tr>
<tr><tr><td style="padding:5px;">
<b>Tuesday:</b> </Td><td style="padding:5px;">
#Tuesdayopen#
</Td><td style="padding:5px;">to </Td><td style="padding:5px;">
#Tuesdayclose#
</td></tr><tr><td style="padding:5px;">
<b>Wednesday:</b> </Td><td style="padding:5px;">#Wednesdayopen#
</Td><td style="padding:5px;"> to </Td><td style="padding:5px;">
#Wednesdayclose#
</Td></tr><tr><td style="padding:5px;">
<b>Thursday:</b> </Td><td style="padding:5px;">#Thursdayopen#
</Td><td style="padding:5px;"> to </Td><td style="padding:5px;">
#Thursdayclose#
</td></tr><tr><td style="padding:5px;">
<b>Friday:</b></Td><td style="padding:5px;"> #Fridayopen#
</Td><td style="padding:5px;">to </Td><td style="padding:5px;">
#Fridayclose#
</td></tr><tr><td style="padding:5px;">
<b>Saturday:</b> </Td><td style="padding:5px;">#Saturdayopen#
</Td><td style="padding:5px;">to </Td><td style="padding:5px;">
#Saturdayclose#
</td></tr></table>
</cfoutput>
</Td>
<td style="padding:20px;border-color: black;border-style: dotted;border-width: 2px;max-width: 300px;vertical-align: top;" valign="top">
<style type="text/css">
.shortcode-content p iframe {
width:100%;
height:auto;
}
.shortcode-content iframe {
width:100%; height:auto;
}
</style>
<div class="shortcode-content">
<Cfif #getinfo.video# is not ''><b>VIDEO:</b><p>
<Cfoutput>#getinfo.video#</Cfoutput>
</Cfif>
<Cfquery name="getphotos" dataSource="#ds#">
select * from steals.stealsvendorpics
where vendorid = #url.vendorid#
</cfquery>
<Cfif #getphotos.recordcount# is not 0><p><b>PHOTOS:</b><p>
<Cfoutput query="getphotos">
<img src="http://www.cityguideny.com/stealsimages/#getphotos.photo#" style="max-width: 200px;"><br>
#caption#
<p>
</Cfoutput>
</cfif>
</div>
<Cfif #getotherlocations.recordcount# gt 0>
<b>OTHER LOCATIONS:</b><p>
<cfoutput query="getotherlocations">
<a href="previewlisting.cfm?vendorid=#url.vendorid#&locationid=#locationid#">#getotherlocations.address# #getotherlocations.city#, #getotherlocations.state#</a><p>
</cfoutput>
</Cfif>
</td>
</tr></table>
Copyright 2017 Davler Media - <a href="previewterms.cfm">Terms & Conditions</a>
</center>
</body>
</html