|
Revision 5, 0.9 kB
(checked in by DanWilson, 17 years ago)
|
|
Initial Commit Of ModelGlue? Website (upgrade to blogcfc 511)
|
| Rev | Line | |
|---|
| [5] | 1 | <cfsetting enablecfoutputonly=true> |
|---|
| 2 | <!--- |
|---|
| 3 | Name : handlers/textbox/stats.cfm |
|---|
| 4 | Author : Raymond Camden |
|---|
| 5 | Created : September 21, 2004 |
|---|
| 6 | Last Updated : March 30, 2006 |
|---|
| 7 | History : tableprefix fix (rkc 3/30/06) |
|---|
| 8 | Purpose : Supports True/False, Yes/No |
|---|
| 9 | ---> |
|---|
| 10 | |
|---|
| 11 | <cfparam name="attributes.questionidfk"> |
|---|
| 12 | <cfparam name="attributes.r_data" type="variablename"> |
|---|
| 13 | <cfparam name="attributes.single" default="true"> |
|---|
| 14 | |
|---|
| 15 | <cfset data = structNew()> |
|---|
| 16 | |
|---|
| 17 | |
|---|
| 18 | <cfquery name="getcount" datasource="#application.settings.dsn#"> |
|---|
| 19 | select |
|---|
| 20 | <cfif attributes.single> |
|---|
| 21 | textbox |
|---|
| 22 | <cfelse> |
|---|
| 23 | textboxmulti |
|---|
| 24 | </cfif> |
|---|
| 25 | from #application.settings.tableprefix#results |
|---|
| 26 | where questionidfk = <cfqueryparam cfsqltype="CF_SQL_VARCHAR" maxlength="35" value="#attributes.questionidfk#"> |
|---|
| 27 | </cfquery> |
|---|
| 28 | |
|---|
| 29 | <cfset caller[attributes.r_data] = getcount> |
|---|
| 30 | <cfsetting enablecfoutputonly=false> |
|---|
| 31 | |
|---|
| 32 | <cfexit method="exittag"> |
|---|