";
if($_SESSION['role'] == 'admin'){
print " ";
print "  | ";
}
print "";
$poster = "pix/poster/".$sor['movie_id'].".jpg" ;
if (file_exists($poster)) {
print " ";
} else {
print " ";
}
print " | ";
print "";
if ( substr( $sor["language"] , 0 , 3) == "HUN"){
print " ".$sor['hun_title'];
if ($sor['season'] > 0){
print " - " .$sor['season'] . ".".$txt['season']."";
}
print " [" .$sor['title'] ;
if ($sor['season'] > 0){
print " - ".$txt['season']." " .$sor['season'] ;
}
print "] ";
} else {
print "".$sor['title'];
if ($sor['season'] > 0){
print " - ".$txt['season']." " .$sor['season'] ;
}
print " (" .$sor['hun_title'];
if ($sor['season'] > 0){
print " - " .$sor['season'] . ".".$txt['season']."";
}
print ") ";
}
print " ";
print "".$sor["year"]." ";
/*
if ( substr( $sor["language"] , 0 , 3) == "HUN"){
print " | ".$sor['hun_title']." | [ " .$sor['title'] . " ] | ";
} else {
print "".$sor['title']." | ( " .$sor['hun_title'] . " ) | ";
}
print "".$sor["year"]." | ";
*/
print "";
//értékelősblokk
if($_SESSION['belepett'] == true){
print "";
$nick = $_SESSION['nick'];
$parancs2 = "SELECT movie_rate FROM rate_movies WHERE nick='".$nick."' AND movie_id='" . $sor['movie_id']. "';" ;
$eredmeny2 = mysql_query($parancs2, $conn) or die("Nem tudtam az adatokat lekérni. A hiba oka: ".mysql_error());
while ( $sor2 = mysql_fetch_array($eredmeny2)) {
$movie_rate= $sor2['movie_rate'];
}
//print $sorszam;
if($movie_rate){
print " ";
print " | ";
print " ";
$ratetask0="mod";
$ratetask1="mod";
$ratetask2="mod";
$ratetask3="mod";
$ratetask4="mod";
$ratetask5="mod";
switch ($movie_rate) {
case 0:
$checkedrate0="checked";
$ratetask0="not";
break;
case 1:
$checkedrate1="checked";
$ratetask1="not";
break;
case 2:
$checkedrate2="checked";
$ratetask2="not";
break;
case 3:
$checkedrate3="checked";
$ratetask3="not";
break;
case 4:
$checkedrate4="checked";
$ratetask4="not";
break;
case 5:
$checkedrate5="checked";
$ratetask5="not";
break;
}
}else{
$checkedrate0="checked";
$ratetask0="ins";
$ratetask1="ins";
$ratetask2="ins";
$ratetask3="ins";
$ratetask4="ins";
$ratetask5="ins";
print " | ";
print " ";
}
//print " ? 1 2 3 4 5 ";
print "5 ";
print "4 ";
print "3 ";
print "2 ";
print "1 ";
print "? ";
$movie_rate="";
$ratetask="";
$checkedrate0="";
$checkedrate1="";
$checkedrate2="";
$checkedrate3="";
$checkedrate4="";
$checkedrate5="";
print " | ";
}
print "
";
}
if($_SESSION['belepett'] == true){
print "