| 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/2019/ |
Upload File : |
<cfheader name="cache-control" value="no-cache, no-store, must-revalidate">
<cfheader name="pragma" value="no-cache">
<cfheader name="expires" value="#getHttpTimeString(now())#">
<link href="https://fonts.googleapis.com/css?family=Montserrat:400,600|Open+Sans:300,400,400i,700&display=swap" rel="stylesheet"/>
<link rel="stylesheet" href="https://use.typekit.net/qxz0egx.css"/>
<link href="/css/bootstrap.min.css" rel="stylesheet"/>
<link href="/css/style.css" rel="stylesheet"/>
<link href="/css/vendors.css" rel="stylesheet"/>
<link href="/css/custom11.css" rel="stylesheet"/>
<cfif parameterexists(form.table)>
<cfparam name="url.table" default="#form.table#">
</cfif>
<cfparam name="url.id" default=0>
<cfparam name="getcol1.id" default="#url.id#">
<div class="text-center">
<h4 class="section-header"> What do you think?</h4>
</div>
<div class="p-10">
<div class="ratings">
<p>Is this event for you?</p>
<Cfif parameterexists(url.add) and
parameterexists(form.option) and
parameterexists(getcol1.id) and
isnumeric(getcol1.id) and isnumeric(form.option)>
<cfquery name=addphoto datasource="#ds#">
INSERT INTO
ArticleRatings(calendarid,rating,datetime,ipaddress,tablename)
VALUES
(#getcol1.id#,#form.option#,#currentdatetime#,'#cgi.remote_addr#','#form.tablename#')
</cfquery>
<cfcookie name="calrate#getcol1.id#"
value="#form.option#" expires="never" />
</Cfif>
<cfif IsDefined("Cookie.calrate#getcol1.id#")>
<cfset
rating=#evaluate("Cookie.calrate#getcol1.id#")#>
</cfif>
<cfif not parameterexists(getcol1.id) or not
isnumeric(getcol1.id)>
<div> <cfinclude template="/footer.cfm"><cfabort>
</cfif>
<cfif parameterexists(getcol1.id) and #getcol1.id#
contains '='>
<cfabort>
</cfif>
<cfif parameterexists(form.option)>
<Cfquery name="Getratecount1" datasource="#dsro#">
select count(id) as counter
from ArticleRatings
where calendarid = #getcol1.id#
and rating = 1
</Cfquery>
<Cfquery name="Getratecount2" datasource="#dsro#">
select count(id) as counter
from ArticleRatings
where calendarid = #getcol1.id#
and rating = 2
</Cfquery>
<Cfquery name="Getratecount3" datasource="#dsro#">
select count(id) as counter
from ArticleRatings
where calendarid = #getcol1.id#
and rating = 3
</Cfquery>
<Cfquery name="Getratecount4" datasource="#dsro#">
select count(id) as counter
from ArticleRatings
where calendarid = #getcol1.id#
and rating = 4
</Cfquery>
<cfelse>
<Cfquery name="Getratecount1" datasource="#dsro#" cachedwithin="#createtimespan(0,3,3,0)#">
select count(id) as counter
from ArticleRatings
where calendarid = #getcol1.id#
and rating = 1
</Cfquery>
<Cfquery name="Getratecount2" datasource="#dsro#" cachedwithin="#createtimespan(0,3,3,0)#">
select count(id) as counter
from ArticleRatings
where calendarid = #getcol1.id#
and rating = 2
</Cfquery>
<Cfquery name="Getratecount3" datasource="#dsro#" cachedwithin="#createtimespan(0,3,3,0)#">
select count(id) as counter
from ArticleRatings
where calendarid = #getcol1.id#
and rating = 3
</Cfquery>
<Cfquery name="Getratecount4" datasource="#dsro#" cachedwithin="#createtimespan(0,3,3,0)#">
select count(id) as counter
from ArticleRatings
where calendarid = #getcol1.id#
and rating = 4
</Cfquery>
</cfif>
<cfoutput>
<form name="CFForm_2a9"
action="/intendembed.cfm?add=on&id=#getcol1.id#&111"
method="post">
</cfoutput>
<div class="rate-me">
<div class="form-group">
<input id="option1" type="radio"
name="option" value="1"
onclick="javascript: submit()" <cfif
parameterexists(rating) and rating eq
1>checked</cfif>>
<label class="star option1" for="option1">I
intend to go</label> <span
class="rating-num">(<Cfoutput>
#getratecount1.counter#</Cfoutput>
)</span>
</div>
<div class="form-group">
<cfif parameterexists(url.table)> <input name="table" value="<cfoutput>#url.table#</cfoutput>" type="hidden">
<input name="tablename" value="<cfoutput>#url.table#</cfoutput>" type="hidden">
<cfelseif parameterexists(form.tablename)>
<input name="table" value="<cfoutput>#url.table#</cfoutput>" type="hidden">
<input name="tablename" value="<cfoutput>#url.table#</cfoutput>" type="hidden">
</cfif>
<input id="option2" type="radio"
name="option" value="2"
onclick="javascript: submit()" <cfif
parameterexists(rating) and rating eq
2>checked</cfif>>
<label class="star option2"
for="option2">Not sure </label> <span
class="rating-num">(<Cfoutput>
#getratecount2.counter#</Cfoutput>
)</span>
</div>
<div class="form-group">
<input id="option3" type="radio"
name="option" value="3"
onclick="javascript: submit()" <cfif
parameterexists(rating) and rating eq
3>checked</cfif>>
<label class="star option3"
for="option3">Not for me </label> <span
class="rating-num">(<Cfoutput>
#getratecount3.counter#</Cfoutput>
)</span>
</div>
<!--- <div class="form-group">
<input id="option4" type="radio"
name="option" value="4"
onclick="javascript: submit()" <cfif
parameterexists(rating) and rating eq
4>checked</cfif>>
<label class="star option4"
for="option4">Wish I could, but
conflict </label> <span
class="rating-num">(<Cfoutput>
#getratecount4.counter#</Cfoutput>
)</span>
</div>--->
</div>
<div class="btn-hidden">
<div class="btn-hidden text-center">
<button class="button btn cal-btn" id="cal-submit" name="cal-submit" type="submit">Send</button>
</div>
</div>
</form>
</div>