<!--- 
Module:         dsp_ContactForm.cfm
Author:         M Jeo, L Chalnick
Function:       This template is the form that will be used to update 
                and add contacts.
Date created:   4/25/2002
Modified:       11/28/2004
--->
<cfoutput>
<table border="0">
<cfform action="#self#?fuseaction=#XFA.contactFormAction#" method="post">
<input type="Hidden" name="con_id" value="#GetContactDetail.ContactID#">
<!--- Hidden field to store the event type ( update or add ) --->
<input type="Hidden" name="event" value="#attributes.event#">
<tr valign="top">
  <td colspan="2">* indicates required field</td>
</tr>
<tr valign="top">
  <td>Name:</td>
  <td><cfinput type="Text" name="FirstName" value="#GetContactDetail.FirstName#" size="25" required="Yes" message="First Name is required">
    <cfinput type="Text" name="LastName" value="#GetContactDetail.LastName#" size="25" required="Yes" message="Last Name is required">*</td>
</tr>
<tr valign="top">
  <td>Address:</td>
  <td>
        <input type="Text" name="Address" value="#GetContactDetail.Address#" size="50">
  </td>
</tr>
<tr valign="top">
  <td>City/State/Zip</td>
  <td>
    <input type="Text" name="City" value="#GetContactDetail.City#" size="25">
    <input type="Text" name="State" value="#GetContactDetail.State#" size="3">
    <input type="Text" name="Zip" value="#GetContactDetail.Zip#" size="10">
  </td>
</tr>
<tr valign="top">
  <td>Country:</td>
  <td>
    <input type="Text" name="Country" value="#GetContactDetail.Country#">
  </td>
</tr>
<tr valign="top">
  <td>Phone:</td>
  <td><input type="Text" name="phone" value="#GetContactDetail.phone#"></td>
</tr>
<tr valign="top">
  <td>E-Mail:</td>
  <td><input type="Text" name="email" value="#GetContactDetail.email#" size="50"></td>
</tr>
<tr valign="top">
  <td>Login Name:</td>
  <td><cfinput type="Text" name="UserLogin" value="#GetContactDetail.userlogin#" required="Yes" message="Login name is required">*</td>
</tr>
<tr valign="top">
  <td>Password:</td>
  <td><cfinput type="password" name="UserPassword" value="#GetContactDetail.userpassword#" required="Yes" message="Password is required">*</td>
</tr>
<tr valign="top">
  <td>Mailing List?:</td>
  <td><input type="Checkbox" name="MailingList" #iif(GetContactDetail.mailinglist eq 0, de(""), de("CHECKED"))#></td>
</tr>
<tr valign="top">
  <td>&nbsp;</td>
  <td>&nbsp;<br>
    <cfif attributes.event eq "update">
      <input type="submit" value="Save Changes">
    <cfelse>
      <input type="submit" value="Add Contacts">
    </cfif>
    <input type="button" value="Cancel" onClick="history.back();">
  </td>
</tr>
</cfform>
</table>
</cfoutput>