Guest User

Untitled

a guest
Jun 19th, 2018
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.20 KB | None | 0 0
  1. <cfcomponent output="false">
  2. <cfproperty name="studentCommon" inject="id:studentCommon">
  3.  
  4.  
  5.  
  6. <!----------------------------------------------------------------------------->
  7. <!----------------------------------------------------------------------------->
  8. <!----------------------------------------------------------------------------->
  9. <cffunction name="diploma" access="public" returntype="void" output="false">
  10. <cfargument name="event" type="any">
  11.  
  12. <cfset pidm = '557068' >
  13.  
  14. <cfset rc.debug = "hello">
  15.  
  16. <cfset rc.diploma_name = studentCommon.getDiplomaName(pidm, 2) >
  17. <cfset rc.alternate_email = studentCommon.getAlternateEmail(pidm) >
  18. <cfset rc.hometown = studentCommon.getHometown(pidm) >
  19. <cfset rc.address = studentCommon.getDiplomaAddress(pidm) >
  20. <cfset rc.pickup = studentCommon.getDiplomaPickup(pidm) >
  21.  
  22. <cfset rc.formSubmitted = "NO" >
  23. <cfif isDefined("FORM.diploma_name") >
  24. <cfset rc.formSubmitted = "YES" >
  25. <cfset rc.result = studentCommon.setDiplomaInformation(
  26. pidm,
  27. rc.diploma_name,
  28. rc.hometown,
  29. rc.alternate_email,
  30. rc.pickup,
  31. rc.street1,
  32. rc.street2,
  33. rc.street3,
  34. rc.city,
  35. rc.state,
  36. rc.zip,
  37. rc.country ) >
  38. </cfif>
  39. <cfset event.setView("student/diploma")>
  40.  
  41. </cffunction>
  42.  
  43.  
  44. <!-------------------------------------------------------------------------------------------------------->
  45. <!-------------------------------- PRE-EVENT FOR THIS HANDLER -------------------------------------------->
  46. <!-------------------------------------------------------------------------------------------------------->
  47. <cffunction name="preHandler" returntype="void" output="false" hint="Executes after any event in this handler">
  48. <cfargument name="event">
  49. <cfargument name="action" hint="The intercepted action"/>
  50. <cfargument name="eventArguments" hint="The event arguments an event is executed with (if any)"/>
  51. <cfscript>
  52. var rc = event.getCollection();
  53. event.setLayout("Layout.Student");
  54. </cfscript>
  55. </cffunction>
  56.  
  57.  
  58.  
  59. </cfcomponent>
Add Comment
Please, Sign In to add comment