<!---<cfif IsDefined("url.Status")>
	<cfif url.Status EQ 'Active'><cfset Status = 'Active'><cfelse><cfset Status ='Inactive'></cfif>
<cfelse>
	<cfset Status = 'Active'>
</cfif>--->
<cfoutput>
<cfquery  name="GetEmployeeList" datasource="#Application.DataSrc#">
Select a.Agency_Name,a.Agency_Address1,a.Agency_City,a.Agency_State,a.Agency_Zip,a.Agency_Contact_Phone,a.Agency_Fax,	a.Natl_Provider_ID,e.Last_Name,e.First_Name,e.Address1,e.Address2,e.City,e.State,e.Zip,e.Home_Phone,e.Cell_Phone,e.Email,e.Birthdate,e.HireDate,e.Terminatdate,e.DistanceTravel,e.CEU_Annual,e.Inservice_Annual,e.Professional,e.Drivers,e.Auto,e.Background,e.Physical,e.CPR,e.TB,e.Skill,e.Skill2,e.Skill3 from #Request.prefix_db_lookup#.Agency a inner join #Request.prefix_db_lookup#.Employee e on a.agency_id = e.agency_id where a.agency_id = #session.AgencyID#  and e.Status = 'inactive' AND e.EmployeeType != 'Physician' ORDER BY e.Last_Name
</cfquery>
</cfoutput>
<cfdocument  format="pdf" orientation="portrait" overwrite="yes">
	<cfoutput>
		<table border="0" cellpadding="0" cellspacing="0" width="100%">
			<tr>
				<td align="left" valign="top" style="font-size:12px;font-family:'Courier New';line-height:20px">
					<cfoutput>Inactive</cfoutput>
					#GetEmployeeList.Agency_Name# <br>
					#GetEmployeeList.Agency_Address1# <br>
					#GetEmployeeList.Agency_City#, &nbsp;&nbsp;#GetEmployeeList.Agency_State# &nbsp;&nbsp;#GetEmployeeList.Agency_Zip# &nbsp;&nbsp;#GetEmployeeList.Agency_Contact_Phone# &nbsp;&nbsp;#GetEmployeeList.Agency_Fax# <br>
					#GetEmployeeList.Natl_Provider_ID# 
				</td>
			</tr>
			<tr>
				<td height="5px">					
				</td>
			</tr>
			<tr>
				<td align="left" valign="top" style="font-size:14px;font-family:Arial;font-weight:bold;line-height:20px">
					Employee List					
				</td>
			</tr>
			<tr>
				<td colspan="2" style="background-color:black">
				</td>
			</tr>
			<tr>
				<td height="10px">					
				</td>
			</tr>
			<cfloop query="GetEmployeeList">
				<cfif #GetEmployeeList.recordcount#  GT 0>
				<tr>									
					<td align="left" valign="top" style="font-size:12px;font-family:'Courier New';line-height:20px">
						<b>#Last_Name#, #First_Name#</b> #Skill#, #Skill2#, #Skill3#<br>
						#Address1#, #Address2#<br>
						#City#, #State# #Zip#<br>
						<table border="0" cellpadding="0" width="100%" cellspacing="0" style="font-size:12px;font-family:'Courier New';line-height:20px">
							<tr>
								<td width="50%">
									Home_Phone:&nbsp;&nbsp;#Home_Phone#
								</td>
								<td>
									Cell_Phone:&nbsp;&nbsp;#Cell_Phone#
								</td>
							</tr>
							<tr>
								<td colspan="2">
									Email:&nbsp;&nbsp;#Email#
								</td>
							</tr>
							<tr>
								<td>
									BirthDate:&nbsp;&nbsp; #DateFormat(Birthdate,"dd-mm-yyyy")#
								</td>
								<td>
									Hire Date:&nbsp;&nbsp;#DateFormat(HireDate,"dd-mm-yyyy")#
								</td>
							</tr>
							<tr>
								<td>
									Termination Date:&nbsp;&nbsp;#DateFormat(Terminatdate,"dd-mm-yyyy")#
								</td>
							</tr>
							<tr>
								<td>
									Travel Distance
								</td>
								<td>
									#DistanceTravel#
								</td>
							</tr>
							<tr>
								<td>
									Annual CEU Requirement
								</td>
								<td>
									#CEU_Annual#
								</td>
							</tr>
							<tr>
								<td>
									Annual Inservice Requirement
								</td>
								<td>
									#Inservice_Annual#
								</td>
							</tr>
							<tr>
								<td>
									Professional License Expiration
								</td>
								<td>
									#Professional#
								</td>
							</tr>
							<tr>
								<td>
									Drivers License Expiration
								</td>
								<td>
									#Drivers#
								</td>
							</tr>
							<tr>
								<td>
									Auto Insurance Expiration
								</td>
								<td>
									#Auto#
								</td>
							</tr>
							<tr>
								<td>
									Background Check Expiration
								</td>
								<td>
									#Background#
								</td>
							</tr>
							<tr>
								<td>
									Physical Expiration
								</td>
								<td>
									#Physical#
								</td>
							</tr>
							<tr>
								<td>
									CPR Expiration
								</td>
								<td>
									#CPR#
								</td>
							</tr>
							<tr>
								<td>
									TB Expiration
								</td>
								<td>
									#TB#
								</td>
							</tr>
							<tr>
								<td colspan="2" style="background-color:black">
								</td>
							</tr>
							<tr>
								<td height="5px">					
								</td>
							</tr>
						</table>
					</td>
				</tr>
				</cfif>		
			</cfloop>
		</table>
	</cfoutput>
</cfdocument>
