Last active
December 16, 2016 20:54
-
-
Save mcmullengreg/3da79c068533273ff79d875f18962f06 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<cffunction name="phoneFormat"> | |
<cfargument name="phoneNumber"> | |
<cfset areacode = left(phoneNumber, 3)> | |
<cfset firstthree = mid(phoneNumber, 4, 3)> | |
<cfset lastfour = right(phoneNumber, 4)> | |
<cfreturn "(#areacode#) #firstthree#-#lastFour#"> | |
</cffunction> | |
<cfif structKeyExists(form, "submit")> | |
<cfoutput> | |
<p style="margin: 0 0 3px; font: 11px Helvetica; color: ##333333;">--------</p> | |
<p style="margin: 0 0 2px; font: 11px Helvetica; color: ##0c2340;"><b>#uCase(form.name)#</b></p> | |
<p style="margin: 0 0 2px; font: 11px Helvetica; color: ##333333;">#form.title#</p> | |
<p style="margin: 0 0 2px; font: 11px Helvetica; color: ##333333;">#form.dept#</p> | |
<p style="margin: 0 0 2px; font: 11px Helvetica; color: ##333333;"> | |
<cfif structKeyExists(form, "officePhone") and len(form.officePhone) GT 0 AND len(form.officePhone) EQ 10> | |
<b>T:</b> #phoneFormat(form.officePhone)# | |
</cfif> | |
<cfif structKeyExists(form, "cellPhone") and len(form.cellPhone) GT 0 AND len(form.cellPhone) EQ 10> | |
<b>C:</b> #phoneFormat(form.cellPhone)#</p> | |
</cfif> | |
<cfif structKeyExists(form, "fax") and len(form.fax) GT 0 AND len(form.fax) LT 10> | |
<p style="margin: 0 0 2px; font: 11px Helvetica; color: ##333333;">F: #phoneFormat(form.fax)#</p> | |
</cfif> | |
<br> | |
<p style="margin: 0 0 2px; font: 11px Helvetica; color: ##333333;"><b>Xavier University</b></p> | |
<p style="margin: 0 0 2px; font: 11px Helvetica; color: ##333333;">3800 Victory Pkwy, Cincinnati, OH 45207</p> | |
<p style="margin: 0 0 2px; font: 11px Helvetica; color: ##333333;"> | |
<a href="https://www.facebook.com/XavierUniversity">Facebook</a> | <a href="https://twitter.com/xavierUniv">Twitter</a> | |
</p><br /> | |
<p style="margin:0px;"><a href="http://www.xavier.edu/"><img src="http://www.xavier.edu/images/logos/xavier-wordmark.png" alt="Xavier University Wordmark" width="175"></a></p> | |
</cfoutput> | |
<cfelse> | |
<form method="post"> | |
<label for="name">Name</label> | |
<input name="name" type="text" /> | |
<label for="title">Title</label> | |
<input name="title" type="text" /> | |
<label for="dept">Department</label> | |
<input name="dept" type="text" /> | |
<label for="email">Email</label> | |
<input name="email" type="email" /> | |
<label for="officePhone">Office Phone:</label> | |
<input name="officePhone" type="tel" /> | |
<label for="cellPhone">Cell</label> | |
<input name="cellPhone" type="tel" /> | |
<label for="fax">Fax</label> | |
<input name="fax" type="tel" /> | |
<input type="submit" value="Get Signature" name="submit"> | |
</form> | |
</cfif> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment