$lastyear) && !isset($_GET["temp"])) { Header("Location: http://cinema.ptgate.pt/top/critica"); exit(); } require("../incs/inc.php"); /*---------------* * CONFIG HEADER * *---------------*/ $h_title = "Top \\ top da crítica $ano"; require("../incs/header.php"); /*-----------------* * PRE-LOAD MOVIES * *-----------------*/ require("../incs/top/top$ano.php"); // get unique codes into array $moviearray = array(); for($r=0;$r

Top

= 2008) { echo "

Média da crítica

"; $avg = mysql_query("SELECT cinebase.code,cinebase.trad,cinebase.cr FROM cinebase INNER JOIN extras ON extras.code=cinebase.code WHERE YEAR(extras.estreiaPT)=$ano AND crV >= 5 ORDER BY cr DESC LIMIT 15"); $a = mysql_fetch_array($avg); $code=$a["code"]; $imgpath = (!file_exists($_SERVER["DOCUMENT_ROOT"] . "/Movies/$code.jpg") ? "/imgs/noimage.gif" : "/Movies/$code.jpg"); echo "\"poster\""; echo "" . number_format($a["cr"]/10,1) . " " . CorrectTitle($a["trad"]) . "
"; while($a = mysql_fetch_array($avg)) { echo "" . number_format($a["cr"]/10,1) . " " . CorrectTitle($a["trad"]) . "
"; } } ?>

outros anos

$i  "; } else { echo "" . $i . "  "; } } ?>
" . $rev[0] . " (" . $rev[1] . ")
"; // first movie $code = $topreviewer[$r][0]; $imgpath = (!is_int($code) || !file_exists($_SERVER["DOCUMENT_ROOT"] . "/Movies/$code.jpg") ? "/imgs/noimage.gif" : "/Movies/$code.jpg"); if(is_int($code)) echo ""; echo "\"poster\""; if(is_int($code)) echo ""; if(is_int($code)) { $varname="movie$code"; echo "" . $$varname . "
"; } else echo "$code
"; // the rest for($i=1;$i" . $$varname . "
"; } else echo "$code
"; } echo "
"; } ?>