Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <cfcomponent output="false">
- <cfproperty name="studentCommon" inject="id:studentCommon">
- <!----------------------------------------------------------------------------->
- <!----------------------------------------------------------------------------->
- <!----------------------------------------------------------------------------->
- <cffunction name="diploma" access="public" returntype="void" output="false">
- <cfargument name="event" type="any">
- <cfset pidm = '557068' >
- <cfset rc.debug = "hello">
- <cfset rc.diploma_name = studentCommon.getDiplomaName(pidm, 2) >
- <cfset rc.alternate_email = studentCommon.getAlternateEmail(pidm) >
- <cfset rc.hometown = studentCommon.getHometown(pidm) >
- <cfset rc.address = studentCommon.getDiplomaAddress(pidm) >
- <cfset rc.pickup = studentCommon.getDiplomaPickup(pidm) >
- <cfset rc.formSubmitted = "NO" >
- <cfif isDefined("FORM.diploma_name") >
- <cfset rc.formSubmitted = "YES" >
- <cfset rc.result = studentCommon.setDiplomaInformation(
- pidm,
- rc.diploma_name,
- rc.hometown,
- rc.alternate_email,
- rc.pickup,
- rc.street1,
- rc.street2,
- rc.street3,
- rc.city,
- rc.state,
- rc.zip,
- rc.country ) >
- </cfif>
- <cfset event.setView("student/diploma")>
- </cffunction>
- <!-------------------------------------------------------------------------------------------------------->
- <!-------------------------------- PRE-EVENT FOR THIS HANDLER -------------------------------------------->
- <!-------------------------------------------------------------------------------------------------------->
- <cffunction name="preHandler" returntype="void" output="false" hint="Executes after any event in this handler">
- <cfargument name="event">
- <cfargument name="action" hint="The intercepted action"/>
- <cfargument name="eventArguments" hint="The event arguments an event is executed with (if any)"/>
- <cfscript>
- var rc = event.getCollection();
- event.setLayout("Layout.Student");
- </cfscript>
- </cffunction>
- </cfcomponent>
Add Comment
Please, Sign In to add comment