Ejemplo n.º 1
0
 if (!empty($pm)) {
     echo "<TR><TD><B>Biographical movies:</B></TD><TD>";
     echo "<table align='left' border='1' style='border-collapse:collapse;background-color:#ddd;'><tr><th style='background-color:#07f;'>Movie</th><th style='background-color:#07f;'>Year</th></tr>";
     $tc = count($pm);
     for ($i = 0; $i < $tc; ++$i) {
         echo "<tr><td><a href='imdb.php?mid=" . $pm[$i]["imdb"] . "&engine=" . $_GET['engine'] . "'>" . $pm[$i]["name"] . "</a></td><td>";
         if (empty($pm[$i]["year"])) {
             echo "&nbsp;</td></tr>";
         } else {
             echo $pm[$i]["year"] . "</td></tr>";
         }
     }
     echo "</table></TD></TR>\n";
 }
 # Interviews (articles, pictorials, and magcovers work the same)
 $iv = $person->interviews();
 if (!empty($iv)) {
     echo "<TR><TD><B>Interviews:</B></TD><TD>";
     echo "<table align='left' border='1' style='border-collapse:collapse;background-color:#ddd;'><tr><th style='background-color:#07f;'>Interview</th><th style='background-color:#07f;'>Details</th><th style='background-color:#07f;'>Year</th><th style='background-color:#07f;'>Author</th></tr>";
     $tc = count($iv);
     for ($i = 0; $i < $tc; ++$i) {
         echo "<tr><td><a href='http://" . $person->imdbsite . $iv[$i]["inturl"] . "'>" . $iv[$i]["name"] . "</a></td><td>" . $iv[$i]["details"] . "</td><td>" . $iv[$i]["date"]["full"] . "</td><td>";
         if (empty($iv[$i]["author"])) {
             echo "&nbsp;</td></tr>";
         } else {
             echo "<a href='http://" . $person->imdbsite . $iv[$i]["auturl"] . "'>" . $iv[$i]["author"] . "</a></td></tr>";
         }
     }
     echo "</table></TD></TR>\n";
 }
 echo '</TABLE><BR>';