From 1ad88d42a2f4cdf6307d9359fec96bdbe60549e0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fernando=20M=C3=A9ndez?= <45081533+FerMdez@users.noreply.github.com> Date: Mon, 24 May 2021 10:18:17 +0200 Subject: [PATCH] Add files via upload --- assets/css/highContrast.css | 16 ++++++++++++++++ assets/css/main.css | 24 ++++++++++++++++++----- assets/php/includes/film_dao.php | 2 +- purchase/index.php | 33 +++++++++++++++++++++----------- 4 files changed, 58 insertions(+), 17 deletions(-) diff --git a/assets/css/highContrast.css b/assets/css/highContrast.css index 7373fe8..42055f3 100644 --- a/assets/css/highContrast.css +++ b/assets/css/highContrast.css @@ -358,6 +358,22 @@ .code.showtimes:hover { filter: drop-shadow(5px 5px 10px #1f2c3d); } +.code.purchase { + text-align: center; +} +.code.purchase img { + margin: 0.1em 0 0.8em 0; + width: 100%; + box-shadow: 0 4px 8px 0 #00020f, 0 6px 20px 0 #00020f; +} +.code.purchase select, .code.purchase select option { + width: 100%; + font-weight: bold !important; + color: #1f2c3d !important; + background-color: #d3ebff; + text-transform: uppercase; +} + /* BlockQuotes */ .blockquote { diff --git a/assets/css/main.css b/assets/css/main.css index f4896d2..2a0cb6a 100644 --- a/assets/css/main.css +++ b/assets/css/main.css @@ -331,11 +331,11 @@ main img { .code.plan { height: 1150px; } -.code.info{ +.code.info { text-align: center; height: 250px; } -.code.info img{ +.code.info img { width: 75px; height: 75px; margin-top: 5px; @@ -344,12 +344,11 @@ main img { padding: 5px; transition: .5s ease; backface-visibility: hidden; - } -.code.showtimes{ +.code.showtimes { height: 600px; } -.code.showtimes p{ +.code.showtimes p { height: 5em; overflow-x: auto; overflow-y: auto; @@ -357,6 +356,21 @@ main img { .code.showtimes:hover { filter: drop-shadow(5px 5px 10px #1f2c3d); } +.code.purchase { + text-align: center; +} +.code.purchase img { + margin: 0.1em 0 0.8em 0; + width: 100%; + box-shadow: 0 4px 8px 0 #d3ebff, 0 6px 20px 0 #d3ebff; +} +.code.purchase select, .code.purchase select option { + width: 100%; + font-weight: bold !important; + color: #1f2c3d !important; + background-color: #d3ebff; + text-transform: uppercase; +} /* BlockQuotes */ diff --git a/assets/php/includes/film_dao.php b/assets/php/includes/film_dao.php index 0f39d79..9b4f77c 100644 --- a/assets/php/includes/film_dao.php +++ b/assets/php/includes/film_dao.php @@ -112,7 +112,7 @@ (SELECT session.idcinema FROM session JOIN film ON session.idfilm = film.id WHERE film.id = '%d'); ", $id); $resul = mysqli_query($this->mysqli, $sql) or die ('Error into query database'); - //$cinemas[] = null; + $cinemas = null; while($fila = $resul->fetch_assoc()){ $cinemas[] = $cinema->loadCinema($fila["id"], $fila["name"], $fila["direction"], $fila["phone"]); } diff --git a/purchase/index.php b/purchase/index.php index 52d534b..b8f311e 100644 --- a/purchase/index.php +++ b/purchase/index.php @@ -15,15 +15,24 @@ $tittle = $film->getTittle(); $cinemas = $filmDAO->getCinemas($_GET["film"]); - $cinemasNames = array(); - foreach($cinemas as $key=>$value){ - $cinemasNames[$key] = $value->getName(); + if(!empty($cinemas)){ + $cinemasNames = array(); + foreach($cinemas as $key=>$value){ + $cinemasNames[$key] = $value->getName(); + } + + $cinemasListHTML = ''; + } else { + $cinemasListHTML = ''; } - foreach($cinemasNames as $value){ - $cinemasListHTML = ''; - } } @@ -31,12 +40,14 @@ $reply = '
Duración: '.$film->getDuration().'
+Duración: '.$film->getDuration().' minutos
Idioma: '.$film->getLanguage().'