diff --git a/assets/php/includes/seat.php b/assets/php/includes/seat.php index 8eaf6e2..54a7e0b 100644 --- a/assets/php/includes/seat.php +++ b/assets/php/includes/seat.php @@ -1,5 +1,5 @@ Entrega Final 9 de Junio de 2021 - EN PROCESO + ENTREGADO + + + + 100% + + diff --git a/panel_user/panelUser.php b/panel_user/panelUser.php index 2c62a0c..2ae30cc 100644 --- a/panel_user/panelUser.php +++ b/panel_user/panelUser.php @@ -90,6 +90,8 @@ //User purchase history. static function purchases(){ require_once('../assets/php/includes/purchase_dao.php'); + include_once('../assets/php/includes/cinema_dao.php'); + include_once('../assets/php/includes/hall_dao.php'); $purchasesHTML = ''; @@ -111,7 +113,13 @@ $columns[$key] = $value->getColumn(); $dates[$key] = $value->getTime(); } + for($i = 0; $i < count($purchases); $i++){ + $cinemaDAO = new Cinema_DAO("complucine"); + $cinema = $cinemaDAO->cinemaData($cinemas[$i]); + $hallDAO = new HallDAO("complucine"); + $hall = $hallDAO->HallData($halls[$i]); + if($i%2 === 0){ if($i != 0) $purchasesHTML .= ' '; @@ -124,8 +132,9 @@ '; } $purchasesHTML .= '

Compara realizada el: '.$dates[$i].'


-

Cine: '.$cinemas[$i].'

-

Sala: '.$halls[$i].'

+

Cine: '.$cinema->getName().'

+

Dirección: '.$cinema->getDirection().'

+

Sala: '.$hall->getNumber().'

Sesión: '.$sessions[$i].'

Asiento(Fila): '.$rows[$i].'

Asiento(Columna): '.$columns[$i].'

';