Template Methodology CFCASE,CFSWITCH
In the root directory, only the index.cfm file is used to create the template for the entire front end of the application.
The index.cfm files uses CFCASE & CFSWITCH to load in the body templates such as About Us, Contact Us etc. To change the look of the site simply edit the Header and Footer sections of the index.cfm file one time and the entire site will change.
<!--- HEADER --->
<!--- Start Switching ---> <cfif Not IsDefined("url.page")> <cfinclude template="main.cfm"> <cfelse> <cfif IsDefined("url.page")> <cfset TemplateSwitch=url.page> <cfswitch expression="#TemplateSwitch#">
<!--- Load Main Page Content ---> <cfcase value="main"> <cfinclude template="main.cfm"> </cfcase>
<!--- Load Privacy Content ---> <cfcase value="privacy"> <cfinclude template="privacy.cfm"> </cfcase>
<!--- Load Services Available to Employers ---> <cfcase value="services"> <cfinclude template="mnservices.cfm"> </cfcase>
<!--- Load Send To Friend Mass E-mail ---> <cfcase value="friend"> <cfinclude template="mnfriendemail.cfm"> </cfcase>
<!--- Load Resource Center Content ---> <cfcase value="resource"> <cfinclude template="mnresource.cfm"> </cfcase>
<!--- Load AutoResponder Email Remove Employers To Job Seekers ---> <cfcase value="arrem"> <cfinclude template="mnremove-arrem.cfm"> </cfcase>
<!--- Load AutoResponder Email Remove Admin To Employers ---> <cfcase value="arremadm"> <cfinclude template="mnremove-arremadm.cfm"> </cfcase>
<!--- Load AutoResponder Email Remove Admin To Job Seekers ---> <cfcase value="arrjsadm"> <cfinclude template="mnremove-arrjsadm.cfm"> </cfcase> </cfswitch> </cfif> </cfif> <!--- End Switching --->
<!---FOOTER --->
|