0 ? ", com $litactors" : ""); $strppl = $litdirectors; $strnew = ""; $strout = ""; $pos = 1; $role = 0; while($person = mysql_fetch_array($people)) { if($person["role"][0] == "i" && $role == 0) { $role = 1; $strout = "De " . trim($strnew . $strppl, " ,") . ", com "; $strppl = $litactors; $strnew = ""; $pos = 1; } if($person["pos"] == $pos) { // name to be inserted at start $strnew .= "" . $person["nome"] . ", "; $pos += 1; } elseif(!(strpos($strppl,$person["nome"]) === false)) { // name in "realizador"/"interpretes" $strppl = str_replace($person["nome"], "" . $person["nome"] . "", $strppl); } else { // name to be inserted in the end $strppl .= ", " . $person["nome"] . ""; } } // directors but no actors? if($role == 0) return "De " . trim($strnew . $strppl, " ,") . (strlen($litactors) > 0 ? ", com $litactors" : ""); // both return $strout . trim($strnew . $strppl, " ,"); } $h_title = "Cinema PTGate"; require("incs/header.php"); ?> #frontmain .crtslider {text-align:right;position:absolute;bottom:22px;right:20px;width:522px;height:60px;} #frontmain .crtslider img {height:60px;width:106px;position:relative;margin-left:10px;border:solid 2px #000;cursor:pointer} #frontmain .crtslider img.on, #frontmain .crtslider img:hover {border:solid 2px #f00;}
" . CorrectTitle($film["trad"]) . "

\"" . CorrectTitle($film["filme"]) . "\" ({$film["ano"]})
{$film["genero"]}

" . ShowPeople($film["code"], $film["realizador"], $film["interpretes"]) . "

" . (strlen($film["texto"]) > 0 ? TrimBySize($film["texto"], 250, true) . " mais ››
" : "") . "

"; $nowshowimage = "/img/cartaz/" . $tmp["mday"] . ".jpg"; ?> outras estreias

cartaz

cartaz