home *** CD-ROM | disk | FTP | other *** search
- <!--- This template lists the employees, grouped by department, and lets
- the user click on an employee to view details --->
-
- <!--- These two lines set up the <HEAD></HEAD>,
- title, and nav bar --->
- <CFSET Title="Development">
- <CFINCLUDE TEMPLATE="_header.cfm">
-
- <!--- Get employees (and their departments); and order by
- department because that's what we're going to group by --->
- <CFQUERY DATASOURCE="CFexamples" NAME="GetEmployees">
- SELECT * FROM EmpEmployees
- WHERE EmpEmployees.DepartmentID = 1
- ORDER BY EmpEmployees.DepartmentID, LastName, FirstName
- </CFQUERY>
-
- <CFOUTPUT QUERY="GetEmployees" GROUP="DepartmentID">
- <table width="100%" border="0" cellspacing="0" cellpadding="0">
-
- <!--- Now we start outputting for every record
- (i.e. every employee) --->
- <CFOUTPUT>
- <TR>
- <td align="RIGHT" valign="TOP">
- <cfif #picture# neq "" >
- <img src="#picture#" height="200" hspace=25 border=0 alt="">
- </cfif>
- </td>
- <td valign="top" width="100%">
- <font face="Myriad Web, Verdana, Helvetica" size="+2">
- <A HREF="Details.cfm?EmpID=#EmpID#">#FirstName# #LastName#</A><br>
- </font>
- <FONT FACE="Arial, Geneva, Helvetica" SIZE="-2">
- #Title#<BR>
- <br>
- </font>
- <FONT FACE="Arial, Geneva, Helvetica" SIZE="-1">
- <p>
- #personal#
- </p>
- <p>
- #Phone#<BR>
- <A HREF="mailto:#Email#">#Email#</A><BR>
- </p>
- </font>
- </TD>
- <td width="100" nowrap> </td>
- </TR>
- <tr><td height=35> </td></tr>
- </CFOUTPUT>
-
- </CFOUTPUT>
-
- </TABLE>
- <cfinclude template="_footer.cfm">
- </BODY>
- </HTML>
-