<CFSETTING ENABLECFOUTPUTONLY="YES">
<!--- ------------------------------------------------------------------------------------------------
This template is the form that will be used to update and add contacts
-------------------------------------------------------------------------------------------------- --->

<CFSETTING ENABLECFOUTPUTONLY="NO">

<CFOUTPUT>
<TABLE BORDER="0">
<CFFORM ACTION="index.cfm?fuseaction=#Attributes.event#Contact" 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>