예제 #1
0
파일: index.php 프로젝트: stamlercas/csa
function addMovieListing()
{
    $movieList = getMovieList();
    include '../view/addMovieListing.php';
}
예제 #2
0
	<h1>Results for <?php 
echo $Fname . " " . $Lname;
?>
</h1>

<?php 
//First search if given actor has multiple entries in actor table
if (searchForDuplicateActor($Fname, $Lname)) {
    //if so, pick the one with highest movie count and lowest id number
    $actorId = getSimilarActorIdByName($Fname, $Lname);
} else {
    //else get the id of the actor directly
    $actorId = getActorIdByName($Fname, $Lname);
}
//if no actors with given name found, return null
if ($actorId == null) {
    ?>
		Actor <?php 
    echo $Fname . " " . $Lname;
    ?>
 not found.
<?php 
} else {
    //otherwise populate the result table using template
    $result = getMovieList($actorId);
    include "search-table.html";
}
?>
<hr />
<?php 
include "bottom.html";