" . $poll_name." - FilmO"; ?> ">
0){ $image="pix/style/poll_bullet.png"; }else{ $image="pix/style/poll_bullet.png"; } } //FILMEK if($type=="1"){ if($object_id>0){ $image="pix/poster/".$object_id.".jpg"; }else{ $image="pix/style/poll_bullet.png"; } } //SZEMELYEK if($type=="2"){ if($object_id>0){ $image="pix/person/".$object_id.".jpg"; }else{ $image="pix/style/poll_bullet.png"; } } //KULTFIGURAK if($type=="3"){ if($object_id>0){ $image="pix/cult_character/".$object_id.".jpg"; }else{ $image="pix/style/poll_bullet.png"; } } return $image; } function getAnswerText($type,$answertextstored,$object_id){ GLOBAL $conn; GLOBAL $lng; $answertext=""; //ALTALANOS if($type<1){ if($object_id>0){ $answertext="".$answertextstored."
"; }else{ $answertext="".$answertextstored."
"; } } //FILMEK if($type=="1"){ if($object_id>0){ $parancs3="SELECT title, hun_title, eng_title, year, season FROM movies WHERE movie_id='".$object_id."' "; $eredmeny3 = mysql_query($parancs3, $conn) or die("Nem tudtam az adatokat lekérni. A hiba oka: ".mysql_error()); while ( $sor3 = mysql_fetch_array($eredmeny3)) { $answertext="".$sor3['title']."
"; if($lng=="hun"){ $answertext.="".$sor3['hun_title']."
"; }else if(strlen($sor3['eng_title'])>0){ $answertext.="".$sor3['eng_title']."
"; } $answertext.="".$sor3['year']."
"; } }else{ $answertext="".$answertextstored."
"; } } //SZEMELYEK if($type=="2"){ if($object_id>0){ $parancs3="SELECT name FROM persons WHERE person_id='".$object_id."' "; $eredmeny3 = mysql_query($parancs3, $conn) or die("Nem tudtam az adatokat lekérni. A hiba oka: ".mysql_error()); while ( $sor3 = mysql_fetch_array($eredmeny3)) { $answertext="".$sor3['name']."
"; } }else{ $answertext="".$answertextstored."
"; } } //KULTFIGURAK if($type=="3"){ if($object_id>0){ $parancs3="SELECT hun_name, eng_name FROM cult_characters WHERE id='".$object_id."' "; $eredmeny3 = mysql_query($parancs3, $conn) or die("Nem tudtam az adatokat lekérni. A hiba oka: ".mysql_error()); while ( $sor3 = mysql_fetch_array($eredmeny3)) { if($lng=="hun"){ $answertext="".$sor3['hun_name']."
"; }else{ $answertext="".$sor3['eng_name']."
"; } } }else{ $answertext="".$answertextstored."
"; } } return $answertext; } //END defining functions $poll_type_class=getPollTypeClass($poll_type); $poll_type_class_name=getPollTypeClassName($poll_type); if($poll_confirmed>0 || $_SESSION['role']=="admin"){ ?>
";
if($poll_type!="0"){
echo $addAnswerLngtext.":";
echo "";
}
if($poll_type=="0" || $owner==$_SESSION['nick']){
echo "".$addTextAnswerLngtext."";
}
echo "
".$onlymembersabove500."