Exemple #1
0
     echo "</ul></td></tr>\n";
 }
 # Seasons
 if ($movie->is_serial() || $movie->seasons()) {
     ++$rows;
     $episodes = $movie->episodes();
     echo '<tr><td valign=top><b>Episodes:</b></td><td>';
     foreach ($episodes as $season => $ep) {
         foreach ($ep as $episodedata) {
             echo '<b>Season ' . $episodedata['season'] . ', Episode ' . $episodedata['episode'] . ': <a href="' . $_SERVER["PHP_SELF"] . '?mid=' . $episodedata['imdbid'] . '">' . $episodedata['title'] . '</a></b> (<b>Original Air Date: ' . $episodedata['airdate'] . '</b>)<br>' . $episodedata['plot'] . '<br/><br/>';
         }
     }
     echo "</td></tr>\n";
 }
 # Locations
 $locs = $movie->locations();
 if (!empty($locs)) {
     ++$rows;
     echo '<tr><td valign="top"><b>Filming Locations:</b></td><td><ul>';
     foreach ($locs as $loc) {
         if (empty($loc['url'])) {
             echo '<li>' . $loc['name'] . '</li>';
         } else {
             echo '<li><a href="http://' . $movie->imdbsite . $loc['url'] . '">' . $loc['name'] . '</a></li>';
         }
     }
     echo "</ul></td></tr>\n";
 }
 # Selected User Comment
 $comment = $movie->comment();
 if (!empty($comment)) {