$lastyear) && !isset($_GET["temp"])) { Header("Location: http://cinema.ptgate.pt/arquivo/oscares"); exit(); } require("../incs/inc.php"); $h_title = "Óscares $ano"; require("../incs/header.php"); /*----------------* * PRE-LOAD ITEMS * *----------------*/ $moviearray = array(); $peoplearray = array(); require("../incs/awards/oscars$ano.php"); if($ano < 2011) { // get unique codes into arrays $cnt = 0; for($a=0;$a

Óscares

poster

Academy Awards

data da cerimónia
" . $cerimonia_data . "

"; echo "apresentação
" . $cerimonia_apresentacao . "

"; echo "outros anos"; for($i=$firstyear;$i<=$lastyear;$i++) { if(($i - $firstyear) % 6 == 0) echo "
"; if ($i!=$ano) { echo "$i  "; } else { echo "$i  "; } } ?>

2010) { unset($award); unset($award_type); unset($award_winner); unset($award_nominees); $items = mysql_query("SELECT awardsItem.item, awardsItem.type, awardsItem.won, awardsPrize.name FROM awardsItem INNER JOIN awardsPrize ON awardsPrize.id = awardsItem.refAwardsPrize INNER JOIN awardsYear ON awardsYear.id = awardsPrize.refAwardsYear WHERE awardsYear.year = $ano AND refAwards = 1 ORDER BY awardsPrize.orderP, awardsItem.won DESC"); $a = -1; $prize = ""; while($item = mysql_fetch_array($items)) { if($item["name"] != $prize) { $a++; $prize = $item["name"]; $award[$a] = $prize; $award_type[$a] = $item["type"]; if($item["won"] == 1) $award_winner[$a] = $item["item"]; } if(!$item["won"]) { $len = sizeof($award_nominees[$a]); $award_nominees[$a][$len] = $item["item"]; } } } for($a=0;$a" . $title[0] . "
"; $winner = explode("|", $award_winner[$a]); $win = $winner[0]; $ext = $winner[1]; $thr = (sizeof($winner) > 2 ? $winner[2] : ""); switch($award_type[$a]) { case 1: case 4: //--------------// // MOVIE AWARDS // //--------------// // image if(is_numeric($win)) echo ""; echo "\"poster\""; if(is_numeric($win)) echo ""; // winner if(is_numeric($win)) { $varname = "movie$win"; echo "" . $$varname . ""; } elseif(!empty($win)) echo "" . $win . ""; //htmlspecialchars if($ext) echo " ($ext)"; echo "
"; // nominees echo "

nomeados:
"; for($i=0;$i" . $$varname . ""; } else echo CorrectTitle($nom[0]); // htmlspecialchars if($nom[1]) echo " (" . $nom[1] . ")"; echo "
"; } break; case 2: //---------------// // PEOPLE AWARDS // //---------------// // image if(is_numeric($win)) echo ""; echo "\"fotografia\""; if(is_numeric($win)) echo ""; // winner if(is_numeric($win)) { $varname = "person$win"; echo "" . $$varname . ""; } elseif(!empty($win)) echo "" . $win . ""; if($ext) { if(is_numeric($ext)) { $varname = "movie$ext"; echo " (" . $$varname . ")"; } else echo " (" . CorrectTitle($ext) . ")"; // htmlspecialchars } echo "
"; // nominees echo "

nomeados:
"; for($i=0;$i" . $$varname . ""; } else echo $nom[0]; if($nom[1]) { // the corresponding movie... if(is_numeric($nom[1])) { $varname = "movie" . $nom[1]; echo " (" . $$varname . ")"; } else echo " (" . CorrectTitle($nom[1]) . ")"; // htmlspecialchars } echo "
"; } break; case 3: //-------------// // SONG AWARDS // //-------------// //(title,authors,movie) // image (movie) if(is_numeric($thr)) echo ""; echo "\"poster\""; if(is_numeric($thr)) echo ""; // winner if(!empty($win)) { echo "\"$win\"
$ext ("; if(is_numeric($thr)) { $varname = "movie$thr"; echo "" . $$varname . ""; } else echo CorrectTitle($thr); //htmlspecialchars( echo ")"; } echo "
"; // nominees echo "

nomeados:
"; for($i=0;$i" . $nom[1] . " ("; if(is_numeric($nom[2])) { $varname = "movie" . $nom[2]; echo "" . $$varname . ""; } else echo CorrectTitle($nom[2]); //htmlspecialchars( echo ")
"; } break; } echo "
"; } if(isset($candidatos_estrangeiro) && $candidatos_estrangeiro != 0) { $s = "

pré-candidatos a melhor filme estrangeiro

"; for($i=0;$i" : "") . htmlspecialchars(CorrectTitle($title[0])) . ($title[1] == "Portugal" || $title[1] == "Por" ? "" : "") . " (" . $title[1] . ")
"; } echo "$s
"; } if(isset($candidatos_animacao) && $candidatos_animacao != 0) { $s = "

pré-candidatos a melhor filme de animação

"; for($i=0;$i"; } echo "$s
"; } ?>