(file) Return to index.cfm CVS log (file) (dir) Up to [Development] / p2rx-programs

File: [Development] / p2rx-programs / index.cfm (download)
Revision: 1.1, Fri May 12 17:08:09 2006 UTC (3 years, 6 months ago) by pKanel
Branch: MAIN
Initial Commit

<!--- 	Name:  index.cfm
    	Purpose: This file is the engine for programs application. Different functionalities are 
				executed depending upon the value of pageaction. All the regional specific variables
				are initialized on this file.
		Date created: 05/01/2006
       	Dependancy: None
		Variables: 	PageAction	- Value that will determine the function that it is suppose to do.
					SearchText - Search term that user will input
					list - State abbreviation
					orgid - Unique idenfier of organization
					format - Format of data it is receiving. In future HTML will be another format
							that it will support.
					title - HTML Title of each page
					Description - Description of each page for metatags
					region - Region number assigned to each regional center
					meta_keywords - Keywords of each page for metatags
					mapname - file name of each regional center map
					regioncenter - Unique abbreviation of each regional center
					regionallogo - File location  of each regional center's logo for print friendly page
					CenterName - Name of the center of each regional center for print friendly page
		Date changed: 
					05/01/2006     	Prabin Kanel	Created file
--->



<cfparam name="pageAction" default="">
<cfparam name="list" default="">
<cfparam name="searchText" default="">
<cfparam name="orgid" default="">
<cfparam name="format" default="WDDX">
<cfparam name="title" default="Pollution Prevention Agencies and Programs in EPA Region 7">
<cfparam name="description" default="Locate an environmental agency, program, or consultant in EPA Region 7 (Iowa, Kansas, Missouri, Nebraska) with special expertise or services.">
<cfset bad_chars = "&,"",Ã??,Ã?ÂÌ,Ã??,Ã??,Ã??,Ã??,Ã??,Ã??,Ã?ÂÌ,Ã??,Ã??,Ã??,Ã??,Ã?ÂÌ,Ã??,Ã??,Ã?ÂÌ,Ã??,Ã??,Ã??,Ã??,Ã??,Ã??,Ã??,Ã??,Ã??,Ã??,Ã??,Ã??,Ã?ÂÌ,Ã?¡,Ã?¢,Ã?¦,Ã? ,Ã?Â¥,Ã?£,Ã?¤,Ã?§,Ã?©,Ã?ª,Ã?¨,Ã?°,Ã?«,Ã?­,Ã?®,Ã?¬,Ã?¯,Ã?±,Ã?³,Ã?´,Ã?²,Ã?¸,Ã?µ,Ã?¶,Ã??,Ã?¾,Ã?º,Ã?»,Ã?¹,Ã?¼,Ã?½,Ã?¿,Ã?¡,Ã?£,Ã?¤,Ã?Â¥,Ã?¦,Ã?§,Ã?¨,Ã?©,Ã?ª,Ã?«,Ã?¬,Ã?­,Ã?®,Ã?¯,Ã?°,Ã?±,Ã?²,Ã?³,Ã?´,Ã?µ,Ã?¶,Ã?·,Ã?¸,Ã?¹,Ã?º,Ã?»,Ã?¼,Ã?½,Ã?¾,Ã?¿,Ã??,Ã?·,Ã?¢,<,>">
<cfset good_chars = "&amp;,&quot;,&AElig;,&Aacute;,&Acirc;,&Agrave;,&Aring;,&Atilde;,&Auml;,&Ccedil;,&ETH;,&Eacute;,&Ecirc;,&Egrave;,&Euml;,&Iacute;,&Icirc;,&Igrave;,&Iuml;,&Ntilde;,&Oacute;,&Ocirc;,&Ograve;,&Oslash;,&Otilde;,&Ouml;,&THORN;,&Uacute;,&Ucirc;,&Ugrave;,&Uuml;,&Yacute;,&aacute;,&acirc;,&aelig;,&agrave;,&aring;,&atilde;,&auml;,&ccedil;,&eacute;,&ecirc;,&egrave;,&eth;,&euml;,&iacute;,&icirc;,&igrave;,&iuml;,&ntilde;,&oacute;,&ocirc;,&ograve;,&oslash;,&otilde;,&ouml;,&szlig;,&thorn;,&uacute;,&ucirc;,&ugrave;,&uuml;,&yacute;,&yuml;,&iexcl;,&pound;,&curren;,&yen;,&brvbar;,&sect;,&uml;,&copy;,&ordf;,&laquo;,&not;,&shy;,&reg;,&macr;,&deg;,&plusmn;,&sup2;,&sup3;,&acute;,&micro;,&para;,&middot;,&cedil;,&sup1;,&ordm;,&raquo;,&frac14;,&frac12;,&frac34;,&iquest;,&times;,&divide;,&cent;,&lt;,&gt;">


