<!--- 
 Filename: UsingFilmDataCFC1_Detail.cfm
 Author: Nate Weiss (NMW)
 Purpose: Uses the FilmDataCFC component to display one film
--->

<html>
<head><title>Using FilmDataCFC</title></head>
<body>

<!--- We need to have a FilmID parameter in the URL --->
<cfparam name="URL.filmID" type="numeric">

<!--- Call the GetFilmData() method of the FilmDataCFC1 component --->
<cfinvoke component="FilmDataCFC1" method="getFilmData"
 filmID="#URL.filmID#"
 returnVariable="filmData">

<!--- Produce the simple film display ---> 
<cfoutput>
 <h3>#filmData.MovieTitle#</h3>
 <p>#filmData.Summary#</p>
 
 <!--- Include a list of actors --->
 <p><b>Starring:</b>
 <ul style="margin-top:2px">
 <cfloop query="filmData.ActorsQuery">
 <li>
 <a 
 href="UsingFilmDataCFC1.cfm?actorID=#actorID#"
 title="Click for films this actor stars in.">#NameFirst# #NameLast#</a>
 </li>
 </cfloop>
 </ul>
</cfoutput> 
 
</body>
</html>
