<!--- 
Module:  fbx_Switch.cfm
Author:  M Jeo, L Chalnick
Function:  
  The contact manager's fusebox determines which 
  fuse to execute (based on the value of the 
  fusebox.fuseaction parameter) and which circuit 
  it's found in (based on the fusebox.circuit 
  parameter.
Date created: 4/25/2002
Updated:      11/28/2004
--->
<!--- These exit fuse actions will be
available for all switches --->
<cfswitch expression = "#fusebox.fuseaction#">
  <cfcase value="contactList">
    <cfset XFA.contactForm = "home.contactForm">
    <cfset XFA.contactDetail = "home.contactDetail">
    <cfset XFA.contactList = "home.contactList">
    <cfset PageTitle = "Contact Listing">
    <cfinclude template="qry_getAllContacts.cfm">
    <cfinclude template="dsp_contactList.cfm">
  </cfcase>
  <cfcase value="contactDetail">
    <cfset XFA.contactDetail = "home.contactDetail">
    <cfset XFA.contactForm = "home.contactForm">
    <cfset XFA.contactList = "home.contactList">
    <cfset XFA.deleteContact = "home.deleteContact">
    <cfset PageTitle = "Display Contact">
    <cfinclude template="qry_GetContactRecord.cfm">
    <cfinclude template="dsp_contactDetail.cfm">
  </cfcase>
  <cfcase value="contactForm">
    <cfset XFA.contactDetail = "home.contactDetail">
    <cfset XFA.contactForm = "home.contactForm">
    <cfset XFA.contactList = "home.contactList">
    <cfset XFA.deleteContact = "home.deleteContact">
    <cfset XFA.contactFormAction = "home.#Attributes.event#Contact">
    <cfset PageTitle = "Contact Form">
    <cfinclude template="qry_GetContactRecord.cfm">
    <cfinclude template="dsp_contactForm.cfm">
  </cfcase>
  <cfcase value="updateContact">
    <cfset XFA.contactDetail = "home.contactDetail">
    <cfinclude template="act_contactUpdate.cfm">
  </cfcase>
  <cfcase value="addContact">
    <cfset XFA.contactList = "home.contactList">
    <cfinclude template="act_contactUpdate.cfm">
  </cfcase>
  <cfcase value="deletecontact">
    <cfset XFA.contactForm = "home.contactForm">
    <cfset XFA.contactList = "home.contactList">
    <cfset XFA.deleteContact = "home.deleteContact">
    <cfinclude template="act_contactUpdate.cfm">
  </cfcase>
  <cfdefaultcase>
  <!---This will just display an error message and is 
  useful in catching typos of fuseaction names while 
  developing--->
  <cfoutput>This is the cfdefaultcase tag. I received a 
  fuseaction called "#attributes.fuseaction#" 
    and I don't know what to do with it.</cfoutput> 
  </cfdefaultcase>
</cfswitch>
