1 pKanel 1.1 <!--- Name: index.cfm
2 Purpose: This file is the engine for programs application. Different functionalities are
3 executed depending upon the value of pageaction. All the regional specific variables
4 are initialized on this file.
5 Date created: 05/01/2006
6 Dependancy: None
7 Variables: PageAction - Value that will determine the function that it is suppose to do.
8 SearchText - Search term that user will input
9 list - State abbreviation
10 orgid - Unique idenfier of organization
11 format - Format of data it is receiving. In future HTML will be another format
12 that it will support.
13 title - HTML Title of each page
14 Description - Description of each page for metatags
15 region - Region number assigned to each regional center
16 meta_keywords - Keywords of each page for metatags
17 mapname - file name of each regional center map
18 regioncenter - Unique abbreviation of each regional center
19 regionallogo - File location of each regional center's logo for print friendly page
20 CenterName - Name of the center of each regional center for print friendly page
21 Date changed:
22 pKanel 1.1 05/01/2006 Prabin Kanel Created file
23 --->
24
25
26
27 <cfparam name="pageAction" default="">
28 <cfparam name="list" default="">
29 <cfparam name="searchText" default="">
30 <cfparam name="orgid" default="">
31 <cfparam name="format" default="WDDX">
32 <cfparam name="title" default="Pollution Prevention Agencies and Programs in EPA Region 7">
33 <cfparam name="description" default="Locate an environmental agency, program, or consultant in EPA Region 7 (Iowa, Kansas, Missouri, Nebraska) with special expertise or services.">
34 <cfset bad_chars = "&,"",Ã??,Ã?ÂÌ,Ã??,Ã??,Ã??,Ã??,Ã??,Ã??,Ã?ÂÌ,Ã??,Ã??,Ã??,Ã??,Ã?ÂÌ,Ã??,Ã??,Ã?ÂÌ,Ã??,Ã??,Ã??,Ã??,Ã??,Ã??,Ã??,Ã??,Ã??,Ã??,Ã??,Ã??,Ã?ÂÌ,Ã?¡,Ã?¢,Ã?¦,Ã? ,Ã?Â¥,Ã?£,Ã?¤,Ã?§,Ã?©,Ã?ª,Ã?¨,Ã?°,Ã?«,Ã?Â,Ã?®,Ã?¬,Ã?¯,Ã?±,Ã?³,Ã?´,Ã?²,Ã?¸,Ã?µ,Ã?¶,Ã??,Ã?¾,Ã?º,Ã?»,Ã?¹,Ã?¼,Ã?½,Ã?¿,Ã?¡,Ã?£,Ã?¤,Ã?Â¥,Ã?¦,Ã?§,Ã?¨,Ã?©,Ã?ª,Ã?«,Ã?¬,Ã?Â,Ã?®,Ã?¯,Ã?°,Ã?±,Ã?²,Ã?³,Ã?´,Ã?µ,Ã?¶,Ã?·,Ã?¸,Ã?¹,Ã?º,Ã?»,Ã?¼,Ã?½,Ã?¾,Ã?¿,Ã??,Ã?·,Ã?¢,<,>">
35 <cfset good_chars = "&,",Æ,Á,Â,À,Å,Ã,Ä,Ç,Ð,É,Ê,È,Ë,Í,Î,Ì,Ï,Ñ,Ó,Ô,Ò,Ø,Õ,Ö,Þ,Ú,Û,Ù,Ü,Ý,á,â,æ,à,å,ã,ä,ç,é,ê,è,ð,ë,í,î,ì,ï,ñ,ó,ô,ò,ø,õ,ö,ß,þ,ú,û,ù,ü,ý,ÿ,¡,£,¤,¥,¦,§,¨,©,ª,«,¬,­,®,¯,°,±,²,³,´,µ,¶,·,¸,¹,º,»,¼,½,¾,¿,×,÷,¢,<,>">
36
37
38 <cfparam name="region" default="7">
39 <cfparam name="meta_keywords" default="Region 7, P2Ric, P2Rx, Pollution Prevention Regional Information Center">
40 <cfparam name="mapname" default="region#region#_200.gif">
41 <cfparam name="regionalcenter" default="p2ric">
42 <cfparam name="regionallogo" default="http://www.p2ric.org/Images/p2ricshort.gif">
43 pKanel 1.1 <cfparam name="centername" default="Pollution Prevention Regional Information Center (P2Ric)">
44
45 <html>
46 <head>
47 <cfinclude template="../cfi/script/nav_variables.htm">
48 <link rel="stylesheet" href="../css/newstyle.css" type="text/css">
49 </head>
50
51 <CFIF #PageAction# NEQ "Print">
52 <cfinclude template="../cfi/global_header.cfm">
53 <CFINCLUDE template="include/dsp_navmenu.cfm">
54 </CFIF>
55 <body>
56
57 <CFSWITCH expression="#pageAction#">
58
59 <CFCASE value="searchByState">
60 <FONT size="1">
61 <CFINCLUDE template="include/dsp_states.cfm">
62
63 </FONT>
64 pKanel 1.1 <CFINCLUDE template="include/dsp_searchbystate.cfm">
65 </CFCASE>
66
67 <CFCASE value="searchByText">
68 <CFINCLUDE template="include/dsp_searchbytext.cfm">
69 </CFCASE>
70
71 <CFCASE value="searchByService">
72 <FONT size="1">
73 <CFINCLUDE template="include/dsp_expertiselist.cfm">
74 </font>
75 <CFINCLUDE template="include/dsp_searchbyservice.cfm">
76 </CFCASE>
77
78 <CFCASE value="searchByProgramType">
79 <FONT size="1">
80 <CFINCLUDE template="include/dsp_programtypelist.cfm">
81 </FONT>
82 <CFINCLUDE template="include/dsp_searchbyProgramType.cfm">
83 </CFCASE>
84
85 pKanel 1.1 <CFCASE value="showDetail">
86 <CFINCLUDE template="include/dsp_orgDetail.cfm">
87 <CFINCLUDE template="include/dsp_servicesforOrg.cfm">
88 <CFINCLUDE template="include/dsp_programtypeforOrg.cfm">
89 </CFCASE>
90
91 <CFCASE value="Print">
92 <cfoutput>
93 <img src="#regionallogo#" border="0"> <h3>Information provided by : #centername# Programs Directory</h3>
94 </cfoutput>
95 <HR>
96 <CFINCLUDE template="include/dsp_orgDetail.cfm">
97 <CFINCLUDE template="include/dsp_servicesforOrg.cfm">
98 <CFINCLUDE template="include/dsp_programtypeforOrg.cfm">
99
100 </CFCASE>
101
102 <cfdefaultcase>
103 <TABLE>
104 <TR>
105 <TD colspan="2">
106 pKanel 1.1 <CFINCLUDE template="include/dsp_description.cfm">
107 </TD>
108 </TR>
109 <TR>
110 <TD valign="top">
111 <CFINCLUDE template="include/dsp_searchbox.cfm">
112 <P><font class="strongtext">Browse By State :</font> <BR>
113 <CFINCLUDE template="include/dsp_states.cfm">
114 </TD>
115 <TD width="50%" align="middle" valign="top">
116 <CFOUTPUT>
117 <cfinclude template="maps/#regionalcenter#.cfm">
118 </CFOUTPUT>
119 </TD>
120 </TR>
121 <TR>
122 <TD colspan="2">
123 <P><font class="strongtext">Browse By Area of Expertise :</font> <BR>
124 <CFINCLUDE template="include/dsp_expertiselist.cfm">
125 </TD>
126 </TR>
127 pKanel 1.1 <TR>
128 <TD colspan="2">
129 <P><font class="strongtext">Browse By Program Type :</font> <BR>
130 <CFINCLUDE template="include/dsp_programtypelist.cfm">
131 </TD>
132 </TR>
133 </TABLE>
134 </cfdefaultcase>
135 </CFSWITCH>
136 <cfinclude template="include/act_createmetatags.cfm">
137
138 <CFIF #PageAction# NEQ "Print">
139 <cfinclude template="../cfi/global_footer.cfm">
140 </CFIF>
141
142 </body>
143
144 </HTML>
|