Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
46 lines (41 sloc) 1.49 KB
<cfheader name="P3P" value="CP=""CAO PSA OUR""">
<cfsetting enablecfoutputonly=true>
Name : surveycfm
Author : Raymond Camden
Created : September 21, 2004
Last Updated : March 10, 2006
History : work w/o mapping (rkc 3/10/06)
Purpose : Displays a survey
<cfimport taglib="./tags/" prefix="tags">
<cfif not isDefined("") or not len(>
<cflocation url="index.cfm" addToken="false">
<cfset survey = application.survey.getSurvey(>
<cfif not or (survey.datebegin neq "" and dateCompare(survey.datebegin,now()) is 1) or
(survey.dateend neq "" and dateCompare(now(), survey.dateend) is 1)>
<cflocation url="index.cfm" addToken="false">
<cfif survey.templateidfk neq "">
<cfset template = application.template.getTemplate(survey.templateidfk)>
<cflocation url="index.cfm" addToken="false">
<cfif structKeyExists(url, "embed")>
<cfoutput><link rel="stylesheet" type="text/css" href="stylesheets/embed.css" media="screen, projection"></link></cfoutput>
<tags:surveydisplay survey="#survey#" />
<cfelseif not structKeyExists(variables, "template")>
<!--- Loads header --->
<tags:layout templatename="main" title="Survey:">
<tags:surveydisplay survey="#survey#"/>
<tags:surveydisplay survey="#survey#" />
<cfsetting enablecfoutputonly=false>