<!---
listContacts.cfm
author: Leon Chalnick, inspired by Ben Edwards' contact manager
params: request.allContacts - produced by ContactManager.allContacts()

Lists all contacts, grouped by their security level
--->
<cfset allContacts = request.allContacts>
<cfoutput query="allContacts" group="con_group"> <font size="+1"><b>#allContacts.con_group#</b></font> 
  <br>
  <table border="0" bgcolor="##c0c0c0" cellspacing="1" cellpadding="3" width="700">
    <tr valign="top" bgcolor="##efefef"> 
      <td width="200">Name</td>
      <td width="200">Phone</td>
      <td>E-Mail</td>
    </tr>
    <cfoutput> 
      <tr valign="top" bgcolor="white"> 
        <td width="200"><a href="index.cfm?event=viewContact&id=#allContacts.ContactID#">#trim(allContacts.lastname)#, 
          #trim(allContacts.firstname)#</a></td>
        <td width="200">#TRIM(allContacts.Phone)#</td>
        <td>#TRIM(allContacts.email)#</td>
      </tr>
    </cfoutput> 
  </table>
</cfoutput> 
