<!--- 
viewContact.cfm 
Leon Chalnick, inspired by Ben Edwards' contact manager 

params: request.contact - this object is produced as part of the viewContact
        event.

This page-view retrieves requested contact's data and formats it for output.
It does this by calling a variety of methods that are part of the contact.cfc.

It includes a form at the bottom which triggers the editContact event. This
contact's ID is added when the form is submitted so that it's available to
the editContact event.
--->
<cfoutput>
<table border="0">
<tr valign="top">
  <td>Name:</td>
  <td><b>#REQUEST.contact.getFirstName()# #REQUEST.contact.getLastName()#</b></td>
</tr>
<tr valign="top">
  <td>Address:</td>
  <td>
    #REQUEST.contact.getAddress()#<br>
    #REQUEST.contact.getCity()#
  </td>
</tr>
<tr valign="top">
  <td>Phone:</td>
  <td>#REQUEST.contact.getPhone()#</td>
</tr>
<tr valign="top">
  <td>E-Mail:</td>
  <td><a href="mailto:#request.contact.getEmail()#">#REQUEST.contact.getEmail()#</a></td>
</tr>
<tr valign="top">
  <td>User Login:</td>
  <td>#REQUEST.contact.getUserLogin()#</td>
</tr>
<tr valign="top">
  <td>Mailing List?:</td>
  <td>#IIF(REQUEST.contact.getMailinglist() EQ 0, DE("No"), DE("Yes"))#</td>
</tr>
</table>
<p>
<!--- This form generates the editContact event --->
<form action="index.cfm" method="post">
  <input type="hidden" name="event" value="editContact">
  <input type="hidden" name="id" value="#REQUEST.contact.getContactID()#">
  <input type="submit" value="Edit...">
</form>
</cfoutput>
