aparker81

MultipleFileUpload

Jul 19th, 2011
692
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <!---If the http is not secure, make it secure--->
  2. <cfif not cgi.server_port_secure>
  3.    <cflocation url="https://#cgi.server_name##cgi.script_name#?#cgi.query_string#" addtoken="no" />
  4. </cfif>
  5.  
  6. <cfsilent>
  7.  
  8.  
  9.     <!--- Param FORM variables. --->
  10.     <cfparam name="URL.Reg" type="string" default="" />
  11.     <cfparam name="FORM.fname" type="string" default="" />
  12.     <cfparam name="FORM.lName" type="string" default="" />
  13.     <cfparam name="FORM.uid" type="string" default="" />
  14.     <cfparam name="FORM.classification" type="string" default="" />
  15.     <cfparam name="FORM.school" type="string" default="" />
  16.     <cfparam name="FORM.department" type="string" default="" />
  17.     <cfparam name="FORM.address1" type="string" default="" />
  18.     <cfparam name="FORM.address2" type="string" default="" />
  19.     <cfparam name="FORM.email" type="string" default="" />
  20.     <cfparam name="FORM.phone" type="string" default="" />
  21.     <cfparam name="FORM.NOMfname" type="string" default="" />
  22.     <cfparam name="FORM.NOMlname" type="string" default="" />
  23.     <cfparam name="FORM.NOMuid" type="string" default="" />
  24.     <cfparam name="FORM.NOMschool" type="string" default="" />
  25.     <cfparam name="FORM.NOMdepartment" type="string" default="" />
  26.     <cfparam name="FORM.NOMaddress1" type="string" default="" />
  27.     <cfparam name="FORM.NOMaddress2" type="string" default="" />
  28.     <cfparam name="FORM.NOMemail" type="string" default="" />
  29.     <cfparam name="FORM.NOMphone" type="string" default="" />
  30.  
  31.     <cfparam name="FORM.nominationLetter" type="string" default="" />
  32.     <cfparam name="FORM.curriculumVita" type="string" default="" />
  33.    
  34.    
  35.    
  36.     <cfparam name="FORM.captcha" type="string" default="" />
  37.    
  38.     <!---
  39.         For the form submission flag, since we are asking
  40.         it to be of type numeric, we have to catch the
  41.         CFParam in case someone has hacked the HTML and
  42.         altered the value being sent (a non-numeric value
  43.         will throw a ColdFusion error).
  44.     --->
  45.     <cftry>
  46.         <cfparam
  47.             name="FORM.submitted"
  48.             type="numeric"
  49.             default="0"
  50.             />
  51.  
  52.         <!--- Catch CFParam data type errors. --->
  53.         <cfcatch>
  54.             <cfset FORM.submitted = 0 />
  55.         </cfcatch>
  56.     </cftry>
  57.  
  58.  
  59.     <!--- Define an array to catch the form errors. --->
  60.     <cfset arrErrors = ArrayNew( 1 ) />
  61.  
  62.  
  63.     <!--- Check to see if the form has been submitted. --->
  64.     <cfif FORM.submitted>
  65.  
  66.         <!---Now that the form has been submitted, we need to validate the data.--->
  67.  
  68.         <!--- Validate nominee's first name. --->
  69.         <cfif NOT Len( FORM.fname )>
  70.             <cfset ArrayAppend(
  71.                 arrErrors,
  72.                 "Please enter nominee's first name."
  73.                 ) />
  74.         </cfif>
  75.        
  76.         <!--- Validate nominee's last name. --->
  77.         <cfif NOT Len( FORM.lname )>
  78.             <cfset ArrayAppend(
  79.                 arrErrors,
  80.                 "Please enter nominee's last name."
  81.                 ) />
  82.         </cfif>
  83.        
  84.         <!--- Validate nominee's university id. --->
  85.         <cfif NOT Len( FORM.uid )>
  86.             <cfset ArrayAppend(
  87.                 arrErrors,
  88.                 "Please enter nominee's ten digit University ID."
  89.                 ) />
  90.         </cfif>
  91. <!---      
  92.  
  93.         <!--- Validate nominee's classification. --->
  94.         <cfif NOT Len( FORM.classification )>
  95.             <cfset ArrayAppend(
  96.                 arrErrors,
  97.                 "Please select nominee's classification."
  98.                 ) />
  99.         </cfif>
  100.        
  101.         <!--- Validate nominee's school. --->
  102.         <cfif NOT Len( FORM.school )>
  103.             <cfset ArrayAppend(
  104.                 arrErrors,
  105.                 "Please enter nominee's school."
  106.                 ) />
  107.         </cfif>
  108.  
  109.         <!--- Validate nominee's address. --->
  110.         <cfif NOT Len( FORM.address1 )>
  111.             <cfset ArrayAppend(
  112.                 arrErrors,
  113.                 "Please enter nominee's campus address."
  114.                 ) />
  115.         </cfif>
  116.        
  117.         <!---Validate nominee's email--->
  118.         <cfif not len(form.email) or not isValid("email", form.email)>
  119.             <cfset ArrayAppend(
  120.                 arrErrors,
  121.                 "Please enter nominee's University email address."
  122.                 ) />
  123.         </cfif>
  124.  
  125.  
  126.         <!---Validate nominee's phone--->
  127.         <cfif not len(form.phone)>
  128.             <cfset ArrayAppend(
  129.                 arrErrors,
  130.                 "Please enter nominee's University phone number."
  131.                 ) />
  132.         </cfif>
  133.  
  134.         <!--- Validate nominator's first name. --->
  135.         <cfif NOT Len( FORM.NOMfname )>
  136.             <cfset ArrayAppend(
  137.                 arrErrors,
  138.                 "Please enter nominator's first name."
  139.                 ) />
  140.         </cfif>
  141.        
  142.         <!--- Validate nominator's last name. --->
  143.         <cfif NOT Len( FORM.NOMlname )>
  144.             <cfset ArrayAppend(
  145.                 arrErrors,
  146.                 "Please enter nominator's last name."
  147.                 ) />
  148.         </cfif>
  149.        
  150.         <!--- Validate nominator's university id. --->
  151.         <cfif NOT Len( FORM.NOMuid )>
  152.             <cfset ArrayAppend(
  153.                 arrErrors,
  154.                 "Please enter nominator's ten digit University ID."
  155.                 ) />
  156.         </cfif>
  157.    
  158.         <!--- Validate nominator's school. --->
  159.         <cfif NOT Len( FORM.NOMschool )>
  160.             <cfset ArrayAppend(
  161.                 arrErrors,
  162.                 "Please enter nominator's school."
  163.                 ) />
  164.         </cfif>
  165.  
  166.         <!--- Validate nominator's address. --->
  167.         <cfif NOT Len( FORM.NOMaddress1 )>
  168.             <cfset ArrayAppend(
  169.                 arrErrors,
  170.                 "Please enter nominator's campus address."
  171.                 ) />
  172.         </cfif>
  173.        
  174.         <!---Validate nominator's email--->
  175.         <cfif not len(form.NOMemail) or not isValid("email", form.NOMemail)>
  176.             <cfset ArrayAppend(
  177.                 arrErrors,
  178.                 "Please enter nominator's University email address."
  179.                 ) />
  180.         </cfif>
  181.  
  182.         <!---Validate nominator's phone--->
  183.         <cfif not len(form.NOMphone)>
  184.             <cfset ArrayAppend(
  185.                 arrErrors,
  186.                 "Please enter nominator's University phone number."
  187.                 ) />
  188.         </cfif>
  189. ---->
  190.  
  191.  
  192.  
  193.  
  194.         <!---When it comes to validating the file upload, we want to check to see if they selected one. Then, once they selected one, we ONLY want to mess with it if there are no errors caused by other form fields.--->
  195.         <cfif NOT Len( FORM.nominationLetter )>
  196.             <cfset ArrayAppend(
  197.                 arrErrors,
  198.                 "Please select a file to upload as the nomination letter."
  199.                 ) />
  200.         </cfif>
  201.  
  202.         <cfif NOT Len( FORM.curriculumVita )>
  203.             <cfset ArrayAppend(
  204.                 arrErrors,
  205.                 "Please select a file to upload as the curriculum vita."
  206.                 ) />
  207.         </cfif>
  208.  
  209.     <!---
  210.         <cfif NOT Len( FORM.recommendation )>
  211.             <cfset ArrayAppend(
  212.                 arrErrors,
  213.                 "Please select a file to upload as recommendation letter ."
  214.                 ) />
  215.        </cfif>
  216. --->
  217.  
  218.         <!---Validate CAPTCHA --->
  219.         <cfif form.captcha neq session.captcha>
  220.             <cfset ArrayAppend(
  221.                arrErrors,
  222.                "You did not enter the correct security text."
  223.                ) />
  224.        
  225.     <cfelseif ArrayLen( arrErrors )>
  226.                    
  227.         <!---The file has been selected, but there are errors caused by other parts of the form validation.  Therefore, we now have a file that is just sitting in our temp folder. Delete this file to keep a clean server.    --->
  228.         <cftry>
  229.             <cffile
  230.                 action="DELETE"
  231.                 file="#FORM.nominationLetter#"
  232.             />
  233.      
  234.             <cfcatch>
  235.                 <!--- File delete error. --->
  236.             </cfcatch>
  237.         </cftry>
  238.    
  239.         <cftry>
  240.             <cffile
  241.                 action="DELETE"
  242.                 file="#FORM.curriculumVita#"
  243.             />
  244.      
  245.             <cfcatch>
  246.                 <!--- File delete error. --->
  247.             </cfcatch>
  248.         </cftry>
  249.  
  250.  
  251.     <cfelse>
  252.  
  253.         <!---Set file upload destination path to nominationUploads/firstname_lastname--->  
  254.         <cfset destination = expandPath("./nominationUploads/#trim(fname)#_#trim(lname)#_#trim(uid)#/")>
  255.        
  256.         <!---If the destination directory does not exist, create it.  This will be unique for each nominee.--->                                
  257.         <cfif not directoryExists(destination)>
  258.             <cfdirectory action="create" directory="#destination#">
  259.         </cfif>
  260.  
  261.     <!---The docuement has been selected and there are no other errors caused by Form validation.  Therefore, we can now deal with the file upload.  There is a chance that the file upload will cause an error, so be sure to wrap all file actions in CFTry / CFCatch blocks.--->
  262.         <cftry>
  263.             <cffile
  264.                 action="UPLOAD"
  265.                 filefield="nominationLetter"
  266.                 destination="#destination#"
  267.                 nameconflict="MAKEUNIQUE"
  268.             />
  269.            
  270.    
  271.  
  272.                 <!---
  273.                     Now that we have the file uploaded, let's
  274.                     check the file extension. I find this to be
  275.                     better than checking the MIME type as that
  276.                     can be inaccurate (so can this, but at least
  277.                     it doesn't throw a ColdFusion error).
  278.                 --->
  279.                 <cfif NOT ListFindNoCase(
  280.                     "doc,docx,pdf,txt,rtf",
  281.                     CFFILE.ServerFileExt
  282.                     )>
  283.  
  284.                     <cfset ArrayAppend(
  285.                         arrErrors,
  286.                         "Only doc, docx, pdf, txt, and rtf file formats are accepted as the nomination letter."
  287.                         ) />
  288.  
  289.                     <!---
  290.                         Since this was not an acceptable file,
  291.                         let's delete the one that was uploaded.
  292.                     --->
  293.                     <cftry>
  294.                         <cffile
  295.                             action="DELETE"
  296.                             file="#destination##File.ServerFile#"
  297.                             <!---file="#CFFILE.ServerDirectory#\#CFFILE.ServerFile#"--->
  298.                             />
  299.  
  300.                         <cfcatch>
  301.                             <!--- File Delete Error. --->
  302.                         </cfcatch>
  303.                     </cftry>
  304.  
  305.                 </cfif>
  306.  
  307.                 <!--- Catch any file errors. --->
  308.                 <cfcatch>
  309.  
  310.                     <!---
  311.                         There was some sort of error with the
  312.                         file upload. Set the error and then try
  313.                         to delete the file.
  314.                     --->
  315.                     <cfset ArrayAppend(
  316.                         arrErrors,
  317.                         "There was a problem uploading the nomination letter."
  318.                         ) />
  319.  
  320.                     <!---
  321.                         Try to delete the file. Again, we want
  322.                         to use CFTry / CFCatch whenever dealing
  323.                         with files, especially if we don't know
  324.                         if the file is even at the given path.
  325.                     --->
  326.                     <cftry>
  327.                         <cffile
  328.                             action="DELETE"
  329.                             file="#destination##File.ServerFile#"
  330.                             <!---file="#CFFILE.ServerDirectory#\#CFFILE.ServerFile#"--->
  331.                             />
  332.  
  333.                         <cfcatch>
  334.                             <!--- File delete errors. --->
  335.                         </cfcatch>
  336.                     </cftry>
  337.  
  338.                 </cfcatch>
  339.             </cftry>
  340.            
  341.            
  342.  
  343.  
  344.     <!---The docuement has been selected and there are no other errors caused by Form validation.  Therefore, we can now deal with the file upload.  There is a chance that the file upload will cause an error, so be sure to wrap all file actions in CFTry / CFCatch blocks.--->
  345.         <cftry>
  346.             <cffile
  347.                 action="UPLOAD"
  348.                 filefield="curriculumVita"
  349.                 destination="#destination#"
  350.                 nameconflict="MAKEUNIQUE"
  351.             />
  352.    
  353.  
  354.                 <!---
  355.                     Now that we have the file uploaded, let's
  356.                     check the file extension. I find this to be
  357.                     better than checking the MIME type as that
  358.                     can be inaccurate (so can this, but at least
  359.                     it doesn't throw a ColdFusion error).
  360.                 --->
  361.                 <cfif NOT ListFindNoCase(
  362.                     "doc,docx,pdf,txt,rtf",
  363.                     CFFILE.ServerFileExt
  364.                     )>
  365.  
  366.                     <cfset ArrayAppend(
  367.                         arrErrors,
  368.                         "Only doc, docx, pdf, txt, and rtf file formats are accepted as the curriculum vita."
  369.                         ) />
  370.  
  371.                     <!---
  372.                         Since this was not an acceptable file,
  373.                         let's delete the one that was uploaded.
  374.                     --->
  375.                     <cftry>
  376.                         <cffile
  377.                             action="DELETE"
  378.                             file="#destination##File.ServerFile#"
  379.                             <!---file="#CFFILE.ServerDirectory#\#CFFILE.ServerFile#"--->
  380.                             />
  381.  
  382.                         <cfcatch>
  383.                             <!--- File Delete Error. --->
  384.                         </cfcatch>
  385.                     </cftry>
  386.  
  387.                 </cfif>
  388.  
  389.                 <!--- Catch any file errors. --->
  390.                 <cfcatch>
  391.  
  392.                     <!---
  393.                         There was some sort of error with the
  394.                         file upload. Set the error and then try
  395.                         to delete the file.
  396.                     --->
  397.                     <cfset ArrayAppend(
  398.                         arrErrors,
  399.                         "There was a problem uploading the curriculum vita."
  400.                         ) />
  401.  
  402.                     <!---
  403.                         Try to delete the file. Again, we want
  404.                         to use CFTry / CFCatch whenever dealing
  405.                         with files, especially if we don't know
  406.                         if the file is even at the given path.
  407.                     --->
  408.                     <cftry>
  409.                         <cffile
  410.                             action="DELETE"
  411.                             file="#destination##File.ServerFile#"
  412.                             <!---file="#CFFILE.ServerDirectory#\#CFFILE.ServerFile#"--->
  413.                             />
  414.  
  415.                         <cfcatch>
  416.                             <!--- File delete errors. --->
  417.                         </cfcatch>
  418.                     </cftry>
  419.  
  420.                 </cfcatch>
  421.             </cftry>
  422.  
  423.  
  424.  
  425.  
  426.  
  427.  
  428.  
  429.  
  430.  
  431.  
  432.  
  433.  
  434.  
  435.  
  436.  
  437.  
  438.  
  439.  
  440.  
  441.  
  442.  
  443.  
  444.  
  445.         </cfif>
  446.  
  447.  
  448.         <!---
  449.             Now that we have validated our form data, let's
  450.             check to see if there are any form validation
  451.             errors. Only if there are no errors do w want to
  452.             continue processing the data - otherwise, we want
  453.             to skip this next part and let the form re-render.
  454.         --->
  455.         <cfif NOT ArrayLen( arrErrors )>
  456.  
  457.         <!--- Create variable to reference the original document name and extension uploaded from client.   --->   
  458.             <cfset clientNominationLetter = #file.ClientFile#> 
  459.             <!---Create variable to reference renamed document.  Retain orignal file extension.--->  
  460.             <cfset renameNomination = "01_nominationLetter"&"."&#cffile.clientFileExt#>
  461.        
  462.             <!---Rename uploaded document using variable.  Save renamed document to original destination.--->
  463.             <cffile action="rename"
  464.                 source="#destination##File.ServerFile#"
  465.                 destination="#destination##Trim(renameNomination)#">    
  466.  
  467.  
  468.        
  469.             <!--- Create variable to reference the original document name and extension uploaded from client.--->          
  470.             <cfset clientCurriculumVita = #file.ClientFile#>       
  471.             <!---Create variable to reference renamed document.  Retain orignal file extension.--->  
  472.             <cfset renameCurriculumVita = "02_curriculumVita"&"."&#cffile.clientFileExt#>
  473.            
  474.             <!---Rename uploaded document using variable.  Save renamed document to original destination.--->
  475.             <cffile action="rename"
  476.                     source="#destination##File.ServerFile#"
  477.                     destination="#destination##Trim(renameCurriculumVita)#">    
  478.  
  479.  
  480.  
  481.  
  482.  
  483.  
  484.  
  485.                 <cfmail
  486.                     to="[email protected]"
  487.                     from="[email protected]"
  488.                     subject="Alvin S. Bynum Mentor Award"
  489.                     type="html"
  490.                     failto="[email protected]"
  491.                 >
  492.                 <p>Hello,</p>
  493.                 <p>
  494.                     The following nomination has been
  495.                     submitted through the <a href="#CGI.HTTP_REFERER#">Alvin S. Bynum Mentor Award web site</a> on
  496.                     #DateFormat( Now(), "mmm d, yyyy" )# at
  497.                     #TimeFormat( Now(), "h:mm TT" )#.
  498.                 </p>
  499.                
  500.                 <h3>Nominee Details</h3>
  501.                 <ul>
  502.                     <li>First Name: #form.fname#</li>
  503.                     <li>Last Name:  #form.lname#</li>
  504.                    
  505.                 </ul>
  506.                
  507.                 <h3>Document Details</h3>
  508.                 <ul>
  509.                     <li>Nomination Letter:  #clientNominationLetter#</li>
  510.                     <li>Curriculum Vita:  #clientCurriculumVita#</li>
  511.                    
  512.                 </ul>
  513.                 <br />
  514.                    
  515.                 <p>Thank you,</p>
  516.                 <p>Academic Affairs<br />
  517.                     AO 126<br />
  518.                     317.274.4627 phone<br />
  519.                     317.278.0695 fax<br />
  520.                     <a href="http://academicaffairs.iupui.edu">http://academicaffairs.iupui.edu</a><br />
  521.                     <a href="mailto:[email protected]">[email protected]</a></p>
  522.            
  523.        
  524.             </cfmail>
  525.  
  526.  
  527.  
  528.  
  529.             <!---
  530.                 At this point, you would probably forward
  531.                 the user to another page using something
  532.                 like CFLocation.
  533.             --->
  534.             <cflocation url="#cgi.SCRIPT_NAME#?reg=y" addtoken="no">
  535.         </cfif>
  536.  
  537.     </cfif>
  538.  
  539. </cfsilent>
  540.  
  541. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  542. <html xmlns="http://www.w3.org/1999/xhtml">
  543. <head>
  544. <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
  545. <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js"></script>
  546.  
  547. <script>
  548. $(document).ready(function() {
  549.     $("#captchaDiv").load("showcaptcha.cfm");  
  550.    
  551.     $("#reloadLink").click(function(e) {
  552.         $("#captchaDiv").load("showcaptcha.cfm");          
  553.         e.preventDefault();
  554.     });
  555. })
  556. </script>
  557. </head>
  558.             <cfoutput>
  559.  
  560.         <!--- Check to see if we have any form errors. --->
  561.         <cfif ArrayLen( arrErrors )>
  562.  
  563.             <p class="attention">
  564.                 Please review the following:
  565.             </p>
  566.  
  567.             <ul class="attention">
  568.                 <cfloop
  569.                     index="intError"
  570.                     from="1"
  571.                     to="#ArrayLen( arrErrors )#"
  572.                     step="1">
  573.  
  574.                     <li>
  575.                         #arrErrors[ intError ]#
  576.                     </li>
  577.  
  578.                 </cfloop>
  579.             </ul>
  580.  
  581.         </cfif>
  582.  
  583.        
  584.     <cfif URL.Reg EQ "Y">
  585.         <p class="attention">Thank you for submitting your profile information.</p>
  586.     <cfelse>
  587.        
  588.              <form
  589.              action="#cgi.SCRIPT_NAME#"
  590.              method="post"
  591.              enctype="multipart/form-data">
  592.              
  593.              <!--- Our form submission flag. --->
  594.              <input type="hidden" name="submitted" value="1" />
  595.               <p>Fields marked <span class="required">&##8727;</span> are required.</p>
  596.              
  597.                
  598.              
  599.                 <fieldset>  
  600.                     <legend>Nominee  Information</legend>
  601.                         <div class="notes">
  602.                             <h4>Eligibility</h4>
  603.                                 <p class="last">Those eligible include full- and part-time faculty and academic  professional staff, including all advisors, mentors, and counselors at the TE,  PA, and PB employee classifications.</p>
  604.                 </div>
  605.                         <ol>  
  606.                             <li>  
  607.                                 <label for="first name"><span class="required">*</span>First Name:</label>  
  608.                                     <input name="fname" type="text" maxlength="25" value="#form.fname#"/>  
  609.                             </li>  
  610.                             <li>
  611.                                 <label for="last name"><span class="required">*</span>Last Name:</label>  
  612.                                     <input name="lname" type="text" maxlength="25" value="#form.lname#" />  
  613.                             </li>
  614.                             <li>
  615.                                 <label for="university id"><span class="required">*</span>University ID:</label>  
  616.                                     <input  name="uid" type="text" maxlength="10" value="#form.uid#"/>  
  617.                             </li>
  618. <!---                      
  619.                             <li>
  620.                                 <label for="classification"><span class="required">*</span>Classification:</label>
  621.                                     <select name="classification" />
  622.                                             <option value="">&ndash; select &ndash;</option>
  623.                                             <option value="faculty"<cfif classification EQ "faculty"> selected="selected"</cfif>>Faculty (Full- or part-time)</option>
  624.                                             <option value="staff" <cfif classification EQ "staff"> selected="selected"</cfif>>Professional Staff (TE, PA, or PB)</option>
  625.                                     </select>
  626.                             </li>
  627.                            
  628.                            
  629.                             <br />
  630.                             <li>
  631.                                 <label for="school"><span class="required">*</span>School:</label>  
  632.                                     <input name="school" type="text" maxlength="50" value="#form.school#" />  
  633.                             </li>
  634.                             <li>
  635.                                 <label for="department">Department:</label>  
  636.                                     <input name="department"  type="text" maxlength="50" value="#form.department#" />  
  637.                             </li>
  638.                             <li>
  639.                                 <label for="address 1"><span class="required">*</span>Campus Address:</label>  
  640.                                     <input  name="address1" type="text" maxlength="50" value="#form.address1#"/>  
  641.                             </li>
  642.                             <li>
  643.                                 <label for="address 2">&nbsp;</label>  
  644.                                     <input name="address2" type="text" maxlength="50" value="#form.address2#" />  
  645.                             </li>
  646.                             <li>  
  647.                                 <label for="email"><span class="required">*</span>University Email:</label>  
  648.                                     <input name="email" type="text" maxlength="20" value="#form.email#" />  
  649.                             </li>  
  650.                             <li>  
  651.                                 <label for="phone"><span class="required">*</span>University Phone Number:</label>  
  652.                                     <input name="phone" type="text" maxlength="20" value="#form.phone#" />  
  653.                             </li>  
  654.                         </ol>  
  655.                 </fieldset>
  656.                
  657.                 <fieldset class="nominator">  
  658.                     <legend>Nominator Information</legend>
  659.                         <div class="notes">
  660.                             <h4>Nominator Information</h4>
  661.                                 <p class="last">Please enter your  information.</p>
  662.                                 <p class="last"><br />
  663.                                   For jointly prepared nominations, only one Nominator's information can be entered as a contact.  All other Nominators can be accounted for at the end of the Nomination Letter.</p>
  664.                         </div>
  665.                             <ol>  
  666.                                 <li>  
  667.                                     <label for="NOMfname"><span class="required">*</span>First Name:</label>  
  668.                                         <input  name="NOMfname" type="text" maxlength="25" value="#form.NOMfname#" />  
  669.                                 </li>  
  670.                                 <li>
  671.                                     <label for="NOMlname"><span class="required">*</span>Last Name:</label>  
  672.                                         <input name="NOMlname" type="text" maxlength="25" value="#form.NOMlname#" />  
  673.                                 </li>
  674.                                 <li>
  675.                                     <label for="NOMuid"><span class="required">*</span>University ID:</label>  
  676.                                         <input name="NOMuid"  type="text" maxlength="10" value="#form.NOMuid#" />  
  677.                                 </li>
  678.                                 <li>
  679.                                     <label for="NOMschool"><span class="required">*</span>School:</label>  
  680.                                         <input name="NOMschool" type="text" maxlength="50" value="#form.NOMschool#" />  
  681.                                 </li>
  682.                                 <li>
  683.                                     <label for="NOMdepartment">Department:</label>  
  684.                                         <input name="NOMdepartment" type="text" maxlength="50" value="#form.NOMdepartment#" />  
  685.                                 </li>
  686.                                 <li>
  687.                                     <label for="NOMaddress1"><span class="required">*</span>Campus Address:</label>  
  688.                                         <input name="NOMaddress1" type="text" maxlength="50" value="#form.NOMaddress1#" />  
  689.                                 </li>
  690.                                 <li>
  691.                                     <label for="NOMaddress2">&nbsp;</label>  
  692.                                         <input name="NOMaddress2" type="text" maxlength="50" value="#form.NOMaddress2#" />  
  693.                                 </li>
  694.                                 <li>  
  695.                                     <label for="NOMemail"><span class="required">*</span>University Email:</label>  
  696.                                         <input name="NOMemail" type="text" maxlength="20" value="#form.NOMemail#" />  
  697.                                 </li>
  698.                                 <li>  
  699.                                     <label for="NOMphone"><span class="required">*</span>University Phone:</label>  
  700.                                         <input name="NOMphone" type="text" maxlength="20" value="#form.NOMphone#" />  
  701.                                 </li>
  702. --->               
  703.                                
  704.                             </ol>  
  705.                 </fieldset>
  706.                
  707.                
  708.                
  709.                 <fieldset>
  710.                     <ol>
  711.                         <li>
  712.                             <label for="nomination-letter"><span class="required">*</span>Nomination Letter:</label>  
  713.                                 <input  type="file" name="nominationLetter" />  
  714.                         </li>
  715.                         <li>
  716.                             <label for="curriculum-vita"><span class="required">*</span>Curriculum Vita:</label>
  717.                                 <input type="file" name="curriculumVita" />
  718.                         </li>
  719.                         <li>
  720.                             <label for="recommendation"><span class="required">*</span>Recommendation Letter 1:</label>
  721.                                 <input type="file" name="recommendation" tabindex="22">
  722.                         </li>
  723.                        
  724.                         <li>
  725.                             <label for="security"><span class="required">*</span>Enter Text Below (case-sensitive):</label>
  726.                                 <input id="captcha" name="captcha" type="text" />
  727.                         </li>
  728.                        
  729.                             <div id="captchaDiv"></div>
  730.                             Can't read? <a href="" id="reloadLink">Reload</a>                          
  731.                     </ol>
  732.                
  733.                
  734.                 </fieldset>
  735.                                                                                                            
  736.                     <br />
  737.                     <input type="hidden" value="#Now()#" />
  738.                     <input type="submit" value="Submit" />
  739.             </form>
  740.                  </cfif>    
  741.         </cfoutput>
  742.  
  743.       <div class="request"></div>
  744. </body>
  745. </html>
Advertisement
Add Comment
Please, Sign In to add comment