Exemple #1
0
 echo "</HEAD>\n<BODY ONLOAD='fix_colspan()'>\n<TABLE BORDER='1' ALIGN='center' STYLE='border-collapse:collapse'>";
 # Title & year
 echo '<TR><TH COLSPAN="3" STYLE="background-color:#ffb000">';
 echo "[IMDBPHP v" . $movie->version . " Demo] Movie Details for '" . $movie->title() . "' (" . $movie->year() . ")";
 echo "<SPAN STYLE='float:right;text-align:right;display:inline !important;font-size:75%;'>Source: [{$source}]</SPAN>";
 echo "</TH></TR>\n";
 flush();
 # Photo
 echo '<TR><TD id="photocol" rowspan="29" valign="top">';
 if (($photo_url = $movie->photo_localurl()) != FALSE) {
     echo '<img src="' . $photo_url . '" alt="Cover">';
 } else {
     echo "No photo available";
 }
 # AKAs
 $aka = $movie->alsoknow();
 $cc = count($aka);
 if (!empty($aka)) {
     echo '</TD><TD valign=top width=120><b>Also known as:</b> </td><td>';
     foreach ($aka as $ak) {
         echo $ak["title"];
         if (!empty($ak["year"])) {
             echo " " . $ak["year"];
         }
         echo " =&gt; " . $ak["country"];
         if (empty($ak["lang"])) {
             if (!empty($ak["comment"])) {
                 echo " (" . $ak["comment"] . ")";
             }
         } else {
             if (!empty($ak["comment"])) {