<cfparam name="region" default="7">
<cfparam name="meta_keywords" default="Region 7, P2Ric, P2Rx, Pollution Prevention Regional Information Center">
<cfparam name="mapname" default="region#region#_200.gif">
<cfparam name="regionalcenter" default="p2ric">
<cfparam name="regionallogo" default="http://www.p2ric.org/Images/p2ricshort.gif">
<cfparam name="centername" default="Pollution Prevention Regional Information Center (P2Ric)">

<html>
<head>
	<cfinclude template="../cfi/script/nav_variables.htm">
	<link rel="stylesheet" href="../css/newstyle.css" type="text/css">
</head>

<CFIF #PageAction# NEQ "Print">
	<cfinclude template="../cfi/global_header.cfm">
	<CFINCLUDE template="include/dsp_navmenu.cfm">
</CFIF>
<body>

<CFSWITCH expression="#pageAction#">

	<CFCASE value="searchByState">
		<FONT size="1">
			<CFINCLUDE template="include/dsp_states.cfm">
			
		</FONT>
		<CFINCLUDE template="include/dsp_searchbystate.cfm">
	 </CFCASE>

	<CFCASE value="searchByText">
		<CFINCLUDE template="include/dsp_searchbytext.cfm">
	</CFCASE>
	
	<CFCASE value="searchByService">
		<FONT size="1">
			<CFINCLUDE template="include/dsp_expertiselist.cfm">
		</font>	
		<CFINCLUDE template="include/dsp_searchbyservice.cfm">	
	</CFCASE>

	<CFCASE value="searchByProgramType">
		<FONT size="1">
			<CFINCLUDE template="include/dsp_programtypelist.cfm">	
		</FONT>	
		<CFINCLUDE template="include/dsp_searchbyProgramType.cfm">	
	</CFCASE>

	<CFCASE value="showDetail">
		<CFINCLUDE template="include/dsp_orgDetail.cfm">	
		<CFINCLUDE template="include/dsp_servicesforOrg.cfm">	
		<CFINCLUDE template="include/dsp_programtypeforOrg.cfm">	
	</CFCASE>
	
	<CFCASE value="Print">
		<cfoutput>
			<img src="#regionallogo#"  border="0">  <h3>Information provided by : #centername# Programs Directory</h3>
		</cfoutput>
		<HR>
		<CFINCLUDE template="include/dsp_orgDetail.cfm">	
		<CFINCLUDE template="include/dsp_servicesforOrg.cfm">	
		<CFINCLUDE template="include/dsp_programtypeforOrg.cfm">	
		
	</CFCASE>
	
	<cfdefaultcase>
		<TABLE>
		<TR>
			<TD colspan="2">
				<CFINCLUDE template="include/dsp_description.cfm">
			</TD>
		</TR>
		<TR>
		 	<TD valign="top">
				<CFINCLUDE template="include/dsp_searchbox.cfm">
				<P><font class="strongtext">Browse By State :</font> <BR>
				<CFINCLUDE template="include/dsp_states.cfm">
			</TD>
			 <TD width="50%" align="middle" valign="top">
			 	<CFOUTPUT>
	             	 <cfinclude template="maps/#regionalcenter#.cfm">
				</CFOUTPUT>	 
			 </TD>
		</TR>		
		<TR>
		<TD colspan="2">
		<P><font class="strongtext">Browse By Area of Expertise :</font> <BR>
			<CFINCLUDE template="include/dsp_expertiselist.cfm">	
		</TD>
		</TR>
		<TR>
		<TD colspan="2">
			<P><font class="strongtext">Browse By Program Type :</font> <BR>	
			<CFINCLUDE template="include/dsp_programtypelist.cfm"> 
		</TD>
		</TR>	
		</TABLE>
	</cfdefaultcase>
</CFSWITCH>
	<cfinclude template="include/act_createmetatags.cfm">

<CFIF #PageAction# NEQ "Print">
	<cfinclude template="../cfi/global_footer.cfm">
</CFIF>
	
 </body>

</HTML>

CVS Admin
Powered by
ViewCVS 1.0-dev