root/trunk/website/soundings/index.cfm @ 46

Revision 5, 1.2 kB (checked in by DanWilson, 17 years ago)

Initial Commit Of ModelGlue? Website (upgrade to blogcfc 511)

Line 
1<cfsetting enablecfoutputonly=true>
2<!---
3        Name         : index.cfm
4        Author       : Raymond Camden
5        Created      : September 2, 2004
6        Last Updated : March 10, 2006
7        History      : work w/o mapping (rkc 3/10/06)
8        Purpose          : Displays surveys
9--->
10<cfimport taglib="./tags/" prefix="tags">
11
12<cfset surveys = application.survey.getSurveys(1)>
13
14<!--- Loads header --->
15<tags:layout templatename="main" title="Welcome to Soundings">
16
17<!--- Now display the table. This changes based on what our data is. --->
18<cfoutput>
19<h2>Welcome to Soundings</h2>
20
21<p>
22Welcome to Soundings, the Survey application. Below you will find a list of active surveys. Surveys that are restricted in some way will be marked.
23</p>
24
25<h2>Active Surveys</h2>
26
27<cfif surveys.recordCount eq 0>
28        <p>
29        Sorry, but there are no surveys available at this time.
30        </p>
31<cfelse>
32        <cfloop query="surveys">
33                <cfset emailList = application.survey.getEmailList(id)>
34                <p>
35                <a href="survey.cfm?id=#id#">#name#</a>
36                <cfif surveypassword neq "" or emailList.recordCount>(Restricted)</cfif>
37                <br>
38                #description#
39                </p>
40        </cfloop>
41</cfif>
42
43</cfoutput>
44       
45</tags:layout>
46
47<cfsetting enablecfoutputonly=false>
Note: See TracBrowser for help on using the browser.