From 687e7b4672b26356de66a44180dd9604c2d02793 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fernando=20M=C3=A9ndez?= <45081533+FerMdez@users.noreply.github.com> Date: Tue, 1 Jun 2021 16:37:52 +0200 Subject: [PATCH] Add files via upload --- assets/php/includes/session.php | 2 +- panel_user/panelUser.php | 28 ++++++++++++++++++++-------- 2 files changed, 21 insertions(+), 9 deletions(-) diff --git a/assets/php/includes/session.php b/assets/php/includes/session.php index a8daa7f..b5198ba 100644 --- a/assets/php/includes/session.php +++ b/assets/php/includes/session.php @@ -1,5 +1,5 @@ cinemaData($cinemas[$i]); $hallDAO = new HallDAO("complucine"); $hall = $hallDAO->HallData($halls[$i]); + $sessionDAO = new SessionDAO("complucine"); + $session = $sessionDAO->sessionData($sessions[$i]); + $filmDAO = new Film_DAO("complucine"); + $film = $filmDAO->FilmData($session->getIdfilm()); if($i%2 === 0){ if($i != 0) $purchasesHTML .= ' @@ -132,19 +138,25 @@ '; } $purchasesHTML .= '
Cine: '.$cinema->getName().'
-Dirección: '.$cinema->getDirection().'
-Sala: '.$hall->getNumber().'
-Sesión: '.$sessions[$i].'
-Asiento(Fila): '.$rows[$i].'
-Asiento(Columna): '.$columns[$i].'
'; +Película: '.str_replace('_', ' ', strtoupper($film->getTittle())).'
+Idioma: '.$film->getLanguage().'
+Cine: '.$cinema->getName().'
+Dirección: '.$cinema->getDirection().'
+Sala: '.$hall->getNumber().'
+Sesión: '.$sessions[$i].'
+Asiento(Fila): '.$rows[$i].'
+Asiento(Columna): '.$columns[$i].'
+