FilmData($_GET["film"]); if($film){ $tittle = $film->getTittle(); $cinemas = $filmDAO->getCinemas($_GET["film"]); if(!empty($cinemas)){ $cinemasNames = new ArrayIterator(array()); $cinemasIDs = new ArrayIterator(array()); foreach($cinemas as $key=>$value){ $cinemasIDs[$key] = $value->getId(); $cinemasNames[$key] = $value->getName(); } $cinemasIT = new MultipleIterator(MultipleIterator::MIT_KEYS_ASSOC); $cinemasIT->attachIterator($cinemasIDs, "cID"); $cinemasIT->attachIterator($cinemasNames, "NAME"); $cinemasListHTML = '
'; } $fiml_id = $film->getId(); $cinema_id = $value["cID"]; $sessionsDAO = new SessionDAO("complucine"); $sessions = $sessionsDAO->getSessions_Film_Cinema($fiml_id, $cinema_id); if(!empty($sessions)){ $sessionsDates = new ArrayIterator(array()); $sessionsStarts = new ArrayIterator(array()); $sessionsHalls = new ArrayIterator(array()); $sessionsIDs = new ArrayIterator(array()); foreach($sessions as $key=>$value){ $sessionsIDs[$key] = $value->getId(); $sessionsDates[$key] = date_format(date_create($value->getDate()), 'j-n-Y'); $sessionsHalls[$key] = $value->getIdhall(); $sessionsStarts[$key] = $value->getStartTime(); } $sessionsIT = new MultipleIterator(MultipleIterator::MIT_KEYS_ASSOC); $sessionsIT->attachIterator($sessionsIDs, "sID"); $sessionsIT->attachIterator($sessionsDates, "DATE"); $sessionsIT->attachIterator($sessionsHalls, "HALL"); $sessionsIT->attachIterator($sessionsStarts, "HOUR"); $count = 0; $sessionsListHTML = ''; if($count == 0) { $sessionsListHTML = ''; $pay = false; } } else { $sessionsListHTML = ''; $pay = false; } //$session_id = $value["sID"]; //$hall_id = $value["HALL"]; //$date_ = $value["DATE"]; //$hour_ = $value["HOUR"]; //Reply: Depends on whether the purchase is to be made from a selected movie or a cinema. $reply = 'Duración: '.$film->getDuration().' minutos
Idioma: '.$film->getLanguage().'