I cannot figure out what is wrong with this code:
<cfquery
datasource="#peregrine#"
name="getdomains">
<!--- select DISTINCT domain
FROM applicationorders --->
SELECT DISTINCTROW applicationorders.Domain, applicationorders.userid
FROM applicationorders
where applicationorders.userid = #session.userid#
GROUP BY applicationorders.Domain, applicationorders.userid
</cfquery>
<cfelse>
<cfquery
datasource="peregrine"
name="getdomains">
select DISTINCT domain
FROM applicationorders
</cfquery>
<cfquery
datasource="peregrine"
name="getusers">
SELECT DISTINCT applicationorders.userid, users.UserLastName, users.UserFirstName
FROM applicationorders LEFT JOIN users ON applicationorders.userid = users.UserID
WHERE ((Not (applicationorders.userid)=0))
order by users.userlastname, users.userfirstname
</cfquery>
<cfquery
datasource="peregrine"
name="getstates">
select *
from states
</cfquery>
</cfif>
<cfquery
datasource="peregrine"
name="getstatus">
select *
FROM applicationstatus
order by statusid
</cfquery>
<cfquery
datasource="peregrine"
name="getat">
select *
FROM applicationtypes
</cfquery>
<!--- ##### start content ##### --->
<!--- top part of tab --->
<b class="header">Generate Report</b><br>
<!--- top part of tab --->
<form action="appn-report.cfm" method="post">
<input type=Hidden name="flag" value="1">
<table border=0 cellpadding=4 cellspacing=0 width=100%>
<tr>
<td class=smallbold align="right">Domain</td>
<td class=small>
<select name="domain">
<option value="">--- All Domains ---
<cfoutput query="getdomains">
<option value="#domain#">#domain#
</cfoutput>
</select>
</td>
</tr>
<tr>
<td class=smallbold align="right">Agent</td>
<td class=small>
<select name="userid1">
<option value="">--- All Agents ---
<cfoutput query="getusers">
<option value="#userid#">#userlastname#, #userfirstname#
</cfoutput>
</select>
</td>
</tr>
<tr >
<td class="smallbold" align=right>State</td>
<td class="small">
<select name="state">
<option value="">--- All ---
<cfoutput query="getstates">
<option value="#state#">#state#
</cfoutput>
</select>
</td>
</tr>
</cfif>
<tr>
<td class=smallbold align="right">Time Frame</td>
<td class=small>
<select name="timeframe">
<option value="">--- All ---
<option value="TD">today
<option value="LW">last 7 days
<option value="CM">current month
<option value="LM">last month
<option value="CY">current year
<option value="LY">last year
</select>
</td>
</tr>
<tr>
<td class=smallbold align="right">Type</td>
<td class=small>
<select name="applicationtypeid">
<option value="">--- All Types ---
<cfoutput query="getat">
<option value="#applicationtypeid#">#applicationtype#
</cfoutput>
</select>
</td>
</tr>
<tr>
<td class=smallbold align="right">VVC Status</td>
<td class=small>
<select name="vvcstatusid">
<option value="">--- All Status ---
<cfoutput query="getvvcstatus">
<option value="#vvcstatusid#">#vvcstatus#
</cfoutput>
</select>
</td>
</tr>
<tr>
<td class=smallbold align="right">Status</td>
<td class=small>
<select name="statusid">
<option value="">--- All Status ---
<cfoutput query="getstatus">
<option value="#statusid#">#status#
</cfoutput>
</select>
</td>
</tr>
<tr>
<td class=smallbold align="right">Credit</td>
<td class=small>
<select name="ratecredit">
<option value="">--- All ---
<option value="Good">Good
<option value="Fair">Fair
<option value="Poor">Poor
</select>
</td>
</tr>
<tr>
<td class=smallbold align="right">From (m/d/yy)</td>
<td class=small>
<input type="text" name="from" size=10 value="">
</td>
</tr>
<tr>
<td class=smallbold align="right">To (m/d/yy)</td>
<td class=small>
<input type="text" name="to" size=10 value="">
</td>
</tr>
<tr>
<td class=smallbold align="center"> </td>
<td class=smallbold>
<input type="submit" value="Generate Report">
</td>
</tr>
</table>
</form>
<p>
Everytime I try to view it in my browser i get this error:
Error Diagnostic Information
Template file not found.
HTTP/1.0 404 Object Not Found
Note: If you wish to use an absolute template path (e.g. TEMPLATE="/mypath/index.cfm" with CFINCLUDE then you must create a mapping for the path using the ColdFusion Administrator.
Using relative paths (e.g. TEMPLATE="index.cfm" or TEMPLATE="../index.cfm" does not require the creation of any special mappings. It is therefore recommended that you use relative paths with CFINCLUDE whenever possible.
The error occurred while processing an element with a general identifier of (CFINCLUDE), occupying document position (4:1) to (4:56).
Date/Time: 07/09/03 14:31:33
Browser: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0)
Remote Address: 192.168.254.48
Template: C:\Inetpub\
The funny thing is I have no cfinclude in this code!!!
<cfquery
datasource="#peregrine#"
name="getdomains">
<!--- select DISTINCT domain
FROM applicationorders --->
SELECT DISTINCTROW applicationorders.Domain, applicationorders.userid
FROM applicationorders
where applicationorders.userid = #session.userid#
GROUP BY applicationorders.Domain, applicationorders.userid
</cfquery>
<cfelse>
<cfquery
datasource="peregrine"
name="getdomains">
select DISTINCT domain
FROM applicationorders
</cfquery>
<cfquery
datasource="peregrine"
name="getusers">
SELECT DISTINCT applicationorders.userid, users.UserLastName, users.UserFirstName
FROM applicationorders LEFT JOIN users ON applicationorders.userid = users.UserID
WHERE ((Not (applicationorders.userid)=0))
order by users.userlastname, users.userfirstname
</cfquery>
<cfquery
datasource="peregrine"
name="getstates">
select *
from states
</cfquery>
</cfif>
<cfquery
datasource="peregrine"
name="getstatus">
select *
FROM applicationstatus
order by statusid
</cfquery>
<cfquery
datasource="peregrine"
name="getat">
select *
FROM applicationtypes
</cfquery>
<!--- ##### start content ##### --->
<!--- top part of tab --->
<b class="header">Generate Report</b><br>
<!--- top part of tab --->
<form action="appn-report.cfm" method="post">
<input type=Hidden name="flag" value="1">
<table border=0 cellpadding=4 cellspacing=0 width=100%>
<tr>
<td class=smallbold align="right">Domain</td>
<td class=small>
<select name="domain">
<option value="">--- All Domains ---
<cfoutput query="getdomains">
<option value="#domain#">#domain#
</cfoutput>
</select>
</td>
</tr>
<tr>
<td class=smallbold align="right">Agent</td>
<td class=small>
<select name="userid1">
<option value="">--- All Agents ---
<cfoutput query="getusers">
<option value="#userid#">#userlastname#, #userfirstname#
</cfoutput>
</select>
</td>
</tr>
<tr >
<td class="smallbold" align=right>State</td>
<td class="small">
<select name="state">
<option value="">--- All ---
<cfoutput query="getstates">
<option value="#state#">#state#
</cfoutput>
</select>
</td>
</tr>
</cfif>
<tr>
<td class=smallbold align="right">Time Frame</td>
<td class=small>
<select name="timeframe">
<option value="">--- All ---
<option value="TD">today
<option value="LW">last 7 days
<option value="CM">current month
<option value="LM">last month
<option value="CY">current year
<option value="LY">last year
</select>
</td>
</tr>
<tr>
<td class=smallbold align="right">Type</td>
<td class=small>
<select name="applicationtypeid">
<option value="">--- All Types ---
<cfoutput query="getat">
<option value="#applicationtypeid#">#applicationtype#
</cfoutput>
</select>
</td>
</tr>
<tr>
<td class=smallbold align="right">VVC Status</td>
<td class=small>
<select name="vvcstatusid">
<option value="">--- All Status ---
<cfoutput query="getvvcstatus">
<option value="#vvcstatusid#">#vvcstatus#
</cfoutput>
</select>
</td>
</tr>
<tr>
<td class=smallbold align="right">Status</td>
<td class=small>
<select name="statusid">
<option value="">--- All Status ---
<cfoutput query="getstatus">
<option value="#statusid#">#status#
</cfoutput>
</select>
</td>
</tr>
<tr>
<td class=smallbold align="right">Credit</td>
<td class=small>
<select name="ratecredit">
<option value="">--- All ---
<option value="Good">Good
<option value="Fair">Fair
<option value="Poor">Poor
</select>
</td>
</tr>
<tr>
<td class=smallbold align="right">From (m/d/yy)</td>
<td class=small>
<input type="text" name="from" size=10 value="">
</td>
</tr>
<tr>
<td class=smallbold align="right">To (m/d/yy)</td>
<td class=small>
<input type="text" name="to" size=10 value="">
</td>
</tr>
<tr>
<td class=smallbold align="center"> </td>
<td class=smallbold>
<input type="submit" value="Generate Report">
</td>
</tr>
</table>
</form>
<p>
Everytime I try to view it in my browser i get this error:
Error Diagnostic Information
Template file not found.
HTTP/1.0 404 Object Not Found
Note: If you wish to use an absolute template path (e.g. TEMPLATE="/mypath/index.cfm" with CFINCLUDE then you must create a mapping for the path using the ColdFusion Administrator.
Using relative paths (e.g. TEMPLATE="index.cfm" or TEMPLATE="../index.cfm" does not require the creation of any special mappings. It is therefore recommended that you use relative paths with CFINCLUDE whenever possible.
The error occurred while processing an element with a general identifier of (CFINCLUDE), occupying document position (4:1) to (4:56).
Date/Time: 07/09/03 14:31:33
Browser: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0)
Remote Address: 192.168.254.48
Template: C:\Inetpub\
The funny thing is I have no cfinclude in this code!!!