From b65554322458ef2293f061c432d1e01bcad6c012 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:18:05 +0200
Subject: [PATCH] Add files via upload
---
assets/php/includes/seat.php | 2 +-
fdicines/planificacion/index.php | 8 +++++++-
panel_user/panelUser.php | 13 +++++++++++--
3 files changed, 19 insertions(+), 4 deletions(-)
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].'
';